install oracle92 on redhat as4 x86-64

watershed發表於2006-01-24


Install racle92 no redhat as4 x86-64


Pre-installation Tasks
安裝之前要確定一下的RPM包已經打上,其實包的版本略有不同感覺問題不大,起碼在安裝的並沒有報錯.但要注意這些包的字尾應該為x86-64,不能是i386.還要注意的是這些包可能相互有依賴性,也會依賴於其他包,請一一下載安裝.
可以在 搜尋下載所需RPM包
安裝前先用rpm –qa來檢查一下安裝情況,如果未曾安裝則用
rpm –ihv安裝.
Download and Install Required Packages
The following packages (or later versions) must be installed:
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-oracle-rhel4-1.0-3
compat-libcwait-2.0-1
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-47.3
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
gnome-libs-1.4.1.2.90-44
gnome-libs-devel-1.4.1.2.90-44
libaio-devel-0.3.102-1
libaio-0.3.102-1
make-3.80-5
openmotif21-2.1.30-11
xorg-x11-deprecated-libs-devel-6.8.1-23.EL
xorg-x11-deprecated-libs-6.8.1-23.EL

The compat-oracle-rhel4-1.0-3 and compat-libcwait-2.0-1 packages are available from OracleMetalink patch 4198954. To download patch 4198954:
1. Click Patches on the side of the OracleMetalink page.
2. Click Simple Search on the Select a Patch Search Area page.
3. Select Patch Number(s) in the Search By field.
4. Enter 4198954 in the Search By Patch Number(s) field.
5. Select Linux x86 in the Platform or Language field, then click Go.
6. On the patch download page, click Download.
Download and Unzip Patch 4188455
Before you install Oracle9i release 9.2.0.6, you must download and unzip patch 4188455 from OracleMetalink:

To download and unzip patch 4188455:
1. Click Patches on the side of the OracleMetalink page.
2. Click Simple Search on the Select a Patch Search Area page.
3. Select Patch Number(s) in the Search By field.
4. Enter 4188455 in the Search By Patch Number(s) field.
5. Select Linux x86 in the Platform or Language field, then click Go.
6. On the patch download page, click Download.
The p4188455_10103_LINUX.zip file is downloaded to your system. This file contains the oraparam.ini file.
7. Unzip the p4188455_10103_LINUX.zip file.
8. Optionally, copy the oraparam.ini file to a different directory on your system, for example, /tmp.
You must specify the full path to the oraparam.ini file when you start the Installer.


新增DBA組和ORACLE使用者
[root@linuxserver14 /]# groupadd dba -g 1001
[root@linuxserver14 /]# useradd -c "Oracle Software Owner" -G dba -u 1001 -g 1001 -m -d /orasys/oracle -s /bin/bash oracle
[root@linuxserver14 root]# passwd oracle(給ORACLE使用者設定口令)
Changing password for user oracle
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully

修改.bash_profile檔案
特別要注意LD_ASSUME_KERNEL Environment Variable,在as3的時候安裝92這個引數要設定成2.4.1,但是在as4安裝92的時候要設定成2.4.19,以下是.bash_profile檔案的例子:
[root@ctais2 oracle]# cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
umask 022
EDITOR=vi; export EDITOR
TERM=xterm; export TERM
TMPDIR=/tmp; export TMPDIR

export ORACLE_SID=ctais2
export ORACLE_BASE=/home/oracle/u01/app/oracle
export ORACLE_HOME=/home/oracle/u01/app/oracle/product/9.2.0.1.0
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export NLS_LANG=AMERICAN_AMERICA.us7ascii
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_TERM=xterm
export LD_ASSUME_KERNEL=2.4.19
export PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export DISPLAY=10.1.151.10:0.0
#export DBCA_RAW_CONFIG=$ORACLE_HOME/rawconfig
echo "Hello Oracle"

下載三個安裝檔案:
amd64_db_9204_Disk1.cpio.gz
amd64_db_9204_Disk2.cpio.gz
amd64_db_9204_Disk3.cpio.gz
然後用以下方法解開:
1. Uncompress the file using "gunzip". Eg.: "gunzip amd64_db_9204_Disk1.cpio.
gz"
2. Extract the file resulting from the step above using "cpio". Eg.: "cpio -i
dcmv < amd64_db_9204_Disk1.cpio"

解開以後在當前目錄下就生成了三個目錄: Disk1 Disk2 Disk3,執行../ Disk1/ runInstaller,那麼後來的過程就和以前版本安裝oracle一模一樣了.
如果在安裝的過程中出現link錯誤,那麼在安裝結束以後可以在$ORACLE_HOME/bin/目錄下執行: relink all
當然在安裝完成以後還得打上9207的patch(oracle要求這麼做):
p4163445_92070_Linux-x8 6-64.zip

異常處理:
在安裝過程中會遇到的可能的問題:

xhost +提示: xhost : unable to open display
你的檢查你的.bash_profile中的環境變數DISPLAY是否設定正確

./ runInstaller的時候提示java.lang錯誤:
linux exception in thread "main" java.lang.internalerror: can't connect to X11 window
其實也和這個也和上述錯誤關聯,首先嚐試xhost +否成功,然後檢查你的DISPLAY變數是否設定正確.還有就是確認你已經將本機(如果用本機的圖形介面安裝)的地址和主機名新增進了/etc/hosts檔案:
[root@ctais2 watershed]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.1.151.10 watershed

還有問題?google吧!

[@more@]

安裝參考文件:

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/75730/viewspace-813727/,如需轉載,請註明出處,否則將追究法律責任。

相關文章