Redhat 4上安装oracle 9i的过程

Red hat4 安装Oracle9i

 

安装前准备

安装操作系统

解压Oracle软件

Oracle配置

修改GCC

mv /usr/bin/gcc /usr/bin/gcc34

ln -s /usr/bin/gcc32 /usr/bin/gcc

mv /usr/bin/g++ /usr/bin/g++34

ln -s /usr/bin/g++32 /usr/bin/g++

 

设置核心参数

[root@localhost RPMS]# sysctl -p

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq = 0

kernel.core_uses_pid = 1

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.shmall = 2097152

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

设置limit shell

vi /etc/security/limits.conf

 

oracle hard nofile 65536

oracle soft nofile 65536

oracle hard nproc 16384

oracle soft nproc 16384

 

增加用户和组

groupadd oinstall

groupadd dba

useradd oracle -g oinstall -G dba

passwd oracle

 

创建安装目录

mkdir /opt/oracle

mkdir /opt/oracle/product

mkdir -p /opt/oracle/product/9.2.0

chown -R oracle.oinstall /opt/oracle

chmod -R 755 /opt/oracle/

更改Oracle环境变量

[oracle@localhost ~]$ vi .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

export ORACLE_BASE=/opt/oracle

export ORACLE_HOME=/opt/oracle/product/9.2.0

export ORACLE_SID=demo

export ORACLE_TERM=xterm

#export NLS_LANG=american_america.ZHS16GBK;

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

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

export PATH=$PATH:$ORACLE_HOME/bin;

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

export CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib

export LANG=en_US

export LD_ASSUME_KERNEL=2.4.19

#export DISPLAY=:o.o

".bash_profile" 27L, 712C written

[oracle@localhost ~]$ . .bash_profile

安装图解

[oracle@localhost Disk1]$ ./runInstaller

[oracle@localhost Disk1]$

[oracle@localhost Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall 2013-01-16_09-31-29AM/jre/bin/java. Please wait...

Error occurred during initialization of VM

Unable to load native library: /tmp/OraInstall2013-01-16_09-31-29AM/jre/lib/i386 /libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

 

[root@localhost RPMS]# cd /tmp/

[root@localhost tmp]# ls

gconfd-root mapping-root OraInstall2013-01-16_09-52-48AM orbit-root ssh-vrJhjB6757 vmware-root

keyring-7hzpFg OraInstall2013-01-16_09-31-29AM orainstRoot.sh ssh-AwcIQH7115 VMwareDnD xses-root.gWxFhD

[root@localhost tmp]# ./orainstRoot.sh

Creating Oracle Inventory pointer file (/etc/oraInst.loc)

Changing groupname of /opt/oracle/oraInventory to dba.

[root@localhost tmp]#

 

 

 

 

 

[root@localhost tmp]# cd /opt/oracle/product/9.2.0

[root@localhost 9.2.0]# ./root.sh

Running Oracle9 root.sh script...

\nThe following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /opt/oracle/product/9.2.0

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

 

\nCreating /etc/oratab file...

Adding entry to /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

 

 

 

 

posted @ 2013-01-31 14:20  静水流沙  阅读(509)  评论(0编辑  收藏  举报