Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Oracle Service Name

Tags:

oracle

I have an Oracle database on my network which I am able to connect to with Oracle SQL Developer, using hostname, port, username, password and the SID.

I need to connect another application (Quantum Gis), however it uses the Service Name instead of the SID.

Is there any way for me to determine the SERVICE_NAME of the database when I am connected in SQL Developer via the SID?

I do not have access to the server and have no local tnsnames.ora or similar.

like image 469
Anders Jakobsen Avatar asked Mar 14 '14 08:03

Anders Jakobsen


People also ask

What is my service name in oracle?

Oracle SID is the unique name that uniquely identifies your instance/database, whereas the Service name is the TNS alias that you give when you remotely connect to your database, and this Service name is recorded in tnsnames.

How do I find my DB service name?

select name from v$database; will give DB NAME. select instance_name from v$instance; will give you SID name. select name from v$database; will give DB NAME. mentioned.

What is service name in oracle SQL?

SERVICE_NAMES specifies one or more names by which clients can connect to the instance. The instance registers its service names with the listener. When a client requests a service, the listener determines which instances offer the requested service and routes the client to the appropriate instance.

Is service name is database name in oracle?

Database name identifies database = database files on disk. Service name identifies database instance for Oracle Net i.e. for remote access to database instance.


1 Answers

Found here, no DBA : Checking oracle sid and database name

select * from global_name; 
like image 176
Goufalite Avatar answered Oct 11 '22 08:10

Goufalite