I'm researching the connection methods for an Oracle 12c database and I understand the difference between an SID and Service Name, but I cannot figure out where the service name is defined or how to change it.
Presumably it was named the same as the SID I typed in during installation, but can it be changed post-installation? Is there a configuration file where that is done?
Thanks in advance!
Best Answer
Understanding Database Services
You can find service information in ALL_SERVICES.
You can manage services with DBMS_SERVICE.
In an Oracle Restart or clustered environment, you can manage services with srvctl, which uses
DBMS_SERVICE
in the background.No, you should not use the
service_names
parameter. That should be left to maintained by the above.The default services should not be used by clients, and you should always create your own service(s) with the required properties.
Default Service Connections
The above is about RAC from the RAC documentation, but it is true for single instance environments as well.