惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
C
Check Point Blog
M
MIT News - Artificial intelligence
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
D
Docker
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
H
Help Net Security
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Cloudbric
Cloudbric
Blog — PlanetScale
Blog — PlanetScale
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
N
News | PayPal Newsroom
V2EX - 技术
V2EX - 技术
H
Heimdal Security Blog
S
Security @ Cisco Blogs
V
Visual Studio Blog
The Last Watchdog
The Last Watchdog
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
爱范儿
爱范儿
博客园 - 聂微东
S
Securelist
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CXSECURITY Database RSS Feed - CXSecurity.com
V
Vulnerabilities – Threatpost
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
O
OpenAI News
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - Shark Xu

我的英雄梦和家国情怀——写于2021年国庆前夕 幻方算法 自己制作的粉碎机批处理程序 Ubuntu 16.10 server 相关 android sdk manager 假如不能从官方下载或者很慢,可以参照下面的网址 HttpModule生命周期示意图 Windows 2012 安装 .net framework 3.5 在Windows 2008/2008 R2 上配置IIS 7.0/7.5 故障转移集群 11G RAC 中 OCR 及Voting Disk 相关操作 RHEL 6 或者 Oracle Linux 6, 不关机识别新添加的scsi硬盘 在Window下安装Oracle 12C Cloud Control Agent 如何修改 EM12c 中 SYSMAN 用户的密码? 在Oracle Linux Server release 6.4下配置ocfs2文件系统 whoami 和 Who am i 手动升级11.2.0.1的rac数据库到11.2.0.4 oracle 11G rac 11.2.0.1 打补丁9413827 ORACLE 11.2.0.4 OCR VOTING DISK 模拟恢复场景 Oracle Enterprise Linux 6.4 下配置vncserver Oracle Enterprise Linux 6.4 下挂载ISCSI 设备
oracle 11g 使用物化视图远程增量刷新数据
Shark Xu · 2014-03-06 · via 博客园 - Shark Xu

① 源数据库建立物化视图日志

drop MATERIALIZED VIEW LOG ON ORG_BASEINFO
/

CREATE MATERIALIZED VIEW LOG ON ORG_BASEINFO
with rowid,PRIMARY KEY
including new values
/
drop MATERIALIZED VIEW LOG ON ORG_MOREINFO
/
CREATE MATERIALIZED VIEW LOG ON ORG_MOREINFO
with rowid,PRIMARY KEY
including new values
/

② 在目标库上建立数据库连接

Create Database Link   DBLINK_NT_EPORT_RIGHTS

③ 在目标库上建立物化视图,数据来源于远程数据表

DROP materialized view MV_ORG_BASEINFO
/
create materialized view MV_ORG_BASEINFO refresh fast on DEMAND as select id,
org_name_cn,
org_name_scn,
org_code,
bus_lic_code,
tax_code,
address_cn,
org_property,
org_type,
legal_name,
legal_phone,
cert_type,
cert_no,
sheng,
shi,
quxian,
area_code,
logo,
order_num,
reg_type,
check_state,
check_adv,
check_succ_time,
remark,
create_user,
create_user_id,
create_date,
update_user,
update_user_id,
update_date,
area_name,
state,
fjtd_type,
org_star,
copy_type,
settle_pattern,
org_code1,
decl_flag,
decl_pass,
sname,
complete_state,
orggrade,
inspectionuser,
inspectionpassword,
inspectionchannel,
corp_code
from ORG_BASEINFO@DBLINK_NT_EPORT_RIGHTS
/
BEGIN dbms_mview.refresh('MV_ORG_BASEINFO','F');END;
/

DROP materialized view MV_ORG_MOREINFO
/
create materialized view MV_ORG_MOREINFO refresh fast on DEMAND
as
select org_id,
org_name_en,
ie_enter_code,
ic_code,
zip_code,
address_en,
org_url,
bank,
bank_acount,
reg_mon,
custom_no,
inspect_no,
custom_type,
custom_code,
custom_limittime,
business_scope,
ic_code_no
from ORG_MOREINFO@DBLINK_NT_EPORT_RIGHTS
/
BEGIN dbms_mview.refresh('MV_ORG_MOREINFO','F');END;
/

④ 在目标库上创建计划任务,定时增量刷新物化视图

declare
job_id number;
begin
DBMS_JOB.submit(job =>job_id,what => 'begin dbms_mview.refresh(''MV_ORG_BASEINFO'',''F'');dbms_mview.refresh(''MV_ORG_MOREINFO'',''F'');end;',next_date => sysdate,interval => 'sysdate + 10.0/(60*60*24)');
COMMIT;
end;
/