Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> DBA trigger view problem
I have an user account have read access to dba_triggers table from SQLplus. However, try to compile a package with a function using the same select statement that I use in SQLplus. It gave an error.
Her is the finding:
SQL> select * from all_objects where object_name ='DBA_TRIGGERS';
OWNER OBJECT_NAME OBJECT_ID OBJECT_TYPE CREATEDLAST_DDL_
---------- ------------------------------ ---------- ------------ --------- --------- SYS DBA_TRIGGERS 799 VIEW 13-OCT-99 13-OCT-99 PUBLIC DBA_TRIGGERS 800 SYNONYM 13-OCT-99 13-OCT-99 SYSTEM DBA_TRIGGERS 1043 SYNONYM 13-OCT-9913-OCT-99 SQL> @util.sql
LINE/COL ERROR
-------- -----------------------------------------------------------------494/7 PL/SQL: SQL Statement ignored
SELECT table_name into tmp_tab_cnt
FROM dba_triggers WHERE table_name = tabname AND trigger_name like '%_EPPG_AI%' ;
What has clobber up ? The View owed by SYSTEM, the synonym owned by PUBLIC ?
Thanks for any help. Received on Sat Jul 21 2001 - 16:34:52 CDT
![]() |
![]() |