64位 Linux平臺(tái)下Oracle安裝文檔 |
| 發(fā)布時(shí)間: 2012/9/1 17:35:04 |
|
安裝步驟和32位 基本一樣,在一些參數(shù)上有些變化。
官網(wǎng)安裝文檔: http://download.Oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#CIHFICFD
建議使用英文的。 這樣避免以后出現(xiàn)亂碼的問題。
2. 檢查相關(guān)安裝包 RedHat 5下需要如下包, 這些包在安裝操作系統(tǒng)的時(shí)候基本都安裝了,不過要確認(rèn)一下。 包的版本也有差別, 只要安裝了就可以了。
binutils-2.17.50.0.6-2.el5 compat-db-4.2.52-5.1 compat-gcc-34-3.4.6-4 compat-gcc-34-c++-3.4.6-4 compat-libstdc++-33-3.2.3-61 compat-libstdc++-33-3.2.3-61(i386) compat-libstdc++-296(i386) gcc-4.1.1-52.el5.2 gcc-c++-4.1.1-52.el5.2 glibc-2.5-12 glibc-2.5-12(i386) glibc-common-2.5-12 glibc-devel-2.5-12 glibc-devel-2.5-12(i386) glibc-headers-2.5-12 libgcc-4.1.1-52.el5(i386) libXp-1.0.0(i386) libXt-1.0.2(i386) libXtst-1.0.1(i386) libaio-0.3.106-3.2 libaio-devel-0.3.106-3.2 libgcc-4.1.1-52.el5 libstdc++-4.1.1-52.el5.2 libstdc++-devel-4.1.1-52.el5.2 libgomp-4.1.1-52.EL5 make-3.81-1.1 numactl-devel-0.9.8.x86_64 sysstat-7.0.0-3.el5
這里要注意的是libXp 和sysstat 包。 這2個(gè)包我裝了好多次,都沒有安裝。
3. 設(shè)置Shell Limits 3.1 編輯/etc/security/limits.conf 文件,在該文件添加如下內(nèi)容: Oracle soft nproc 2047 Oracle hard nproc 16384 Oracle soft nofile 1024 Oracle hard nofile 65536
注意, 在這里設(shè)置之后,就不需要在去修改/etc/profile文件了。
for Oracle 11gR2: Oracle soft nproc 2047 Oracle hard nproc 16384 Oracle soft nofile 1024 Oracle hard nofile 65536 Oracle soft stack 10240
3.2 修改/etc/pam.d/login 文件 在該文件添加如下內(nèi)容: session required pam_limits.so
3.3 修改/etc/profile, 添加如下內(nèi)容: /etc/profile: 此文件為系統(tǒng)的每個(gè)用戶設(shè)置環(huán)境信息,當(dāng)用戶第一次登錄時(shí),該文件被執(zhí)行.并從/etc/profile.d目錄的配置文件中搜集shell的設(shè)置.
For the Bourne, Bash, or Korn shell, add the following lines to the /etc/profile file: if [ $USER = "Oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi
4. 配置Kernel Parameters
# Controls the maximum shared segment size, in bytes --物理內(nèi)存的一般 kernel.shmmax = 68719476736 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296 --物理內(nèi)存除以pagesize -- 以上2個(gè)參數(shù),都已經(jīng)存在, 只需要調(diào)整一下參數(shù)大小 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 327679 net.core.rmem_default = 1048576 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 net.ipv4.ip_local_port_range = 9000 65500 -- 這個(gè)端口從9000開始
for 11gR2 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586
注意:如果已經(jīng)存在的值,大于這里的設(shè)置,就不要修改。
官網(wǎng)的描述表:
Parameter Maximum: 65500 Note: Ignore any Oracle Universal Installer warnings related to this parameter. Note: This value limits concurrent outstanding requests and should be set to avoid I/O subsystem failures. Note: If you have multiple databases on the same system or if you plan to consolidate multiple databases, then Oracle recommends using a higher value.
5. 添加用戶組和用戶,并為Oracle用戶設(shè)置密碼 #groupadd oinstall #groupadd dba #groupadd oper #useradd -g oinstall -G dba Oracle #passwd Oracle
6. 創(chuàng)建Oracle安裝文件夾
7. 設(shè)置Oracle用戶的環(huán)境變量
#vi /home/Oracle/.bash_profile --將如下代碼添加到.bash_profile文件中: # Oracle Settings COLUMNS=132; export COLUMNS
TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR Oracle_BASE=/u01/app/oracle; export ORACLE_BASE Oracle_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME Oracle_SID=anqing; export ORACLE_SID SHLIB_PATH=$LD_LIBRARY_PATH;export SHLIB_PATH
Oracle_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$Oracle_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$Oracle_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$Oracle_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
8. 開始安裝 8.1 版本問題 如果是RedHat 5的話,就需要改一下版本參數(shù)。編輯/etc/redhat-release文件,注釋掉原來的,在添加上redhat-4 。 如果不該文件,在安裝的時(shí)候加上參數(shù)也行,如: ./runInstaller -IgnoreSysPreReqs
#gunzip 文件名.cpio.gz 這樣文件就解壓成為 "文件名.cpio" 了,然后再對(duì)它進(jìn)行cpio操作
使用Xmanager 工具或者是NoMachine工具都可以。 如果是用Xmanger,就需要指定一下DISPALY 變量,如: export DISPLAY=192.168.6.168:0.0
Nomachine 直接連接過去就可以了。 這個(gè)是遠(yuǎn)程桌面。 用起來也方便。參考:遠(yuǎn)程桌面工具 -- NoMachine
本文出自:億恩科技【www.xuefeilisp.com】 服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |
京公網(wǎng)安備41019702002023號(hào)