I created a DB link to another server, and developed an SQL which queries a view through the DB Link.
This works ok, but when I try to create a materialized view with the query, I always get:
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT_UTL", line 960
ORA-06512: at line 1
The statement looks like this:
As i said .. I can run the SQL.. the DB link is created like so:
This works ok, but when I try to create a materialized view with the query, I always get:
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT_UTL", line 960
ORA-06512: at line 1
The statement looks like this:
Code:
CREATE MATERIALIZED VIEW DWH.MERGESALESFIGURES_JS_MV
TABLESPACE DWHTAB
CACHE
NOCOMPRESS
PARALLEL ( DEGREE DEFAULT INSTANCES 1 )
BUILD IMMEDIATE
REFRESH COMPLETE
START WITH TO_DATE('19-Nov-2008 23:00:00','dd-mon-yyyy hh24:mi:ss')
NEXT sysdate + 1
AS
SELECT
Customer_Id,
Customer_Name,
Parent_Cust_Name,
<snip>
parent_id,
acctmgr_id,
acctmgr
from mtms.meregesalesfigures_js_v@PROD_DB;
As i said .. I can run the SQL.. the DB link is created like so:
Code:
create public database link "PROD_DB"
connect to MTMS
identified by "blah"
using 'blah';