Oracle Listener mess -


being newbie oracle 12c messed network setup while modifying memory_target setting, weird know happened somehow.

the sid=oradb2 today listened on 1538 of host oracle12c.mydomain.com nicely. not. , don't know how port 1539 came picture. hope can me.

here $oracle_home/network/admin/listener.ora file:

listener1 =   (description_list =     (description =       (address = (protocol = tcp)(host = oracle12c.mydomain.com)(port = 1538))     )   )  listener =   (description_list =     (description =       (address = (protocol = tcp)(host = oracle12c.mydomain.com)(port = 1539))       (address = (protocol = ipc)(key = extproc1521))     )   ) 

here $oracle_home/network/admin/tnsnames.ora file

oradb2 =    (description =     (address = (protocol = tcp)(host = oracle12c.omilia.com)(port = 1539))     (connect_data = (server = dedicated) (service_name = oradb2))   ) listener_oradb2 = (address = (protocol = tcp)(host = oracle12c.omilia.com)(port = 1538)) listener_oradb1 = (address = (protocol = tcp)(host = oracle12c.omilia.com)(port = 1538))  

now contacting oradb2 sid via jdbc on port 1539 gives me ora-12505 error, , port 1538 not listening.

tnsping oradb2 gives

attempting contact (description = (address = (protocol = tcp)(host = oracle12c.mydomain.com)(port = 1539)) (connect_data = (server = dedicated) (service_name = oradb2))) ok (10 msec) 

the /home/oracle/app/oracle/admin/oradb2/scripts/init.ora file contains line

local_listener=oradb2 

add (sid = oradb2) connect_data block in oradb2 tns entry:

your listener entry should this:

oradb2 =     (description_list =       (description =         (address_list =            (address =                (protocol = tcp)               (host = oracle12c.mydomain.com)               (port = 1539)             )          )       )       (connect_data =          (sid = oradb2)       )     ) 

and in tnsnames.ora put this:

oradb2 =    (description =     (address =         (protocol = tcp)        (host = oracle12c.omilia.com)        (port = 1539)     )     (connect_data =         (sid = oradb2)     )   ) 

you can make port whatever want here. make sure make same in both listener , tnsnames entry.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -