共計 2196 個字符,預計需要花費 6 分鐘才能閱讀完成。
這篇文章主要介紹“Linux Oracle 11gR2 的配置安裝步驟”,在日常操作中,相信很多人在 Linux Oracle 11gR2 的配置安裝步驟問題上存在疑惑,丸趣 TV 小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”Linux Oracle 11gR2 的配置安裝步驟”的疑惑有所幫助!接下來,請跟著丸趣 TV 小編一起來學習吧!
話不多說,下載 Oracle 11gR2,注意為兩個包 linux_11gR2_database_1of2.zip,linux_11gR2_database_2of2.zip,下載后上傳到 Linux.
一、Linux 系統(tǒng)下要安裝的數(shù)據(jù)包。
個人經(jīng)驗,安裝 Linux 過程中,選擇全部默認的包,基本就安裝差不多了。
linux 系統(tǒng)要安裝好以下的包,要安裝的包有:
binutils-2.15.92.0-10.EL4
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-libstdc++-33-3.2.3-47.3
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.L4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90EL4
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
libaio-0.3.102-1
openmotif21-2.1.30-11
make-3.80.5
pdksh-5.2.14.30
sysstat-5.0.5-1
setarch-1.3-1
xscreensaver-4.18-5.rhe4.2
配置主機名,這一步很重要。
#vi /etc/hosts
192.168.0.11 test.or.com test
設置 IP 和計算機名是必須的,如果不配置,后面安裝時就會報錯,說連接不到主機之類的。
二、創(chuàng)建 Oracle 組和用戶帳戶
#usr/sbin/groupadd oinstall
#/usr/sbin/groupadd dba
#/usr/sbin/useradd -m -g oinstall -G dba oracle
#passwd oracle
三、創(chuàng)建目錄并授權(quán)
#mkdir -p /oracle/app/oracle
#mkdir -p /oracle/app/oraInventory
#chown -R oracle:oinstall /oracle/app/oracle
#chown -R oracle:oinstall /oracle/app/oraInventory
#chmod -R 775 /oracle/app/oracle
四、編輯內(nèi)核參數(shù)
#cat /etc/sysctl.conf EOF
kernel.shmall = 268435456
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.aio-max-nr = 1048576
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
EOF
#/sbin/sysctl -p
五、為 oracle 用戶設置 Shell 限制
#cat /etc/security/limits.conf EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
#cat /etc/pam.d/login EOF
session required /lib/security/pam_limits.so
EOF
六、oracle 用戶的環(huán)境變量 注意現(xiàn)在操作為 oracle 用戶
$vi .bash_profile
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=test
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_OWNER=oracle
$source .bash_profile
好了,現(xiàn)在我們就可以安裝 Oracle 11gR2 了。進入解壓目錄后。
$ ./runInstaller
到此,關于“Linux Oracle 11gR2 的配置安裝步驟”的學習就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續(xù)學習更多相關知識,請繼續(xù)關注丸趣 TV 網(wǎng)站,丸趣 TV 小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>