CREATE OR REPLACE TRIGGER ip_restrict
AFTER LOGON ON DATABASE
DECLARE
v_user VARCHAR2 (30);
BEGIN
SELECT USER
INTO v_user
FROM DUAL;
IF v_user = 'SCOTT' THEN
IF SYS_CONTEXT ('USERENV', 'IP_ADDRESS') NOT IN ('IP1', 'IP2') THEN
raise_application_error (-20001, 'Access restricted for this IP');
END IF;
END IF;
END;
Halim, a Georgia Tech graduate Senior Database Engineer/Data Architect based in Atlanta, USA, is an Oracle OCP DBA and Developer, Certified Cloud Architect Professional, and OCI Autonomous Database Specialist. With extensive expertise in database design, configuration, tuning, capacity planning, RAC, DG, scripting, Python, APEX, and PL/SQL, he combines technical mastery with a passion for innovation. Notably, Halim secured 16th place worldwide in PL/SQL Challenge Cup Playoff on the year 2010.
Friday, September 11, 2009
Subscribe to:
Post Comments (Atom)
My Blog List
-
-
-
ASSM states3 weeks ago
-
UKOUG Discover 20241 month ago
-
-
-
-
-
-
-
-
Moving Sideways8 years ago
-
-
Upcoming Events...11 years ago
-
No comments:
Post a Comment