亚洲AV无码乱码在线观看不卡|最新大伊香蕉精品视频在线|亚洲不卡av一区二区|国产美女无遮挡免费

登錄論壇 | 注冊(cè)會(huì)員 設(shè)為首頁 | 收藏本站
當(dāng)前位置 : 首頁>軟件學(xué)院>數(shù)據(jù)庫>ORACLE>正文
 
Oracle 復(fù)制方法逐步精細(xì)

http://m.yibo1263.com 2009/10/4 8:33:02  來源:東北IT網(wǎng)  編輯:東三省
 

create user mvadmin identified by

mvadmin;

begin

dbms_repcat_admin.

grant_admin_any_schema(username=> ’mvadmin’);

end;

/

grant comment any table to mvadmin;

grant lock any table to mvadmin;

grant select any dictionary to mvadmin;

2.注冊(cè)傳播方:


begin

dbms_defer_sys.register_propagator(

username => ’mvadmin’);

end;

/

3.公共數(shù)據(jù)庫連接。需要每個(gè)復(fù)制需要?jiǎng)?chuàng)建三個(gè)數(shù)據(jù)庫連接。公共數(shù)據(jù)庫連接指定數(shù)據(jù)庫的全局名稱:

 

create public database link ORACLSH using ’Oracle.shanghai.

com’;

Using子句后跟的是全局?jǐn)?shù)據(jù)庫名或者是連接字符串。

 

create public database link ORACLSH using ’(description=

(address=(protocol=tcp)(host=127.0.0.1)(port=1521))

(connect_data=(service_name=oracl)))’

4.建立清除延遲事務(wù)隊(duì)列調(diào)度作業(yè):


disconnect;

connect mvadmin/mvadmin@BJ;

begin

dbms_defer_sys.schedule_purge(

next_date => sysdate,

interval => ’/*1:hr*/ sysdate + 1’,

delay_seconds => 0,

rollback_segment => ’’);

end;


5.建立復(fù)制管理員mvadmin的數(shù)據(jù)庫連接:


create database link ORACLSH connect to proxy_bjOracle

identified by proxy_bjoralce

Connect to ... Identified by ...子句指明用什么用戶連接遠(yuǎn)程數(shù)據(jù)庫

6.建立復(fù)制調(diào)度數(shù)據(jù)庫連接作業(yè):


begin

dbms_defer_sys.schedule_push(

destination => ’ora92zjk’,interval => ’/*1:hr*/ sysdate + 1’,

next_date => sysdate,stop_on_error => false,

delay_seconds => 0,parallelism => 0);

end;

/

7.授予SHORACL用戶(對(duì)應(yīng)SHORACL方案)相應(yīng)的權(quán)限建立實(shí)體化視圖:


disconnect;

connect system/passwd@BJ;

grant alter session to crm;

grant create cluster to crm;

grant create database link to crm;

grant create sequence to crm;

grant create session to crm;

grant create synonym to crm;

grant create table to crm;

grant create view to crm;

grant create procedure to crm;

grant create trigger to crm;

grant unlimited tablespace to crm;

grant create type to crm;

grant create any snapshot to crm;

grant alter any snapshot to crm;

8.建立復(fù)制方案的數(shù)據(jù)庫連接:


disconnect;

connect SHORACL/SHORACL@BJ;

create database link ORACLSH connect to ORACL identified

by ORACL;

復(fù)制方案的數(shù)據(jù)庫連接和復(fù)制管理員的數(shù)據(jù)庫連接要和system用戶間里的對(duì)應(yīng)公共數(shù)據(jù)庫連接使用相同的名字,在調(diào)度連接時(shí)將使用公共數(shù)據(jù)庫連接中指定的數(shù)據(jù)庫全局名或者連接字符串。


9.建立實(shí)體化視圖:


disconnect;

connect mvadmin/mvadmin@BJ;

create materialized view SHORACL.CREDIT_CARD refresh fast

wit h pr imar y key as sele ct * from ORA CL.

CREDIT_CARD@ORACLSH;

@后面是數(shù)據(jù)庫連接名。如果該表沒有主鍵則使用rowid來刷新。


create materialized view SHORACL. CREDIT_CARD refresh

fast with rowid as select * from ORACL. CREDIT_CARD@ORACLSH;

10.為多個(gè)視圖建立刷新組:


begin

dbms_refresh.make (

name => ’mvadmin.sh_refresh’,list => ’’,

next_date => sysdate,interval => ’sysdate + 1’,

implicit_destroy => false,rollback_seg => ’’,

push_deferred_rpc => true,refresh_after_errors => false);

end;

本新聞共4頁,當(dāng)前在第3頁  1  2  3  4  

收藏】【打印】【進(jìn)入論壇
  相關(guān)文章:

·Oracle企業(yè)管理器增強(qiáng)對(duì)Oracle融合中間件的
·Oracle企業(yè)管理器可管理Oracle VM服務(wù)器虛擬
·新版Oracle企業(yè)管理器降低應(yīng)用管理成本
·Oracle商務(wù)智能應(yīng)用軟件推出新功能
·Oracle iGovernment即將亮相甲骨文大會(huì)
·‘芯’動(dòng)力,新極限 甲骨文在沈陽發(fā)布全新O
·教你簡(jiǎn)便實(shí)現(xiàn)Oracle數(shù)據(jù)庫文件移動(dòng)方法
·Oracle數(shù)據(jù)庫并行處理技術(shù)詳解
·關(guān)于Oracle數(shù)據(jù)庫備份與恢復(fù) 
·Oracle密碼文件使用與維護(hù)技巧
·Oracle數(shù)據(jù)庫管理員經(jīng)常使用的表和視圖

 
 
 
最新文章

搶先蘋果,消息稱英特爾芯片采用臺(tái)積電
三星揭曉業(yè)內(nèi)首款單條 512GB DDR5 內(nèi)存
vivo 高端新機(jī)爆料:120Hz 曲面屏 + 天
vivo Y21 在印度正式上市:Helio P35 芯
微星推出 GeForce RTX 3080 Sea Hawk X
消息稱三星 Galaxy Tab S8 系列平板將放
機(jī)械革命推出 F6 輕薄本:16 英寸全面屏
英特爾 12 代 Alder Lake CPU 600 系列
雷軍:向小米手機(jī) 1 首批用戶每人贈(zèng)送價(jià)
小米李明談?dòng)脩舯惶叱?nbsp;MIUI 測(cè)試版:大

推薦文章
1
2
3
4
5
6
7
8
9
10
叛逆嫩模性感寫真
宮如敏不雅照瘋傳 看張馨予韓一菲獸獸誰
不懼孔子搶位 阿凡達(dá)游戲影音配置推薦
2015第十七屆“東北安博會(huì)”火爆招商
第十六屆東北國(guó)際公共安全防范產(chǎn)品博覽
2016年第五屆中國(guó)國(guó)際商業(yè)信息化博覽會(huì)
2016年第五屆中國(guó)國(guó)際POS機(jī)及相關(guān)設(shè)備展
互聯(lián)網(wǎng)電視熟了嗎 2013最火電視深解析
桑達(dá)獲邀出席2015中國(guó)(廣州)國(guó)際POS機(jī)
寶獲利報(bào)名參加“2015年度中國(guó)POS機(jī)行業(yè)
八卦圖解 More>>
叛逆嫩模性感寫真 宮如敏不雅照瘋傳 看張馨予韓一菲
周偉童魔鬼身材日本性感寫真圖  聯(lián)想V360筆記本模特寫真
清涧县| 富裕县| 邵武市| 桐庐县| 克什克腾旗| 安乡县| 丰镇市| 石城县| 秦皇岛市| 会泽县| 屯门区| 邻水| 于都县| 湖南省| 伊吾县| 大埔区| 明星| 襄城县| 襄汾县| 闵行区| 小金县| 皮山县| 陇西县| 永兴县| 舞钢市| 合肥市| 灵宝市| 建湖县| 海盐县| 汉川市| 广灵县| 嘉定区| 昌江| 上思县| 长宁县| 新巴尔虎右旗| 安阳县| 沁水县| 仪陇县| 白朗县| 遂昌县|