目的:实现远程数据库访问及其相应表的定时同步 一.远程数据库dblink的创建 select * from dba_db_links; select * from user_sys_privs;--查询用户权限 1.查看scott用户是否具备创建database link 权限 select * from user_sys_privs where privilege like upper('%DATABASE LINK%') AND USERNAME='SCOTT'; 2.授权dblink gr…
怎么理解物化视图呢,先随意拿一个建物化视图的例子看一下. create materialized view EBS_ACCOUNTS_HIERARCHY_MV refresh complete on demand as select v.flex_value, v.description, case when (sysdate between nvl(v.start_date_active, sysdate) and nvl(v.end_date_active, sysdate)) and (v…