SQL> show user
USER is "SYS"
SQL> alter package sys.dbms_mview compile package;
alter package sys.dbms_mview compile package
*
ERROR at line 1:
ORA-04043: object DBMS_MVIEW does not exist
SQL> show user
USER is "SYS"
SQL> ALTER PACKAGE DBMS_MVIEW COMPILE PACKAGE;
ALTER PACKAGE DBMS_MVIEW COMPILE PACKAGE
*
ERROR at line 1:
ORA-04043: object DBMS_MVIEW does not exist
SQL> desc DBMS_MVIEW
SQL> desc DBMS_MVIEW
PROCEDURE BEGIN_TABLE_REORGANIZATION
Argument Name Type In/Out Default?
------------------------------ ----------------------- ------ --------
TABOWNER VARCHAR2 IN
TABNAME VARCHAR2 IN
PROCEDURE DROP_SNAPSHOT
Argument Name Type In/Out Default?
------------------------------ ----------------------- ------ --------
MOWNER VARCHAR2 IN
MASTER VARCHAR2 IN
SNAPSHOT DATE IN
DMBS_SNAPSHOT works...time to test a call with the synonym. If that fails then perhaps I need to recreate it.
Cannot use it. You dont need a synonym for every procedure within the package so something is still broken.
SQL> exec sys.dbms_mview.refresh('TBL_SIC');
BEGIN sys.dbms_mview.refresh('TBL_SIC'); END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SYS.DBMS_MVIEW' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> select * from dba_synonyms
where synonym_name='DBMS_MVIEW.REFRESH'; 2
no rows selected
Last edited by roadwarriorDBA; 06-15-2005 at 04:59 PM.
Originally posted by roadwarriorDBA SQL> exec sys.dbms_mview.refresh('TBL_SIC');
BEGIN sys.dbms_mview.refresh('TBL_SIC'); END;
*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'SYS.DBMS_MVIEW' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
In your last post you see that SYS does not own a object called "DBMS_MVIEW", the owner is "public"
Try it without "SYS." - as it's a public synonym you should not need to reference owner...
Bookmarks