OGG Installing support for Oracle sequences
Installing support for Oracle sequences
設定OGG 支援sequences
To support Oracle sequences, you must install some database procedures.
你必須安裝一些過程來支援ORACLE 的sequences.
These procedures support the Oracle GoldenGate FLUSH SEQUENCE command
which you issue immediately after you start the Oracle GoldenGate processes for the first time
安裝編譯完這些過程之後你能夠在配置OGG 時使用FLUSH SEQUENCE 命令直接初始化系統SEQUENCE
(typically when you perform the initial data synchronization procedure).
To install Oracle sequence objects
You will perform steps on the source and target systems.
安裝oracle sequence 物件,你需要在源端和目標端執行一下步驟
1. In SQL*Plus, connect to the sourceand target Oracle systems as SYSDBA.
1、在源端和目標端使用sqlplus 工具用sysdba 角色登入
2. If you already assigned a database user to support the Oracle GoldenGate DDL
replication feature, you can skip this step. Otherwise, in SQL*Plus on both systems
create a database user that can also be the DDL user.
如果你已經在配置系統支援DDL複製功能的時候建立了資料庫角色 你可以跳過此步
執行下列命令:
CREATE USER DDLuser IDENTIFIED BY password;
GRANT CONNECT, RESOURCE, DBA TO DDLuser;
3. From the Oracle GoldenGate installation directory on each system, run GGSCI.
在OGG 安裝目錄執行GGSCI命令
4. In GGSCI, issue the followingcommand on each system.
在源端,和目標端 GGSCI裡面執行下列命令
EDIT PARAMS ./GLOBALS
5. In each GLOBALS file, enter the GGSCHEMA parameter and specify the schema of the
DDL user that you created earlier in this procedure.
在每個全域性系統檔案裡面加入GGSCHEMA 引數:
GGSCHEMA schema
6. Save and close the files.
關閉儲存檔案
7. In SQL*Plus on both systems, run the sequence.sql script from the root of the
Oracle GoldenGate installation directory. This script creates some procedures for
use by Oracle GoldenGate processes. (Do not run them yourself.) You are
prompted for the user information that you created in the first step.
在源端和目標端都執行sequence.sql指令碼(sequence.sql 在OGG安裝目錄下使用sysdba 登入)
@sequence.sql
8. In SQL*Plus on the source system, grant EXECUTE privilege on the updateSequence
procedure to a database user that can be used to issue the DBLOGINc ommand.
Remember or record this user. You use DBLOGINto log into the database prior to
issuing the FLUSH SEQUENCE command, which calls the procedure.
在源端執行下列命令
GRANT EXECUTE on DDLuser.updateSequence TO DBLOGINuser;
(ddluser是你剛建立的使用者,DBLOGINuser 是你複製表的使用者)
9. In SQL*Plus on the target system, grant EXECUTE privilege on the
replicateSequenceprocedure to the Replicat database user.
在目標端執行下列命令:
GRANT EXECUTE on DDLuser.replicateSequence TO Replicatuser;
(ddluser是你剛建立的使用者,Replicatuser 是你目標端的負責使用者)
10. In SQL*Plus on the source system, issue the following statement in SQL*Plus.
在源端執行下列命令(sysdba 登入)
ALTER TABLE sys.seq$ ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS;
設定OGG 支援sequences
To support Oracle sequences, you must install some database procedures.
你必須安裝一些過程來支援ORACLE 的sequences.
These procedures support the Oracle GoldenGate FLUSH SEQUENCE command
which you issue immediately after you start the Oracle GoldenGate processes for the first time
安裝編譯完這些過程之後你能夠在配置OGG 時使用FLUSH SEQUENCE 命令直接初始化系統SEQUENCE
(typically when you perform the initial data synchronization procedure).
To install Oracle sequence objects
You will perform steps on the source and target systems.
安裝oracle sequence 物件,你需要在源端和目標端執行一下步驟
1. In SQL*Plus, connect to the sourceand target Oracle systems as SYSDBA.
1、在源端和目標端使用sqlplus 工具用sysdba 角色登入
2. If you already assigned a database user to support the Oracle GoldenGate DDL
replication feature, you can skip this step. Otherwise, in SQL*Plus on both systems
create a database user that can also be the DDL user.
如果你已經在配置系統支援DDL複製功能的時候建立了資料庫角色 你可以跳過此步
執行下列命令:
CREATE USER DDLuser IDENTIFIED BY password;
GRANT CONNECT, RESOURCE, DBA TO DDLuser;
3. From the Oracle GoldenGate installation directory on each system, run GGSCI.
在OGG 安裝目錄執行GGSCI命令
4. In GGSCI, issue the followingcommand on each system.
在源端,和目標端 GGSCI裡面執行下列命令
EDIT PARAMS ./GLOBALS
5. In each GLOBALS file, enter the GGSCHEMA parameter and specify the schema of the
DDL user that you created earlier in this procedure.
在每個全域性系統檔案裡面加入GGSCHEMA 引數:
GGSCHEMA schema
6. Save and close the files.
關閉儲存檔案
7. In SQL*Plus on both systems, run the sequence.sql script from the root of the
Oracle GoldenGate installation directory. This script creates some procedures for
use by Oracle GoldenGate processes. (Do not run them yourself.) You are
prompted for the user information that you created in the first step.
在源端和目標端都執行sequence.sql指令碼(sequence.sql 在OGG安裝目錄下使用sysdba 登入)
@sequence.sql
8. In SQL*Plus on the source system, grant EXECUTE privilege on the updateSequence
procedure to a database user that can be used to issue the DBLOGINc ommand.
Remember or record this user. You use DBLOGINto log into the database prior to
issuing the FLUSH SEQUENCE command, which calls the procedure.
在源端執行下列命令
GRANT EXECUTE on DDLuser.updateSequence TO DBLOGINuser;
(ddluser是你剛建立的使用者,DBLOGINuser 是你複製表的使用者)
9. In SQL*Plus on the target system, grant EXECUTE privilege on the
replicateSequenceprocedure to the Replicat database user.
在目標端執行下列命令:
GRANT EXECUTE on DDLuser.replicateSequence TO Replicatuser;
(ddluser是你剛建立的使用者,Replicatuser 是你目標端的負責使用者)
10. In SQL*Plus on the source system, issue the following statement in SQL*Plus.
在源端執行下列命令(sysdba 登入)
ALTER TABLE sys.seq$ ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26764973/viewspace-1201245/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ogg 真的太多bug了,不穩定,太坑Action: Contact Oracle Support.Oracle
- Oracle OGG 到 Kafka OGG-01431 OGG-01003 OGG-01151 OGG-01296 OGG-01668OracleKafka
- Installing Oracle 9i on OELRHEL 4.8 64bitOracle
- Oracle OCP(32):SUPPORT:MOSOracle
- Oracle OGG日常維護Oracle
- [20181007]Scalable sequences oracle database 12c.txtOracleDatabase
- My Oracle Support, 縮寫為MOSOracle
- 配置ogg異構oracle到mysqlOracleMySql
- ORACLE OGG運維及日常監控Oracle運維
- Oracle 19C OGG基礎運維-09OGG-15121錯誤Oracle運維
- Oracle案例13—— OGG-01163 Oracle GoldenGate Delivery for Oracle, reprpt01.prmOracleGo
- Installing Windows Features without InternetWindows
- Oracle+Ogg 歸檔丟失 重新導資料建立ogg同步步驟Oracle
- Bracket Sequences IIRacket
- ogg 同步pg資料到oracle--步驟Oracle
- LINUX ORACLE OGG12C安裝(一)LinuxOracle
- LINUX ORACLE OGG12C安裝(二)LinuxOracle
- OGG-Oracle 11.2.0.1 ->19.3 pdb 使用Ogg 同步版本相關問題學習整理Oracle
- OGG_mysql 12c複製到OGG_oracle 11g部署方案MySqlOracle
- 安裝失敗(Installing failed)AI
- 10. Oracle常用高可用方案——10.3. OGGOracle
- dg和ogg的區別--oracle資料庫Oracle資料庫
- ogg for oracle 19c 非cdb安裝配置Oracle
- 013 Three Div Sequences
- 使用ogg 從oracle 同步mysql遇到問題記錄OracleMySql
- Oracle Goldengate(ogg) 12c認證考試流程OracleGo
- Oracle 11g RAC到單例項OGG同步Oracle單例
- LINUX ORACLE OGG12C整合模式安裝(一)LinuxOracle模式
- LINUX ORACLE OGG12C整合模式安裝(二)LinuxOracle模式
- OGG 12c mysql複製到oracle部署方案MySqlOracle
- D. Invertible Bracket SequencesRacket
- Installing Vim 8.0 on Ubuntu 16.04 and Linux Mint 18UbuntuLinux
- 有Oracle support identifier的沒?幫下載兩個補丁OracleIDE
- OGG-01431 OGG-01003 OGG-01151 OGG-01003錯誤處理
- OGG問題處理(OGG-01031,OGG-01416)
- Codeforces 264B. Good SequencesGo
- OGG19.1 oracle12c到oracle12c經典模式配置實施Oracle模式
- 基於OGG Datahub外掛將Oracle資料同步上雲Oracle
- Oracle歸檔檔案丟失導致OGG不用啟動Oracle