Oracle File Permissions

Check File Permissions (extjob)

ls -l $ORACLE_HOME/bin/extjob

Permissions should be...

-rwsr-x--- 1 root oinstall 848077 27 Oct 14:54 extjob

To fix it (as 'root')...

This script will correct the permissions for every ORACLE_HOME in /etc/oratab...

for OHOME in $(cat /etc/oratab | grep oracle | cut -f2 -d:)

do

chmod 4750 ${OHOME}/bin/extjob

chown root:oinstall ${OHOME}/bin/extjob

done

If you are patching an ORACLE_HOME that is not yet in /etc/oratab (e.g. you are patching a new ORACLE_HOME ahead of an upgrade) then you will need to set ORACLE_HOME in the 'root' environment to reflect the target ORACLE_HOME and run...

chown root:oinstall $ORACLE_HOME/bin/extjob

chmod 4750 $ORACLE_HOME/bin/extjob

Check File Permissions (libsqlplus.so)

ls -l $ORACLE_HOME/lib/libsqlplus.so

Permissions should be...

-rw-r--r-- 1 oracle oinstall 1333360 25 Apr 14:54 libsqlplus.so

To fix it (as 'root')...

This script will correct the permissions for every ORACLE_HOME in /etc/oratab...

for OHOME in $(cat /etc/oratab | grep oracle | cut -f2 -d:)

do

chmod 644 ${OHOME}/lib/libsqlplus.so

done

If you are patching an ORACLE_HOME that is not yet in /etc/oratab (e.g. you are patching a new ORACLE_HOME ahead of an upgrade) then you will need to set ORACLE_HOME in the 'root' environment to reflect the target ORACLE_HOME and run...

chmod 644 $ORACLE_HOME/lib/libsqlplus.so