While installing Oracle using Oracle Universal Installer (OUI), there are few scripts which needs to be run as “root” user in the OS. One such script is the “root.sh” which resides in $ORACLE_HOME.
-sh-4.1$ cd $ORACLE_HOME -sh-4.1$ ls -lrt root.sh -rwxr-x--- 1 oracle oinstall 542 Nov 2 11:19 root.sh
A lot of people are stuck at the point where it prompts to enter the full pathname of the local bin directory. The /usr/local/bin directory is actually a symbolic link to ./packages/local/bin
-sh-4.1$ ls -lrt bin lrwxrwxrwx. 1 root root 20 Oct 29 16:54 bin -> ./packages/local/bin
Provide the full pathname /usr/local/.packages/local/bin
Enter the full pathname of the local bin directory: [/usr/local/bin]: /usr/local/.packages/local/bin Creating /usr/local/.packages/local/bin directory... Copying dbhome to /usr/local/.packages/local/bin ... Copying oraenv to /usr/local/.packages/local/bin ... Copying coraenv to /usr/local/.packages/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Finished product-specific root actions.
Hope it helps!