In Oracle, it is possible to get a database server host name using a simple SQL query.
In this note i will show how to SELECT the Oracle database server host name you’re currently connected to, using the SQL query that doesn’t require any special permissions.
I will also show how to get the database name, the current schema/user and the name and IP address of the host machine from which the client has connected. (more…)