{"id":4152,"date":"2025-06-09T11:12:59","date_gmt":"2025-06-09T11:12:59","guid":{"rendered":"https:\/\/w3buddy.com\/?post_type=cposts&#038;p=4152"},"modified":"2025-06-09T11:19:14","modified_gmt":"2025-06-09T11:19:14","slug":"oracle-goldengate-ggsci-commands-2","status":"publish","type":"cposts","link":"https:\/\/w3buddy.com\/blog\/notes\/oracle-dba-d2d-tasks\/oracle-goldengate-ggsci-commands-2\/","title":{"rendered":"Oracle GoldenGate GGSCI Commands"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Oracle GoldenGate is a powerful tool for real-time data replication. To maintain data integrity and ensure smooth operation, it&#8217;s important to follow proper sequences for starting and stopping processes, and to use the correct GGSCI (GoldenGate Software Command Interface) commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stop Sequence (Order: Replicat \u2192 Extract \u2192 JAgent \u2192 Manager)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>STOP REPLICAT *       -- Stop all Replicat processes\nSTOP EXTRACT *        -- Stop all Extract processes\nSTOP JAGENT           -- Stop JAgent process\nSTOP MGR              -- Stop Manager process<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udcdd <em>Replicat is stopped first to prevent applying incomplete transactions; Extract next to stop capturing new data; JAgent follows to cleanly stop monitoring; and Manager last as it controls all other processes.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Start Sequence (Order: Manager \u2192 JAgent \u2192 Extract \u2192 Replicat)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>START MGR             -- Start Manager process\nSTART JAGENT          -- Start JAgent process\nSTART EXTRACT *       -- Start all Extract processes\nSTART REPLICAT *      -- Start all Replicat processes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udcdd <em>Manager is started first to initiate and manage all processes; JAgent next to enable monitoring and coordination; Extract follows to begin capturing changes; and Replicat last to start applying the captured data.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Manager Commands<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>INFO MANAGER                  -- Show Manager status\nSTART MANAGER                -- Start Manager\nSTOP MANAGER                 -- Stop Manager\nSTOP MANAGER!                -- Force stop (no confirmation)\nSEND MANAGER GETPORTINFO     -- View detailed port info<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Extract Commands<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>INFO EXTRACT &lt;name&gt;                    -- Show Extract status\nSTART EXTRACT &lt;name&gt;                   -- Start Extract process\nSTOP EXTRACT &lt;name&gt;                    -- Stop Extract process\nKILL EXTRACT &lt;name&gt;                    -- Force stop Extract\nSTATS EXTRACT &lt;name&gt;                   -- Show Extract statistics\nLAG EXTRACT &lt;name&gt;                     -- Check lag\nADD EXTRACT &lt;name&gt;, INTEGRATED TRANLOG, BEGIN NOW  -- Create Integrated Extract\nREGISTER EXTRACT &lt;name&gt;                -- Register Extract with DB\nUNREGISTER EXTRACT &lt;name&gt;              -- Unregister Extract\nCLEANUP EXTRACT &lt;name&gt;                 -- Clear Extract history\nDELETE EXTRACT &lt;name&gt;                  -- Delete Extract group\nSEND EXTRACT &lt;name&gt;                    -- Send command\/statistics to Extract\nVIEW REPORT &lt;name&gt;                     -- View Extract report<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Replicat Commands<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>INFO REPLICAT &lt;name&gt;                   -- Show Replicat status\nSTART REPLICAT &lt;name&gt;                  -- Start Replicat\nSTOP REPLICAT &lt;name&gt;                   -- Stop Replicat\nKILL REPLICAT &lt;name&gt;                   -- Force stop Replicat\nSTATS REPLICAT &lt;name&gt;                  -- Show Replicat stats\nLAG REPLICAT &lt;name&gt;                    -- Check lag\nREGISTER REPLICAT &lt;name&gt;              -- Register Replicat with DB\nUNREGISTER REPLICAT &lt;name&gt;            -- Unregister Replicat\nCLEANUP REPLICAT &lt;name&gt;               -- Clear Replicat history\nDELETE REPLICAT &lt;name&gt;                -- Delete Replicat group\nSEND REPLICAT &lt;name&gt;                  -- Send command\/statistics to Replicat\nVIEW REPORT &lt;name&gt;                    -- View Replicat report<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Trail &amp; Parameter File Commands<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ADD EXTTRAIL &lt;path&gt;                    -- Add local trail\nADD RMTTRAIL &lt;path&gt;                    -- Add remote trail\nINFO EXTTRAIL \/ RMTTRAIL              -- Display trail info\nDELETE EXTTRAIL \/ RMTTRAIL            -- Delete trail files\nVIEW PARAMS &lt;name&gt;                    -- View parameter file\nEDIT PARAMS &lt;name&gt;                    -- Edit parameter file<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">DB Login &amp; Security<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>DBLOGIN USERIDALIAS &lt;alias&gt;           -- Login using alias\nADD CREDENTIALSTORE                   -- Create credential wallet\nINFO CREDENTIALSTORE                  -- View stored credentials<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Supplemental Logging<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ADD SCHEMATRANDATA &lt;schema&gt;           -- Enable schema-level logging\nADD TRANDATA &lt;table&gt;                  -- Enable table-level logging\nDELETE TRANDATA &lt;table&gt;               -- Remove table-level logging\nINFO SCHEMATRANDATA \/ TRANDATA        -- Show current logging status<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Checkpoint &amp; Miscellaneous<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ADD CHECKPOINTTABLE                   -- Add checkpoint table\nDELETE CHECKPOINTTABLE                -- Remove checkpoint table\nINFO CHECKPOINTTABLE                  -- Show checkpoint info\nHISTORY                               -- View command history\nOBEY &lt;file.oby&gt;                       -- Execute commands from file\nSHELL &lt;OS_cmd&gt;                        -- Run OS command from GGSCI\nHELP &lt;command&gt;                        -- GGSCI command help<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always follow the recommended start\/stop order to avoid data loss or inconsistencies.<\/li>\n\n\n\n<li><code>SEND<\/code>, <code>INFO<\/code>, and <code>VIEW REPORT<\/code> commands are essential for troubleshooting.<\/li>\n\n\n\n<li>Use credential store and <code>USERIDALIAS<\/code> for secure DB access.<\/li>\n\n\n\n<li>Apply supplemental logging before setting up replication to ensure data integrity.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Oracle GoldenGate is a powerful tool for real-time data replication. To maintain data integrity and ensure smooth operation, it&#8217;s important to follow proper sequences for starting and stopping processes, and to use the correct GGSCI (GoldenGate Software Command Interface) commands. Stop Sequence (Order: Replicat \u2192 Extract \u2192 JAgent \u2192 Manager) \ud83d\udcdd Replicat is stopped first [&hellip;]<\/p>\n","protected":false},"template":"","meta":{"googlesitekit_rrm_CAowu461DA:productID":""},"categories":[952,984],"class_list":["post-4152","cposts","type-cposts","status-publish","hentry","category-notes","category-oracle-dba-d2d-tasks"],"_links":{"self":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/cposts\/4152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/cposts"}],"about":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/types\/cposts"}],"wp:attachment":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/media?parent=4152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/categories?post=4152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}