Tracing session’s hostname longer than 8 characters


Sometimes you like to find out the hostname/IP address the sessions that came from.
onstat -g ses only display 8 characters out the hostname.
Use below query to retrive the hostname direct from sysmaster database :-
# dbaccess sysmaster -
SQL> select sid, username, hostname from syssessions where sid=session_id

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: