I have oracle database running on address xx.xx.xx.xx
I know login, password and initial catalog
I am trying to set up new connection in Oracle SQL Developer so I can access this database to take a look at it. In order to do that, I need to know SID or Service Name.
Long time ago I would run TNSPing.exe to get service name, but this program is not available any more. Oracle is not distributing it.
Is there a way to access this info somewhere?
If you have an OS login to the database server you can run:
lsnrctl status
to get details of what the listener is offering out. Or you can query the database itself if you can logon locally
But if you have no access other than the IP address, then you'll need to ask someone (DBA) for the service name. As Alex said, tnsping doesnt "reveal" anything, it simply tries to connect to a service name that you already have knowledge of.