静默安装命令及过程
./runInstaller -silent -force -ignorePrereq -responseFile /home/oracle/db.rsp说明:
-silent 必须要有
-ignorePrereq 如果哪块没有符合要求,不添加可能就安装不过去了
-force 软件可以安装在一个非空目录中
-responseFile 指定响应文件
文件样例如下
#-------------------------------------------------------------------------------# Do not change the following system generated value. #-------------------------------------------------------------------------------oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0#-------------------------------------------------------------------------------# The installation option can be one of the following# 1. INSTALL_DB_SWONLY# 2. INSTALL_DB_AND_CONFIG# 3. UPGRADE_DB#-------------------------------------------------------------------------------oracle.install.option=INSTALL_DB_AND_CONFIG#-------------------------------------------------------------------------------# This variable holds the hostname of the system as set by the user. # 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=localhost#-------------------------------------------------------------------------------# Unix group to be set for the inventory directory. #-------------------------------------------------------------------------------UNIX_GROUP_NAME=dba#-------------------------------------------------------------------------------# Inventory location.#-------------------------------------------------------------------------------INVENTORY_LOCATION=/home/oracle/oraInventory#-------------------------------------------------------------------------------# Specify the languages in which the components will be installed. ## Example : SELECTED_LANGUAGES=en,fr,ja#-------------------------------------------------------------------------------SELECTED_LANGUAGES=en,zh_CN#-------------------------------------------------------------------------------# Complete path of the Oracle Home #-------------------------------------------------------------------------------ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1#-------------------------------------------------------------------------------# Complete path of the Oracle Base. #-------------------------------------------------------------------------------ORACLE_BASE=/home/oracle/app#-------------------------------------------------------------------------------# Installation Edition of the component. # # The value should contain only one of these choices. # EE : Enterprise Edition # SE : Standard Edition # SEONE : Standard Edition One# PE : Personal Edition (WINDOWS ONLY)#-------------------------------------------------------------------------------oracle.install.db.InstallEdition=EE#-------------------------------------------------------------------------------# This property is considered only if InstallEdition is EE.## true : Components mentioned as part of 'customComponents' property# are considered for install.# false : Value for 'customComponents' is not considered.#-------------------------------------------------------------------------------oracle.install.db.isCustomInstall=false#-------------------------------------------------------------------------------# This property is considered only if 'IsCustomInstall' is set to 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.# # oracle.oraolap:11.2.0.0.2 - Oracle OLAP# oracle.rdbms.dm:11.2.0.0.2 - Oracle Data Mining RDBMS Files# oracle.rdbms.dv:11.2.0.0.2 - Oracle Database Vault option# oracle.rdbms.lbac:11.2.0.0.2 - Oracle Label Security# oracle.rdbms.partitioning:11.2.0.0.2 - Oracle Partitioning# oracle.rdbms.rat:11.2.0.0.2 - Oracle Real Application Testing# oracle.clrintg.ode_net:11.2.0.0.2 - Oracle Database Extensions for .NET 1.x (Windows)# oracle.clrintg.ode_net_2:11.2.0.0.2 - Oracle Database Extensions for .NET 2.0 (Windows)#-------------------------------------------------------------------------------oracle.install.db.customComponents=#-------------------------------------------------------------------------------oracle.install.db.DBA_GROUP=dba#-------------------------------------------------------------------------------oracle.install.db.OPER_GROUP=dba#-------------------------------------------------------------------------------# This variable represents the cluster node names selected by the . # user for installation #-------------------------------------------------------------------------------oracle.install.db.CLUSTER_NODES=#-------------------------------------------------------------------------------# One of the following# - GENERAL_PURPOSE # - TRANSACTION_PROCESSING # - DATAWAREHOUSE #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.type=GENERAL_PURPOSE#-------------------------------------------------------------------------------# Global Database Name #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.globalDBName=orcl.site#-------------------------------------------------------------------------------# The Starter Database SID #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.SID=orcl#-------------------------------------------------------------------------------# Database character set# # 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#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.characterSet=AL32UTF8#-------------------------------------------------------------------------------# Specify the total memory allocation for the database. (in MB)# Value 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=40#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.memoryLimit=1528oracle.install.db.config.starterdb.memoryOption=true#-------------------------------------------------------------------------------# This variable controls whether to load Example Schemas onto# the starter database or not.#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.installExampleSchemas=true#-------------------------------------------------------------------------------# This include enabling audit settings, configuring password # profiles and revoking some grants to public. These settings # are provided by default. You may choose to disable all. #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.enableSecuritySettings=true#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.ALL=password#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.SYS=#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.SYSTEM=#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.SYSMAN=#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.password.DBSNMP=#-------------------------------------------------------------------------------# Can be one of the following # 1. GRID_CONTROL# 2. DB_CONTROL# oracle.install.db.config.starterdb.control=DB_CONTROL#-------------------------------------------------------------------------------# Determines the Management Service to use if Grid Control # is selected to manage the database. #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=#-------------------------------------------------------------------------------# Determines whether to receive email notification for # critical alerts when using DB control. #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.dbcontrol.emailAddress=#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.dbcontrol.SMTPServer=#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.automatedBackup.enable=false#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.automatedBackup.osuid=#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.automatedBackup.ospwd=#-------------------------------------------------------------------------------# Can be one of the following# - FILE_SYSTEM_STORAGE# - ASM_STORAGE#-------------------------------------------------------------------------------oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE#-------------------------------------------------------------------------------# Database file location: # directory for datafiles, control files, redo logs. ## Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/home/oracle/app/oradata#-------------------------------------------------------------------------------# Backup and recovery location ## Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE #-------------------------------------------------------------------------------oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=#-------------------------------------------------------------------------------# Name of ASM disk group to be used for storage.## Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE#-------------------------------------------------------------------------------oracle.install.db.config.asm.diskGroup=#-------------------------------------------------------------------------------# Password for ASMSNMP user of the ASM instance. ## Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE #-------------------------------------------------------------------------------oracle.install.db.config.asm.ASMSNMPPassword=#------------------------------------------------------------------------------# Specify the My Oracle Support Account Username.## Example : MYORACLESUPPORT_USERNAME=metalink#------------------------------------------------------------------------------MYORACLESUPPORT_USERNAME=#------------------------------------------------------------------------------# Specify the My Oracle Support Account Username password.## Example : MYORACLESUPPORT_PASSWORD=password#------------------------------------------------------------------------------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.## Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true#------------------------------------------------------------------------------SECURITY_UPDATES_VIA_MYORACLESUPPORT=falseDECLINE_SECURITY_UPDATES=truePROXY_HOST=PROXY_PORT=