There are a number of other useful GoldenGate commands which we can run from the GGSCI interface. The GoldenGate Reference Guide has information in more detail, but I have tried out a few and found some to be very useful which I am highlighting below. HISTORY: To view a list of the most recently issued GGSCI commands since the GGSCI session started GGSCI (linux01.oncalldba.com) 4> history GGSCI Command History 1: show all ! : Use the ! command to execute a previous GGSCI command without modifications. GGSCI (linux01.oncalldba.com) 3> info extract ext3 EXTRACT EXT3 Last Started 2010-07-21 14:29 Status RUNNING GGSCI (linux01.oncalldba.com) 4> ! EXTRACT EXT3 Last Started 2010-07-21 14:29 Status RUNNING We can also use a combination of “!” and HISTORY to run a particular command listed in the history. VERSIONS: to display operating system and database version information. Use DBLOGIN to connect to the database first GGSCI (linux01.oncalldba.com) 11> dblogin userid ggs_owner, password ggs_owner GGSCI (linux01.oncalldba.com) 12> versions Database: SHELL: to execute shell commands from within the GGSCI interface. GGSCI (linux01.oncalldba.com) 13> shell ls -l /home/oracle/goldengate/dirdat/ total 50588 HELP: to obtain information about a GoldenGate command. The basic command returns a list of command categories and the associated commands GGSCI (linux01.oncalldba.com) 15> help GGSCI Command Summary SUBDIRS CREATE SUBDIRS ER INFO ER, KILL ER, LAG ER, SEND ER, STATUS ER, START ER, STATS ER, STOP ER EXTRACT ADD, ALTER, CLEANUP, DELETE, INFO, KILL, LAG, SEND, START, STATS, STATUS, STOP EXTTRAIL ADD, ALTER, DELETE, INFOGGSEVT VIEW MANAGER INFO, REFRESH, SEND, START, STOP, STATUSMARKER INFO PARAMS EDIT, VIEW REPLICAT ADD, ALTER, CLEANUP, DELETE, INFO, KILL, LAG, SEND, START, STATS, STATUS, STOPREPORT VIEW RMTTRAIL ADD, ALTER, DELETE, INFOTRACETABLE ADD, DELETE, INFO TRANDATA ADD, DELETE, INFODatabase DBLOGIN, LIST TABLES, ENCRYPT PASSWORDDDL DUMPDDL CHECKPOINTTABLE ADD CHECKPOINTTABLE, DELETE CHECKPOINTTABLE, CLEANUP CHECKPOINTTABLE, INFO CHECKPOINTTABLE Miscellaneous FC, HELP, HISTORY, INFO ALL, INFO MARKER, OBEY, SET, SHELL, SHOW, VERSIONS, ! For help on a specific command, type HELP [command] [object] Example: HELP ADD REPLICAT OBEY: to process a file that contains a list of GoldenGate commands. OBEY is useful for executing commands that are frequently used in sequence. Suppose we want to run some Goldengate commands and execute those from a Unix shell script which can be called via say cron. So we have a start_goldgate.sh shell script which will use the GGSCI command OBEY to call a text file which has the Goldengate commands which we would like to run in sequence. [oracle@linux01 goldengate]$ cat start_goldgate.sh [oracle@linux01 goldengate]$ cat startup.txt [oracle@linux01 goldengate]$ ./start_goldgate.sh Oracle GoldenGate Command Interpreter for Oracle Version 10.4.0.19 Build 002 Linux, x86, 32bit (optimized), Oracle 11 on Sep 29 2009 08:50:50 Copyright (C) 1995, 2009, Oracle and/or its affiliates. All rights reserved. GGSCI (linux01.oncalldba.com) 1> GGSCI (linux01.oncalldba.com) 2> START MANAGERManager started. GGSCI (linux01.oncalldba.com) 3> START EXTRACT EXT3 EXTRACT EXT3 is already running. GGSCI (linux01.oncalldba.com) 4> START EXTRACT DPUMP EXTRACT DPUMP is already running.GGSCI (linux01.oncalldba.com) 5> INFO ALL Program Status Group Lag Time Since Chkpt MANAGER RUNNINGEXTRACT RUNNING DPUMP 00:00:00 00:00:01 EXTRACT ABENDED EXT2 00:00:00 172:36:58 EXTRACT RUNNING EXT3 00:00:00 00:00:04 |