Skip to Main Content
  • Questions
  • How to identify the clients are connection using ip or hostname through sqldeveloper

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, esurance insurance.

Asked: August 03, 2017 - 3:03 am UTC

Last updated: August 03, 2017 - 4:22 am UTC

Version: 11.2.0.4

Viewed 1000+ times

You Asked

How to identify the clients are connection using is using ip or hostname for connection?

Any view to identify the user is using oracle sqldeveloper basic connection type or TNS connection type?

and Connor said...

I dont think so, because ultimately a tns entry is just a shorthand mapping to a database service anyway. For example, whilst I can:

connect scott@db122

but I can also do:

connect scott@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1821))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=db122)))

I had a look at v$session_connect_info, and you can *some* information on the type of connection, but I dont think you'll be able to distinguish between the two options you're referring to.

Others welcome to add their input.

Is this answer out of date? If it is, please let us know via a Comment