Few weeks back my OS vendor had to apply apply Solaris patches on my DB server. Since most of the OS patches modifies the underlying libraries which are shared with oracle, i had to relink the Oracle Home of RDBMS and Agent home.
Though i had Oracle Clusterware installed on ther Server, there is noting like relink as ORA_CRS_HOME are shiphomes that does use the shared libraries.
My environment is Oracle 10gR2 on Soalris SPARC 64bit
For RDBMS 10gR2:
1-> this command will log everything that happens on the terminal into the file relink_ora_home_node1.log until ‘exit’
2-> relink oracle
3-> to come out of the ‘script’ command
For Agent home 10gR2
3]/u01/app/oracle/product/agent10g/myjpsuolicdbd01/bin/emctl status agent
4]/u01/app/oracle/product/agent10g/myjpsuolicdbd01/bin/emctl stop agent
make -f ins_emagent.mk agent
cd $ORACLE_HOME (agent home)
7]/u01/app/oracle/product/agent10g/myjpsuolicdbd01/bin/emctl start agent