Friday 15 April 2016

Silent Installation of Oracle Database Software 11gR2


Before proceeding I am assuming that you've completed Pre-Installation tasks for Oracle Database Software Installation. If you have not completed then do it before proceeding, click here to goto that page.

Silent Installation is an alternative for GUI installation. It's very useful method when you want to prepare standard installation using shell scripts. A response file can be use to provide all the required information for the installion, so no user interaction is required. 

There are 3 response files which can used, for now we will use db_install.rsp to install database software only. So now download oracle database software from Oracle Official site and unzip. Now locate the unzipped files and locate response folder so that we can get db_install.rsp, copy this file to a temporary location and edit it.


 [oracle@localhost ~]$ cd /  
 [oracle@localhost / ]$ unzip linux.x64_11gR2_database_1of2.zip  
 [oracle@localhost / ]$ unzip linux.x64_11gR2_database_2of2.zip  
 [oracle@localhost / ]$ cd database/  
 [oracle@localhost database ]$ cd response/  
 [oracle@localhost response ]$ ls  
 db_install.rsp  dbca.rsp  netca.rsp  
 [oracle@localhost response ]$ cp db_install.rsp /tmp/  
 [oracle@localhost response ]$ cd /tmp  
 [oracle@localhost tmp ]$ vi db_install.rsp  

The parameters which are required to set in order to install database software successfully,
  • oracle.install.option=INSTALL_DB_SWONLY
  • UNIX_GROUP_NAME=oinstall
  • INVENTORY_LOCATION=/u01/app/oraInventory
  • SELECTED_LANGUAGES=en
  • ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
  • ORACLE_BASE=/u01/app/oracle
  • oracle.install.db.InstallEdition=EE
     EE for Enterprise Editon and SE for Standard Edition.
  • oracle.install.db.DBA_GROUP=dba
  • oracle.install.db.OPER_GROUP=oper
 After setting above parameters with the values specified, save it. And go to the directory where you extracted the Oracle Database software, and run the following command to start the silent installation. 
 
 [oracle@localhost / ]$ cd database/  
 [oracle@localhost database ]$ ./runInstaller -silent -noconfig -force -responseFile /tmp/db_install.rsp  


Now it will start the installation, you can monitor the activity of the installion with the file /u01/app/oraInventory/logs/installAction*. Use a UNIX / LINUX command tail -f to continuously monitoring of that file. After some time it will show you to run scripts, then run those scripts(orainstRoot.sh & root.sh) by logging as root user. And you've installed Oracle Database software silently.

No comments :

Post a Comment