SQL Performance (MOSC)

MOSC Banner

select to_char(sysdate,'DD-MON-YY HH24:MI:SS'), count(*),machine,program,status from gv$session wher

edited Sep 1, 2015 10:08AM in SQL Performance (MOSC) 4 commentsAnswered

Dear ALL

From the below query, we used to find number of "JDBC Thin Client" connections established to our database from different machines, where machine column gives our machine names as output along other columns info.

But my requirement is instead of machine names we need machine IP's.

select to_char(sysdate,'DD-MON-YY HH24:MI:SS'), count(*),machine,program,status from gv$session where program='JDBC Thin Client' group by  program,machine,status order by 2;

Thanks in advance!!!

Regards

Narender

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center