【静默安装】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> 应该写哪些内容。

在Oracle的官方文档中搜索到如下的内容:http://docs.oracle.com/database/121/CWLIN/app_nonint.htm#CWLIN379

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
目录
相关文章
|
关系型数据库 MySQL 数据安全/隐私保护
关于Navicat连接MySQL 报 Authentication plugin ‘caching_sha2_password‘ cannot be loaded
关于Navicat连接MySQL 报 Authentication plugin ‘caching_sha2_password‘ cannot be loaded
2252 2
|
消息中间件 运维 监控
Linux Command strace 调试跟踪(1)
Linux Command strace 调试跟踪(1)
Linux Command strace 调试跟踪(1)
|
安全 Oracle Java
oracle 11g 11204补丁信息
11204补丁信息
1901 1
|
Oracle 关系型数据库
oracle中的行转列函数
转自:https://blog.csdn.net/qq_33157666/article/details/72854801 一、简单介绍 最近项目需要进行行转列,经过上网查资料发现了wmsys.wm_concat和LISTAGG函数,在这分享给大家 wmsys.wm_concat是oracle 10g推出的,用来连接字符串,LISTAGG是oracle 11g推出的,它的作用和wmsys.wm_concat是一样的,但是他不支持LISTAGG。
4396 150
|
Linux 开发者
【阿里云镜像】配置阿里巴巴开源镜像站镜像——Epel镜像
【阿里云镜像】配置阿里巴巴开源镜像站镜像——Epel镜像
3140 0
|
NoSQL MongoDB 数据库
【MongoDB 专栏】MongoDB 的并发控制与锁机制
【5月更文挑战第11天】MongoDB的并发控制和锁机制保证数据一致性和性能。全局锁用于特殊情况如数据库初始化,限制并发性能;文档级锁提供更高的并发性,针对单个文档锁定。乐观并发控制利用版本号检查减少锁竞争。在分布式环境下,需协调多节点锁,优化包括合理设计数据模型、调整锁配置和利用分布式事务。未来,MongoDB将持续改进这些机制以应对复杂需求。了解并发控制原理对于数据库开发者至关重要。
862 2
【MongoDB 专栏】MongoDB 的并发控制与锁机制
|
弹性计算 缓存 Linux
Linux - Centos7+配置阿里云 yum 源
Linux - Centos7+配置阿里云 yum 源
2558 0
|
Linux
Linux系统之Tar打包与压缩文件
Linux系统之Tar打包与压缩文件
717 0
Linux系统之Tar打包与压缩文件
|
缓存 Linux
【Linux网络服务】Centos7搭建yum服务器
【Linux网络服务】Centos7搭建yum服务器