Thursday, February 18, 2010

orainstRoot.sh and root.sh scripts execution in Oracle

Usage of orainstRoot.sh and root.Sh execution in Oracle 10g Installation:

The first Script that we run is orainstRoot.sh which is located in $ORACLE_BASE/oraInventory for example : /u01/opt/app/oracle/oraInventory

The script should be run as root user

The usage of this script is :

It creates the inventory pointer file (/etc/oraInst.loc), The file shows the inventory location and group it is linked to.
Changing groupname of the oraInventory directory to oinstall group.

The second Script is root.sh, which should be run as root user

root.sh script performs many things, namely
It changes or correctly sets the environment variables
copying of few files into /usr/local/bin , the files are dbhome,oraenv,coraenv etc.
creation of /etc/oratab file or adding database home and SID's entry into /etc/oratab file.

root.sh script is located in $ORACLE_HOME directory.

The best way what else operations are performed when we run these script is to pay attention when we execute those and read the script execution log.

hope it help you all a bit.


Cheers...

1 comment: