RHEL5.4 上安装Oracle10g v10.2 64位

来源:百度文库 编辑:神马文学网 时间:2024/07/05 21:14:04

RHEL5.4 上安装Oracle10g v10.2 64位

2010-07-08   7:34 pm       归类于: Oracle, LINUX, [原创] by 吴 伴文 |

RHEL5.4是32位的,那么oracle也采用linux32版本的;同样,RHEL5.4是64位的,那么oracle也采用linux64版本.
GCC也要正确安装,同时跟Linux保持一致,32位或64位。gcc最好是在Linux安装时一起选上,这样比较全。
glibc-devel-2.5-42.i386.rpm
glibc-devel-2.5-42.x86_64.rpm
在 RHEL5.4是64位里,这两个rpm包是必须的,Oracle64位安装时有用到32位的lib库,否则安装过程中会出问题。

1.create oracle user and oracle group for oracle10g,set oracle user home eg. /home/oracle,set oracle10g base path eg. /oracle
2.install libXp.so:
rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
3.set the follow oracle env variables in ~/.bash_profile file:
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/Db_1
export ORACLE_SID=oracle10g
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:/usr/lib:/usr/lib64:/lib:/lib64
export NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
export NLS_CHARACTERSET=AL32UTF8

4.change the follow kernel parameters:
#vi /etc/sysctl.conf
在该文件末尾加入如下内容:
#———–Begin from here————-
kernel.sem=250 32000 100 128
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
#————–End here—————–
运行下面的命令使设置生效: /sbin/sysctl –p
然后,检查一下上面的操作是否正确:
# /sbin/sysctl -a | grep sem
# /sbin/sysctl -a | grep rmem
# /sbin/sysctl -a | grep wmem
# /sbin/sysctl -a | grep ip_local_port_range

如果不做内核参数修改,oracle10g安装时,以下内核参数检查通不过
Checking for semopm=100; found semopm=32.    Failed < <<<
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=32768 - 61000.    Failed <<<<
Checking for rmem_default=262144; found rmem_default=129024.    Failed <<<<
Checking for rmem_max=262144; found rmem_max=131071.    Failed <<<<
Checking for wmem_default=262144; found wmem_default=129024.    Failed <<<<
Checking for wmem_max=262144; found wmem_max=131071.    Failed <<<<

5.map hostname to ip address
#vi /etc/hosts
127.0.0.1   localhost
127.0.0.1   $hostname$

6.login with oracle user by vnc.viewer
#./runInstaller

------------------------
1.Oracle Enterprise Manager 10g Database Control commands:
emctl start| stop| status| setpasswd dbconsole
emctl secure

2. start/stop isqlplus
$ORACLE_HOME/bin/isqlplusctl start/stop