- 論壇徽章:
- 0
|
系統(tǒng)參數(shù)配置
如果參數(shù)值達不到上述要求,則需要修改/etc/sysctl.conf文件,在其中添加或修改以下內(nèi)容:
kernel.shmall = 2097152
kernel.shmmax =1073741824 物理內(nèi)存的一半(1024*1024*物理內(nèi)存)
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
u 首先在/etc/security/limits.conf文件中添加以下內(nèi)容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
3、創(chuàng)建安裝數(shù)據(jù)庫時所需要使用的用戶組oinstall,dba及Oracle用戶,并將oinstall,dba組定義成oracle用戶的主次組。命令參考如下:
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle (設(shè)定oracle用戶為oinstall、dba用戶組的成員)
# passwd oracle (設(shè)定oracle用戶的密碼)
4、以root用戶身份登錄系統(tǒng)創(chuàng)建Oracle系統(tǒng)的安裝目錄和數(shù)據(jù)庫文件存放的目錄。例如:/oracle,及改變以上目錄的屬性命令參考如下:
# mkdir -p /oracle/product/10.2.0 (創(chuàng)建數(shù)據(jù)目錄)
# chown -R oracle.oinstall /oracle (設(shè)定目錄所屬的用戶組和用戶)
# chmod -R 775 /oracle (設(shè)定目錄的讀寫權(quán)限)
配置oracle用戶的.bash_profile環(huán)境變量()
export LD_ASSUME_KERNEL=2.6.9
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/
export ORACLE_SID=shilu (按照實際的)
export ORACLE_TERM=xterm (按照實際的)
export NLS_LANG=ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export PATH=$PATH ORACLE_HOME/bin |
|