Thursday, February 18, 2010 and scripts execution in Oracle

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

The first Script that we run is 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, which should be run as root user 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. 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.


1 comment: