gg参数:dblogreader
上次客戶的一套生產系統遷移到小機上,并且從原來的11.2.0.3的windows單機環境換成了11.2.0.3的RAC環境,數據庫遷移完成后,顯然goldengate也需要遷移過來,其實這個遷移就是重新配置一下。
原來的環境是:
Windows?server?2008
GoldenGate version 11.1
Oracel version 11.2.0.3 (Single Instance)
File system for storing?data
新環境:
IBM AIX6.1
GoldenGate version 11.2
Oracle?version 11.2.0.3(RAC)
ASM for storing data
顯然,在新環境上配置Extract進程的參數文件時,僅僅USERID username,PASSWORD password 是不夠的,因為redo log 和archivelog均存儲在ASM上,因此為了讀取ASM上的redo log和archivelog還需要配置登陸ASM實例的登陸信息。
最初我的配置方法是:
首先在/u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora文件中添加:
ASM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.68.10.16)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.68.10.18)(PORT = 1521))
(LOAD_BALANCE = ON)
(FAILOVER = ON)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = +ASM)
)
)
其次在Extract進程參數文件中添加:
TranlogOptions ASMUsersys@ASM, ASMPassword Oracle123, convertucs2clobs, AltArchiveLogDest Instance DB1 +DG_FBA/db/arch,AltArchiveLogDest Instance DB2 +DG_FBA/db/arch
后來通過查詢文檔,發現有一個新的參數:dblogreader,有了這個參數之后,以上寫法可以改寫為:
TranlogOptions DBLOGREADER
可以發現比上面的寫法簡單多了,至少少了配置登陸ASM需要的TNS配置內容,并且也不在需要指定歸檔路徑,其自動會找到歸檔日志的位置。
關于參數DBLOGREADER的說明,文檔中寫到:
(Oracle)Valid for Extract in classic capture mode. Causes Extract to use a newer ASM API that is available as of Oracle 10.2.0.5 and later10gR2 versions and Oracle 11.2.0.2 and later 11gR2 versions(but not in Oracle 11gR1 versions). This API uses the database server to access the redo log and archive logs, instead of connecting directly to the Oracle ASM instance.The database must contain the libraries that contain the API modules and must be running
To use this feature,the Extract database user must have SELECT ANY TRANSACTION privilege.
總結
以上是生活随笔為你收集整理的gg参数:dblogreader的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WSCRIPT与CScript区别解释
- 下一篇: 如何将加密PDF转换成Word文档