oracle 10gas安裝攻略
2024-08-29 13:36:42
供稿:網友
 
             
  具體的參考信息請參考
  Quick Installation and Upgrade Guide 10g (9.0.4) for linux x86
  Part No. B10906-03
  
  硬件要求
  ram 512m以上
  disk space 2g 左右
  tmp space 250m
                                                                                              swap space 1.5g
  
  檢查方法
  檢查內存
  grep MemTotal /PRoc/meminfo
  檢查磁盤空間
  df -h dir
  檢查交換空間
  
  grep SwapTotal /proc/meminfo
  
  OS redhat 3.0 update 2
  
  os軟件要求
  要求安裝如下rpm包
  ■gcc-3.2.3-20
  ■ setarch-1.3-1
  ■ pdksh-5.2.14
  ■ openmotif21-2.1.30-8
  ■ gnome-libs-1.4.1.2.90-34.1
  ■ compat-glibc-7.x-2.2.4.32.5
  ■ compat-gcc-7.3-2.96.122
  ■ compat-libstdc++-7.3-2.96.122
  ■ compat-libstdc++-devel-7.3-2.96.122
  ■ compat-gcc-c++-7.3-2.96.122
  ■ sysstat-4.0.7
  
  檢查方法
  rpm -q pkg_name
  
  對gcc 做連接
  mv /usr/bin/gcc /usr/bin/gcc.backup
  mv /usr/bin/g++ /usr/bin/g++.backup
  ln -s /usr/bin/gcc296 /usr/bin/gcc
  ln -s /usr/bin/g++296 /usr/bin/g++
  
  打上第一個patch(rh3需要的rh2.1不需要)
  patch no 3006854
  
  gunzip p3006854_9204_LINUX.zip
  cd 3006854
  sh rhel3_pre_install.sh
  即可
  這個補丁 創建 /etc/libcwait.so文件
  假如不打這個補丁
  
  oui沒法啟動
  
  新建用戶 
  useradd ias10g
  檢查一下ias10g用戶的.bash_profile
  不需要設置一下環境變量
  TNS_ADMIN ORA_NLS33 LD_BIND_NOW
  
  修改內核參數
  vi /etc/sysctl.conf
  加上
  kernel.shmall = 2097152
  kernel.shmmax = 2147483648
  kernel.shmmni = 142
  kernel.sem = 256 32000 100 142
  fs.file-max = 131072
  net.ipv4.ip_local_port_range = 20000 65000
  kernel.msgmni = 2878
  kernel.msgmax = 8192
  kernel.msgmnb = 65535
  
  保存,然后執行
  
  sysctl -p
  
  檢查一下是否生效
  
  cat cat /proc/sys/kernel/shmmax
  
  修改系統對資源的限制
  修改/etc/security/limits.conf 文件,加上
  * soft nproc 2047
  * hard nproc 16384
  * soft nofile 2048
  * hard nofile 16384
  
  修改 /etc/pam.d/login加上
  session required /lib/security/pam_limits.so
  
  修改ias10g 用戶 .bash_profile
  增加資源
  ulimit -u 16384
  ulimit -n 16384
  加上路徑
  ias 安裝在 /tpdata/ias10g2
  
  PATH=$PATH:$HOME/bin:/tpdata/ias10g2/OraHome1/bin:/tpdata/ias10g2/OraHome1/opmn/bin:/tpdata/ias10g2/OraHome1/dcm/bin
  
  下載ias10g 安裝文件
  我們只安裝ohs+j2ee+webcache,所以選擇下載
  http://www.Oracle.com/technology/so...ias/devuse.Html
  編號為7的OracleAS J2EE and Web Cache v9.0.4
  總共4個文件
  
  下載好后,解壓
  
  cpio -idvm < ias904_linux_disk1.cpio
  cpio -idvm < ias904_linux_disk2.cpio
  cpio -idvm < ias904_linux_disk3.cpio
  cpio -idvm < ias904_linux_disk4.cpio
  
  su - ias10g2
  我選擇遠程安裝所以設置display 變量
  eXPort DISPLAY=10.2.33.41:0
  cd Disk1
  ./runInstaller
  
  出現如下提示
  ***************************************************************
  Please Refer to Quick Installation Guide and/or Metalink Notes
  for Redhat 3.0 system setup.
  Install and Configuration issues are expected if system is not
  setup as per the guidelines before
  Oracle application Server 10g (9.0.4) installs.
  Specifically, please ensure the following:
  * Availability of gcc-3.2.3, setarch-1.3, pdksh-5.2,
  openmotif21-2.1.30, sysstat-4.0.7, gnome-libs-1.4.1.2.90-34.1,
  libstdc++-3.2.3, etc.
  * Availability of Compat libraries:
  compat-libstdc++-devel-7.3-2.96.122,
  compat-glibc-7.x-2.2.4.32.5, etc.
  * Patch for libcwait.so (Patch no. 3006854)
  * Symbolic links for gcc/g++
  
  Enter 'y' if the target system is configured as per the
  guidelines specified in the Quick Installation Guide
  Answer 'n' to exit runInstaller
  Please retry after completing system setup.
  ***************************************************************
  Is system configured correctly ?
                          [y/n] (n)
  
  選擇y,回車,讓安裝程序檢查是否具備安裝條件
  
  Starting Oracle Universal Installer ...
  
  Checking requirements...
  
  Checking Operating system version: must be redhat-2.1, UnitedLinux-1.0 or redhat-3 Passed
  
  All requirements met.
  
  Checking if CPU speed is above 450 MHz.
  Actual 3056 MHz Passed
  Checking for Kernel version 2.4.21-4.EL Passed
  Checking for glibc version glibc-2.3.2-95.3 Passed
  Checking operating system packages: gcc-3.2.3-20,compat-gcc-7.3-2.96.122,compat-gcc-c++-7.3-2.96.122,compat-libstdc++-7.3-2.96.122,compat-libstdc++-devel-7.3-2.96.122,openmotif21-2.1.30,setarch-1.3-1,pdksh-5.2.14,sysstat-4.0.7,gnome-libs-1.4.1.2.90-34.1,libstdc++-3.2.3,compat-libstdc++-devel-7.3-2.96.122,compat-glibc-7.x-2.2.4.32.5 Failed <<<<
  >>> Package gcc-3.2.3-20 is missing
  Checking swap space: must be greater than 1536 MB.
  Actual 2000MB Passed
  
  Error : Packages version not per Installation requirement.Continue? (y/n) [n]
  
  檢查顯示 Package gcc-3.2.3-20 is missing ,不用管他
  選擇y