ITPub博客

首页 > 数据库 > Oracle > install oracle92 on redhat as4 x86-64

install oracle92 on redhat as4 x86-64

原创 Oracle 作者:watershed 时间:2006-01-24 17:45:42 0 删除 编辑


Install racle92 no redhat as4 x86-64


Pre-installation Tasks
安装之前要确定一下的RPM包已经打上,其实包的版本略有不同感觉问题不大,起码在安装的并没有报错.但要注意这些包的后缀应该为x86-64,不能是i386.还要注意的是这些包可能相互有依赖性,也会依赖于其他包,请一一下载安装.
可以在 http://rpm.pbone.net/ 搜索下载所需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:
http://metalink.oracle.com

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@]

安装参考文档:

http://www.puschitz.com/InstallingOracle9i.shtml#RunningOracleInstallationOnRHELAS4

http://download-east.oracle.com/docs/html/B13670_06/toc.htm#BABIJIFJ

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/75730/viewspace-813727/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 天台北望东卫城
请登录后发表评论 登录
全部评论

注册时间:2011-07-25

  • 博文量
    33
  • 访问量
    1388800