【靜默安裝】configToolAllCommands響應檔案問題
【靜默安裝】configToolAllCommands響應檔案問題
客戶在靜默安裝RAC 12.1.0.2的時候有如下的輸出:
Successfully Setup Software. As install user, execute the following script to complete the configuration. 1. /oracle/app/12.1.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>
Note: 1. This script must be run on the same host from where installer was run. 2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation). |
不知道怎麼回事,小麥苗多次靜默安裝RAC並沒有這個輸出,所以這個響應檔案的內容還真不知道是什麼,於是去官網搜尋了一下,現記錄如下。
靜默安裝執行到./runInstaller -silent -responseFile /home/grid/grid_xywj.rsp -ignorePrereq 後有如下輸出:
grid@HQNHL-ALHR-R01:/source/grid> ./runInstaller -silent -responseFile /home/grid/grid_xywj.rsp -ignorePrereq Starting Oracle Universal Installer...
Checking Temp space: must be greater than 415 MB. Actual 4635 MB Passed Checking swap space: must be greater than 150 MB. Actual 32767 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-11-22_01-58-47PM. Please wait ...grid@HQNHL-ALHR-R01:/source/grid> [WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards. CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. ACTION: Provide a password that conforms to the Oracle recommended standards. [WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards. CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. ACTION: Provide a password that conforms to the Oracle recommended standards. You can find the log of this install session at: /oracle/app/oraInventory/logs/installActions2016-11-22_01-58-47PM.log timed out waiting for input: auto-logout HQNHL-ALHR-R01:/home/grid # cat The installation of Oracle Grid Infrastructure 12c was successful. Please check '/oracle/app/oraInventory/logs/silentInstall2016-11-22_01-58-47PM.log' for more details.
As a root user, execute the following script(s): 1. /oracle/app/oraInventory/orainstRoot.sh 2. /oracle/app/12.1.0/grid/root.sh
Execute /oracle/app/oraInventory/orainstRoot.sh on the following nodes: [HQNHL-ALHR-R01, HQNHL-ALHR-R02] Execute /oracle/app/12.1.0/grid/root.sh on the following nodes: [HQNHL-ALHR-R01, HQNHL-ALHR-R02]
Run the script on the local node first. After successful completion, you can start the script in parallel on all other nodes.
Successfully Setup Software. As install user, execute the following script to complete the configuration. 1. /oracle/app/12.1.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>
Note: 1. This script must be run on the same host from where installer was run. 2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation). |
客戶詢問這裡的RESPONSE_FILE=<response_file> 應該寫哪些內容。
C.5 Postinstallation Configuration Using a Response File
Use the following sections to create and run a response file configuration after installing Oracle software.
C.5.1 About the Postinstallation Configuration File
When you run a silent or response file installation, you provide information about your servers in a response file that you otherwise provide manually during a graphical user interface installation. However, the response file does not contain passwords for user accounts that configuration assistants require after software installation is complete. The configuration assistants are started with a script called configToolAllCommands. You can run this script in response file mode by creating and using a password response file. The script uses the passwords to run the configuration tools in succession to complete configuration.
If you keep the password file to use for clone installations, then Oracle strongly recommends that you store it in a secure location. In addition, if you have to stop an installation to fix an error, you can run the configuration assistants using configToolAllCommands and a password response file.
The configToolAllCommands password response file consists of the following syntax options:
internal_component_name is the name of the component that the configuration assistant configures
variable_name is the name of the configuration file variable
value is the desired value to use for configuration
The command syntax is as follows:
internal_component_name|variable_name=value
For example:
oracle.assistants.asm|S_ASMPASSWORD=welcome
Oracle strongly recommends that you maintain security with a password response file:
Permissions on the response file should be set to 600.
The owner of the response file should be the installation owner user, with the group set to the central inventory (oraInventory) group.
C.5.2 Running Postinstallation Configuration Using a Response File
To run configuration assistants with the configToolAllCommands script:
Create a response file using the syntax filename.properties. For example:
$ touch cfgrsp.properties
Open the file with a text editor, and cut and paste the password template, modifying as needed.
Example C-1 Password response file for Oracle Grid Infrastructure installation for a cluster
Oracle Grid Infrastructure requires passwords for Oracle Automatic Storage Management Configuration Assistant (ASMCA), and for Intelligent Platform Management Interface Configuration Assistant (IPMICA) if you have a BMC card and you want to enable this feature. Provide the following response file:
oracle.assistants.asm|S_ASMPASSWORD=password
oracle.assistants.asm|S_ASMMONITORPASSWORD=password
oracle.crs|S_BMCPASSWORD=password
If you do not have a BMC card, or you do not want to enable IPMI, then leave the S_BMCPASSWORD input field blank.
Note:
If you are upgrading Oracle ASM 11g Release 1 or earlier releases, then you only need to provide the input field fororacle.assistants.asm|S_ASMMONITORPASSWORD.
Example C-2 Password response file for Oracle Real Application Clusters
Oracle Database configuration requires the SYS, SYSTEM, and DBSNMP passwords for use with Database Configuration Assistant (DBCA). Providing a string for the S_ASMSNMPPASSWORD variable is necessary only if only if the database is using Oracle ASM for storage. Also, providing a string for the S_PDBADMINPASSWORD variable is necessary only if you create a multitenant container database (CDB) with one or more pluggable databases (PDBs). Also, if you selected to configure Oracle Enterprise Manager Cloud Control, then you must provide the password for the Oracle software installation owner for the S_EMADMINPASSWORD variable, similar to the following example, where the phrase password represents the password string:
oracle.assistants.server|S_SYSPASSWORD=password
oracle.assistants.server|S_SYSTEMPASSWORD=password
oracle.assistants.server|S_DBSNMPPASSWORD=password
oracle.assistants.server|S_PDBADMINPASSWORD=password
oracle.assistants.server|S_EMADMINPASSWORD=password
oracle.assistants.server|S_ASMSNMPPASSWORD=password
If you do not want to enable Oracle Enterprise Manager for Oracle ASM, then leave those password fields blank.
Change permissions to secure the file. For example:
$ ls -al cfgrsp.properties
-rw------- 1 oracle oinstall 0 Apr 30 17:30 cfgrsp
Change directory to $ORACLE_HOME/cfgtoollogs, and run the configuration script using the following syntax:
configToolAllCommands RESPONSE_FILE=/path/name.properties
for example:
$ ./configToolAllCommands RESPONSE_FILE=/home/oracle/cfgrsp.properties
根據文件內容,安裝GRID可以配置如下的資訊:
oracle.assistants.asm|S_ASMPASSWORD=password oracle.assistants.asm|S_ASMMONITORPASSWORD=password oracle.crs|S_BMCPASSWORD=password |
安裝DB可以配置如下的資訊:
oracle.assistants.server|S_SYSPASSWORD=password oracle.assistants.server|S_SYSTEMPASSWORD=password oracle.assistants.server|S_DBSNMPPASSWORD=password oracle.assistants.server|S_PDBADMINPASSWORD=password oracle.assistants.server|S_EMADMINPASSWORD=password oracle.assistants.server|S_ASMSNMPPASSWORD=password |
About Me
............................................................................................................................... ● 本文作者:小麥苗,只專注於資料庫的技術,更注重技術的運用 ● 本文在itpub(http://blog.itpub.net/26736162)、部落格園(http://www.cnblogs.com/lhrbest)和個人微信公眾號()上有同步更新 ● 本文itpub地址:http://blog.itpub.net/26736162/viewspace-2129161/ ● 本文部落格園地址:http://www.cnblogs.com/lhrbest/p/6106497.html ● 本文pdf版及小麥苗雲盤地址:http://blog.itpub.net/26736162/viewspace-1624453/ ● QQ群:230161599 微信群:私聊 ● 聯絡我請加QQ好友(642808185),註明新增緣由 ● 於 2016-11-22 10:00 ~ 2016-11-22 19:00 在農行完成 ● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解 ● 版權所有,歡迎分享本文,轉載請保留出處 ............................................................................................................................... 手機長按下圖識別二維碼或微信客戶端掃描下邊的二維碼來關注小麥苗的微信公眾號:xiaomaimiaolhr,免費學習最實用的資料庫技術。 |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2129161/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle安裝:使用響應檔案靜默安裝Oracle
- 【靜默】Oracle各類響應檔案何在?Oracle
- Android靜默安裝應用和靜默解除安裝應用Android
- Android靜默安裝和靜默解除安裝Android
- rac靜默安裝
- dbca 靜默安裝
- Oracle 靜默安裝Oracle
- Oracle靜默安裝Oracle
- Oracle11g靜默安裝相應檔案db_install.rspOracle
- PackageInstaller 5.0原始碼分析靜默安裝與靜默解除安裝Package原始碼
- oracle靜默安裝檔案db_install.rsp詳解Oracle
- 靜默安裝Azure CLI
- 靜默安裝ORACLE(文件)Oracle
- 靜默安裝後10.2.04 linux as 4.7 dataguard 的問題Linux
- 靜默安裝SqlServer2008配置檔案--之三SQLServer
- 靜默安裝SqlServer2008配置檔案--之二SQLServer
- 靜默安裝SqlServer2008配置檔案--之一SQLServer
- oracle靜默安裝raw裝置Oracle
- 靜默安裝oracle時報錯Oracle
- ORACLE 11.2.0.4靜默安裝Oracle
- 靜默安裝oracle軟體Oracle
- Oracle靜默安裝(單機)Oracle
- 靜默安裝、建庫(轉)
- 靜默安裝ORACLE 軟體Oracle
- Oracle靜默安裝說明Oracle
- Android 靜默安裝/後臺安裝Android
- 【靜默】在RHEL 6.5上靜默安裝Oracle 18cOracle
- 【DBCA -SILENT】靜默安裝如何啟用歸檔模式模式
- 應用黑名單以及靜默安裝的實現
- android apk靜默安裝和解除安裝AndroidAPK
- oracle 19C 靜默安裝Oracle
- Linux下靜默安裝OraceLinux
- 靜默安裝and手動建庫
- oracle 12c 靜默安裝Oracle
- Oracle 11g 靜默安裝Oracle
- 靜默安裝功能的實現
- 靜默安裝oracle10gOracle
- AIX 6.1 靜默安裝11.1.0.6AI