ORA-30372解决方法
11G 建立較低版本的materialized view時,如果較低版本的Oracle又用VPD(Virtual Private Database),則會產生ORA-30372 error
Solution:
1) 網路上普遍的版本
create materialized view mv1
refresh fast with rowid USING TRUSTED CONSTRAINTS
as
select * from table2@inst2;
2) 自己找到的solution(感覺是去避掉bug,因為disable policy/drop policy 都不行避掉ora-30372 source DB=Oracle 9i on Windows)
在source DB的另一個schema(比如yyy),
create or replace view zzz
as
select * from xxx.zzz;
在target
DB
,
create database link www
connect to yyy identified by uuu
using vvv;
create materialized view zzz
refresh complete
start with sysdate next to_char(sysdate+1)
as
select * from zzz@www;
沒有留言:
張貼留言