Thursday, August 29, 2013

Oracle 11g R2 Silent Installation

[root@localhost ~]$ su - oracle
[oracle@localhost ~]$ cd /software/11gr2/database
[oracle@localhost database]$ ./runInstaller -silent -force \
FROM_LOCATION=/software/11gr2/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/home/oracle/oraInventory \
ORACLE_HOME=/u01/app/oracle/product/11.2/db_1 \
ORACLE_HOME_NAME="OraDb11g_Home1" \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=SE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=dba \
DECLINE_SECURITY_UPDATES=true
[oracle@localhost database]$ exit
# As a root user, execute the following script(s):
[root@localhost ~]$ /home/oracle/oraInventory/orainstRoot.sh
[root@localhost ~]$ /u01/app/oracle/product/11.2/db_1/root.sh
-----------------------------------------------------------------------------
start the actual installation is the creation of the oraInst.loc file.


The oraInst.loc file
specifies the location of the Oracle Inventory, as well as the OS group
to be used when performing the Oracle software installation (the
oraInventory destination file ownership will later be changed to reflect
this group).



Again, this standard
template is available from the output of our runinstaller option
verification earlier, specifically the following:



  -invPtrLoc <full path of oraInst.loc>


        Unix only. To point to a different inventory location. The orainst.loc file contains:


inventory_loc=<location of central inventory>


inst_group=<>





All that remains is
to create this file (as the root user) in the /tmp directory (on Unix
systems only, this can be skipped on Windows installations):



# vi /etc/oraInst.loc


inventory_loc=/home/oracle/oraInventory


inst_group=oinstall


chown oracle:oinstall /etc/oraInst.loc


chmod 664 /etc/oraInst.loc




Now we can run the installer by issuing the following as the Oracle software owner:



./runInstaller -silent   -responseFile “/home/oracle/database/db_install.rsp”
================================================================================
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.

====================================================================

http://gruffdba.wordpress.com/2013/01/10/silent-install-of-oracle-11-2-0-3-on-redhat-6-0/
====================================================================
http://www.sqlpanda.com/2013/02/silent-install-oracle-11gr2.html

1 comment:

Unknown said...

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Oracle 11g, kindly contact us http://www.maxmunus.com/contact
MaxMunus Offer World Class Virtual Instructor led training on Oracle 11g. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us:
Name : Arunkumar U
Email : arun@maxmunus.com
Skype id: training_maxmunus
Contact No.-+91-9738507310
Company Website –http://www.maxmunus.com