有一个上级oracle数据库,没有管理权限的,主要是供我们查询用的。
在本地,我们自己建了一个oracle数据库。
对上机数据库中的一些表数据想要导入到本地的oracle数据库,而且最好可以间隔一定时间(如10分钟)同步一次。有没有比较高效的办法?
3X
在本地,我们自己建了一个oracle数据库。
对上机数据库中的一些表数据想要导入到本地的oracle数据库,而且最好可以间隔一定时间(如10分钟)同步一次。有没有比较高效的办法?
3X
1. 在本地建服务器的DBlink SQL>create public database link dvd connect to system identified by system using 'orcl10g';
Oracle DB Link
http://user.qzone.qq.com/251097186/blog/12469483032. 用Merge Into写存储过程来同步表的数据Oracle merge into 的用法详解实例
作用:merge into 解决用B表跟新A表数据,如果A表中没有,则把B表的数据插入A表;
语法:
MERGE INTO [your table-name] [rename your table here]
USING ( [write your query here] )[rename your query-sql and using just like a table]
ON ([conditional expression here] AND [...]...)
WHEN MATHED THEN [here you can execute some update sql or something else ]
WHEN NOT MATHED THEN [execute something else here ! ]Oracle Merge Into 的用法详解实例
http://user.qzone.qq.com/251097186/blog/12504889753. 用Oracle Job,定时的来执行存储过程..
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'ANALYZEDB;'
,next_date => to_date('26-08-2009 06:00:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'trunc(sysdate + 7) + 6/24'
,no_parse => FALSE
);
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;Oracle dbms_job package 用法小结
http://user.qzone.qq.com/251097186/blog/1251107462
物化视图怎么使用?
majy (天太黑) 大师,你能说点详细点吗?