oracle 10g 安装文档
os:rhel5.4
作者:Lvan
date:2011/10/29
看了许多文档后,自己在安装后总结的.对初学者应该有用.
1.Check the installation environment
binutils compat-libstdc elfutils-libelf elfutils-libelf-devel gcc gcc-c glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc libstdc -devel make sysstat unixODBC unixODBC-devel libXp
以上的全部装上,个人认为把xorg开头的全部装上可以减少错误.装包可以有yum,很方便.
2.Modify version
[root@database ~]#vi /etc/redhat-release
将Red Hat Enterprise Linux Server release 5.4 (Tikanga)替换为redhat-4
装完后,应改回.
3. Modify system parameters
[root@database ~]#vi /etc/sysctl.conf
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@database ~]# sysctl -p 使修改生效
4. The establishment of user groups and users
[root@database ~]# groupadd oinstall
[root@database ~]# groupadd dba
[root@database ~]# useradd oracle
[root@database ~]# usermod -g oinstall -G dba oracle
[root@database ~]# mkdir /db
[root@database ~]# chown -R oracle:oinstall /db
5. Modify Oracle user''s .bash_profile
[root@database ~]#vi /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
#oracle add
export ORACLE_SID=orcl
export ORACLE_BASE=/db/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export PATH=$PATH:/ORACLE_HOME/bin:$HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8 保证os用的也是这个编码方式.
export DISPLAY=192.168.10.1:0.0
(192.168.10.1 是我xp的地址,在xp上用crt连的liunx.在xp上装Xmanager)
6.set oracle shell
[root@database database] vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@database database] vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
[root@database database] vi /etc/profile :
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
以上就是相关的配置.
下来就可以装oracle软件了.
运行Xmanager中的Xmanager-passive.
以oracle用户登录.
Oracle用户上传包10201_database_linux32.zip 到/db
Oracle用户解压
[root@database database]#cd /db/database
[root@database database]#./ runInstaller
,以root用户运行两个脚本就完了.(脚本的运行系统会提示的)
本文出自 “Lvan” 博客,请务必保留此出处http://lvanzc.blog.51cto.com/3076669/701465
|