一、安装操作系统(不多说)
二、准备工作:下载好oracle9i,并下载好几个补丁文件,
1,p4198954_40_LINUX.zip 这个补丁里有compat-oracle-rhel4-1.0-3 和 compat-libcwait-2.0-1两个rpm包,解压出来后执行如下命令安装:
# rpm -ivh compat-libcwait-2.1-1.i386.rpm
# rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm
2. p2617419_210_GENERIC.zip 和 p3238244_9204_LINUX.zip、p3006854_9204_LINUX.zip
3. nss_db-compat-2.2-29.i386.rpm
libaio-0.3.105-2.i386.rpm
openmotif-devel-2.2.3-9.RHEL4.1.i386.rpm
libaio-devel-0.3.105-2.i386.rpm
openmotif21-2.1.30-11.RHEL4.4.i386.rpm
4.jdk-6u12-ea-bin-b03-linux-i586-22_dec_2008-rpm.bin
三、正式安装
1,检查安装所需要的包
#rpm –qa gcc make binutils setarch
setarch-1.6-1
make-3.80-5
binutils-2.15.92.0.2-15
gcc-3.4.4-2
#rpm –qa|grep compat
compat-libcom_err-1.0-5
compat-gcc-32-c++-3.2.3-47.3
compat-libstdc++-296-2.96-132.7.2
compat-gcc-32-3.2.3-47.3
compat-db-4.1.25-9
java-1.4.2-gcj-compat-1.4.2.0-27jpp
compat-libstdc++-33-3.2.3-47.3
compat-libgcc-296-2.96-132.7.2
nss_db-compat-2.2-29
#rpm –qa|grep xorg-x11-deprecated
xorg-x11-deprecated-libs-6.8.2-1.EL.13.20
xorg-x11-deprecated-libs-devel-6.8.2-1.EL.13.20
#rpm –qa|grep aio
libaio-0.3.103-3
libaio-devel-0.3.103-3
#rpm –qa|grep openmotif
openmotif21-2.1.30-11.RHEL4.4
2.解压p4198954_40_LINUX.zip 补丁并安装里面的2个rpm包
# unzip p4198954_40_LINUX.zip
# rpm -ivh compat-libcwait-2.1-1.i386.rpm
# rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm
3.调整内核参数
(1)编辑/etc/sysctl.conf文件,添加下面几行内容:
vi /etc/sysctl.conf
#For Oracle9i
kernel.shmmax = 268435456
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
# sysctl –p 使配置马上生效
(2)编辑/etc/security/limits.conf文件,设置Oracle对文件的要求:
vi /etc/security/limits.conf
#For Oracle9i
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
4.创建Oracle帐号
# groupadd oinstall
# groupadd dba
# useradd –g oinstall –G dba oracle
# passwd oracle(输入帐号密码)
5.准备Oracle安装目录和数据目录
# mkdir –p /opt/oracle/product/9.2.0
# mkdir -p /data/oracle
# chown –R oracle.dba /opt/oracle
# chown –R oracle.dba /data/oracle
6.设置root用户环境变量,修改/root/.bash_profile文件,添加如下内容:
vi /root/.bash_profile
# For Oracle9i
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_OWNER=oracle
export ORACLE_SID=ora9i
7.设置oracle用户的环境变量,修改/home/oralce/.bash_profile文件,添加如下内容:
vi /home/oralce/.bash_profile
#For Oracle9i
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_OWNER=oracle
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
export PATH=$PATH: $ORACLE_HOME/bin
export LD_ASSUME_KERNEL=2.4.19
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export THREADS_FLAG=native
export LANG=en_US
export NLS_LANG=AMERICAN_AMERICA.ZHS16CGB231280
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export DBCA_RAW_CONFIG=$ORACLE_BASE/DBCA_RAW_CONFIG
8.安装JDK。
见(本blog)
9.注销系统,用刚才建的oracle用户登录。
解压oracle_linux.tar
进入Disk1
执行:# ./runInstaller 后,一会出现图形界面,安装即可
10.图形装完后,需要打补丁
在安装配置时agent会起不来,可以先忽略,打上补丁后就可以了
cp p2617419_210_GENERIC.zip /tmp
cd /tmp
unzip p2617419_210_GENERIC.zip
export PATH=$PATH:/tmp/OPatch
export PATH=$PATH:/sbin
cp p3238244_9204_LINUX.zip /usr/Oracle
unzip /usr/Oracel/p3238244_9204_LINUX.zip
opatch apply -no_inventory /usr/Oracle/3238244
find $ORACLE_HOME -name "*.mk" | xargs grep -l dbsnmp
cd $ORACLE_HOME/network/lib
make -f ins_oemagent.mk install
11.启动服务
cd /opt/oracle/product/9.2.0/bin
lsnrctl start 启动服务。
阅读(1559) | 评论(0) | 转发(0) |