Steps to relink Oracle Libraries

Few Important Info on Relinking


  • Relinking concept is applicable for Unix platform only , relinking does not occur in Windows OS.
  • Oracle Home relinking  is required to link Oracle provided object files to the OS system library. Relinking  guarantees a reliable integration with functions provided by the OS system libraries.
  • Relinking occurs automatically under these circumstances:

o An Oracle Database has  been  installed with Oracle Universal Installer ( OUI )
o An Oracle Database Patchset  has been applied via Oracle Universal Installer ( OUI )
o An Oracle Database Patch has been applied  using  “ opatch tool “.


  • Relinking can also be performed manually.

o Oracle recommends to perform manual relinking of Oracle Home Binaries after OS Upgrade , Patching , Downgrade or removal of the Patch or any change which impact OS library behavior . Successful relinking shows Oracle Executable are properly linked with OS binaries.

Steps for Relinking


1. Set Environment Variables
○ ORACLE_HOME
○ PATH to $ORACLE_HOME/bin
○ LD_LIBRARY_PATH to $ORACLE_HOME/lib:/usr/lib

2. Set umask to "022" (Run Command : "umask 022")

3. Stops all Oracle Instances accessing the ORACLE_HOME, listener, sql plus etc.

4. Execute the relink command :
$ORACLE_HOME/bin/relink all

The Output will be written to $ORACLE_HOME/install/relink.log file.
In place of "all", you can enter a specific component to relink such as, oracle, network, client etc.
The manual relinking logs can also be collected using unix redirection feature:  $ORACLE_HOME/bin/relink all >> relink.out

5. Executing "relink all" will reset the ownership and permission for root owned files. After "relink all", it is recommended to  change the ownership and permission back. (Note : 1555453.1). So, check the permission and ownership of the below files :

# chown root $ORACLE_HOME/bin/oradism
# chmod 4750 $ORACLE_HOME/bin/oradism

# chown root $ORACLE_HOME/bin/extjob
# chmod 4750 $ORACLE_HOME/bin/extjob

# chown root $ORACLE_HOME/rdbms/admin/externaljob.ora
# chmod 640 $ORACLE_HOME/rdbms/admin/externaljob.ora

# chown root $ORACLE_HOME/bin/jssu
# chmod 4750 $ORACLE_HOME/bin/jssu

# chown root $ORACLE_HOME/bin/nmb
# chmod 4710 $ORACLE_HOME/bin/nmb

# chown root $ORACLE_HOME/bin/nmhs
# chmod 4710 $ORACLE_HOME/bin/nmhs

# chown root $ORACLE_HOME/bin/nmo
# chmod 4710 $ORACLE_HOME/bin/nmo


5 comments:

  1. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle Fusion Financials and Oracle Fusion Procurement . Actually I was looking for the same information on internet for Oracle Fusion Manufacturing , Oracle APEX , Oracle Financials Cloud and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can check more aboutOracle Fusion Supply Chain Management Cloud , Oracle HCM Cloud , Oracle Project Portfolio Management (PPM) Cloud , Oracle Cloud Applications to better understand

    ReplyDelete

  2. Iam so thrilled because of finding your alluring website here.Actually i was searching for Oracle DBA.Your blog is so astounding and informative too..Iam very happy to find such a creative blog. Iam also find another one by mistake while am searching the same topicOracle APEX.Thank you soo much..

    ReplyDelete

  3. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here .Same as your blog i found another one Oracle Project Portfolio Management Cloud . Actually I was looking for the same information on internet for Oracle PPM and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.

    ReplyDelete

  4. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here .Same as your blog i found another one Oracle Project Portfolio Management Cloud . Actually I was looking for the same information on internet for Oracle PPM and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.

    ReplyDelete