golden gate 引數 PURGEOLDEXTRACTS

haozg_oracle發表於2012-08-28

      官方文件上的說明如下:

       PURGEOLDEXTRACTS:Purges trail data that is no longer needed(按規則清除主端或者是備端的不再需要的跟蹤檔案)
                  
         Using PURGEOLDEXTRACTS  as a Manager parameter is preferred over using the Extract or
         Replicat version of  PURGEOLDEXTRACTS . As a Manager parameter,  PURGEOLDEXTRACTS  allows
         you to manage trail files in a centralized fashion and take into account multiple processes.
         
          Use USECHECKPOINTS  to purge when all processes are finished with a file as indicated by
         checkpoints. This is the default, but it can be turned off with the NOUSECHECKPOINTS 
         option. Basing the purging on  checkpoints ensures that no data is deleted until all
         processes are finished with it.  USECHECKPOINTS is checked whether or not the parameter
         is explicitly defined with  PURGEOLDEXTRACTS , unless there is an explicit
         NOUSECHECKPOINTS  entry. Basing purges on checkpoi nts is essential in a production
         environment to ensure data integrity. USECHECKPOINTS  considers the checkpoints of both
         Extract and Replicat before purging.


         Use the  MINKEEP rules to set a minimum amount of time to keep unmodified data:
         Use MINKEEPHOURS or  MINKEEPDAYS  to keep data for    hours or days.
         Use MINKEEPFILES to keep at least   trail files including the active file. The default
         is 1 .


           Use only one  of the MINKEEP options. If more th an one is used, Oracle GoldenGate selects one of them based on the following:
          If both MINKEEPHOURS and  MINKEEPDAYS  are specified, only the last one is accepted, and the other will be ignored.
          If either MINKEEPHOURS or  MINKEEPDAYS  is used with MINKEEPFILES , then  MINKEEPHOURS  or MINKEEPDAYS  is accepted, and  MINKEEPFILES is ignored.

簡譯: 使用跟蹤檔案中的檢查點來判斷是否要被清除,但是在清除時還有遵循一定的 原則。用MINKEEP 來確定要保留的最小時間。主要作用來防止硬碟空間被無限的使用。

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23062014/viewspace-742095/,如需轉載,請註明出處,否則將追究法律責任。

相關文章