[root@DB-Server ~]# ulimit -Sn 1024 [root@DB-Server ~]# ulimit -Hn 1024 [root@DB-Server ~]# ulimit -Su 36848 [root@DB-Server ~]# ulimit -Hu 36848 [root@DB-Server ~]# ulimit -Ss 10240 [root@DB-Server ~]# ulimit -Hs unlimited [root@DB-Server ~]#
在配置文件/etc/security/limits.conf 里面设置
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
修改用户验证选项
在/etc/pam.d/login配置文件里面加上下面配置,如果已经存在的,就忽略这些。
session required pam_selinux.so
session required /lib/security/pam_limits.so
7:修改用户配置文件
root用户下:修改/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用户下,修改.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
8:安装目录配置
[root@DB-Server ~]# mkdir -p /u01/app/oracle [root@DB-Server ~]# chown -R oracle:oinstall /u01/app/oracle [root@DB-Server ~]# chmod -R 775 /u01/app/oracle [root@DB-Server ~]# mkdir -p /u01/app/oraInventory [root@DB-Server ~]# chown -R oracle:oinstall /u01/app/oraInventory/ [root@DB-Server ~]# chmod -R 775 /u01/app/oraInventory/ [root@DB-Server ~]#
9:修改用户bash shell
以oracle账号登录,修改.bash_profile参数文件
[oracle@DB-Server ~]$ vi .bash_profile export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/dbhome_1 export ORACLE_SID=gsp export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
10:配置VNC
[root@DB-Server ~]# rpm -qa | grep vnc vnc-server-4.1.2-14.el5_6.6 [root@DB-Server ~]# vi /etc/sysconfig/vncservers VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -nohttpd -localhost" VNCSERVERS="2:oracle" VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost" [root@DB-Server ~]# su - oracle [oracle@DB-Server ~]$ vncserver :2 You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /home/oracle/.Xauthority xauth: (stdin):1: bad display name "DB-Server.localdomain:2" in "add" command New 'DB-Server.localdomain:2 (oracle)' desktop is DB-Server.localdomain:2 Creating default startup script /home/oracle/.vnc/xstartup Starting applications specified in /home/oracle/.vnc/xstartup Log file is /home/oracle/.vnc/DB-Server.localdomain:2.log
在root用户下,设置iptables,添加
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 5901 -j ACCEPT -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 5902 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT
ORACLE 11g图形化安装步骤
将安装介质解压到/tmp/database下,然后按照下面步骤安装
$ ./runInstaller
如果没有Oracle Support账号或不想设置,取消勾选选项。