oracle current session details 1

oracle current session details

SELECT sys_context('USERENV', 'SID') FROM DUAL;

Here is what the above code is Doing:
1. We’re creating a connection to the database.
2. We’re creating a cursor object.
3. We’re executing the query.
4. We’re fetching the result.
5. We’re printing the result.
6. We’re closing the cursor.
7. We’re closing the connection.

Similar Posts