|
上面的写错了
SQL> select privilege,table_name,owner from dba_tab_privs where grantee='XXX';
PRIVILEGE TABLE_NAME OWNER
------------------------------ ------------------------------ ------------------------------
SELECT EMP SCOTT
SQL> conn xxx/owen
已连接。
SQL> create or replace trigger tr_emp
2 after update on scott.emp
3 begin
4 dbms_output.put_line('Update Emp Now');
5 end;
6 /
触发器已创建
SQL> conn xxx/owen
已连接。
SQL> update scott.emp set sal=1000;
update scott.emp set sal=1000
*
第 1 行出现错误:
ORA-01031: 权限不足 |
|