HowToInstall11.2/12.1 Database/ClientSoftwareInSilentModeWith

Source: Internet
Author: User
Tags windows 12

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 "<path>/db_install.rsp"

Edit "<path>/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 "<path> \ db_install.rsp"

Unix:./runInstaller-silent-responseFile "<path>/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 installDatabase(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 written ded to the above command:
MYORACLESUPPORT_USERNAME = <MyOracleSupport Login>
SECURITY_UPDATES_VIA_MYORACLESUPPORT = true
MYORACLESUPPORT_PASSWORD = <MyOracleSupport Login Password>
If direct connection is not possible, then following proxy connection details are required additionally
PROXY_HOST = <proxy_host>
PROXY_PORT = <proxy_port>
PROXY_USER = <proxy_user>
PROXY_PWD = <proxy_passwd>
DECLINE_SECURITY_UPDATES = false

Client
The following command can be used to installClient(Install Type: Administrator) in silent mode:

Unix:

$ Cd/11gR2/client
$./RunInstaller-silent-debug-force \
FROM_LOCATION =/11gR2/client/stage/products. xml \
UNIX_GROUP_NAME = oinstall \
ORACLE_HOME =/u01/app/oracle/product/11201/Client_1 \
ORACLE_HOME_NAME = "maid "\
ORACLE_BASE =/u01/app/oracle \
Oracle. install. client. installType = "Administrator"

Windows:

> Cd Z: \ client
>. \ Setup.exe-silent-debug-force-waitforcompletion FROM_LOCATION = Z: \ client \ stage \ products. xml oracle. install. client. installType = "Administrator" ORACLE_HOME = "D: \ oracle \ product \ 11.2.0 \ Client" ORACLE_HOME_NAME = "maid" ORACLE_BASE = "D: \ oracle" DECLINE_SECURITY_UPDATES = true12.1

Unix

Silent installation with response file

./RunInstaller-showProgress-waitforcompletion-silent-noconfig-debug-force-responseFile/tmp/db_install.rsp

1. For the already available Silent Response File, please go
Cd <12c Disk>/database/response/db_install.rsp

2. Copy db_install.rsp to temporary location, eg/tmp

3. Update db_install.rsp for below parameters for Single Instance/Non RAC/Software Only Installation per your environment.

Oracle. install. option = INSTALL_DB_SWONLY
ORACLE_HOSTNAME = oel5.test.com
UNIX_GROUP_NAME = oinstall
INVENTORY_LOCATION =/u01/app/oraInventory
ORACLE_HOME =/u01/app/oracle/product/12.1.0/dbhome_1
ORACLE_BASE =/u01/app/oracle
Oracle. install. db. InstallEdition = EE
Oracle. install. db. DBA_GROUP = dba
Oracle. install. db. OPER_GROUP = dba (++ ++)
Oracle. install. db. BACKUPDBA_GROUP = dba
Oracle. install. db. DGDBA_GROUP = dba
Oracle. install. db. KMDBA_GROUP = dba
DECLINE_SECURITY_UPDATES = true
Oracle. installer. autoupdates. option = SKIP_UPDATES

Silent installation without response file

./RunInstaller-silent-debug-force \
FROM_LOCATION =/tmp/12c/database/Disk1/stage/products. xml \
Oracle. install. option = INSTALL_DB_SWONLY \
UNIX_GROUP_NAME = oinstall \
INVENTORY_LOCATION =/u01/app/oraInventory \
ORACLE_HOME =/u01/app/oracle/product/12.1.0/dbhome_1 \
ORACLE_HOME_NAME = "OraDb12c_Home1 "\
ORACLE_BASE =/u01/app/oracle \
Oracle. install. db. InstallEdition = EE \
Oracle. install. db. DBA_GROUP = dba \
Oracle. install. db. OPER_GROUP = dba \
Oracle. install. db. BACKUPDBA_GROUP = dba \
Oracle. install. db. DGDBA_GROUP = dba \
Oracle. install. db. KMDBA_GROUP = dba \
DECLINE_SECURITY_UPDATES = true

Note: Following are new groups introduced in 12.1

Oracle. install. db. BACKUPDBA_GROUP = dba \
Oracle. install. db. DGDBA_GROUP = dba \
Oracle. install. db. KMDBA_GROUP = dba \

For more information, please review:

Note 1483380.1 Changes For Oracle Database 12.1 Standalone Installation

Note:
The following options are not mandatory but can be used when required:
-Force: Allows silent mode installation into a non-empty ORACLE_HOME directory.
-Debug: Displays debug information from OUI. This will be useful if OUI is not starting.

On windows, ensure that command is framed in single line and space is used between each option and variable
Ex: setup.exe-option1-option2 variable1 = value variable2 = value ....

Here is an example of instructions for windows 12.1 client installation:
D: \ client \ winx64_12c_client \ client>. \ setup.exe-silent-debug-force-waitforcompletion FROM_LOCATION = D: \ client \ winx64_12c_client \ client \ stage \ products. xml
Oracle. install. client. installType = "Administrator" ORACLE_HOME = "D: \ app \ oracle \ product \ 12.1.0 \ client_12c1" ORACLE_HOME_NAME = "maid" ORACLE_BASE = "D: \ app \ oracle "DECLINE_SECURITY_UPDATES = true oracle. install. isBuiltInAccount = false oracle. install. oracleHomeUserName = oracle. install. oracleHomeUserPassword = ****** Note:

11.2 installer provides only two install methods: InteractiveAnd S Ilent.
Suppressed-Interactive mode (used to work in previous releases) does not work with 11.2 OUI.

If RunInstallerCommand is invoked" -Silent"Option but supplied the necessary information by using a response file or command line entries, then OUI still shows all the interactive screens and displays the values supplied through response file or command line entries as default values. note:

In case you need to install Examples CD the methods are exactly the sames as the ones decribed above:
Response file template supplied with installation kit: <11gR2 Examples Disk>/examples/response/demos_install.rsp
(\ On windows platforms)

Or

Record the response file using OUI in interactive mode.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.