【静默安装】configToolAllCommands响应文件问题

简介: 【静默安装】configToolAllCommands响应文件问题   客户在静默安装RAC 12.1.0.2的时候有如下的输出: Successfully Setup Software.

静默安装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

 

About Me

...............................................................................................................................

本文作者:小麦苗,只专注于数据库的技术,更注重技术的运用

本文在itpubhttp://blog.itpub.net/26736162)、博客园(http://www.cnblogs.com/lhrbest)和个人微信公众号(xiaomaimiaolhr)上有同步更新

本文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,免费学习最实用的数据库技术。

wps8924.tmp

img_e3029f287d989cd04bd75432ecc1c172.png
目录
相关文章
|
6天前
|
存储 关系型数据库 分布式数据库
PostgreSQL 18 发布,快来 PolarDB 尝鲜!
PostgreSQL 18 发布,PolarDB for PostgreSQL 全面兼容。新版本支持异步I/O、UUIDv7、虚拟生成列、逻辑复制增强及OAuth认证,显著提升性能与安全。PolarDB-PG 18 支持存算分离架构,融合海量弹性存储与极致计算性能,搭配丰富插件生态,为企业提供高效、稳定、灵活的云数据库解决方案,助力企业数字化转型如虎添翼!
|
17天前
|
弹性计算 关系型数据库 微服务
基于 Docker 与 Kubernetes(K3s)的微服务:阿里云生产环境扩容实践
在微服务架构中,如何实现“稳定扩容”与“成本可控”是企业面临的核心挑战。本文结合 Python FastAPI 微服务实战,详解如何基于阿里云基础设施,利用 Docker 封装服务、K3s 实现容器编排,构建生产级微服务架构。内容涵盖容器构建、集群部署、自动扩缩容、可观测性等关键环节,适配阿里云资源特性与服务生态,助力企业打造低成本、高可靠、易扩展的微服务解决方案。
1326 7
|
5天前
|
存储 人工智能 Java
AI 超级智能体全栈项目阶段二:Prompt 优化技巧与学术分析 AI 应用开发实现上下文联系多轮对话
本文讲解 Prompt 基本概念与 10 个优化技巧,结合学术分析 AI 应用的需求分析、设计方案,介绍 Spring AI 中 ChatClient 及 Advisors 的使用。
300 129
AI 超级智能体全栈项目阶段二:Prompt 优化技巧与学术分析 AI 应用开发实现上下文联系多轮对话
|
4天前
|
监控 JavaScript Java
基于大模型技术的反欺诈知识问答系统
随着互联网与金融科技发展,网络欺诈频发,构建高效反欺诈平台成为迫切需求。本文基于Java、Vue.js、Spring Boot与MySQL技术,设计实现集欺诈识别、宣传教育、用户互动于一体的反欺诈系统,提升公众防范意识,助力企业合规与用户权益保护。
|
16天前
|
机器学习/深度学习 人工智能 前端开发
通义DeepResearch全面开源!同步分享可落地的高阶Agent构建方法论
通义研究团队开源发布通义 DeepResearch —— 首个在性能上可与 OpenAI DeepResearch 相媲美、并在多项权威基准测试中取得领先表现的全开源 Web Agent。
1396 87
|
4天前
|
JavaScript Java 大数据
基于JavaWeb的销售管理系统设计系统
本系统基于Java、MySQL、Spring Boot与Vue.js技术,构建高效、可扩展的销售管理平台,实现客户、订单、数据可视化等全流程自动化管理,提升企业运营效率与决策能力。
|
5天前
|
人工智能 Java API
AI 超级智能体全栈项目阶段一:AI大模型概述、选型、项目初始化以及基于阿里云灵积模型 Qwen-Plus实现模型接入四种方式(SDK/HTTP/SpringAI/langchain4j)
本文介绍AI大模型的核心概念、分类及开发者学习路径,重点讲解如何选择与接入大模型。项目基于Spring Boot,使用阿里云灵积模型(Qwen-Plus),对比SDK、HTTP、Spring AI和LangChain4j四种接入方式,助力开发者高效构建AI应用。
291 122
AI 超级智能体全栈项目阶段一:AI大模型概述、选型、项目初始化以及基于阿里云灵积模型 Qwen-Plus实现模型接入四种方式(SDK/HTTP/SpringAI/langchain4j)
|
5天前
|
弹性计算 安全 数据安全/隐私保护
2025年阿里云域名备案流程(新手图文详细流程)
本文图文详解阿里云账号注册、服务器租赁、域名购买及备案全流程,涵盖企业实名认证、信息模板创建、域名备案提交与管局审核等关键步骤,助您快速完成网站上线前的准备工作。
232 82
2025年阿里云域名备案流程(新手图文详细流程)