rhel5下安装oracle10g笔记
#安装前的配置及准备
#Edit by 2hei 2007-11-05,参照网上的相关文档,实际安装记录,转载请注明。
#安装环境及软件:
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=”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个脚本。
安装成功后有两个管理界面
http://2hei.net:1158/em
http://2hei.net:5560/isqlplus/
安装后默认的sys,scott等帐户已经是锁定状态。
最活跃的读者