自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

在Oracle目的數(shù)據(jù)庫上,創(chuàng)建dblin的方案

數(shù)據(jù)庫 Oracle
下面的文章主要是對Oracle目的數(shù)據(jù)庫的實(shí)際應(yīng)用的描述,其中包括如何在Oracle目的數(shù)據(jù)庫中,來創(chuàng)建dblin,以及 創(chuàng)建快照的實(shí)際操作方案的描述。

你是否對獲得Oracle 快照及dblink實(shí)際操作感到十分頭疼?如果是這樣子的話,以下的文章將會給你相應(yīng)的解決方案,以下的文章主要是介紹在Oracle目的數(shù)據(jù)庫上,創(chuàng)建dblin方案,以下就是相關(guān)內(nèi)容的具體描述。Oracle 快照及dblink使用(兩臺服務(wù)器數(shù)據(jù)同步) 名詞說明:源——被同步的數(shù)據(jù)庫

目的數(shù)據(jù)庫

一、創(chuàng)建dblink:

1、在Oracle目的數(shù)據(jù)庫上,創(chuàng)建dblin

 

  1. drop database link dblink_anson;  
  2. Create public  
  3. database link dblink_anson  
  4. Connect to lg identified by lg using 'SDLGDB';  

 

源數(shù)據(jù)庫的用戶名、密碼、服務(wù)器名k

二、創(chuàng)建快照:

1、在源和目的數(shù)據(jù)庫上同時(shí)執(zhí)行一下語句,創(chuàng)建要被同步的表

 

  1. drop table tb_anson;  
  2. create table tb_anson(c1 varchar2(12));  
  3. alter table tb_anson add constraint pk_anson primary key (C1);  

 

2、在目的數(shù)據(jù)庫上,測試dblink

 

  1. select * from tb_anson@dblink_anson;  
  2. select * from tb_anson;  

 

3、在Oracle目的數(shù)據(jù)庫上,創(chuàng)建要同步表的快照日志

 

  1. Create snapshot log on tb_anson; 

4、創(chuàng)建快照,快照(被同步(源)數(shù)據(jù)庫服務(wù)必須啟動)

 

  1. Create snapshot sn_anson as select * from tb_anson@dblink_anson; 

5、設(shè)置快照刷新時(shí)間

 

  1. Alter snapshot anson refresh fast Start with 
    sysdate+1/24*60 next sysdate+10/24*60; 

Oracle自動在1分鐘后進(jìn)行第一次快速刷新,以后每隔10分鐘快速刷新一次

 

  1. Alter snapshot anson refresh complete Start with 
    sysdate+30/24*60*60 next sysdate+1; 

Oracle自動在30鈔后進(jìn)行第一次完全刷新,以后每隔1天完全刷新一次

6、手動刷新快照

 

  1. begin  
  2. dbms_refresh.refresh('"CS"."SN_ANSON"');  
  3. end;  

 

以上的相關(guān)內(nèi)容就是對Oracle目的數(shù)據(jù)庫的相關(guān)內(nèi)容的介紹,望你能有所收獲。

【編輯推薦】

  1. 成為成功Oracle DBA的六個(gè)必備思想
  2. Oracle數(shù)據(jù)庫的安全,PL/SQL的SQL注入
  3. Oracle索引整理的詳細(xì)描述
  4. Oracle 10G for linux常用命令淺析
  5. Oracle數(shù)據(jù)庫中歸檔進(jìn)程ARCH的詳細(xì)闡述
責(zé)任編輯:佚名 來源: 博客園
相關(guān)推薦

2010-05-06 09:30:16

Oracle創(chuàng)建數(shù)據(jù)庫

2009-06-16 10:25:13

Oracle數(shù)據(jù)庫

2015-07-23 17:02:55

oracle創(chuàng)建數(shù)據(jù)庫

2011-04-11 13:19:41

Oracle數(shù)據(jù)庫

2011-04-01 13:21:26

SQL ServerOracle數(shù)據(jù)庫查詢優(yōu)化

2010-11-19 10:38:26

Oracle XE自帶

2011-08-16 19:11:15

Oracle數(shù)據(jù)庫創(chuàng)建Schema

2010-04-28 16:37:31

Oracle數(shù)據(jù)字典

2017-05-18 10:44:49

MACDockerOracle

2011-08-09 14:54:01

OracleDATABASE LI

2011-02-28 10:57:56

2011-08-02 17:06:29

Oracle遠(yuǎn)程數(shù)據(jù)庫創(chuàng)建DB Link

2010-05-05 14:13:52

Oracle數(shù)據(jù)

2010-03-31 19:34:03

Oracle數(shù)據(jù)庫

2010-05-04 14:20:47

Oracle創(chuàng)建數(shù)據(jù)庫

2010-01-14 17:23:29

CentOS Orac

2010-03-18 14:39:55

Python數(shù)據(jù)庫連接

2010-07-22 11:17:52

SQL Server數(shù)

2010-02-01 10:10:41

Oracle數(shù)據(jù)庫優(yōu)化

2010-04-22 11:58:00

Oracle數(shù)據(jù)庫
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號