Re: Tracking JDBC clients in V$SESSION

2001-04-26 Thread SuzyV


On Unix I run 'netstat -a', count the number of SQLNet connections per remote host, 
then
compare that with the number of connections per username in v$session.  With that you 
can
kinda deduce what hosts are connected to what username.  Maybe there is a better way...


"Jesse, Rich" wrote:
> 
> So, there I am, trying to find out what client a connection to an 8.1.7 DB
> on Solaris is coming from.  Naturally, I "SELECT USERNAME, MACHINE, TERMINAL
> FROM V$SESSION;"  Lo and behold, there is a generic login for the username,
> column MACHINE in all rows contains "jdbcclient" and TERMINAL contains
> "unknown".  With SQLNet and Net8 these two columns are populated as one
> would expect.  Also, the OSUSER column is generic, so I'm not able to use
> that info.
> 
> Never having used JDBC (yet), is there a setting in the JDBC client to set
> these?  More importantly, if there is, WHY would there be such a setting?
> And how am I supposed to track this down, aside from SHUTDOWN ABORT (ick)?
> 
> TIA,
> Rich Jesse  System/Database Administrator
> [EMAIL PROTECTED] Quad/Tech International, Sussex, WI USA
> 
>   
>--
>Name: InterScan_Disclaimer.txt
>InterScan_Disclaimer.txtType: Plain Text (text/plain)
>Encoding: 7bit
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: SuzyV
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Tracking JDBC clients in V$SESSION

2001-04-23 Thread Jesse, Rich

So, there I am, trying to find out what client a connection to an 8.1.7 DB
on Solaris is coming from.  Naturally, I "SELECT USERNAME, MACHINE, TERMINAL
FROM V$SESSION;"  Lo and behold, there is a generic login for the username,
column MACHINE in all rows contains "jdbcclient" and TERMINAL contains
"unknown".  With SQLNet and Net8 these two columns are populated as one
would expect.  Also, the OSUSER column is generic, so I'm not able to use
that info. 

Never having used JDBC (yet), is there a setting in the JDBC client to set
these?  More importantly, if there is, WHY would there be such a setting?
And how am I supposed to track this down, aside from SHUTDOWN ABORT (ick)?

TIA,
Rich Jesse  System/Database Administrator
[EMAIL PROTECTED] Quad/Tech International, Sussex, WI USA




---

This message has been scanned for viruses with Trend Micro's Interscan VirusWall.