在Oracle Enterprise Linux R5U7上安裝Oracle 11gr2資料庫

來源:互聯網
上載者:User

標籤:

折騰了好幾次,經驗是:

包的安裝

在安裝包裡,需要把開發方面的安裝包都裝上.

另外安裝完成後,需要安裝的包包括:

cd /media/cdrom/Serverrpm -Uvh binutils-2.*rpm -Uvh compat-libstdc++-33*rpm -Uvh compat-libstdc++-33*.i386.rpmrpm -Uvh elfutils-libelf*rpm -Uvh gcc-4.*rpm -Uvh gcc-c++-4.*rpm -Uvh glibc-2.*rpm -Uvh glibc-common-2.*rpm -Uvh glibc-devel-2.*rpm -Uvh glibc-headers-2.*rpm -Uvh ksh*rpm -Uvh libaio-0.*rpm -Uvh libaio-devel-0.*rpm -Uvh libgomp-4.*rpm -Uvh libgcc-4.*rpm -Uvh libstdc++-4.*rpm -Uvh libstdc++-devel-4.*rpm -Uvh make-3.*rpm -Uvh sysstat-7.*rpm -Uvh unixODBC-2.*rpm -Uvh unixODBC-devel-2.*rpm -Uvh numactl-devel-*

 

建使用者

/usr/sbin/groupadd dba
/usr/sbin/groupadd oinstall
/usr/sbin/useradd -g oinstall -G dba oracle
passwd oracle

 

修改系統參數

修改/etc/sysctl.conf檔案,添加下列命令
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
fs.file-max = 6553600
使設定檔生效
/sbin/sysctl -p

 

添加下列命令到/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
添加下列命令到/etc/pam.d/login
session required /lib64/security/pam_limits.so
session required pam_limits.so
對於Bourne,Bash或者Korn shell添加下列命令到檔案/etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

 

建立子檔案目錄,設定所有者,組,還有許可權
mkdir -p /u01/app
chown -R oracle:oinstall /u01/app
chmod -R 775 /u01/app

 

登陸oracle使用者
修改umask設定到~/.bash_profile
umask 022
使設定檔生效
. ./.bash_profile
配置ORACLE_BASE
export ORACLE_BASE=/u01/app/oracle

 

其他的就按照常規的來.

 

在Oracle Enterprise Linux R5U7上安裝Oracle 11gr2資料庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.