RHEL5.2 64 Bit install Oracle 10g [多圖]

來源:互聯網
上載者:User

【前言】
目的:安裝64 bIT Oracle10g
環境:RHEL 5.2 64 bit 作業系統
 
【步驟】:
1、安裝RHEL作業系統,下載並上傳介質
2、建立軟體安裝環境
3、安裝依賴包
4、檢查修改系統參數
5、安裝Oracle軟體
6、建立資料庫執行個體
 
 
1、安裝RHEL作業系統,下載並上傳介質
    RHEL安裝過程可以參考我的另一篇文章,詳細這裡不做敘述,安裝並上傳介質後,如下:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->[root@Fantasy install]# uname -a
Linux Fantasy 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@Fantasy install]# ls -l
total 783592
-rw-r--r-- 1 root  root  801603584 Oct 14  2009 10201_database_linux_x86_64.cpio
[root@Fantasy install]# cpio -idmv  10201_database_linux_x86_64.cpio
 
解壓後:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->drwxr-xr-x 6 94110 42424      4096 Oct 23  2005 database
-rw-r--r-- 1 root  root  801603584 Oct 14  2009 10201_database_linux_x86_64.cpio
 
2、建立軟體安裝環境
2.1、建立Oracle相關帳號以及目錄:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->[root@Fantasy ~]# groupadd oinstall
[root@Fantasy ~]# groupadd dba
[root@Fantasy ~]# useradd -g oinstall -G dba oracle
[root@Fantasy ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.[root@Fantasy opt]# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
[root@Fantasy ~]# mkdir -p /opt/oracle/10g/db_1
[root@Fantasy ~]# cd /opt
[root@Fantasy opt]# ls -lrt
total 4
drwxr-xr-x 3 root root 4096 May 15 23:32 oracle
[root@Fantasy opt]# chown -R oracle:oinstall oracle/
 
 2.1、增加Oracle相關的環境變數,修改/home/oracle/.bash_profile檔案,增加下面內容:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/10g/db_1
export ORACLE_SID=orc
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export TEMP=/tmp
export TMP=/tmp
export TMPDIR=/tmp
export umask=022
export LANG=en_US
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export PATH
 
 if [ $USER = "oracle" ]; then
       if [ $SHELL = "/bin/ksh" ]; then
             ulimit -p 16384
             ulimit -n 65536
       else
             ulimit -u 16384 -n 65536
       fi
fi
 
 
 
 
 
 
3、安裝依賴包  
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->libaio-0.3.103-3.i386.rpm
compat-db-4.1.25-9.x86_64.rpm 
control-center-2.8.0-12.x86_64.rpm
gcc-3.4.3-22.1.x86_64.rpm
gcc-c++-3.4.3-22.1.x86_64.rpm
glibc-2.3.4-2.x86_64.rpm
glibc-common-2.3.4-2.x86_64.rpm
gnome-libs-1.4.1.2.90-44.1.x86_64.rpm
libstdc++-3.4.3-22.1.x86_64.rpm
libstdc++-devel-3.4.3-22.1.x86_64.rpm
make-3.80-5.x86_64.rpm
pdksh-5.2.14-30.x86_64.rpm
sysstat-5.0.5-1.x86_64.rpm
xscreensaver-4.18-5.rhel4.2.x86_64.rpm
compat-libstdc++-33-3.2.3-47.3.x86_64.rpm
glibc-kernheaders-2.4-9.1.87.x86_64.rpm
glibc-headers-2.3.4-2.9.x86_64.rpm
libaio-0.3.103-3.x86_64.rpm
glibc-devel-2.3.4-2.9.x86_64.rpm
glibc-devel-2.3.4-2.9.i386.rpm
libXp-1.0.0-8.1.el5.rpm
 
4、檢查修改系統參數
4.1、檢查記憶體和交換分區的大小,如果記憶體大於1G,交換分區一般是記憶體的2倍  
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->[root@Fantasy /]# grep MemTotal /proc/meminfo
MemTotal:      1027060 kB
[root@Fantasy /]# grep SwapTotal /proc/meminfo
SwapTotal:     2097144 kB
[root@Fantasy /]#
 
4.2、 修改核心參數,修改檔案:/etc/sysctl.conf,增加下面內容:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->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
    執行命令:/sbin/sysctl -p,令修改生效,
4.3、查看/etc/pam.d/login檔案是否有下面選項(如果沒有則添加):
    session    required     /lib/security/pam_limits.so
    pam_limits.so是linux 中的一個PAM(插入式認證模組,Pluggable Authentication Modules),
其設定檔是/etc/sysctl.conf,用於分配使用者登入後的許可權
 
4.4、修改檔案/etc/security/limits.conf,增加下面內容:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9..
  • 14
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.