新聞中心
以下的文章主要是對(duì)Oracle復(fù)制方法慢慢變得精細(xì)的具體介紹,其中會(huì)涉及到在其運(yùn)行過程中的公共數(shù)據(jù)庫的連接,它需要每個(gè)復(fù)制需要?jiǎng)?chuàng)建三個(gè)數(shù)據(jù)庫連接,以及公共數(shù)據(jù)庫連接指定數(shù)據(jù)庫的全局名稱的介紹。

10年積累的成都網(wǎng)站設(shè)計(jì)、做網(wǎng)站、成都外貿(mào)網(wǎng)站建設(shè)公司經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶對(duì)網(wǎng)站的新想法和需求。提供各種問題對(duì)應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先做網(wǎng)站后付款的網(wǎng)站建設(shè)流程,更有藍(lán)山免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。
設(shè)置實(shí)體化視圖站點(diǎn):
1.創(chuàng)建復(fù)制管理員并授予相應(yīng)的權(quán)限:
- disconnect;
- connect system/passwd@BJ;
- 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;
注冊(cè)傳播方:
- begin
- dbms_defer_sys.reGISter_propagator(
- username => ’mvadmin’);
- end;
- /
公共數(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)))’
建立清除延遲事務(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;
建立Oracle復(fù)制管理員mvadmin的數(shù)據(jù)庫連接:
- create database link ORACLSH connect to proxy_bjOracle
- identified by proxy_bjoralce
- Connect to ... Identified by ...
子句指明用什么用戶連接遠(yuǎn)程數(shù)據(jù)庫
建立Oracle復(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;
- /
授予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;
以上的相關(guān)內(nèi)容就是對(duì)Oracle復(fù)制方法的介紹,望你能有所收獲。
新聞標(biāo)題:Oracle復(fù)制方法的演變
文章位置:http://www.fisionsoft.com.cn/article/cdespch.html


咨詢
建站咨詢
