系统环境:redhat5.5_x64 oracle 10.2
1、先安装所需的rpm包
yum install -y binutils compat-db control-center gcc gcc-c++ glibc glibc-common libstdc++ libstdc++-devel make pdksh sysstat xorg-x11-deprecated-libs glibc-devel
2、添加相关的用户及组
[root@oracle ~]# groupadd oinstall
[root@oracle ~]# groupadd dba
[root@oracle ~]# useradd -g oinstall -G dba oracle
[root@oracle ~]# passwd oracle
3、修改配置文件
[root@oracle ~]# vi /etc/sysctl.conf //If the current value of any parameter is higher than the value listed in this table, then do not change the value of that parameter.
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
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
[root@oracle ~]# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@oracle ~]# vi /etc/pam.d/login
session required pam_limits.so
切换到oracle
[root@oracle ~]# su – oracle
添加以下部分:
[oracle@oracle ~]$ vi .bash_profile
if [ $USER = “oracle” ]; then
if [ $SHELL = “/bin/ksh” ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
修改系统版本信息
[root@oracle ~]#echo redhat-4 > /etc/redhat-release
[root@oracle ~]# mkdir -p /u01/app/oracle/oraInventory
[root@oracle ~]# chown -R oracle:oinstall /u01/app/oracle/
[root@oracle ~]# chmod -R 775 /u01/app/oracle/
reboot server into GUI with oracle user.
export LANG=en //如果系统安装选的中文,则执行。oracle10不支持中文,要不会出现图形乱码
然后 ./runInstaller开始安装。
PS:
为什么文档里面没有配置环境变量的参数。
原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1428.html