Message-Id: <22528.293329@fatcity.com> From: "Lord, David - CSG" Date: Tue, 10 Sep 2002 16:35:32 +0100 Subject: RE: methodology to keep only certain programs to connect to This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C258DF.B2F30EE0 Content-Type: text/plain; charset="ISO-8859-1" Joe You can use the sys_context function to get the auditing session id - select * from v$session where audsid = sys_context('USERENV','SESSIONID'); David Lord -----Original Message----- From: JOE TESTA [mailto:JTESTA@longaberger.com] Sent: 10 September 2002 16:58 To: Multiple recipients of list ORACLE-L Subject: methodology to keep only certain programs to connect to I've been tasked to ensure only certain app programs access the database. I'm thinking on-logon trigger, check the program field from v$session. unfortunately v$session is for all sessions, i can't seem to find the view that tells me only MY info during login. I only want the sid, serial#, username and program for my just now connection to the database. Does this exist or am I going about this the wrong way? We're thinking of checking those fields to make sure sql*plus, toad, etc can't connect as a particular user(even though the password is known out in the community). any ideas would be greatly appreciated. joe ********************************************************************** This message (including any attachments) is confidential and may be legally privileged. If you are not the intended recipient, you should not disclose, copy or use any part of it - please delete all copies immediately and notify the Hays Group Email Helpdesk at email.helpdesk@hays.plc.uk Any information, statements or opinions contained in this message (including any attachments) are given by the author. They are not given on behalf of Hays unless subsequently confirmed by an individual other than the author who is duly authorised to represent Hays. A member of the Hays plc group of companies. Hays plc is registered in England and Wales number 2150950. Registered Office Hays House Millmead Guildford Surrey GU2 4HJ. ********************************************************************** ------_=_NextPart_001_01C258DF.B2F30EE0 Content-Type: text/html; charset="ISO-8859-1"
Joe
 
You can use the sys_context function to get the auditing session id -
 
  select * from v$session where audsid = sys_context('USERENV','SESSIONID');
 
David Lord
-----Original Message-----
From: JOE TESTA [mailto:JTESTA@longaberger.com]
Sent: 10 September 2002 16:58
To: Multiple recipients of list ORACLE-L
Subject: methodology to keep only certain programs to connect to

I've been tasked to ensure only certain app programs access the database.
 
I'm thinking on-logon trigger, check the program field from v$session.  unfortunately v$session is for all sessions, i can't seem to find the view that tells me only MY info during login.  I only want the sid, serial#, username and program for my just now connection to the database.
 
Does this exist or am I going about this the wrong way?
 
We're thinking of checking those fields to make sure sql*plus, toad, etc can't connect as a particular user(even though the password is known out in the community).
 
any ideas would be greatly appreciated.
 
joe
 


**********************************************************************
This message (including any attachments) is confidential and may be
legally privileged. If you are not the intended recipient, you should
not disclose, copy or use any part of it - please delete all copies
immediately and notify the Hays Group Email Helpdesk at
email.helpdesk@hays.plc.uk
Any information, statements or opinions contained in this message
(including any attachments) are given by the author. They are not
given on behalf of Hays unless subsequently confirmed by an individual
other than the author who is duly authorised to represent Hays.

A member of the Hays plc group of companies.
Hays plc is registered in England and Wales number 2150950.
Registered Office Hays House Millmead Guildford Surrey GU2 4HJ.
**********************************************************************