標籤:
本文主要是講oracle11gR2對系統和物理配置的相關要求以及適當的參數調整
系統:
[[email protected] ~]# cat /etc/system-releaseCentOS release 6.7 (Final)
核心版本:
[[email protected] ~]# uname -r2.6.32-573.el6.x86_64
核心相關參數:
[[email protected] ~]# vi /etc/sysctl.confkernel.shmall = 4294967296fs.aio-max-nr = 1048576fs.file-max = 6815744#kernel.shmall = 2097152#kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576# Auto-enabled by xs-tools:install.shnet.ipv4.conf.all.arp_notify = 1
應用進程開啟的檔案數:
[[email protected] ~]# vi /etc/security/limits.conforacle soft nproc 2047oracle hard nproc 16384
系統允許開啟的檔案數:
[[email protected] ~]# vi /etc/security/limits.conforacle soft nofile 1024oracle hard nofile 65536
相關的管理賬戶和組:
[[email protected] ~]# cat /etc/passwd|egrep -i "^(oracle)"|awk -F":" ‘{print $1}‘oracle[[email protected] ~]# groups oracleoracle : oinstall dba oper asmadmin asmdba[[email protected] ~]#
相關的工具包和開發包:
實體記憶體大小:
[[email protected] ~]# cat /proc/meminfo |grep -i memMemTotal: 3974196 kBMemFree: 2037892 kBShmem: 3920 kB
交換分區大小:
[[email protected] ~]# cat /proc/meminfo |grep -i swapSwapCached: 0 kBSwapTotal: 4112380 kBSwapFree: 4112380 kB
tmpfs分區大小
[[email protected] ~]# cat /etc/fstab |egrep tmpfstmpfs /dev/shm tmpfs defaults,size=6G 0 0
/tmp臨時目錄大小:
[[email protected] ~]# df -khFilesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup-lv_root 45G 9.2G 34G 22% /tmpfs 6.0G 80K 6.0G 1% /dev/shm/dev/xvda1 477M 30M 422M 7% /boot
oracle使用者環境變數設定
[[email protected] ~]$ cat !$cat .bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User specific environment and startup programsumask 22 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1export LD_LIBRARY=$ORACLE_HOME/libPATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:.export PATH
oracle 11g R2但樣本安裝前環境準備(針對使用者,許可權,記憶體 儲存和系統參數的相關調整)