Oracle 12C 單例項資料庫靜默安裝

yy418408247發表於2016-06-18
配置響應檔案:
[oracle@Oracle12C01 response]$ more db_install.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=Oracle12C01
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/oracle/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/oracle/app/oracle/product/12.1.0/db_1
ORACLE_BASE=/oracle/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
oracle.install.db.isRACOneInstall=false
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES
[oracle@Oracle12C01 response]$ 

開始安裝:
[oracle@Oracle12C01 database]$ ./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /oracle/database/resp.file              
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 500 MB.   Actual 3265 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3375 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-05-24_11-37-09AM. Please wait ...[oracle@Oracle12C01 database]$ [FATAL] [INS-10106] The format of the given response file is not supported.
   CAUSE: The response file format was incorrect or not supported.
   ACTION: Use response files of type rsp.
A log of this session is currently saved as: /tmp/OraInstall2015-05-24_11-37-09AM/installActions2015-05-24_11-37-09AM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location.


[oracle@Oracle12C01 database]$ ./runInstaller -silent -ignoreSysPrereqs -ignorePrereq -responseFile /oracle/database/response/db_install.rsp
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 500 MB.   Actual 3265 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3375 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-05-24_11-39-45AM. Please wait ...[oracle@Oracle12C01 database]$ You can find the log of this install session at:
 /oracle/app/oraInventory/logs/installActions2015-05-24_11-39-45AM.log
The installation of Oracle Database 12c was successful.
Please check '/oracle/app/oraInventory/logs/silentInstall2015-05-24_11-39-45AM.log' for more details.


As a root user, execute the following script(s):
1. /oracle/app/oraInventory/orainstRoot.sh
2. /oracle/app/oracle/product/12.1.0/db_1/root.sh






Successfully Setup Software.
執行指令碼:
[root@Oracle12C01 app]# sh /oracle/app/oraInventory/orainstRoot.sh
Changing permissions of /oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /oracle/app/oraInventory to dba.
The execution of the script is complete.
[root@Oracle12C01 app]# sh sh /oracle/app/oracle/product/12.1.0/db_1/root.sh
/bin/sh: /bin/sh: cannot execute binary file
[root@Oracle12C01 app]# sh /oracle/app/oracle/product/12.1.0/db_1/root.sh
Check /oracle/app/oracle/product/12.1.0/db_1/install/root_Oracle12C01_2015-05-24_11-58-56.log for the output of root script
結束db軟體的安裝。


配置Net Listener:
此處我們直接使用預設響應檔案不做修改:
[oracle@Oracle12C01 ~]$ netca -silent -responseFile /oracle/database/response/netca.rsp


Parsing command line arguments:
    Parameter "silent" = true
    Parameter "responsefile" = /oracle/database/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
    Running Listener Control: 
      /oracle/app/oracle/product/12.1.0/db_1/bin/lsnrctl start LISTENER
    Listener Control complete.
    Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
[oracle@Oracle12C01 ~]$ lsnrctl status


LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 24-MAY-2015 12:07:40


Copyright (c) 1991, 2014, Oracle.  All rights reserved.


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                24-MAY-2015 12:07:25
Uptime                    0 days 0 hr. 0 min. 16 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /oracle/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File         /oracle/app/oracle/diag/tnslsnr/Oracle12C01/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
dbca建立資料庫:
dbca -silent -createDatabase -responseFile /oracle/database/response/dbca.rsp

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29494175/viewspace-2120412/,如需轉載,請註明出處,否則將追究法律責任。

相關文章