您好,登錄后才能下訂單哦!
這篇文章主要介紹“goldengate的常用命令總結(jié)”,在日常操作中,相信很多人在goldengate的常用命令總結(jié)問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”goldengate的常用命令總結(jié)”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!
1.查看幫助
help, help add exttrail
2.顯示當(dāng)前的GoldenGate環(huán)境信息
show
3.查看運(yùn)行狀態(tài)
info all, info mgr, info extract emytest
GGSCI (center) 6> info rchuc, showch
REPLICAT RCHUC Last Started 2013-12-06 15:13 Status ABENDED
Checkpoint Lag 00:00:00 (updated 442:29:13 ago)
Log Read Checkpoint File /u01/app/ggate/dirdat/zsap_chuc/re000011
First Record RBA 2605820
Current Checkpoint Detail:
Read Checkpoint #1
GGS Log Trail
這樣,會(huì)顯示很多信息出來(lái),就不再貼出來(lái)
4.啟動(dòng)和停止服務(wù)
start mgr,stop mgr
start extract emytest,stop extract emytest
start replicat rmytest,stop replicat rmytest
如果不能停止的話,
kill extract emytest
5.歷史命令
history
6.使用OBEY(自動(dòng)運(yùn)行一個(gè)文件)
testdb@mytest ggs]$ cat /home/testdb/ggs/yzhq.txt
status manager
status mgr
[testdb@mytest ggs]$
GGSCI (mytest.mugua) 1> obey yzhq.txt
GGSCI (mytest.mugua) 2> status manager
Manager is running (IP port mytest.mugua.7809).
GGSCI (mytest.mugua) 3> status mgr
Manager is running (IP port mytest.mugua.7809).
GGSCI (mytest.mugua) 4>
7.使用shell腳本
ggsci < <input_file>
[testdb@mytest ggs]$ ggsci < yzhq.txt
GoldenGate Command Interpreter for Oracle
Version 10.4.0.12 Build 001
Linux, x86, 32bit (optimized), Oracle 10 on Aug 21 2009 14:34:04
Copyright (C) GoldenGate Software, Inc. 1995-2009.
The GoldenGate software may include other code written by third parties;
details regarding such third party code, including applicable copyright,
legal and licensing notices are available at http://support.goldengate.com.
GGSCI (mytest.mugua) 1>
Manager is running (IP port mytest.mugua.7809).
GGSCI (mytest.mugua) 2>
Manager is running (IP port mytest.mugua.7809).
GGSCI (mytest.mugua) 3>
[testdb@mytest ggs]$
8.修改參數(shù)文件
edit params <group name>
9.參數(shù)文件存放的目錄
Storing parameter files<完整路徑>
10.參數(shù)文件內(nèi)的語(yǔ)法
<PARAMETER> <argument> [, <option>] [&]
11.查看命令
view params mgr --查看參數(shù)
view report emytest --查看進(jìn)程報(bào)告
12.查看操作的統(tǒng)計(jì)信息
STATS {EXTRACT | REPLICAT} <group>
stats er*
13.查看GoldenGate的錯(cuò)誤日志內(nèi)容
VIEW GGSEVT Contents
14. Deleting a process group
delete emytest
15.send命令
send extract emugua1, showtrans
send extract emugua1, status
SEND EXTRACT 進(jìn)程名, SKIPTRANS <5.17.27634>
跳過(guò)事務(wù)
SEND EXTRACT 進(jìn)程名, FORCETRANS <5.17.27634>
認(rèn)為該事務(wù)已經(jīng)提交
send 進(jìn)程名 forcestop
強(qiáng)制殺掉
16. alert 相關(guān)命令
--設(shè)置翻滾
alter extract EMUGUA1 etrollover
--設(shè)置抓取進(jìn)程開始位置
alter EMUGUA1 extseqno 11,extrba 0
--設(shè)置投遞進(jìn)程開始位置
alter PMUGUA1 extseqno 11,extrba 0
--設(shè)置開始時(shí)間點(diǎn)
ALTER EXTRACT EMUGUA1, TRANLOG, BEGIN 2012-09-14 13:30
--設(shè)置復(fù)制進(jìn)程開始位置
alter REPLICAT RMUGUA1 extseqno 10, extrba 0
到此,關(guān)于“goldengate的常用命令總結(jié)”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。