maoj2008 发表于 2011-12-21 08:44

Oracle GoldenGate的常用命令


                <p><strong><span style="font-size: small;">1.查看帮助</span></strong></p>
<p>&nbsp;help, help add exttrail</p>

<p><strong><span style="font-size: small;">2.显示当前的GoldenGate环境信息</span></strong></p>
<p>&nbsp;show</p>

<p><strong><span style="font-size: small;">3.查看运行状态</span></strong></p>
<p>&nbsp; info all, info mgr, info extract einikk</p>
<p><strong><span style="font-size: small;">&nbsp;</span></strong></p>
<p><strong><span style="font-size: small;">4.启动和停止服务</span></strong></p>
<p>&nbsp; start mgr,stop mgr</p>
<p>&nbsp; start extract einikk,stop extract einikk</p>
<p>&nbsp; start replicat&nbsp;rinikk,stop replicat rinikk</p>

<p>&nbsp;&nbsp; 如果不能停止的话,</p>
<p>&nbsp;&nbsp; killi extract einikk</p>

<p><strong><span style="font-size: small;">5.历史命令</span></strong></p>
<p>&nbsp; history</p>

<p><strong><span style="font-size: small;">6.使用OBEY(自动运行一个文件)</span></strong></p>
<p>&nbsp; 1. Create and save a text file that contains the commands, one command per line. This is<br>your OBEY file. Name it what you want.<br>2. In GGSCI, call the OBEY file by using the following syntax.<br>OBEY &lt;file name&gt;<br><br><br>gdora@testdb11 ggs]$ cat /home/gdora/ggs/yzhq.txt <br>status manager<br>status mgr<br>$ <br><br><br>GGSCI (testdb11.zhyhl.com) 1&gt; obey yzhq.txt<br><br>GGSCI (testdb11.zhyhl.com) 2&gt; status manager<br><br><br>Manager is running (IP port testdb11.zhyhl.com.7809).<br><br><br>GGSCI (testdb11.zhyhl.com) 3&gt; status mgr<br><br><br>Manager is running (IP port testdb11.zhyhl.com.7809).<br><br><br>GGSCI (testdb11.zhyhl.com) 4&gt;</p>

<p><strong><span style="font-size: small;">&nbsp; 7.使用shell脚本</span></strong><br>&nbsp;&nbsp; Using UNIX batch and shell scripts<br>On a UNIX system, you can issue GoldenGate commands from a script such as a startup<br>script, shutdown script, or failover script by running GGSCI and calling an input file. Use<br>the following syntax:<br><br>ggsci &lt; &lt;input_file&gt;<br><br><br>$ ggsci &lt; yzhq.txt <br><br>GoldenGate Command Interpreter for Oracle<br>Version 10.4.0.12 Build 001<br>Linux, x86, 32bit (optimized), Oracle 10 on Aug 21 2009 14:34:04<br><br>Copyright (C) GoldenGate Software, Inc. 1995-2009.<br>The GoldenGate software may include other code written by third parties;<br>details regarding such third party code, including applicable copyright,<br>legal and licensing notices are available at http://support.goldengate.com.<br><br><br><br>GGSCI (testdb11.zhyhl.com) 1&gt; <br>Manager is running (IP port testdb11.zhyhl.com.7809).<br><br><br>GGSCI (testdb11.zhyhl.com) 2&gt; <br>Manager is running (IP port testdb11.zhyhl.com.7809).<br><br><br>GGSCI (testdb11.zhyhl.com) 3&gt; $ <br>$ </p>

<p><strong><span style="font-size: small;">8.修改参数文件</span></strong></p>
<p>&nbsp; edit params &lt;group name&gt;</p>

<p><strong><span style="font-size: small;">9.参数文件存放的目录</span></strong></p>
<p>&nbsp; Storing parameter files&lt;完整路径&gt;</p>

<p><strong><span style="font-size: small;">10.参数的使用规则和注释</span></strong></p>
<p>&nbsp;&nbsp; ---注释</p>

<p><strong><span style="font-size: small;">11.参数文件内的语法</span></strong></p>
<p>&nbsp;&nbsp; &lt;PARAMETER&gt; &lt;argument&gt; [, &lt;option&gt;] [&amp;]<br>&nbsp;</p>
<p><strong><span style="font-size: small;">12.查看参数文件的内容</span></strong></p>
<p>&nbsp; view params mgr</p>

<p><strong><span style="font-size: small;">13.查看报告</span></strong></p>
<p>&nbsp; view report einikk</p>

<p><strong><span style="font-size: small;">14.查看操作的统计信息</span></strong></p>
<p>&nbsp; STATS {EXTRACT | REPLICAT} &lt;group&gt;</p>
<p>&nbsp; stats er*</p>

<p><strong><span style="font-size: small;">15.info er*</span></strong></p>
<p><span style="font-size: small;"><strong>&nbsp;</strong></span></p>
<p><strong><span style="font-size: small;">16.查看GoldenGate的错误日志内容</span></strong></p>
<p>&nbsp; VIEW GGSEVT Contents</p>

<p><strong><span style="font-size: small;">17. Deleting a process group</span></strong></p>
<p>&nbsp; delete einikk</p>
               
               
               
               
               

9生命在于运动 发表于 2012-05-02 17:12

回复 1# maoj2008



Oracle GoldenGate的常用命令的介绍很好。我知道了很多。特别感谢!!!!!!!!!!{:2_179:}
   
页: [1]
查看完整版本: Oracle GoldenGate的常用命令