溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

OGG如何修改trail文件的大小

發(fā)布時(shí)間:2021-11-09 10:51:54 來源:億速云 閱讀:323 作者:小新 欄目:關(guān)系型數(shù)據(jù)庫

這篇文章將為大家詳細(xì)講解有關(guān)OGG如何修改trail文件的大小,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。

實(shí)驗(yàn)-修改trail文件的大小
先看原文檔:
Changing the size of trail files
更改trail 文件的大小
You can change the size of trail files with the MEGABYTES option of either the ALTER EXTTRAIL
or ALTER RMTTRAIL command, depending on whether the trail is local or remote. To change 
the file size, follow this procedure.
你可以通過alter 命令調(diào)整MEGABYTES 參數(shù)的值來改變trail 文件的大小,是使用ALTER EXTTRAIL
或者 ALTER RMTTRAIL要看trail 文件是在本地還是在其它地方
1. Issue one of the following commands, depending on the location of the trail,to view the 
path name of the trail you want to alter and the name of the associated Extract group. 
Use a wildcard to view all trails.
使用下面的命令獲得你想修改trail 文件的存放地址,你的trail文件所屬的組
(Remote trail)
INFO RMTTRAIL *
(Local trail)
INFO EXTTRAIL *
2. Issue one of the following commands, depending on the locationof the trail, to change 
the file size.
(Remote trail)
ALTER RMTTRAIL <trail name>, EXTRACT <group name>, MEGABYTES <n>
(Local trail)
ALTER EXTTRAIL <trail name>, EXTRACT <group name>, MEGABYTES <n>
3. Issue the following command tocause Extract to switch to the next file in the trail.
SEND EXTRACT <group name>, ROLLOVER
-------------------------------------------------------------------------分割線---------------------------------------------------------------------------------------------------------------
源端
停止抽取進(jìn)程
stop group_name
停止推送進(jìn)程
stop group_name
目標(biāo)端:
停止復(fù)制進(jìn)程
stop group_name
在源端查看信息
GGSCI (OGG1) 64> info exttrail *


       Extract Trail: /u01/ogg/dirdat/kt
             Extract: GGEX
               Seqno: 14
                 RBA: 3822
           File Size: 5M


       Extract Trail: /u01/ogg/dirdat/kt
             Extract: GGPUMP
               Seqno: 13
                 RBA: 3956
           File Size: 5M
運(yùn)行命令:
1、ALTER RMTTRAIL /u01/ogg/dirdat/kt, EXTRACT ggex, MEGABYTES 60--改成60M
2、ALTER EXTTRAIL /u01/ogg/dirdat/kt, EXTRACT ggpump, MEGABYTES 60---改成60M
3、SEND EXTRACT ggex, ROLLOVER
4、SEND EXTRACT ggpump, ROLLOVER
啟動(dòng)進(jìn)程
start 
查看是否發(fā)生改變:
GGSCI (OGG1) 91> info exttrail *


       Extract Trail: /u01/ogg/dirdat/kt
             Extract: GGEX
               Seqno: 17
                 RBA: 1007
           File Size: 60M


       Extract Trail: /u01/ogg/dirdat/kt
             Extract: GGPUMP
               Seqno: 16
                 RBA: 1149
           File Size: 60M



關(guān)于“OGG如何修改trail文件的大小”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請把它分享出去讓更多的人看到。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

ogg
AI