RHEL5.2系統下安裝Oracle 10g詳細步驟

來源:互聯網
上載者:User

一、         檢查硬體要求
 
          記憶體要求(至少1G) #grep MemTotal   /proc/meminfo
          交換區要求#grep SwapTotal   /proc/meminfo
          /tmp目錄(至少400M空間) #df -m /tmp
二、         系統軟體要求
 
           查看作業系統版本 # cat /et c/issue
           查看核心版本 # uname -r
          系統軟體包查詢
            Binutils
            Compat-db
            Compat-libstdc++-296
Control-center
Gcc
Gcc-c++
Glibc
Glibc-common
Gnome-libs
Libstdc++
Listdc++-devel
Make
Pdksh
Sysstat
Xscreensaver
Setarch
libXp
openmotif
libaio-0.3.106
修改/etc/hosts檔案 (添加本地主機名稱與ip地址對應關係)
 
      #vi /etc/hosts
100.100.100.200                    linux5
三、         建立使用者和組
     #/usr/sbin/groupadd oinstall
     #/usr/sbin/groupdd   dba
     #/usr/sbin/groupadd   oper
     #useradd –g oinstall –G dba,oper Oracle
     #passwd oracle
四、         確認使用者nobody的存在
     # id nobody
五、         調整核心參數
修改/et      c/sysctl.conf檔案(在檔案末尾添加如下內容)
kernel.core_uses_pid = 1
kernel.shmall = 2097152
kernel.shmmax = 2147483648
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 = 10248576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 26144
使核心參數立即生效
#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     pam_selinux.so open
session    required     /lib/security/pam_limits.so
session    required     pam_limits.so
      編輯檔案/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
         編輯檔案/etc/csh.login
if ( $USER == "oracle" ) then
        limit maxproc 16384
        limit descriptors 65536
endif
 
七、         建立oracle軟體安裝目錄
[root@linux5 ~]# mkdir -p /db/oracle
[root@linux5 ~]# chown -R oracle:oinstall /db/oracle/
[root@linux5 ~]# chmod -R 775 /db/oracle/
八、         設定oracle使用者環境變數(添加如下內容)
[root@linux5 ~]# su - oracle
[oracle@linux5 ~]$ vi .bash_profile
umake 022
ORACLE_BASE=/db/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID=yang
PATH=$ORACLE_HOME/bin:$PATH:.
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
九、         上傳oracle database軟體
      啟動linux伺服器上的vsftpd服務
 [root@linux5 ~]# service vsftpd start
Starting vsftpd for vsftpd:    [ok]
在windows主機上使用ftp上傳oracle database軟體

十一、安裝oracle資料庫
由於orcale10不支援 RHEL5 所以需要修改/etc/RedHat_realease 將 Red Hat Enterprise Linux Server release 5 (Tikanga) 改為Red Hat Enterprise Linux Server release 4 (Tikanga)
#cd /home/oracle/database
#./runInstaller
1、注意不選“create starter database”
2、檢查前面添加修改的參數檔案
3、預設下一步 進行安裝
4、安裝中途,提示執行指令檔,以root使用者執行之
[oracle@linux5 db_1]$ su -
Password:
[root@linux5 ~]# sh /db/oracle/product/10.2.0/db_1/root.sh
[root@linux5 ~]#sh /db/oracle/oraInventory/orainstRoot.sh
執行完成後點擊ok鍵
退出
十二、配置監聽程式
1、 開啟配置監聽助手
[oracle@linux5 ~]$ netca
2、 點擊next
3、 完成即可!

相關文章

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.