Question - service_names in RAC/Exadata/Cloud having full domain name - can that be disabled somehow?

  • From: Chris Taylor <christopherdtaylor1994@xxxxxxxxx>
  • To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 29 Aug 2022 12:02:09 -0400

So this is a curiosity question mainly.

In RAC/Exadata/Cloud (and I'm not sure which is the cause), our service
names always have the domain appended.

So the service_names for TNS end up being service_name.<domain>

Which, for a failover entry in TNS, makes the service names all very unique
depending on where the failover/standby hosts are as those service_names
will have a different domain.

Is there somewhere to have "short" service_names that don't include domain
name when using srvctl to add the service?

Or is it the way we're adding the service_name that's allowing Oracle to
setup the service with domain name?

Example the way we use it:

srvctl add service -d <db_name> -s <short_svc_name> -pdb
<pdb_name>  -preferred <preferred instance> -available <avail instance>

I'm wondering if we should use quotes around the service name on creation
or something to get rid of the domain getting appended.

(I haven't searched this yet but will do so as well but wanted to ask here)

Thanks,
Chris

Other related posts: