Posted by: Monish | January 5, 2015

How to change the default Listener in 12c ASM

Please note that the steps need to be done before the default listener is dropped/removed. If not then the default listener need to be added and then new listener name needs to be configured.

 

Add the new listener:

srvctl add listener -l L_HOSTNAME -p TCP:1527 -o /oracle/GRID/121_2

 

Check the status if the service is added


[oracle@HOSTNAME admin]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       HOSTNAME                 STABLE
ora.LISTENER.lsnr
               OFFLINE OFFLINE      HOSTNAME                 STABLE
ora.L_HOSTNAME.lsnr
               ONLINE  ONLINE       HOSTNAME                 STABLE
ora.RECO.dg
               ONLINE  ONLINE       HOSTNAME                 STABLE
ora.asm
               ONLINE  ONLINE       HOSTNAME                 Started,STABLE
ora.ons
               OFFLINE OFFLINE      HOSTNAME                 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.xyz.db
      1        ONLINE  ONLINE       HOSTNAME                 Open,STABLE
ora.cssd
      1        ONLINE  ONLINE       HOSTNAME                 STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.evmd
      1        ONLINE  ONLINE       HOSTNAME                 STABLE
--------------------------------------------------------------------------------

 

Modify with the new value:

[oracle@HOSTNAME admin]$ srvctl modify asm -l L_HOSTNAME
[oracle@HOSTNAME admin]$ srvctl config asm
ASM home: <CRS home>
Password file: +DATA/orapwasm
ASM listener: L_HOSTNAME
Spfile: +DATA/ASM/ASMPARAMETERFILE/registry.253.877930002
ASM diskgroup discovery string:
[oracle@HOSTNAME admin]$

 

Remove the old listener

[oracle@HOSTNAME admin]$ srvctl remove listener -l LISTENER

 

Check the status

[oracle@HOSTNAME admin]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       HOSTNAME                 STABLE
ora.L_HOSTNAME.lsnr
               ONLINE  ONLINE       HOSTNAME                 STABLE
ora.RECO.dg
               ONLINE  ONLINE       HOSTNAME                 STABLE
ora.asm
               ONLINE  ONLINE       HOSTNAME                 Started,STABLE
ora.ons
               OFFLINE OFFLINE      HOSTNAME                 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.xyz.db
      1        ONLINE  ONLINE       HOSTNAME                 Open,STABLE
ora.cssd
      1        ONLINE  ONLINE       HOSTNAME                 STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.evmd
      1        ONLINE  ONLINE       HOSTNAME                 STABLE
--------------------------------------------------------------------------------

 

Crosscheck the ASM configuration

[oracle@HOSTNAME admin]$ srvctl config asm
ASM home: <CRS home>
Password file: +DATA/orapwasm
ASM listener: L_HOSTNAME
Spfile: +DATA/ASM/ASMPARAMETERFILE/registry.253.877930002
ASM diskgroup discovery string:
[oracle@HOSTNAME admin]$
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories