Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> 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_01C258E2.15640CD2
Content-Type: text/plain;
charset="iso-8859-1"
Select sid
from v$msystat
where rownum = 1
Gary Kirsh
Next Extent Consulting
-----Original Message-----
From: JOE TESTA [mailto:JTESTA_at_longaberger.com]
Sent: Tuesday, September 10, 2002 11:58 AM
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
------_=_NextPart_001_01C258E2.15640CD2
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META content="MSHTML 5.50.4916.2300" name=GENERATOR></HEAD> <BODY style="MARGIN-TOP: 2px; FONT: 10pt Times New Roman; MARGIN-LEFT: 2px"> <DIV><SPAN class=468365215-10092002>Select sid</SPAN></DIV> <DIV><SPAN class=468365215-10092002>from v$msystat</SPAN></DIV> <DIV><SPAN class=468365215-10092002>where rownum = 1</SPAN></DIV> <DIV><SPAN class=468365215-10092002></SPAN> </DIV> <DIV><SPAN class=468365215-10092002></SPAN> </DIV> <DIV><SPAN class=468365215-10092002>Gary Kirsh</SPAN></DIV><DIV><SPAN class=468365215-10092002>Next Extent Consulting</SPAN></DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
![]() |
![]() |