Oracle GoldenGate常用引數詳解
OGG(Oracle GoldenGate)包括Manager程式、Extract程式、Pump程式(可以看做特殊的extract)、Replicat程式等,需要設定的內容包括Manager、Extract、Replicat、DEFGEN等,本文從這幾個方面介紹相關的可用引數,方面學習和工作之用。
介紹
所有的GoldenGate程式均有引數檔案
Manager
Extract
Replicat
Utilities
所有引數均有預設配置
實際應用只需對小部分引數進行配置
所有引數檔案均放在 ./dirprm目錄下
預設透過程式名進行查詢
一、全域性引數
MGRSERVNAME Specifies the name of the Manager process when it is installed as a Windows service.
CHECKPOINTTABLE Specifies a default checkpoint table.
GGSCHEMA Specifies the name of the schema that contains the database objects that support DDL synchronization for Oracle.
DDLTABLE Specifies a non-default name for the DDL history table that supports DDL synchronization for Oracle.
MARKERTABLE Specifies a non-default name for the DDL marker table that supports DDL synchronization for Oracle.
OUTPUTFILEUMASK Specifies a umask that can be used by Oracle GoldenGate processes to create trail files and discard files.
SYSLOG Filters the types of Oracle GoldenGate messages that are written to the system logs.
UNLOCKEDTRAILFILES Workaround for problems with trail files that remain locked by Collector if there is a network outage that affects the target system.
二、Manager程式相關引數
1、常用引數:
PORT 制定GoldenGate的mgr程式使用哪個 TCP/IP埠偵聽請求.
示例:PORT 7809
DYNAMICPORTLIST 指定GoldenGate可以使用那些埠接受extract傳送過來的資料.
示例:DYNAMICPORTLIST 7840-7850
AUTOSTART 指定在mgr啟動時自動啟動那些程式.
示例:AUTOSTART ER *
AUTOSTART extract extsz
AUTORESTART 指定在mgr可以定時重啟那些程式。可以在網路中斷等故障恢復後自動重起,避免人工干預.
示例:AUTORESTART ER *, WAITMINUTES 5, RETRIES 3 --每隔5分鐘嘗試啟動一次,嘗試3次
LAGREPORT 指定在ggserr.log中報告延遲的時間間隔.
示例:LAGREPORTHOURS 1 --每隔一小時檢查一次傳輸延遲情況
LAGCRITICAL 指定認為超過此時間即為嚴重錯誤的延遲最大值,如果延遲達到此時間值則會在ggserr.log裡面寫入一條error資訊
示例:LAGCRITICALMINUTES 45 --傳輸延時超過45分鐘將寫入警告日誌
LAGINFO 指定一個延遲時限,如果延遲達到此時間值則會在ggserr.log裡面寫入一條info資訊
示例:LAGINFOMINUTES 30 --傳輸延時超過30分鐘將寫入錯誤日誌
PURGEOLDEXTRACTS 定義自動刪除過時的佇列以節省硬碟空間。
一般按照兩個規則來刪除:首先,要滿足檢查點要求,沒有使用過的佇列不能刪除,保證無資料丟失;其次,可以保留一定的天數。只有當已經使用過且超過設定的天數後的佇列會被自動刪除。示例:purgeoldextracts /backup/goldengate/dirdat/*,usecheckpoints, minkeepdays 7
2、完整示例:
源端Manager配置引數示例:
GGSCI> view params mgr
PORT 7839 --通訊埠7839。 源端和目標端需要保持一致。
DYNAMICPORTLIST 7840-7914 --動態埠列表的範圍從7840到7914。當制定埠被佔用或者出現通訊故障,管理程式將會從列表中選擇下一個埠嘗試連線,避免通訊埠的單點故障。
AUTORESTART EXTRACT *, RETRIES 5, WAITMINUTES 7 --當提取程式中斷後嘗試自動重啟,每隔7分鐘嘗試啟動一次,嘗試5次。
PURGEOLDEXTRACTS ./dirdat/*, USECHECKPOINTS, MINKEEPDAYS 10 --定期清理dirdat路徑下的本地佇列(local trail)。保留期限10天,過期後自動刪除。從而控制佇列檔案的目錄不會增長過大。
LAGREPORTHOURS 1 --每隔一小時檢查一次傳輸延遲情況
LAGINFOMINUTES 30 --傳輸延時超過30分鐘將寫入錯誤日誌
LAGCRITICALMINUTES 45 --傳輸延時超過45分鐘將寫入警告日誌
目標端Manager配置引數示例:
GGSCI 4> view params mgr
PORT 7839 --通訊埠7839。 生產端和災備端需要保持一致
USERID goldengate, PASSWORD YGGJBFJGIH, ENCRYPTKEY default
DYNAMICPORTLIST 7840-7914 --動態埠列表的範圍從7840到7914。當制定埠被佔用或者出現通訊故障,管理程式將會從列表中選擇下一個埠嘗試連線,避免通訊埠的單點故障。
AUTORESTART EXTRACT *,RETRIES 5,WAITMINUTES 3 --當提取程式中斷後嘗試自動重啟,每隔7分鐘嘗試啟動一次,嘗試5次。
PURGEOLDEXTRACTS ./dirdat/*,usecheckpoints, minkeepdays 5 --定期清理dirdat路徑下的遠端佇列(remote trail)。保留期限5天,過期後自動刪除。從而控制佇列檔案的目錄不會增長過大。
--PURGEDDLHISTORY MINKEEPDAYS 7, MAXKEEPDAYS 10 --刪除DDL歷史表,最小儲存7天,最大儲存10天。由於此專案沒有開啟DDL,所以該引數被註釋。
--PURGEMARKERHISTORY MINKEEPDAYS 7, MAXKEEPDAYS 10 --刪除MARKER歷史表,最小儲存7天,最大儲存10天。此專案沒有使用該引數,所以該引數被註釋。
LAGREPORTHOURS 1 --每隔一小時檢查一次傳輸延遲情況
LAGINFOMINUTES 30 --傳輸延時超過30分鐘將寫入錯誤日誌
LAGCRITICALMINUTES 45 --傳輸延時超過45分鐘將寫入警告日誌
參考:真實環境的OracleGoldenGate配置引數詳解 -- http://blog.itpub.net/29475508/viewspace-1297083/
3、完整可選引數列表
(1)通用引數:
COMMENT | -- Allows insertion of comments in a parameter file.##允許在引數檔案中插入註釋資訊
SYSLOG Filters the types of Oracle GoldenGate messages that are written to the system logs.
(2)埠管理引數:
DYNAMICPORTLIST Specifies the ports that Manager can dynamically allocate.
##指定Manager可以動態分配的埠列表(這些埠將用來接受extract傳送過來的資料)
示例:DYNAMICPORTLIST 7840-7850
DYNAMICPORTREASSIGNDELAY Specifies a time to wait before assigning a port number that was previously assigned.
##當要分配的埠被佔用時,指定在再次分配前需要等待的時間
PORT Establishes the TCP/IP port number on which Manager listens for requests.
##指定Manager監聽請求所使用的TCP/IP埠號,示例:PORT 7809
(3)程式管理引數:
AUTORESTART Specifies processes to be restarted by Manager after a failure.
##指定Manager可(定時)重啟哪些程式(可以在網路中斷等故障恢復後自動重起,避免人工干預)
示例:AUTORESTART ER *, WAITMINUTES 5, RETRIES 3 --每隔5分鐘嘗試啟動一次,嘗試3次
AUTOSTART Specifies processes to be started when Manager starts.
##指定Manager程式啟動時,自動啟動哪些程式
示例:AUTOSTART ER *
AUTOSTART extract extsz
BOOTDELAYMINUTES Determines how long after system boot time Manager delays until performing main processing activities. This parameter supports Windows.
UPREPORT Determines how often process heartbeat messages are reported.
##確定心跳檢測資訊多久報告一次
(4)事件管理引數:
DOWNCRITICAL Reports processes that stopped gracefully or abnormally.
DOWNREPORT Controls the frequency for reporting stopped processes.
LAGCRITICAL Specifies a lag threshold that is considered critical and generates a warning to the error log.
指定認為超過此時間即為嚴重錯誤的延遲最大值,如果延遲達到此時間值則會在ggserr.log裡面寫入一條error資訊
示例:LAGCRITICALMINUTES 45 --傳輸延時超過45分鐘將寫入警告日誌
LAGINFO Specifies a lag threshold at which an informational message is reported to the error log.
指定一個延遲時限,如果延遲達到此時間值則會在ggserr.log裡面寫入一條info資訊
示例:LAGINFOMINUTES 30 --傳輸延時超過30分鐘將寫入錯誤日誌
LAGREPORT Sets an interval for reporting lag time to the error log
指定在ggserr.log中報告延遲的時間間隔.
示例:LAGREPORTHOURS 1 --每隔一小時檢查一次傳輸延遲情況
(5)資料庫登陸:
SOURCEDB Specifies a data source name as part of the login information.
示例:SOURCEDB mydb
SOURCEDB mydb, USERID ggs, PASSWORD ggs123
USERID Provides login information for Manager when it needs to access the database.
示例:USERID /
USERID ggs, PASSWORD ggs123
USERID ggs@ora1.ora, PASSWORD ggs123
USERID data1
USERID ggs, PASSWORD AACAAAAAAAAAAAIALCKDZIRHOJBHOJUH, ENCRYPTKEY superx128
USERID ggs, PASSWORD AACAAAAAAAAAAAIALCKDZIRHOJBHOJUH, ENCRYPTKEY default
(6)維護相關引數:
CHECKMINUTES Determines how often Manager cycles through maintenance activities.
PURGEDDLHISTORY Purges rows from the Oracle DDL history table when they are no longer needed.
PURGEMARKERHISTORY Purges Oracle marker table rows that are no longer needed.
PURGEOLDEXTRACTS Purges trail data that is no longer needed.##自動刪除過時的佇列以節省硬碟空間。
一般按照兩個規則來刪除:
首先,要滿足檢查點要求,沒有使用過的佇列不能刪除,保證無資料丟失;
其次,可以保留一定的天數。只有當已經使用過且超過設定的天數後的佇列會被自動刪除。
示例:purgeoldextracts /backup/goldengate/dirdat/*,usecheckpoints, minkeepdays 7
PURGEOLDTASKS Purges Extract and Replicat tasks after a specified period of time.
STARTUPVALIDATIONDELAY[CSECS] Sets a delay time after which Manager checks that processes are still running after startup.
參考:Oracle GoldenGate Windows and UNIX Reference Guide 11g Release 1(11.1.1) E17791-01
Oracle Golden Gate 系列八 -- GG 引數檔案 說明 http://blog.csdn.net/tianlesoftware/article/details/6970183
二、extract程式相關引數
1、常用引數
抽取程式有以下方面引數:
Checkpoint
複製目標
Local System
Multiple Remote Systems
One to many GoldenGate Trails
資料來源
Which Tables
Which Rows and Columns
Which Operations
資料影射和變換
table引數:
Syntax:
TABLE <file name>
[, WHERE (<where condition>)]
[, FILTER (<expression>)]
[, KEYCOLS (<key column specification>)]
[, COLS (<column>) | [ , <column> ]) ]
[, COLSEXCEPT (<column>) | [ , <column> ]) ]
[, FETCHCOLS (<column>) | [ , <column> ]) ]
[, FETCHCOLSEXCEPT (<column>) | [ , <column> ]) ]
[, SQLEXEC <clause> ]
[, FETCHBEFOREFILTER ]
[, SQLPREDICATE “WHERE <clause>” ]
[, COLMAP (<column mapping specification>)]
[, <record type filter>, <record type filter>, …]
;
注意:TABLE的結尾有一個分號。
2、完整示例
引數檔案舉例:日誌抽取程式
extract extsz
userid goldengate, password *******
--REPORT AT 01:59
--reportrollover at 02:00
--transmemory directory (/backup/goldengate/dirtmp,8G,4G),ram 2G,transram 500M
tranlogoptions rawdeviceoffset 0
--warnlongtrans 12h, checkintervals 30m
exttrail /backup/goldengate/dirdat/sz
dynamicresolution
numfiles 2000
tableexclude ctais2.TMP_*;
tableexclude ctais2.BAK_*;
tableexclude ctais2.MLOG$_*;
tableexclude ctais2.RUPD$_*;
tableexclude ctais2.KJ_*;
table ctais2.*;
引數檔案舉例:傳輸程式
extract dpesz
setenv ( NLS_LANG = AMERICAN_AMERICA.ZHS16GBK )
passthru
REPORT AT 01:59
reportrollover at 02:00
transmemory directory (/backup/goldengate/dirtmp,8G,4G), ram 2G,transram 500M
--threadoptions iolatencydelay 3000
rmthost 99.16.1.12,mgrport 7809, compress
rmttrail /oradata/goldengate/dirdat/sz
dynamicresolution
numfiles 3000
table ctais2.*;
示例3:
extract extl --抽取程式名
userid ddw,password ddw --連線本機DB的帳號密碼
rmthost 192.168.0.44, mgrport 7801 --目標資料庫伺服器地址和GG服務埠號
rmttrail d:\tools\GG\gg10g\dirdat\rl --遠端佇列的位置
dynamicresolution --最佳化引數,動態分析表結構
gettruncates --抓取truncate資料
table ddw.aatest; --需要抽取的表,可以使用萬用字元
3、全部可選引數
(1)通用引數
CHECKPARAMS Verifies parameter file syntax.
如果加入該引數,表示下次執行只是檢查一下語法,並不實際執行程式。 注意:該命令只能檢查一些簡單語法,並不能保證引數檔案是完全正確的。
COMMENT | -- Denotes comments in a parameter file. ##註釋行,也可以用兩個中劃線--代替.--checkparams表示本行已經被註釋掉
ETOLDFORMAT Generates trails in a format that is compatible with Replicat versions prior to Oracle GoldenGate version 6.0.
GETENV Retrieves variables that were set with the SETENV parameter.
SETENV Specifies a value for a UNIX environment variable from within the GGSCI interface.
針對extract程式設定系統環境變數。
示例:SETENV (NLS_LANG="AMERICAN_AMERICA.UTF8") --設定字符集環境變數為UTF8
OBEY Processes parameter statements contained in a different parameter file.
可以將外部檔案的內容包含到本引數檔案中來。用於將一些可以重複利用的引數檔案部分內容隔離出來,便於統一修改。Obey tables.txt
RECOVERYOPTIONS Controls the recovery mode of the Extract process.
TCPSOURCETIMER |
NOTCPSOURCETIMER Adjusts timestamps of records transferred to other systems when those systems reflect different times.
TRACETABLE |
NOTRACETABLE Causes Extract to ignore database changes generated by Replicat during bidirectional synchronization. Supports Oracle
(2)處理方法Processing method
BEGIN Specifies when to begin a processing run.
DSOPTIONS Specifies Extract processing options when a Teradata Access Module (TAM) is being used.
END Specifies when to end a processing run.
EXTRACT Defines an Extract group as an online process. ##定義抽取程式的名字
GETAPPLOPS |
IGNOREAPPLOPS Controls whether or not operations from all processes except Replicat are written to a trail or file.
GETREPLICATES |
IGNOREREPLICATES Controls whether or not replicated operations are captured by an Extract on the same system.
PASSTHRU | Controls whether tables will be processed by a data-pump Extract in pass-through mode or whether data definitions will be required
NOPASSTHRU 禁止extract與資料庫互動,適用於Data Pump傳輸程式(dpeXX)。
說明:PASSTHRU直通模式用在兩邊表名、列名一致,可以直接對映的情況,不需要額外配置;
NOPASSTHRU普通模式可以配置表名列名自定義對映,可以加FILTER、transformation等,需要配置一個資料定義檔案(data-definitions file)
RMTTASK Creates a processing task on a remote system.
SOURCEISTABLE Extracts entire records from source tables.
SPECIALRUN Specifies a one-time processing task that does not checkpoint from run to run.
VAM Indicates that a Teradata Access Module (TAM) is being used to provide transactional data to the Extract process.
(3)資料庫登陸Database login
SOURCEDB Specifies the data source as part of the login information.
USERID Specifies database connection information.
[SOURCEDB,] USERID ,PASSWORD 指定所要登陸的資料庫名稱,使用者名稱和密碼。對於oracle無需指定sourcedb,直接指定使用者名稱和密碼即可。
Userid goldengate, password goldengate
(4)資料匹配和對映 Selecting and mapping data
ASCIITOEBCDIC Converts ASCII text to EBCDIC for DB2 on z/OS systems running UNIX System Services.
COLMATCH Establishes global column-mapping rules.
COMPRESSDELETES |
NOCOMPRESSDELETES Controls whether Oracle GoldenGate writes only the key or all columns to the trail for delete operations.
COMPRESSUPDATES |
NOCOMPRESSUPDATES Causes only primary key columns and changed columns to be logged for updates.
DDL Enables and filters the capture of DDL operations.
DDLSUBST Enables string substitution in DDL processing.
FETCHOPTIONS Controls certain aspects of the way that Oracle GoldenGate fetches data.
示例:FETCHOPTIONS NOUSESNAPSHOT --不會從閃回日誌中獲取資料
FETCHOPTIONS FETCHPKUPDATECOLS
--當使用了 HANDLECOLLISIONS 時,請使用該引數。複製程式出現丟失update記錄(missing update)並且更新的是主鍵,update將轉換成insert。由於插入的記錄可能不是完整的行,若要保證完整需要加入此引數
GETDELETES | IGNOREDELETES Controls the extraction of delete operations.是否複製delete操作,預設複製
GETINSERTS | IGNOREINSERTS Controls the extraction of insert operations.是否複製insert操作,預設複製
GETTRUNCATES |IGNORETRUNCATES Controls the extraction of truncate statements. 是否複製truncate操作,預設不復制.
GETUPDATEAFTERS | IGNOREUPDATEAFTERS Controls the extraction of update after images.##是否在佇列中寫入後影像,預設複製
GETUPDATEBEFORES |IGNOREUPDATEBEFORES Controls the extraction of update before images.是否在佇列中寫入前影像,預設不復制
GETUPDATES | IGNOREUPDATES Controls the extraction of update operations 是否複製update操作,預設複製
REPLACEBADCHAR Replaces invalid character values with another value.
SEQUENCE Specifies sequences for synchronization.
TABLE for Extract Specifies tables for extraction and controls column mapping and conversion.
TABLEEXCLUDE Excludes tables from the extraction process.
定義所需要排除的表。如果在table裡面定義了使用萬用字元,那麼可以使用該引數定義排除掉其中的部分���。如:
tableexclude ctais2.TMP_*;
tableexclude ctais2.TEMPTAB;
TARGETDEFS Specifies a file containing target table definitions for target databases that reside on the NonStop platform.
TRIMSPACES |
NOTRIMSPACES Controls whether trailing spaces are trimmed or not when mapping CHAR to VARCHAR columns.
WILDCARDRESOLVE Defines rules for processing wildcard table specifications in a TABLE statement.
(5)資料轉發 Routing data
EXTFILE Specifies an extract file to which extracted data is written on the local system.
EXTTRAIL Specifies a trail to which extracted data is written on the local system.
指定寫入到本地的哪個佇列。
示例:EXTTRAIL ./dirdat/ya --本地佇列檔案路徑
RMTFILE Specifies an extract file to which extracted data is written on a remote system.
RMTHOST Specifies the target system and Manager port number.
指定目標系統及其GoldenGate Manager程式的埠號,也用於定義是否使用壓縮排行傳輸。
示例:rmthost 99.16.1.12,mgrport 7809, compress
RMTTRAIL Specifies a trail to which extracted data is written on a remote system.
指定寫入到目標端的哪個佇列
(6)資料格式化Formatting data
FORMATASCII Formats extracted data in external ASCII format.
FORMATSQL Formats extracted data into equivalent SQL statements.
FORMATXML Formats extracted data into equivalent XML syntax.
NOHEADERS Prevents record headers from being written to the trail.
(7)自定義處理 Custom processing
CUSEREXIT Invokes a user exit routine during processing.
INCLUDE Invokes a macro library.
MACRO Defines an Oracle GoldenGate macro.
MACROCHAR Defines a macro character other than the default of #.
SQLEXEC Executes a stored procedure or query during Extract processing.
在extract執行時首先執行一個sql語句。 示例:sqlexec "Alter session set constraints=deferred"
VARWIDTHNCHAR |
NOVARWIDTHNCHAR Controls whether length information is written to the trail for NCHAR columns.
(8)報告資訊Reporting
CMDTRACE Displays macro expansion steps in the Extract report file.
LIST | NOLIST Displays or suppresses the listing of macros in the report file.
REPORT Schedules a statistical report.
定義自動定時報告。REPORT AT 01:59
STATOPTIONS Specifies information to include in statistical displays.
定義每次使用stat時統計數字是否需要重置
REPORTCOUNT Reports the number of records processed.報告已經處理的紀錄條數統計數字。
示例:REPORTCOUNT EVERY 30 MINUTES, RATE
--每隔30分鐘報告一次從程式開始到現在的抽取程式或者複製程式的事物記錄數,並彙報程式的統計資訊
TRACE/TRACE2 Shows Extract processing information to assist in revealing processing bottlenecks.
開啟對GoldenGate程式的跟蹤日誌,一般用於除錯。
WARNLONGTRANS Defines a long-running transaction and controls the frequency of checking for and reporting them
指定對於超過一定時間的長交易可以在ggserr.log裡面寫入警告資訊。例如,每隔30分鐘檢查一次長交易,對於超過12個小時的進行告警:
示例:warnlongtrans 12h, checkintervals 30m
WARNLONGTRANS 2h, CHECKINTERVAL 3m --每隔3分鐘檢查一下大事務,超過2小時還沒結束的進行報告
(9)錯誤處理Error handling
DDLERROR Controls error handling for DDL extraction.
DISCARDFILE Contains records that could not be processed.
定義discard檔案位置,如果處理中有紀錄出錯會寫入到此檔案中。
示例1:discardfile /oradata/goldengate/repkj.dsc,append,megabytes 100m
示例2:DISCARDFILE ./dirrpt/extya.dsc, APPEND, MEGABYTES 1024
--將執行失敗的記錄儲存在discard file中,該檔案位於./dirrpt/extya.dsc,大小為1024MB。 檔案中已經包含記錄的話,再後面繼續追加,不刪除之前的記錄
(10)協調Tuning
ALLOCFILES Controls the number of incremental memory structures allocated when the value of NUMFILES is reached.
BR Controls the Bounded Recovery feature of Extract.
CACHEMGR Controls the virtual memory cache manager.
示例:CACHEMGR CACHESIZE 8000MB, CACHEDIRECTORY /goldengate/temp, CACHEDIRECTORY /goldengate/temp2
在/goldengate/temp,/goldengate/temp2 目錄設定虛擬記憶體
CHECKPOINTSECS Controls how often Extract writes a checkpoint.
DBOPTIONS Specifies database options.指定對於某種特定資料庫所需要的特殊引數
示例:DBOPTIONS ALLOWUNUSEDCOLUMN
--當抽取程式遇到一個沒有使用的欄位時只生成一個警告,程式會繼續執行而不會被異常終止(abend)
DDLOPTIONS Specifies DDL processing options.
DYNAMICRESOLUTION |
NODYNAMICRESOLUTION Suppresses the metadata lookup for a table until Extract encounters transactional data for it. Makes Extract start faster when there are numerous tables specified for synchronization.
示例:DYNAMICRESOLUTION --有時候開啟OGG程式的時候較慢,可能是因為需要同步的表太多,OGG在開啟程式之前會將需要同步的表建立一個記錄並且存入到磁碟中,這樣就需要耗費大量的時間。使用該引數來解決此問題。
EOFDELAY | EOFDELAYCSECS Determines how long Extract delays before searching for more data to process.
FLUSHSECS | FLUSHCSECS Determines the amount of time that record data remains buffered before being written to the trail.
FUNCTIONSTACKSIZE Controls the size of the memory stack that is used for processing Oracle GoldenGate functions.
GROUPTRANSOPS Controls the number of records that are sent to the trail in one batch.
LOBMEMORY Controls the amount of memory and temporary disk space available for caching transactions that contain LOB s.
MAXFETCHSTATEMENTS Controls the maximum number of prepared queries that Extract can use to fetch data from the database.
NUMFILES Controls the initial allocation of memory dedicated to storing information about tables to be processed by Oracle GoldenGate.
定義本extract為最大多少張表預留空間,預設為500,超過500張表需要設定一個比實際表數略大的值。
示例:numfiles 3000
RMTHOSTOPTIONS Specifies connection attributes other than host information for a TCP/IP connection used by a passive Extract group.
THREADOPTIONS Controls aspects of the way that Extract operates in an Oracle Real Application Cluster environment. Supports Oracle.
示例:THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 60000 IOLATENCY 60000
RAC叢集中的所有節點必須同步系統時鐘。GoldenGate透過比較本地系統的時間和事務提交的時間點來做出關鍵決策。可以透過NTP來不同系統時間。所有節點上的COMPATIBLE引數設定也必須相同。注:這個引數在Oracle11.2版本後就不再使用了。
TRANLOGOPTIONS Supplies log-processing options.
指定在解析資料庫日誌時所需要的特殊引數。例如,對於裸裝置,可能需要加入下列引數:
示例1: tranlogoptions rawdeviceoffset 0
示例2:TRANLOGOPTIONS CONVERTUCS2CLOBS
--指定在解析資料庫日誌時所需要的特殊引數
--本引數只用在extract端 UTF字元型別,並且11.1.1前處理CLOB才需要:
示例3:--tranlogoptions asmuser sys@asm, asmpassword AACAAAAAAAAAAGAIF, ENCRYPTKEY default
示例4:TRANLOGOPTIONS altarchivelogdest primary instance sgpmdb1 /sgpmdb/arch altarchivelogdest instance sgpmdb2 /sgpmdb/arch 指定RAC環境下每個節點的歸檔日誌地址
TRANSMEMORY Controls the amount of memory and temporary disk space available for caching uncommitted transaction data.
設定GoldenGate的抽取程式能夠使用的記憶體大小。如下引數指定本程式最大隻能佔用2G記憶體,其中每個事務最大佔用記憶體不能超過500M,如果超過則使用指定目錄作為虛擬記憶體,該目錄下的單個檔案大小為4G,最多隻能在該目錄下佔用8G空間作為快取:
示例:transmemory directory (/backup/goldengate/dirtmp,8G,4G),ram 2G,transram 500M
(11)維護Maintenance
DISCARDROLLOVER Controls how often to create a new discard file.
示例:DISCARDROLLOVER AT 3:00 --為了防止discard file被寫滿,每天3:00做一次檔案過期設定
PURGEOLDEXTRACTS Purges obsolete trail files.同mgr程式,可以設定自動刪除佇列,建議在mgr設定
REPORTROLLOVER Specifies when to create new report files.
設定切換一個日誌的時間和間隔。示例:reportrollover at 02:00
ROLLOVER Specifies the way that trail files are aged.
(12)安全性Security
DECRYPTTRAIL Decrypts data in a trail or extract file. 解密trail檔案或extract檔案資料
ENCRYPTTRAIL | NOENCRYPTTRAIL Controls encryption of data in a trail or extract file. 加密trail或extract檔案的資料
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28389881/viewspace-2564461/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 常用的 wget 引數詳解wget
- oracle rac 核心引數詳解Oracle
- 瞭解GoldenGate Replicat的HANDLECOLLISIONS引數Go
- curl常用引數詳解及示例
- ORACLE中Cursor_sharing引數詳解Oracle
- SwaggerAPI註解詳解,以及註解常用引數配置SwaggerAPI
- PyTorch常用引數初始化方法詳解PyTorch
- oracle中的processes,session,transaction引數詳解OracleSession
- GoldenGate HANDLECOLLISIONS引數使用說明Go
- OGG引數詳解
- ajax 引數詳解
- JVM入門(JVM引數詳解和常用命令)JVM
- ORACLE filesystemio_options引數詳解及IO場景測試Oracle
- lsblk命令引數詳解
- tar命令引數詳解
- Dockerfile - 引數與詳解Docker
- 函式引數詳解函式
- Flink Checkpoint 引數詳解
- ORACLE GoldenGate Initial LoadOracleGo
- About the Oracle GoldenGate TrailOracleGoAI
- GoldenGate的一些引數的意義Go
- Nginx編譯引數大全 configure引數中文詳解Nginx編譯
- variables_order引數詳解
- Prometheus hashmod 配置引數詳解Prometheus
- pg_settings引數詳解
- SQL*Plus Set引數詳解SQL
- find 命令的引數詳解
- Oracle GoldenGate 18.1釋出OracleGo
- Oracle GoldenGate安裝(一)OracleGo
- Oracle GoldenGate安裝(二)OracleGo
- Oracle GoldenGate安裝(三)OracleGo
- 常用JVM引數JVM
- Git常用引數Git
- Oracle 核心引數Oracle
- Pandas read_csv 引數詳解
- Nginx 配置檔案引數詳解Nginx
- Redis日常運維-引數詳解Redis運維
- expdp/impdp 詳細引數解釋