prev next

Adding Listener to OCR in 10g RAC

Till oracle 10gR2, we dont' have option to add listener to clusterware via SRVCTL utility. So how can we add the listener in case we re-installed the clusterware after volting disk/ocr loss. As per oracle, we can use only NETCA to add the listener to OCR in case CRS is re-installed.

After CRS installation, this is what i had.

[oracle@rac1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
[oracle@rac1 ~]$

Since the listeners were already there before clusterware re-install, so remove/move the old listener.ora and tnsnames.ora files.

Node-1
[oracle@rac1 admin]$ mv tnsnames.ora tnsnames.ora.old
[oracle@rac1 admin]$ mv listener.ora listener.ora.old

Node-2
[oracle@rac2 admin]$ mv tnsnames.ora tnsnames.ora.old
[oracle@rac2 admin]$ mv listener.ora listener.ora.old

Run NETCA to create the new listener. NETCA will sometimes popup an error saying the listener with name LISTENER already exists. So, delete the existing listener (with name LISTENER) and create a new listener again.

[oracle@rac1 admin]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2

Note:- After deleting the old listener, when you try to create the new listener (with name LISTENER), NETCA will agin popup the same error that listener exists. In that case, close NETCA and invoke it again to create the listener. It will work this time.

Cheers ...!!!

-- Rishi

No comments:

Post a Comment

Review my blog

Hits since creation