Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Materialized view not refreshing

820011Apr 12 2011 — edited Apr 12 2011
I have a materialized view that was created with syntax below. I have tried the following to refresh without success. The last DDL is last friday (when I created the materialized view) and the data is stale. What am I doing wrong?

BEGIN
DBMS_SNAPSHOT.REFRESH(
LIST => 'schema.MV'
,PUSH_DEFERRED_RPC => TRUE
,REFRESH_AFTER_ERRORS => FALSE
,PURGE_OPTION => 1
,PARALLELISM => 0
,ATOMIC_REFRESH => TRUE
,NESTED => FALSE);
END;

or

exec DBMS_MVIEW.REFRESH (list=>'schema.MV',method=>'?');

or

exec DBMS_MVIEW.REFRESH (list=>'schema.MV',method=>'C');


CREATE MATERIALIZED VIEW MV
TABLESPACE TBLSP
PCTUSED 0
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
)
NOCACHE
LOGGING
NOCOMPRESS
NOPARALLEL
BUILD IMMEDIATE
REFRESH FORCE ON DEMAND
WITH PRIMARY KEY
AS
SELECT * FROM schema.table@dblink;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2011
Added on Apr 12 2011
1 comment
114 views