标签:12c 静默安装
/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/groupadd -g 507 asmoper
/usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper,dba grid
/usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba oracle
passwd grid
passwd oracle
mkdir -p /u01/app/oracle/product/12.1/db_1
chown -R oracle: /u01
ll -R /u01
mkdir /oradata
chown -R oracle: /oradata/
# su - oracle
# vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1/db_1
export PATH=$PATH:$ORACLE_HOME/bin
# source .bash_profile
# vim /etc/sysctl.conf
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
# sysctl -p
vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
# ulimit -a
[root@localhost src]# vim /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
[root@localhost src]# chown -R oracle: /etc/oraInst.loc
[root@localhost database]# pwd
/usr/local/src/database
[root@localhost database]# find . -name "*.rsp"
./response/db_install.rsp
./response/netca.rsp
./response/dbca.rsp
[root@localhost database]# cp ./response/db_install.rsp inst.rsp
[root@localhost database]# vim inst.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=yl
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/usr/local/src/database/stage/products.xml
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/12.1/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
DECLINE_SECURITY_UPDATES=true
[root@yl database]# ./runInstaller -ignoresysprereqs -force -silent -responseFile /usr/local/src/database/inst.rsp
[root@yl database]# tail -f /u01/app/oraInventory/logs/installActions2017-06-02_01-19-34AM.log
最后执行:
[root@yl database]# /u01/app/oracle/product/12.1/db_1/root.sh
本文出自 “yangwang” 博客,请务必保留此出处http://yangwang.blog.51cto.com/10855137/1941549
标签:12c 静默安装
原文地址:http://yangwang.blog.51cto.com/10855137/1941549