Oracle 11gR2 silent installation

Oracle silent installation is straightforward though it always change a little with every major release. Here I show you tricks and tips during Oracle 11gR2 silent installation.

Steps /no tricks here/

1#Create the oraInst.loc file.
2#Prepare a response file.
3#Run Oracle Universal Installer in silent or response file mode.
4#If you completed a software-only installation, then run Net Configuration Assistant and  Database Configuration Assistant in silent or response file mode if required.

Command /2 tricks/

directory_path/runInstaller -silent [-noconfig] -responseFile  absolute_path/response_file

It is case-sensitive !

Real story /tips and tricks/

Oracle 11gR2 Enterprise edition database home installation on Linux (RHEL5) x86_64.

1) Customize value in response file
important note: copy from Oracle sample file: <oracle_installation_dir>/database/response/db_install.rsp

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/oracle/OraInventory
ORACLE_HOME=/oracle/product/11.2.0/template
ORACLE_BASE=/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true

2) Silent installation

./runInstaller -silent -noconfig -responseFile /u01/download/db11ginstall.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 22753 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3817 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-06-17_09-02-07PM. Please wait ..
$ You can find the log of this install session at:
 /oracle/OraInventory/logs/installActions2011-06-17_09-02-07PM.log
The following configuration scripts need to be executed as the "root" user.
 #!/bin/sh
 #Root scripts to run

/oracle/product/11.2.0/template/root.sh
To execute the configuration scripts:
         1. Open a terminal window
         2. Log in as "root"
         3. Run the scripts
         4. Return to this window and hit "Enter" key to continue

Successfully Setup Software.

/ * tricks and tips  */

Trick 1 # If oracle home is not empty and we didn’t use runInstaller *** -force option, it will die with following messages

CAUSE: The chosen installation conflicted with software already installed in the given Oracle home.
   ACTION: Install into a different Oracle home.

Trick 2 # If system are not satisfied with Oracle installation requirement, it  will show  following messages.

CAUSE: Some of the optional prerequisites are not met. See logs for details. /oracle/OraInventory/logs/…log
   ACTION: Identify the list of failed prerequisite checks from the log: /oracle/OraInventory/logs/….log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
[WARNING] [INS-13014] Target environment do not meet some optional requirements.

Trick 3 # If DECLINE_SECURITY_UPDATES is not set to FALSE, Oracle will try to set up OCM (Oracle configuration management with metalink credential), it will die with following messages.

[SEVERE] – Email Address Not Specified

Trick 4 # If DBA and OS group is not specified properly, it may die with following messages

   CAUSE: User is not a member of one or more of the chosen OS groups.
   ACTION: Please choose OS groups of which user is a member.

Conclusion

Silent installation is still easy with patience.

Update at Sept 9, 2013

For Oracle 11.2.0.4 silent installation, I record response file and it shows off following related parameters.

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES

About these ads

About bigpang

Oracle Certified Master and Perl advocate
This entry was posted in Installation, Linux, Oracle Database and tagged , , , , , , , , . Bookmark the permalink.

4 Responses to Oracle 11gR2 silent installation

  1. Pingback: Oracle 11gR2 silent installation | 老庞闲话

  2. Pingback: Top ORCLearnings of the week « Oracle DB 10g & 11g Tops

  3. Topu says:

    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-02-25_11-25-57PM. Please wait …-bash-4.1$ [WARNING] [INS-13001] Environment does not meet minimum requirements.
    CAUSE: Minimum requirements were not met for this environment
    ACTION: Either check the logs for more information or check the supported configurations for this product.
    [SEVERE] – To establish a network connection, specify the proxy details.
    A log of this session is currently saved as: /tmp/OraInstall2013-02-25_11-25-57PM/installActions2013-02-25_11-25-57PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.

  4. Loren says:

    This does not work for 11gr2. The “[SEVERE] – Email Address Not Specified” continues with the response file setting for “DECLINE_SECURITY_UPDATES=true”, “SECURITY_UPDATES_VIA_MYORACLESUPPORT=false”, #——————————————————————————-
    # This variable indicates whether to receive email notification for critical
    # alerts when using DB control.
    #——————————————————————————-
    oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
    #——————————————————————————
    # Specify whether user doesn’t want to configure Security Updates.
    # The value for this variable should be true if you don’t want to configure
    # Security Updates, false otherwise.
    #
    # The value can be either true or false. If left blank it will be assumed
    # to be false.
    #
    # Example : DECLINE_SECURITY_UPDATES=false
    #——————————————————————————
    DECLINE_SECURITY_UPDATES=true

    You can set this to “true” or “false” and you will get the same install error.
    Anyone have any idea why?
    Windows 2008R2 64bit Server OS trying to auto install Oracle 11g R2.
    I’ve seen this answer on multiple pages and they all state the same – change this to true – in this post you have it changed to “false” in the upper portion and “true” in the lower portion. Something else seems to be in the mix here which is causing this issue.

    DECLINE_SECURITY_UPDATES=true (from top portion of post)
    If DECLINE_SECURITY_UPDATES is not set to FALSE (From “Trick 3″)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s