如果你想在Linux作業系統上安裝Oracle 11g,這篇文章將為你提供一份詳細的教學。本教學分為三個部分:準備環境、下載Oracle安裝檔、以及安裝Oracle 11g。
準備環境
在安裝Oracle 11g之前,你需要確保你的Linux作業系統符合Oracle 11g的要求。 Oracle 11g支援以下Linux發行版:
另外,你需要確保你的作業系統已經安裝好如下軟體包:
yum list binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio.i686 libaio-devel libgcc libstdc++ libstdc++.i686 libstdc++-devel make numactl-devel sysstat
Installed Packages binutils.x86_64 2.17.50.0.6-14.el5 installed compat-libstdc++-33.x86_64 3.2.3-69.el5 installed compat-libstdc++-33.i686 3.2.3-69.el5 installed elfutils-libelf.x86_64 0.137-3.el5 installed elfutils-libelf-devel.x86_64 0.137-3.el5 installed gcc.x86_64 4.1.2-55.el5 installed gcc-c++.x86_64 4.1.2-55.el5 installed glibc.x86_64 2.5-118.el5_10.3 installed glibc-common.x86_64 2.5-118.el5_10.3 installed glibc-devel.x86_64 2.5-118.el5_10.3 installed glibc-headers.x86_64 2.5-118.el5_10.3 installed ksh.x86_64 20120801-56.el5 installed libaio.x86_64 0.3.106-5.el5 installed libaio.i686 0.3.106-5.el5 installed libaio-devel.x86_64 0.3.106-5.el5 installed libgcc.x86_64 4.1.2-55.el5 installed libstdc++.x86_64 4.1.2-55.el5 installed libstdc++.i686 4.1.2-55.el5 installed libstdc++-devel.x86_64 4.1.2-55.el5 installed make.x86_64 1:3.81-23.el5_10.1 installed numactl-devel.x86_64 2.0.9-2.el5 installed sysstat.x86_64 7.0.2-5.el5 installed
yum install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio.i686 libaio-devel libgcc libstdc++ libstdc++.i686 libstdc++-devel make numactl-devel sysstat
linux.x64_11gR2_database_1of2.zip和
linux.x64_11gR2_database_2of2.zip。下載後,將這兩個zip檔解壓縮到同一個目錄。
mkdir /u01/app/oracle/product/11.2.0/dbhome_1 mkdir /u01/app/oracle/admin/orcl mkdir /u01/app/oracle/oradata/orcl
cp /home/user/Downloads/linux.x64_11gR2_database_1of2.zip /tmp/ cp /home/user/Downloads/linux.x64_11gR2_database_2of2.zip /tmp/
/home/user/Downloads/路徑改為你解壓縮後所在的路徑。
su - oracle
vi ~/.bash_profile
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export PATH=$ORACLE_HOME/bin:$PATH
cd /tmp unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR2_database_2of2.zip cd database ./runInstaller
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh
以上是詳解linux oracle11g安裝教程的詳細內容。更多資訊請關注PHP中文網其他相關文章!