Get Oracle HOST_NAME and SERVICE_NAME via SQL

Problem

  • You need the HOST_NAME and SERVICE_NAME for your database access

Solution

Query HOST_NAME

SELECT host_name FROM v$instance;

Query SERVICE_NAME

SELECT value FROM v$parameter WHERE name like ‘%service_name%’;

Fin.

 

Advertisements

One thought on “Get Oracle HOST_NAME and SERVICE_NAME via SQL

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s