高階複製-4、非主體定義站點上的操作
1、建立repadmin使用者,用於管理高階複製
create user repadmin identified by repadmin default tablespace users temporary tablespace temp;
execute dbms_defer_sys.register_propagator('repadmin');
grant execute any procedure to repadmin;
execute dbms_repcat_admin.grant_admin_any_repgroup('repadmin');
execute dbms_repcat_admin.grant_admin_any_schema(username => '"REPADMIN"');
grant comment any table to repadmin;
grant lock any table to repadmin;
grant select any dictionary to repadmin;
SQL> desc dba_tablespaces;
Name Null? Type
----------------------------------------- -------- ----------------------------
TABLESPACE_NAME NOT NULL VARCHAR2(30)
BLOCK_SIZE NOT NULL NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NOT NULL NUMBER
MAX_EXTENTS NUMBER
PCT_INCREASE NUMBER
MIN_EXTLEN NUMBER
STATUS VARCHAR2(9)
CONTENTS VARCHAR2(9)
LOGGING VARCHAR2(9)
FORCE_LOGGING VARCHAR2(3)
EXTENT_MANAGEMENT VARCHAR2(10)
ALLOCATION_TYPE VARCHAR2(9)
PLUGGED_IN VARCHAR2(3)
SEGMENT_SPACE_MANAGEMENT VARCHAR2(6)
DEF_TAB_COMPRESSION VARCHAR2(8)
RETENTION VARCHAR2(11)
BIGFILE VARCHAR2(3)
SQL> select tablespace_name,contents from dba_tablespaces;
TABLESPACE_NAME CONTENTS
------------------------------------------------------------ ------------------
SYSTEM PERMANENT
UNDOTBS1 UNDO
SYSAUX PERMANENT
TEMP TEMPORARY
USERS PERMANENT
EXAMPLE PERMANENT
TEST PERMANENT
7 rows selected.
SQL> create user repadmin identified by repadmin default tablespace users temporary tablespace temp;
User created.
SQL> execute dbms_defer_sys.register_propagator('repadmin');
grant execute any procedure to repadmin;
execute dbms_repcat_admin.grant_admin_any_repgroup('repadmin');
execute dbms_repcat_admin.grant_admin_any_schema(username => '"REPADMIN"');
grant comment any table to repadmin;
grant lock any table to repadmin;
grant select any dictionary to repadmin;
PL/SQL procedure successfully completed.
SQL>
Grant succeeded.
SQL>
PL/SQL procedure successfully completed.
SQL>
PL/SQL procedure successfully completed.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
SQL>
Grant succeeded.
2、建立公共的dblink連線到複製站點
CREATE PUBLIC DATABASE LINK MASTER.COM connect to repadmin identified by repadmin USING 'MASTER_SITE';
3、建立私有DB LINKS
CREATE DATABASE LINK MASTER.COM@PERMIN connect to repadmin identified by repadmin USING 'MASTER_SITE';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12350275/viewspace-683777/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL 的主從複製(高階篇)MySql
- MySQL進階:主主複製+Keepalived高可用MySql
- 如何設定 MariaDB 主主複製
- mysql5.6主主複製及keepalived 高可用MySql
- 定義製造業操作(定義 MES/MOM 系統)
- Redis主從複製那點事Redis
- mysql5.7主從複製,主主複製MySql
- WordPress主題製作進階#10自定義主頁
- CentOS 7 named設定主從複製CentOS
- Windows 環境下,MySQL 的主從複製和主主複製WindowsMySql
- windows環境下,Mysql的主從複製和主主複製WindowsMySql
- tmux自定義使用者設定(滑鼠選項,複製貼上)UX
- mysql資料庫的主從複製和主主複製實踐MySql資料庫
- MySQL5.7在滴滴雲主機上的主從複製MySql
- mysql複製--主從複製配置MySql
- MySQL的主從複製MySql
- DMAIC定義階段的重點是什麼?AI
- 主從複製
- 前端 JavaScript 複製貼上的奧義——Clipboard 物件概述前端JavaScript物件
- MySQL主從複製中的“show slave status”詳細含義MySql
- Oracle跨主機複製資料庫背後的意義Oracle資料庫
- MySQL主從複製之GTID複製MySql
- 主從複製是啥或者主從複製的原理是什麼?
- 聊聊MySQL主從複製的幾種複製方式MySql
- Redis主從複製斷點續傳的工作原理概述Redis斷點
- centos7上配置mysql8的主從複製CentOSMySql
- poi操作excel,複製sheet,複製行,複製單元格,複製styleExcel
- MySQL主從複製之半同步複製MySql
- MySQL主從複製之非同步複製MySql非同步
- 高階複製錯誤ORA-23474解決方法
- 高階圖形繪製軟體的原理猜想
- Redis系列(四):Redis的複製機制(主從複製)Redis
- 麻了,一個操作把MySQL主從複製整崩了MySql
- MySQL主從複製MySql
- Redis主從複製Redis
- Redis - 主從複製Redis
- Redis:主從複製Redis
- 面試題分解—「淺複製/深複製、定義屬性使用copy還是strong ?」面試題
- Draft 文件翻譯 - 高階主題 - 管理焦點Raft