静默安装时安装程序需要找响应文件,根据响应文件里的内容来进行安装。因此静默安装之前需要先配置响应文件——db_install.rsp。
db_install.rsp是用来安装Oracle软件的应答文件
```
#
Copyright(c) Oracle Corporation 1998,2008. All rights reserved.
Specify values for the variables listed below to customize
your installation. 为下面列出的变量指定值,以自定义安装。
Each variable is associated with a comment. The comment
can help to populate the variables with the appropriate
values. 每个变量都与一个注释相关联。注释可以帮助用适当的值填充变量。
IMPORTANT NOTE: This file contains plain text passwords and
should be secured to have read permission only by oracle user
or db administrator who owns this installation.
重要提示:此文件包含纯文本密码,应确保只有拥有此安装的oracle用户或db管理员具有读取权限。
#
------------------------------------------------------------------------------
Do not change the following system generated value. 请勿更改以下系统生成值。
------------------------------------------------------------------------------
标注响应文件版本(不要修改)
oracle.install.responseFileVersion=/oracle/install/rspfmtdbinstallresponseschemav1120
------------------------------------------------------------------------------
Specify the installation option.
It can be one of the following:
1. INSTALLDBSWONLY
2. INSTALLDBAND_CONFIG
3. UPGRADE_DB
指定安装选项。它可以是以下之一:1.只安装数据库软件;2.安装数据库软件并建库;3.升级数据库
-------------------------------------------------------------------------------
选择安装类型:INSTALLDBSWONLY(只安装数据库软件 )
oracle.install.option=
-------------------------------------------------------------------------------
Specify the hostname of the system as set during the install. It can be used
to force the installation to use an alternative hostname rather than using the
first hostname found on the system. (e.g., for systems with multiple hostnames
and network interfaces)
指定安装期间设置的系统主机名。它可以被使用方法强制安装使用替代主机名,而不是使用系统上找到的第一个主机名。(例如,对于有多个主机名的系统和网络接口)
-------------------------------------------------------------------------------
指定主机名(安装oracle软件的主机),通过hostname命令获得
ORACLE_HOSTNAME=
-------------------------------------------------------------------------------
Specify the Unix group to be set for the inventory directory. 指定要为目录设置的Unix组。
-------------------------------------------------------------------------------
指定oracle inventory目录的所有者,通常会是oinstall或者dba
UNIXGROUPNAME=
-------------------------------------------------------------------------------
Specify the location which holds the inventory files.
-------------------------------------------------------------------------------
指定产品清单oracle inventory目录的路径
INVENTORY_LOCATION=
-------------------------------------------------------------------------------
Specify the languages in which the components will be installed.
指定将安装组件的语言。
en : English ja : Japanese
fr : French ko : Korean
ar : Arabic es : Latin American Spanish
bn : Bengali lv : Latvian
pt_BR: Brazilian Portuguese lt : Lithuanian
bg : Bulgarian ms : Malay
frCA: Canadian French esMX: Mexican Spanish
ca : Catalan no : Norwegian
hr : Croatian pl : Polish
cs : Czech pt : Portuguese
da : Danish ro : Romanian
nl : Dutch ru : Russian
arEG: Egyptian zhCN: Simplified Chinese
en_GB: English (Great Britain) sk : Slovak
et : Estonian sl : Slovenian
fi : Finnish es_ES: Spanish
de : German sv : Swedish
el : Greek th : Thai
iw : Hebrew zh_TW: Traditional Chinese
hu : Hungarian tr : Turkish
is : Icelandic uk : Ukrainian
in : Indonesian vi : Vietnamese
it : Italian
#
Example : SELECTED_LANGUAGES=en,fr,ja
------------------------------------------------------------------------------
指定数据库语言,可以选择多个,用逗号隔开。
SELECTEDLANGUAGES=en,zhCN
------------------------------------------------------------------------------
Specify the complete path of the Oracle Home.
指定Oracle Home的完整路径。
------------------------------------------------------------------------------
设置ORALCE_HOME的路径
ORACLE_HOME=
------------------------------------------------------------------------------
Specify the complete path of the Oracle Base.
指定Oracle Base的完整路径。
------------------------------------------------------------------------------
设置ORALCE_BASE的路径
ORACLE_BASE=
------------------------------------------------------------------------------
Specify the installation edition of the component.
指定组件的安装版本。
The value should contain only one of these choices.
EE : Enterprise Edition 企业版
SE : Standard Edition 标准版
SEONE : Standard Edition One 标准版1
PE : Personal Edition (WINDOWS ONLY) 个人版PE适用于windows系统
------------------------------------------------------------------------------
选择Oracle安装数据库软件的版本(企业版EE,标准版SE,标准版1,个人版PE适用于windows系统)
oracle.install.db.InstallEdition=EE
------------------------------------------------------------------------------
This variable is used to enable or disable custom install.
此变量用于启用或禁用自定义安装。
true : Components mentioned as part of 'customComponents' property
are considered for install.
false : Value for 'customComponents' is not considered.
true:在'customComponents'属性中提到的组件将被考虑安装。
false:不考虑'customComponents'的值。
是否自定义Oracle的组件,如果选择false,则会使用默认的组件
如果选择true,则需要自己在下面一条参数将要安装的组件一一列出。
------------------------------------------------------------------------------
是否自定义Oracle的组件
oracle.install.db.isCustomInstall=false
------------------------------------------------------------------------------
This variable is considered only if 'IsCustomInstall' is set to true.
此变量仅在'IsCustomInstall'设置为true时才会被考虑。
Description: List of Enterprise Edition Options you would like to install.
说明:要安装的企业版选项列表。
The following choices are available. You may specify any
combination of these choices. The components you choose should
be specified in the form "internal-component-name:version"
Below is a list of components you may specify to install.
以下选项是可用的。你可以指定这些选择的组合。您选择的组件应该以"internal-component-name:version"的形式指定下面是您可以指定要安装的组件列表。
oracle.rdbms.partitioning:11.2.0.1.0 - Oracle Partitioning
oracle.rdbms.dm:11.2.0.1.0 - Oracle Data Mining
oracle.rdbms.dv:11.2.0.1.0 - Oracle Database Vault
oracle.rdbms.lbac:11.2.0.1.0 - Oracle Label Security
oracle.rdbms.rat:11.2.0.1.0 - Oracle Real Application Testing
oracle.oraolap:11.2.0.1.0 - Oracle OLAP
------------------------------------------------------------------------------
要安装的组件列表
oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
#
PRIVILEGED OPERATING SYSTEM GROUPS 特权操作系统组
------------------------------------------
Provide values for the OS groups to which OSDBA and OSOPER privileges
needs to be granted. If the install is being performed as a member of the #
group "dba", then that will be used unless specified otherwise below.
为需要授予OSDBA和OSOPER特权的OS组提供值。如果安装是作为组“dba”的成员执行的,那么除非下面另有说明,否则将使用该安装。
#
------------------------------------------------------------------------------
The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
------------------------------------------------------------------------------
指定拥有OSDBA权限的用户组,通常会是dba组
oracle.install.db.DBA_GROUP=dba
------------------------------------------------------------------------------
The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
------------------------------------------------------------------------------
指定拥有OSOPER权限的用户组
oracle.install.db.OPER_GROUP=oinstall
------------------------------------------------------------------------------
Specify the cluster node names selected during the installation.
指定安装期间选择的集群节点名称。
------------------------------------------------------------------------------
指定要安装oracle软件的节点:如果是RAC的安装,则指定所有的节点
oracle.install.db.CLUSTER_NODES=
------------------------------------------------------------------------------
Specify the type of database to create.
指定要创建的数据库类型。
It can be one of the following:
- GENERALPURPOSE/TRANSACTIONPROCESSING
- DATA_WAREHOUSE
------------------------------------------------------------------------------
选择数据库的用途:1.一般用途/事务处理;2.数据仓库
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
------------------------------------------------------------------------------
Specify the Starter Database Global Database Name.
------------------------------------------------------------------------------
指定数据库的GlobalName(全局名称)
oracle.install.db.config.starterdb.globalDBName=orcl
------------------------------------------------------------------------------
Specify the Starter Database SID.
------------------------------------------------------------------------------
指定数据库的SID
oracle.install.db.config.starterdb.SID=orcl
------------------------------------------------------------------------------
Specify the Starter Database character set.
It can be one of the following:
AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
------------------------------------------------------------------------------
选择字符集,建议选择AL32UTF8国际字符集
oracle.install.db.config.starterdb.characterSet=AL32UTF8
------------------------------------------------------------------------------
This variable should be set to true if Automatic Memory Management
in Database is desired.
If Automatic Memory Management is not desired, and memory allocation
is to be done manually, then set it to false.
如果需要在数据库中进行自动内存管理,则该变量应设置为true。如果不需要自动内存管理,并且内存分配需要手动完成,则将其设置为false。
------------------------------------------------------------------------------
11g的新特性:自动内存管理
oracle.install.db.config.starterdb.memoryOption=true
------------------------------------------------------------------------------
Specify the total memory allocation for the database. Value(in MB) should be
at least 256 MB, and should not exceed the total physical memory available
on the system.
Example: oracle.install.db.config.starterdb.memoryLimit=512
指定数据库的总内存分配。值(以MB为单位)应为至少256 MB,并且不应超过可用的物理内存总量在系统上。例如:oracle.install.db.config.starterdb.memoryLimit = 512
------------------------------------------------------------------------------
指定Oracle自动管理内存的大小,最小是256MB
oracle.install.db.config.starterdb.memoryLimit=800
------------------------------------------------------------------------------
This variable controls whether to load Example Schemas onto the starter
database or not.
该变量控制是否将示例架构加载到启动器上 数据库与否。
------------------------------------------------------------------------------
是否载入模板示例
oracle.install.db.config.starterdb.installExampleSchemas=false
------------------------------------------------------------------------------
This variable includes enabling audit settings, configuring password profiles
and revoking some grants to public. These settings are provided by default.
These settings may also be disabled.
该变量包括启用审计设置、配置密码配置文件和撤销对公众的某些授权。这些设置是默认提供的。这些设置也可能被禁用。
------------------------------------------------------------------------------
是否启用安全设置
oracle.install.db.config.starterdb.enableSecuritySettings=true
#
Passwords can be supplied for the following four schemas in the
可以为以下四个模式提供密码
starter database:
SYS
SYSTEM
SYSMAN (used by Enterprise Manager)(企业经理使用)
DBSNMP (used by Enterprise Manager)(企业管理员使用)
Same password can be used for all accounts (not recommended)
所有帐号可以使用相同密码(不推荐)
or different passwords for each account can be provided (recommended)
或为每个帐户提供不同的密码(推荐)
#
------------------------------------------------------------------------------
This variable holds the password that is to be used for all schemas in the
starter database.所有模式使用的密码
-------------------------------------------------------------------------------
设置数据库用户密码
设定所有数据库用户使用同一个密码,其它数据库用户就不用单独设置了。
oracle.install.db.config.starterdb.password.ALL=oracle
-------------------------------------------------------------------------------
Specify the SYS password for the starter database.为启动器数据库指定“SYS”密码。
-------------------------------------------------------------------------------
设定SYS用户的密码
oracle.install.db.config.starterdb.password.SYS=
-------------------------------------------------------------------------------
Specify the SYSTEM password for the starter database.为启动器数据库指定SYSTEM密码。
-------------------------------------------------------------------------------
设定SYSTEM用户的密码
oracle.install.db.config.starterdb.password.SYSTEM=
-------------------------------------------------------------------------------
Specify the SYSMAN password for the starter database.为启动器数据库指定SYSMAN密码。
-------------------------------------------------------------------------------
设定SYSMAN用户的密码
oracle.install.db.config.starterdb.password.SYSMAN=
-------------------------------------------------------------------------------
Specify the DBSNMP password for the starter database.指定启动器数据库的DBSNMP密码。
-------------------------------------------------------------------------------
设定DBSNMP用户的密码
oracle.install.db.config.starterdb.password.DBSNMP=
-------------------------------------------------------------------------------
Specify the management option to be selected for the starter database.
指定要为启动器数据库选择的管理选项。
It can be one of the following:
1. GRID_CONTROL
2. DB_CONTROL
-------------------------------------------------------------------------------
1.数据库本地管理工具DBCONTROL;2.远程集中管理工具GRIDCONTROL
oracle.install.db.config.starterdb.control=DB_CONTROL
-------------------------------------------------------------------------------
Specify the Management Service to use if Grid Control is selected to manage
如果选择网格控制进行管理,则指定要使用的管理服务
the database.
-------------------------------------------------------------------------------
当上一个选项设置为GRID_CONTROL时,需要设定grid control的远程路径URL
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
-------------------------------------------------------------------------------
This variable indicates whether to receive email notification for critical
此变量指示是否接收紧急的电子邮件通知
alerts when using DB control.
-------------------------------------------------------------------------------
此变量指示在使用DB控件时是否接收关键警报的电子邮件通知。
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
-------------------------------------------------------------------------------
Specify the email address to which the notifications are to be sent.
-------------------------------------------------------------------------------
指定要发送通知的电子邮件地址。
oracle.install.db.config.starterdb.dbcontrol.emailAddress=
-------------------------------------------------------------------------------
Specify the SMTP server used for email notifications.
-------------------------------------------------------------------------------
指定用于电子邮件通知的SMTP服务器。
oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
#
SPECIFY BACKUP AND RECOVERY OPTIONS
指定备份和恢复选项
------------------------------------
Out-of-box backup and recovery options for the database can be mentioned
可以提到数据库的开箱即用备份和恢复选项
using the entries below. #
使用下面的条目。
#
------------------------------------------------------------------------------
This variable is to be set to false if automated backup is not required. Else
this can be set to true.
如果不需要自动备份,则该变量将被设置为false。否则,此值可以设置为true。
------------------------------------------------------------------------------
设置自动备份
oracle.install.db.config.starterdb.automatedBackup.enable=false
------------------------------------------------------------------------------
Regardless of the type of storage that is chosen for backup and recovery, if
automated backups are enabled, a job will be scheduled to run daily at
2:00 AM to backup the database. This job will run as the operating system
user that is specified in this variable.
无论为备份和恢复选择哪种类型的存储,如果启用了自动备份,将安排一个作业在每天凌晨2:00运行以备份数据库。此作业将作为此变量中指定的操作系统用户运行。
------------------------------------------------------------------------------
自动备份会启动一个job,指定启动JOB的系统用户ID
oracle.install.db.config.starterdb.automatedBackup.osuid=
-------------------------------------------------------------------------------
Regardless of the type of storage that is chosen for backup and recovery, if
automated backups are enabled, a job will be scheduled to run daily at
2:00 AM to backup the database. This job will run as the operating system user
specified by the above entry. The following entry stores the password for the
above operating system user.
无论为备份和恢复选择哪种类型的存储,如果启用了自动备份,将安排一个作业在每天凌晨2:00运行以备份数据库。此作业将作为上述条目指定的操作系统用户运行。下面的条目存储了上述操作系统用户的密码。
-------------------------------------------------------------------------------
自动备份会开启一个job,需要指定OSUser的密码
oracle.install.db.config.starterdb.automatedBackup.ospwd=
-------------------------------------------------------------------------------
Specify the type of storage to use for the database.
指定数据库使用的存储类型。
It can be one of the following:
- FILESYSTEMSTORAGE
- ASM_STORAGE
------------------------------------------------------------------------------
指定存储类型:1.文件系统;2.ASM
oracle.install.db.config.starterdb.storageType=
-------------------------------------------------------------------------------
Specify the database file location which is a directory for datafiles, control
files, redo logs.
指定数据库文件的位置,即数据文件、控制文件、重做日志的目录。
Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM
仅当oracle.install.db.config.starterdb.storage=FILE_SYSTEM时适用
-------------------------------------------------------------------------------
使用文件系统时指定数据文件、控制文件、Redo log的存放目录
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
-------------------------------------------------------------------------------
Specify the backup and recovery location.
指定备份和恢复位置。
Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM
仅当oracle.install.db.config.starterdb.storage=FILE_SYSTEM时适用
-------------------------------------------------------------------------------
使用文件系统时指定备份恢复目录
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
-------------------------------------------------------------------------------
Specify the existing ASM disk groups to be used for storage.
指定用于存储的现有ASM磁盘组。
Applicable only when oracle.install.db.config.starterdb.storage=ASM
仅当oracle.install.db.config.starterdb.storage=ASM时生效
-------------------------------------------------------------------------------
指定ASM的磁盘组
oracle.install.db.config.asm.diskGroup=
-------------------------------------------------------------------------------
Specify the password for ASMSNMP user of the ASM instance.
指定ASM实例的ASMSNMP用户密码。
Applicable only when oracle.install.db.config.starterdb.storage=ASM_SYSTEM
仅当“oracle.install.db.config.starterdb.storage=ASM_SYSTEM时适用
-------------------------------------------------------------------------------
指定ASM实例密码
oracle.install.db.config.asm.ASMSNMPPassword=
------------------------------------------------------------------------------
Specify the My Oracle Support Account Username.
指定我的Oracle支持帐户用户名。
Example : MYORACLESUPPORT_USERNAME=metalink
例如:MYORACLESUPPORT_USERNAME=metalink
------------------------------------------------------------------------------
指定metalink账户用户名
MYORACLESUPPORT_USERNAME=
------------------------------------------------------------------------------
Specify the My Oracle Support Account Username password.
输入“我的Oracle支持帐户用户名”密码。
Example : MYORACLESUPPORT_PASSWORD=password
示例:MYORACLESUPPORT_PASSWORD=password
------------------------------------------------------------------------------
指定metalink账户密码
MYORACLESUPPORT_PASSWORD=
------------------------------------------------------------------------------
Specify whether to enable the user to set the password for
My Oracle Support credentials. The value can be either true or false.
If left blank it will be assumed to be false.
指定是否允许用户为My Oracle Support凭据设置密码。取值为true或false。如果为空,则假定为假。
Example : SECURITYUPDATESVIA_MYORACLESUPPORT=true
例如:SECURITYUPDATESVIA_MYORACLESUPPORT=true
------------------------------------------------------------------------------
用户是否可以设置metalink密码
SECURITYUPDATESVIA_MYORACLESUPPORT=
------------------------------------------------------------------------------
Specify whether user wants to give any proxy details for connection.
The value can be either true or false. If left blank it will be assumed
to be false.
指定用户是否要为连接提供任何代理详细信息。取值为true或false。如果为空,则假定为假
Example : DECLINESECURITYUPDATES=false
------------------------------------------------------------------------------
是否设置安全更新
False表示不需要设置安全更新,在11.2的静默安装中必须指定为true,否则会提示错误
DECLINESECURITYUPDATES=true
------------------------------------------------------------------------------
Specify the Proxy server name. Length should be greater than zero.
指定代理服务器名称。长度应该大于零。
Example : PROXY_HOST=proxy.domain.com
------------------------------------------------------------------------------
设置代理服务器的名称——不使用代理服务器,不用设置
PROXY_HOST=
------------------------------------------------------------------------------
Specify the proxy port number. Should be Numeric and atleast 2 chars.
指定代理端口号。应该是数字和至少2个字符。
Example : PROXY_PORT=25
------------------------------------------------------------------------------
设置代理服务器的端口号——不使用代理服务器,不用设置
PROXY_PORT=
------------------------------------------------------------------------------
Specify the proxy user name. Leave PROXYUSER and PROXYPWD
blank if your proxy server requires no authentication.
指定代理用户名。如果代理服务器不需要身份验证,请将PROXYUSER和PROXYPWD保留为空。
Example : PROXY_USER=username
------------------------------------------------------------------------------
设置代理服务器的用户名——不使用代理服务器,不用设置
PROXY_USER=
------------------------------------------------------------------------------
Specify the proxy password. Leave PROXYUSER and PROXYPWD
blank if your proxy server requires no authentication.
指定代理密码。如果代理服务器不需要身份验证,请将PROXYUSER和PROXYPWD保留为空。
Example : PROXY_PWD=password
------------------------------------------------------------------------------
设置代理服务器的服务器密码——不使用代理服务器,不用设置
PROXY_PWD=
------------------------------------------------------------------------------
Specify the proxy realm. This value is used if auto-updates option is selected.
指定代理域。如果选择了自动更新选项,则使用此值。
Example : PROXY_REALM=metalink
------------------------------------------------------------------------------
PROXY_REALM=
------------------------------------------------------------------------------
Specify the Oracle Support Hub URL.
指定Oracle Support Hub URL。
Example : COLLECTORSUPPORTHUBURL=https://orasupporthub.company.com:8080/
------------------------------------------------------------------------------
COLLECTORSUPPORTHUBURL=
------------------------------------------------------------------------------
Specify the auto-updates option. It can be one of the following:
指定自动更新选项。它可以是以下之一:
- MYORACLESUPPORT_DOWNLOAD
- OFFLINE_UPDATES
- SKIP_UPDATES
------------------------------------------------------------------------------
自动更新:跳过自动更新
oracle.installer.autoupdates.option=SKIP_UPDATES
------------------------------------------------------------------------------
In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
the updates are to be downloaded.
In case OFFLINE_UPDATES option is chosen, specify the location where the updates
are present.
如果选择了MYORACLESUPPORTDOWNLOAD选项,则指定要下载更新的位置。如果选择了OFFLINEUPDATES选项,则指定显示更新的位置。
------------------------------------------------------------------------------
自动更新下载目录
oracle.installer.autoupdates.downloadUpdatesLoc=
------------------------------------------------------------------------------
Specify the My Oracle Support Account Username which has the patches download privileges
to be used for software updates.
Example : AUTOUPDATESMYORACLESUPPORT[email protected]
------------------------------------------------------------------------------
自动更新的用户名
AUTOUPDATESMYORACLESUPPORTUSERNAME=
------------------------------------------------------------------------------
Specify the My Oracle Support Account Username password which has the patches download privileges
to be used for software updates.
#
Example : AUTOUPDATESMYORACLESUPPORTPASSWORD=password
------------------------------------------------------------------------------
自动更新的密码
AUTOUPDATESMYORACLESUPPORTPASSWORD= ```