Oracle 12C 單例項資料庫靜默安裝
配置響應檔案:
[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
[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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 12c 靜默安裝Oracle
- Oracle資料庫靜默安裝實踐Oracle資料庫
- 靜默安裝Oracle12.2資料庫Oracle資料庫
- 靜默安裝Oracle11g資料庫Oracle資料庫
- 靜默安裝Oracle資料庫11gOracle資料庫
- Oracle靜默安裝(單機)Oracle
- ORACLE 單例項完全解除安裝資料庫Oracle單例資料庫
- 資料庫靜默安裝總結資料庫
- oracle11g單例項透過命令列dbca靜默建立資料庫Oracle單例命令列資料庫
- 【oracle】靜默安裝oracle軟體和資料庫之三Oracle資料庫
- 【oracle】靜默安裝oracle軟體和資料庫之二Oracle資料庫
- 【oracle】靜默安裝oracle軟體和資料庫之一Oracle資料庫
- Oracle 11GR2 在CentOS 7 上的單例項靜默安裝OracleCentOS單例
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- oracle 11g資料庫軟體靜默安裝Oracle資料庫
- Oracle 11G資料庫單例項安裝Oracle資料庫單例
- Window下安裝Oracle ASM單例項資料庫OracleASM單例資料庫
- 靜默安裝資料庫—dbca.rsp資料庫
- Oracle 靜默安裝Oracle
- Oracle靜默安裝Oracle
- 在CentOS-6.7上靜默安裝Oracle 11g及靜默建立資料庫CentOSOracle資料庫
- 19c(19.3) 單機資料庫靜默安裝資料庫
- 【DBCA -SILENT】靜默安裝之rac資料庫安裝資料庫
- oracle 11g 單例項資料庫的安裝Oracle單例資料庫
- 靜默安裝資料庫介質和建立資料庫資料庫
- Oracle 12C 單例項安裝文件( 官方文件)Oracle單例
- 12c 簡單至極的靜默方式建立資料庫資料庫
- 【配置安裝】靜默安裝Oracle資料庫軟體12c&19cOracle資料庫
- 靜默安裝ORACLE(文件)Oracle
- 【配置上線】靜默安裝資料庫Oracle 11gR2資料庫Oracle
- Oracle 11g靜默安裝軟體+手工建立資料庫Oracle資料庫
- 使用靜默方式安裝11g資料庫資料庫
- 19C 單例項資料庫安裝單例資料庫
- 靜默方式安裝、升級oracle(三): 升級資料庫軟體及資料庫Oracle資料庫
- AIX下安裝單例項ORACLE10gR2資料庫AI單例Oracle資料庫
- oracle靜默安裝raw裝置Oracle
- 靜默安裝、建庫(轉)
- Oracle 10g client靜默安裝一例Oracle 10gclient