• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Steps to relink Oracle Libraries

by admin

Oracle relink utility is used to manually relink Oracle product executables. You must set the ORACLE_HOME environment variable before executing relink. relink invokes the appropriate makefile based on the parameter passed to it.

Note: relink isn’t available, nor is it needed, on Windows platforms.

Syntax:

relink  all | oracle | network | client |
      | client_sharedlib | {interMedia | ctx}
      | precomp | utilities | oemagent | ldap

Parameters

Parameter Description
all Relinks everything that has been installed.
oracle Relinks Oracle database executable only.
network Relinks net_client, net_server, and so on.
client Relinks net_client, otrace, plsql.
client_sharedlib Relinks net_client.
{interMedia | ctx} Relinks Oracle TEXT utilities.
precomp Relinks all installed precompilers.
utilities Relinks utilities.
oemagent Relinks oemagent.
ldap Relinks LDAP/OID executable.

Examples

To relink only the Oracle database executable, run the following command:

$ relink oracle

Few Important Info on Relinking

1. Relinking concept is applicable for Unix platform only, relinking does not occur in Windows OS.
2. 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.
3. Relinking occurs automatically under these circumstances:

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

4. Relinking can also be performed manually.
5. 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”:

$ 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. 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

Filed Under: oracle

Some more articles you might also be interested in …

  1. Oracle SQL script to Show current Users and SQL being Executed
  2. How to change max_string_size value from STANDARD to EXTENDED
  3. Oracle Data Guard 12c – Creating a Physical Standby from Primary
  4. New Oracle Net features in version 12c
  5. Log/Trace files Generated during the EM Cloud Control OMS Startup
  6. Script to monitor RMAN Backup and Restore Operations
  7. Beginners Guide to Sequences in Oracle
  8. SQL: Difference between delete and truncate
  9. Empty Directories in the Flash Recovery Area (FRA) are not deleted
  10. How to Modify spfile in Oracle Database

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright