[转]RHEL AS3安装Oracle9i

[xujg@rhelas3:~]$uname -r

2.4.21-20.EL

 

Oracle版本及补丁:

ship_9204_linux_disk1.cpio.gz

ship_9204_linux_disk2.cpio.gz

ship_9204_linux_disk3.cpio.gz

p3006854_9204_Linux.zip

1.建用户和组
groupadd oinstall

groupadd dba

useradd –g oinstall –G dba oracle

passwd oracle

 

2.建目录结构
/oracle/u01 挂一个分区,做安装oracle软件用,包括存放安装介质

/oracle/u02 挂一个分区,做建oracle实例用

 

chown –R oracle:oinstall /oracle/u01

chown –R oracle:oinstall /oracle/u02

chmod 755 /oracle/u01

chmod 755 /oracle/u02

 

su – oracle后建目录:

/oracle/u01/app/oracle/

/oracle/u01/oraclelog/

 

/oracle/u02/oradata/

/oracle/u02/setup/

 

3.检查软件包
    一般所需要的包都已经安装,如缺的话根据安装出错提示安装相应的包。

 

4.检查系统环境
 

 l 交换区空间,至少512M

[oracle@rhelas3:~]$cat /proc/swaps

Filename                        Type            Size    Used    Priority

/dev/sda3                       partition       522104  0       -1

 

 l 检查/tmp空间,至少400M

[oracle@rhelas3:~]$df /tmp

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/sda2              9701068   2901188   6307088  32% /

 

 l 设置内核参数(需要root登录)

vi /etc/sysctl.conf

增加:

kernel.shmmax = 1073741824

 

 l 检查分区空间,oracle软件需要3G左右,实例所需空间视情况而定

 

5.设置环境变量
修改oracle用户的.bash_profile:

 

# oracle 9i

# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and

# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !!

# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:

export LD_ASSUME_KERNEL=2.4.1

 

# Oracle Environment

export ORACLE_BASE=/oracle/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/9.2.0

export ORACLE_SID=ora9i

export ORACLE_TERM=xterm

# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin

export NLS_LANG=AMERICAN;

export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

export LD_LIBRARY_PATH

 

# Set shell search paths

export PATH=$PATH:$ORACLE_HOME/bin

 

修改后生效环境变量:

. .bash_profile

 

6.解压安装介质
zcat ship_9204_linux_disk1.cpio.gz | cpio -idmv

zcat ship_9204_linux_disk2.cpio.gz | cpio -idmv

zcat ship_9204_linux_disk2.cpio.gz | cpio -idmv

 

得到三个目录:

Disk1

Disk2

Disk3

 

解压补丁包并安装:

unzip p3006854_9204_Linux.zip

cd 3006854

su -

sh rhel3_pre_install.sh

 

7.用oracle用户登录后安装
[oracle@rhelas3:/oracle/u01/setup/Disk1]$./runInstaller

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

转载于:http://blog.itpub.net/12782603/viewspace-244154/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值