Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
How can you prevent the users logging in through tools like TOAD or SQL Navigator or PLSQL Developer..?
CREATE OR REPLACE TRIGGER RESTRICT_TOOL
AFTER LOGON ON DATABASE
DECLARE
L_TOOL V$SESSION.PROGRAM%TYPE;
BEGIN
SELECT PROGRAM
INTO L_TOOL
FROM V$SESSION
WHERE AUDSID = USERENV('SESSIONID')
AND AUDSID != (SELECT AUDSID
FROM V$SESSION
WHERE USERNAME='SYS');
IF UPPER(L_TOOL) LIKE '%TOAD%'
OR UPPER(L_TOOL) LIKE '%SQLNAV%'
OR UPPER(L_TOOL) LIKE '%PLSQLDEV%' THEN
RAISE_APPLICATION_ERROR(-20008
END IF;
END;
Related Answered Questions
Related Open Questions