標籤:六步搞定linux oracle 11gr2 配置安裝
話不多說,下載Oracle 11gR2,注意為兩個包linux_11gR2_database_1of2.zip,linux_11gR2_database_2of2.zip,下載後上傳到Linux.
一、Linux系統下要安裝的資料包。
個人經驗,安裝Linux過程中,選擇全部預設的包,基本就安裝差不多了。
linux系統要安裝好以下的包,要安裝的包有:
binutils-2.15.92.0-10.EL4compat-db-4.1.25-9compat-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-12gcc-3.4.3-9.EL4gcc-c++-3.4.3-9.L4glibc-2.3.4-2glibc-common-2.3.4-2gnome-libs-1.4.1.2.90EL4libstdc++-3.4.3-9.EL4libstdc++-devel-3.4.3-9.EL4libaio-0.3.102-1openmotif21-2.1.30-11make-3.80.5pdksh-5.2.14.30sysstat-5.0.5-1setarch-1.3-1 xscreensaver-4.18-5.rhe4.2
配置主機名稱,這一步很重要。
#vi /etc/hosts192.168.0.11 test.or.com test
設定IP和電腦名稱是必須的,如果不配置,後面安裝時就會報錯,說串連不到主機之類的。
二、建立 Oracle 組和使用者帳戶
#usr/sbin/groupadd oinstall#/usr/sbin/groupadd dba#/usr/sbin/useradd -m -g oinstall -G dba oracle#passwd oracle
三、建立目錄並授權
#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
四、編輯核心參數
#cat >> /etc/sysctl.conf <<EOFkernel.shmall = 268435456kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.aio-max-nr = 1048576fs.file-max = 6815744net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576EOF #/sbin/sysctl -p
五、為 oracle 使用者佈建 Shell 限制
#cat>> /etc/security/limits.conf <<EOForacle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536EOF#cat>> /etc/pam.d/login <<EOFsession required /lib/security/pam_limits.soEOF
六、oracle 使用者的環境變數 注意現在操作為oracle使用者
$vi .bash_profileexport 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
好了,現在我們就可以安裝Oracle 11gR2了。進入解壓目錄後。
$ ./runInstaller
本文出自 “xiangcun168” 部落格,請務必保留此出處http://xiangcun168.blog.51cto.com/4788340/1663322
六步搞定Linux Oracle 11gR2 配置安裝