Sunday, April 15, 2012

Silent Installation: Oracle 10g


Done with the OUI part lets continue with silent installation.
In silent installation, you need not any GUI interface in order to carry out the installation. All the installation commences on the command line prompt giving it an edge over OUI in the case where remote server’s GUI is not accessible. Just a little practice, knowledge and patience and you are fit to go.
The main part of the silent installation is the RESPONSE file.
RESPONSE File is nothing but a file in which you specify all the parameters needed for Oracle Installation. You can set the parameters accordingly in this file and feed this file as an input to the SILENT installation. While installation the Oracle Installer derives  values from this file and continues with the installation.
Although you can directly specify parameters and there values on the command line, I prefer to create a RESPONSE file as it becomes more clean (all parameters are dumped in a single file), easy (you get inbuilt help from the comments for the parameters you are setting) and also handy.

So done with this, let’s try our HANDS on Oracle Silent Installation.
Here is the SAMPLE RESPONSE File for Silent Installation. Need no Go in much detail as I said that the comment parts take care of what you need to set.

You can find this file at the following location: ~/database/response/
after you unzip the binaries.

Here is the link to the Sample Original RESPONSE FILE.

Here is the link to Sample Response file updated with parameter values for Installation

I have set n_configurationOption option to 3 as we will be having separate manually DB creation session. So gear up for it!!!

#------------------------------------------------------------------------------
# Name       : n_configurationOption
# Datatype   : Number
# Description: Determines the type of configuration to perform for the session.
#
#              This entry should be specified as an number.  The valid values
#              that you can use map to the following options:
#              1 - Create a Database
#              2 - Configure an ASM instance
#              3 - Install Software Only
#
# Example    : n_configurationOption=1
#------------------------------------------------------------------------------
n_configurationOption=3

You can make changes in the parameters and set the values as you like or leave the default values. 

Note: That you need to specify values for the fields <value needed> as they are mandatory and skip the rest if you are not interested.

Done with all the configuration needed you can run the installer using the following command.

                      bash$ ./runInstaller -silent -responseFile /oracle/database/response/enterprise.rsp

Note that the path is the responsefile path with name with .rsp extension. So set it accordingly.

Once done with it wait for the installation to commence and end. 

While the setup exits successfully it will ask you to run few scripts at the end to set the OraInventory values.
Run these scripts by logging as the root user and you are done with installation.

Scripts you need to run are:
../oraInventory/orainstRoot.sh
../root.sh

Note that paths for the scripts can differ according to the system environment. But at the end of installation Oracle evokes the script path and accordingly you do execute the same from ROOT user.

So that's it. Done with silent installation too.

One thing worth noting down here is that pre-requites for installation are same as that of OUI. If you have missed any pre-requisites refer these links:








1 comment:

  1. I have not any word to appreciate this post…..Really i am impressed from this post….
    BA Result Subject Wise

    ReplyDelete