Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to stop access to prod instance ...
Raj,
You don't say what version, but in 8i you should be able to use a database-level trigger at LOGON and the SYS_CONTEXT function to check the client info. If you can't use SYS_CONTEXT, you can always query V$SESSION matching USERENV('SESSIONID') to the AUDSID column to get the PROGRAM column to verify access by user, osuser, and client program. e.g.:
SELECT program
FROM SYS.V_$SESSION WHERE audsid = USERENV('SESSIONID');
Not having tried this, you may have to grant explicit access on V_$SESSION because it's accessed from within the DB trigger (roles are not enabled in procedures, right?). Try it! ;)
Pre-8i, you *might* be able to obfuscate the login by changing the port on the listener (from 1521 to something else) and adding a local TNSNAMES.ORA, but I'm not sure how you'd handle the client side if you want Forms, but not TOAD. Good luck! :)
Rich Jesse System/Database Administrator Rich.Jesse_at_qtiworld.com Quad/Tech International, Sussex, WIUSA -----Original Message-----
How does one stop access to prod instance by any product other than supplied homegrown Forms application?
I mean no sqlplus, toad, tora and similar tools and their renamed derivatives?? All this needs to be done for all users incl developers except DBAs.
Thanks in advance
Raj
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jesse, Rich
INET: Rich.Jesse_at_qtiworld.com
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: ListGuru_at_fatcity.com (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). Received on Fri Jan 04 2002 - 10:58:19 CST