Confusion of Service Name in Oracle Networking in 12c,19c, 21c,23c Oracle Database
********For Connection through SQL Developer (or any IDE) using service name*************
Let Suppose,
sid,db_name,db_unique_name,instance_name = oradb (are same by default installation in Single Instances)
service_names (in DB) =oradb (by default)
Suppose, we set service names (in DB) = ora
1. Service name inside oracle database.
show parameter service_names;
2. Global names should be same in case of Static Listener.
Service name = "ora" will be used
******************For Connection through "tnsnames.ora" alias name *********************
Let Suppose,
SID = oradb
service_names (in DB) =oradb (by default)
Suppose, we set service names (in DB) = ora
We can give Alias name in tnsnames.ora file whatever like oradb, but there service name must be the ora.If we set service name in tnsnames.ora or in db. We must bounce the Listener.
For Testing TNS connection is working or not.
sqlplus system@oradb ---> Note : oradb is TNS alias name. It should not be service name.
Thank you !
Ravi J.
Comments
Post a Comment