HowToInstall11.2/12.1Database/ClientSoftwareInSilentModeWithoutUsingResponseFile(一)

2014-11-24 17:04:38 · 作者: · 浏览: 0

Applies to:

Oracle Universal Installer - Version 11.2.0.1 and later
Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Oracle Database - Standard Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

Goal

How to install Oracle Database Server/Client software in non-interactive or silent mode from command line without using a response file

Solution

Silent installation can be done with the help of a "Response File". A "Response File" contains all the inputs that are required for doing the silent installation.

"Response File" can be created using one of the following methods:

1. Response file template supplied with installation kit:

Ex: <11gR2 Disk>/database/response/db_install.rsp

Copy "<11gR2 Disk>/database/response/db_install.rsp" to "/db_install.rsp"

Edit "/db_install.rsp" and modify the values that suits your environment

2. Record the response file using OUI in interactive mode:

Starting with 11gR2, user can save (Record) all the installation steps into a response file during installation. This can be achieved by clicking on "Save Response File" button on the Summary page. Later, this saved response file can be used for a silent installation.

Once the response file is created, user can execute the following command to do a silent installation:

Windows : setup.exe -silent -responseFile "\db_install.rsp"

Unix : ./runInstaller -silent -responseFile "/db_install.rsp"

The same silent installation can be done directly from the command prompt without using a response file but it requires a minimum set of variables (from the response file) as arguments to the OUI (i.e "runInstaller or setup.exe").

For example, the following commands can be used to install in Silent mode without a response file:

Database
The following command can be used to install Database (Enterprise Edition Software Only) in silent mode:

11.2

Unix:

$ cd /11gR2/database
$ ./runInstaller -silent -debug -force \
FROM_LOCATION=/11gR2/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/u01/app/oracle/oraInventory \
ORACLE_HOME=/u01/app/oracle/product/11201/db_1 \
ORACLE_HOME_NAME="OraDb11g_Home1" \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=dba \
DECLINE_SECURITY_UPDATES=true

Windows:

> cd Z:\database
> .\setup.exe -silent -debug -force -waitforcompletion FROM_LOCATION=Z:\database\stage\products.xml oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOME="D:\oracle\product\11.2.0\dbhome_1" ORACLE_HOME_NAME="OraDb11g_Home1" ORACLE_BASE="D:\oracle" oracle.install.db.InstallEdition=EE oracle.install.db.isCustomInstall=false DECLINE_SECURITY_UPDATES=true Note :

"DECLINE_SECURITY_UPDATES=true" causes the Install of the OCM component but does not do the OCM configuration.

If user wants to configure the OCM along with Database Silent Installation, then the following parameters need to be included to the above command:
MYORACLESUPPORT_USERNAME=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
MYORACLESUPPORT_PASSWORD=
If direct connection is not possible, then following proxy connection details are required additionally
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
DECLINE_SECURITY_UPDATES=false

Client
The following comman