High Availability Data Guard, Sharding and Global Data Services (MOSC)

MOSC Banner

SQlplus connectivity with incorrect hostname

Hi
I have a TNS entry something like this:

ABCD =
  (DESCRIPTION_LIST = (FAILOVER = yes)(LOAD_BALANCE = no)
    (DESCRIPTION = (LOAD_BALANCE = yes)
      (ADDRESS = (PROTOCOL= TCP) (HOST= stdby_host) (PORT = 1721))
      (CONNECT_DATA = (SERVICE_NAME = HRMS_RO)))
    (DESCRIPTION = (LOAD_BALANCE = yes)
      (ADDRESS = (PROTOCOL= TCP) (HOST= primary_scan) (PORT= 1721))
      (CONNECT_DATA = (SERVICE_NAME = HRMS_RO)))
  )

Assumption: HRMS_RO service is up and running on both Standby and Primary. I stopped the HRMS_RO service on the primary service and edited the TNS file to replace the actual standby host name (stdby_host) in the above TNS with a non-existent host and try connecting, it connects successfully. I was expecting it to say TNS-12154 or something similar since the HRMS_RO is down on Primary and the Standby host is non-existent.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center