1.用户环境要求
11G需要固定的运行用户oracle。安装组oinstall,管理组dba,so因提前创建好再部署
for:groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oralce
mkdir /opt/oralce
chown -R oracle:oinstall /opt/oracle
chmod -R 775 /opt/oracle
2.语言环境
11G安装后语言取决于环境变量LANG,若想为中文,则:"zh_CN.UTF-8"
3.若当前不是oracle用户登陆安装,呵呵,前面说过安装oracle的那家伙的固定用户了的,不会忘记吧,若不是则可以用“xhost +oracle@localhost”授权其可以使用Xwindows的权利
4.其他参数我就CTRL+C.CTRL+V 了哈
vi /etc/sysctl.conf
fs.suid_dumpable = 1fs.aio-max-nr = 1048576 fs.file-max = 6553560 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144net.core.wmem_max = 1048586 #kernel.shmall = 2097152 #kernel.shmmax = 536870912
vi /etc/pam.d/loginsession required pam_limits.so
vi /etc/security/limits.conf(在该文件的最后添加下面四行)oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
亦可参考:boss那里的设置
groupadd oinstall groupadd dba useradd oracle -g oinstall -G dba passwd oraclemkdir -p /u01/app/oraclemkdir -p /u01/app/oracle/product/11g/db_1ls -lchown -R oracle:oinstall /u01ls -lchmod 755 -R /u01
5.su - oracle
vi .bash_profilePATH=$PATH:$HOME/binexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/11g/db_1export ORACLE_SID=jxwpxdb
PATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport TNS_ADMIN=$ORACLE_HOME/network/adminexport NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
6.移动ORACLE安装文件到 /u01/appmv database /u01/appchown -R oracle.oinstall database
7.运行安装程序/u01/app/database/runInstaller