Oracle 12C静默安装与配置(二)

2014-11-24 17:51:02 · 作者: · 浏览: 1
cle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
oracle.install.db.isRACOneInstall=false
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES


2.3静默安装数据库12C


[billi@slc03nuj Disk1]$ ./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /home/billi/binlearn/db_install.rsp
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 500 MB. Actual 136617 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1185 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-07-20_11-50-04PM. Please wait ...[billi@slc03nuj Disk1]$ You can find the log of this install session at:
/scratch/billi/app/oraInventory/logs/installActions2013-07-20_11-50-04PM.log
The installation of Oracle Database 12c was successful.
Please check '/scratch/billi/app/oraInventory/logs/silentInstall2013-07-20_11-50-04PM.log' for more details.


As a root user, execute the following script(s):
1. /scratch/billi/app/database/silent/12.1.0.1.0/dbhome/root.sh



Successfully Setup Software.


2.4以root用户运行root.sh


[root@slc03nuj Disk1]# /scratch/billi/app/database/silent/12.1.0.1.0/dbhome/root.sh
Check /scratch/billi/app/database/silent/12.1.0.1.0/dbhome/install/root_slc03nuj_2013-07-21_00-26-05.log for the output of root script


3. 配置Net Listener


3.1 浏览netca response file参数


[billi@slc03nuj Disk1]$ sed -n '/^[^#]/p' response/netca.rsp
[GENERAL]
RESPONSEFILE_VERSION="12.1"
CREATE_TYPE="CUSTOM"
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""typical""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""LISTENER""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE={"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}


3.2 编辑netca response file参数


[billi@slc03nuj Disk1]$ cat /home/billi/binlearn/netca.rsp
[GENERAL]
RESPONSEFILE_VERSION="12.1"
CREATE_TYPE="CUSTOM" // Note, 设置为定制的,否则默认的是LISTENER, 1525
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""custom""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER_ST12C"}
LISTENER_PROTOCOLS={"TCP;1551"}
LISTENER_START=""LISTENER_ST12C""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE={"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1551"}


3.3 静默安装NET Listener


[billi@slc03nuj dbhome]$ ./bin/netca -silent -responseFile /home/billi/binlearn/netca.rsp


Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /home/billi/binlearn/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Configuring Listener:LISTENER_ST12C
Listener configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/scratch/billi/app/database/silent/12.1.0.1.0/dbhome/bin/lsnrctl start LISTENER_ST12C
Listener Control complete.
Listener started successfully.
Profile configuration complete.
Oracle Net Services configuration successful. The exit code is 0