Materialized view for different oracle schema results in ORA-1208 -


i want create on commit materialized oracle view pointing table different schema within same database instance.

schema (batch):

create table "batch"."batch_config"     (    "key" varchar2(100 byte),      "value" varchar2(4000 byte),      "comments" varchar2(4000 byte),      "updated_by" varchar2(25 byte),      "updated" timestamp (6),       constraint "pk_batch_config" primary key ("key")    );  create materialized view log on batch_config; grant on batch_config profile; 

schema (profile):

create materialized view mv_batch_config refresh fast on commit         select * batch.batch_config; 

got error:

sql error: ora-12018: following error encountered during code generation "profile"."mv_batch_config" ora-00942: table or view not exist 12018. 0000 -  "following error encountered during code generation \"%s\".\"%s\"" *cause:    refresh operations indicated materialized view            not regenerated due errors. *action:   correct problem indicated in following error messages ,            repeat operation. 

what issue ? able view query (from profile schema) select * batch.batch_config

ok got solution.

i have grant select on mview log also.

grant select on mlog$_batch_config profile;  

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -