SQL> create materialized view log on zdnzf_info_zkr@shuangqiao with primary key
  2  /
 
create materialized view log on zdnzf_info_zkr@shuangqiao with primary key
 
ORA-00949: illegal reference to remote database谢谢!

解决方案 »

  1.   

    select * from zdnzf_info_zkr@shuangqiao ;
    有结果么?
    提示你是远程数据库的表访问不到,
      

  2.   

    不能给远程数据库上的表,在当前数据库上建立物化视图。
    即使在当前数据库上,给远程数据库的表建立了SYNONYM,也不行。
      

  3.   

    ORA-00949 illegal reference to remote database(非法引用远程数据库)Cause: This is an internal error message not usually issued.Action: Contact Oracle Support Services.
      

  4.   

    知道了,这样建立远程物化视图(不用创建 log):
    create materialized view mv_table 
    refresh with primary key 
    as select * from zdnzf_info_zkr@shuangqiao;