ITPub博客

首页 > Linux操作系统 > Linux操作系统 > rhel 5+ oracle10g

rhel 5+ oracle10g

原创 Linux操作系统 作者:tompson1983 时间:2009-07-31 09:48:33 0 删除 编辑

RHEL 5 for Oracle10g

Linux kernel 2.6.18-8.el5
oracle_10201_database_linux32.zip

groupadd dba
groupadd oinstall
useradd oracle -g oinstall -G dba
passwd oracle

cd /home/oracle/
unzip oracle_10201_database_linux32.zip

vi /etc/sysctl.conf

kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
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

# /sbin/sysctl -p
# vi /etc/security/limits.conf
# add
* soft nproc 2047
* hard nproc 16384
* soft nofile 4096
* hard nofile 65535

RHEL5系统里面,确信你已经安装了如下的包
#rpm -qa|grep your installed rpm

make-3.81-1.1
binutils-2.17.50.0.6-2.el5
setarch-2.0-1.1
compat-gcc-34-g77-3.4.6-4
compat-db-4.2.52-5.1
compat-gcc-34-3.4.6-4
compat-libstdc++-296-2.96-138
compat-libf2c-34-3.4.6-4
compat-libstdc++-33-3.2.3-61
compat-gcc-34-c++-3.4.6-4
libaio-0.3.106-3.2

#——–
#注意安装顺序
rpm -ivh libXp-1.0.0-8.i386.rpm
rpm -ivh openmotif-2.3.0-0.3.el5.i386.rpm
rpm -ivh compat-db-4.2.52-5.1.i386.rpm
rpm -ivh compat-gcc-34-3.4.6-4.i386.rpm
rpm -ivh compat-libf2c-34-3.4.6-4.i386.rpm
rpm -ivh compat-gcc-34-g77-3.4.6-4.i386.rpm
rpm -ivh compat-gcc-34-c++-3.4.6-4.i386.rpm
rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm

orcale10 不支持 RHEL5 要修改
/etc/redhat_release 将
Red Hat Enterprise Linux Server release 5 (Tikanga)
to
Red Hat Enterprise Linux Server release 4 (Tikanga)

# ——–
#Install oracle

#su oracle

vi ~/.bash_profile
#add this line
export ORACLE_HOME=/opt/oracle/product/10g
export ORACLE_SID=nemo
export PATH=$ORACLE_HOME/bin:$PATH
export TNS_ADMIN=$ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export LANG=AMERICAN_AMERICA.ZHS16GBK

更改系统字体
vi /etc/sysconfig/i18n

LANG="zh_CN.GB18030"
LANG=”en_US.UTF-8″
登录系统,xwindows 或者使用vnc
#login system in oracle
$ vncserver
New ‘localhost.localdomain.net:1 (oracle)’ desktop is localhost.domain.net:1
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/localhost.localdomain:1.log

cd /home/oracle/database

./runInstaller

接下来的安装按照步骤就可以了,设定ASM,SID及sys口令,等。
需要以root执行2个脚本。

RHEL AS 4包

 

# From RedHat AS4 Disk 2
cd /media/cdrecorder/RedHat/RPMS
rpm -Uvh setarch-1.6-1.i386.rpm
rpm -Uvh compat-libstdc++-33-3.2.3-47.3.i386.rpm
rpm -Uvh make-3.80-5.i386.rpm
rpm -Uvh glibc-2.3.4-2.i386.rpm

# From RedHat AS4 Disk 3
cd /media/cdrecorder/RedHat/RPMS
rpm -Uvh openmotif-2.2.3-6.RHEL4.2.i386.rpm
rpm -Uvh compat-db-4.1.25-9.i386.rpm
rpm -Uvh libaio-0.3.102-1.i386.rpm
rpm -Uvh gcc-3.4.3-9.EL4.i386.rpm

# From RedHat AS4 Disk 4
cd /media/cdrecorder/RedHat/RPMS
rpm -Uvh compat-gcc-32-3.2.3-47.3.i386.rpm
rpm -Uvh compat-gcc-32-c++-3.2.3-47.3.i386.rpm

安装成功后有两个管理界面
http://ip:1158/em
http://ip:5560/isqlplus/
安装后默认的sys,scott等帐户已经是锁定状态

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

上一篇: 开始我的论坛
请登录后发表评论 登录
全部评论

注册时间:2009-06-15

  • 博文量
    52
  • 访问量
    78230