尝试使用触发器拒绝除SYSTEM之外的所有用户的访问权限。对不起,我对甲骨文很新。这会产生错误:
CREATE OR REPLACE TRIGGER t
BEFORE INSERT OR UPDATE OR DELETE ON table1
FOR EACH ROW
BEGIN
IF (SELECT SYS_CONTEXT ('USERENV', 'CURRENT_USER') FROM DUAL) != 'SYSTEM' THEN
raise_application_error(-20001,'not allowed!');
END IF;
END;