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

Oracle復制方法的演變

數(shù)據(jù)庫 Oracle
不論什么事務都是有一個循序漸近的發(fā)展過程,同樣Oracle復制方法也是如此,以下的文章就是對Oracle復制方法慢慢變得精細的詳細介紹。

以下的文章主要是對Oracle復制方法慢慢變得精細的具體介紹,其中會涉及到在其運行過程中的公共數(shù)據(jù)庫的連接,它需要每個復制需要創(chuàng)建三個數(shù)據(jù)庫連接,以及公共數(shù)據(jù)庫連接指定數(shù)據(jù)庫的全局名稱的介紹。

設置實體化視圖站點:

1.創(chuàng)建復制管理員并授予相應的權(quán)限:

 

 

  1. disconnect;  
  2. connect system/passwd@BJ;  
  3. create user mvadmin identified by  
  4. mvadmin;  
  5. begin  
  6. dbms_repcat_admin.  
  7. grant_admin_any_schema(username=> ’mvadmin’);  
  8. end;  
  9. /  
  10. grant comment any table to mvadmin;  
  11. grant lock any table to mvadmin;  
  12. grant select any dictionary to mvadmin;  

 

 

 

注冊傳播方:

 

 

 

  1. begin  
  2. dbms_defer_sys.reGISter_propagator(  
  3. username => ’mvadmin’);  
  4. end;  
  5. /  

 

 

 

公共數(shù)據(jù)庫連接。需要每個復制需要創(chuàng)建三個數(shù)據(jù)庫連接。公共數(shù)據(jù)庫連接指定數(shù)據(jù)庫的全局名稱:

 

 

 

  1. create public database link ORACLSH using ’Oracle.shanghai.  
  2. com’;  

 

 

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

 

 

  1. create public database link ORACLSH using ’(description=  
  2. (address=(protocol=tcp)(host=127.0.0.1)(port=1521))  
  3. (connect_data=(service_name=oracl)))’   

 

 

 

建立清除延遲事務隊列調(diào)度作業(yè):

 

 

 

  1. disconnect;  
  2. connect mvadmin/mvadmin@BJ;  
  3. begin  
  4. dbms_defer_sys.schedule_purge(  
  5. next_date => sysdate,  
  6. interval => ’/*1:hr*/ sysdate + 1’,  
  7. delay_seconds => 0,  
  8. rollback_segment => ’’);  
  9. end;   

 

 

 

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

 

 

 

  1. create database link ORACLSH connect to proxy_bjOracle  
  2. identified by proxy_bjoralce  
  3. Connect to ... Identified by ...  

子句指明用什么用戶連接遠程數(shù)據(jù)庫

 

 

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

 

 

 

  1. begin  
  2. dbms_defer_sys.schedule_push(  
  3. destination => ’ora92zjk’,interval => ’/*1:hr*/ 
    sysdate + 1’,  
  4. next_date => sysdate,stop_on_error => false,  
  5. delay_seconds => 0,parallelism => 0);  
  6. end;  
  7. /  

 

 

 

授予SHORACL用戶(對應SHORACL方案)相應的權(quán)限建立實體化視圖:

 

 

 

  1. disconnect;  
  2. connect system/passwd@BJ;  
  3. grant alter session to crm;  
  4. grant create cluster to crm;  
  5. grant create database link to crm;  
  6. grant create sequence to crm;  
  7. grant create session to crm;  
  8. grant create synonym to crm;  
  9. grant create table to crm;  
  10. grant create view to crm;  
  11. grant create procedure to crm;  
  12. grant create trigger to crm;  
  13. grant unlimited tablespace to crm;  
  14. grant create type to crm;  
  15. grant create any snapshot to crm;  
  16. grant alter any snapshot to crm;  

 

 

 以上的相關內(nèi)容就是對Oracle復制方法的介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle備份恢復與批處理文件實操
  2. 在Oracle 數(shù)據(jù)類型中如何使用dump函數(shù)
  3. 在Oracle 處理日期中對日期語言的設置
  4. 用Oracle時間日期操作來計算工作日的具體方法
  5. Oracle日期函數(shù)中常用的幾大函數(shù)
責任編輯:佚名 來源: 博客園
相關推薦

2010-04-28 11:19:04

Oracle高級復制

2011-03-14 15:42:57

Oracle數(shù)據(jù)庫遷移復制

2015-11-12 16:21:38

Python計數(shù)方法

2010-04-28 08:55:40

Oracle高級復制

2017-06-29 09:28:37

OracleMariaDB復制

2010-04-06 14:26:41

Oracle復制表

2010-04-01 13:55:50

Oracle復制表

2010-05-06 15:29:53

Oracle數(shù)據(jù)復制

2010-04-09 14:57:29

學習Oracle

2010-10-26 16:33:54

創(chuàng)建Oracle索引

2010-11-08 11:22:21

SQL Server同

2011-05-17 14:02:44

Oracle 8高級復制

2010-10-28 11:29:18

ORACLE用戶權(quán)限

2011-07-11 09:09:29

TD-LTE

2011-12-13 14:19:32

iPhone信息圖

2021-06-22 13:52:13

綜合布線數(shù)據(jù)中心智能建筑

2011-12-19 09:38:14

Linux外殼

2013-11-11 13:25:31

2023-05-17 15:38:55

2022-07-11 08:20:49

DDoS攻擊網(wǎng)絡攻擊
點贊
收藏

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