• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Oracle GoldenGate: How to start Extract & Replicat using Shell Script

by admin

For simple commands, you can “pipe” the output of one command to GGSCI’s input; for example:

$ echo "start EAIOU" | ggsci

will issue the “start EIAOU” command to GGSCI. GGSI’s messages will appear on the terminal.

For more than one command, you can either use the above with an OBEY command, or redirect the standard input to read from the file containing the commands:

$ echo "obey bunchacommands" | ggsci

or

$ ggsci < test.in > ./dirout/test.out

In the latter example, test.in has the Goldengate commands you want to run, and the output from GGSCI is redirected into the file test.out. You may also use the “>>” redirection to append the output to the specified file instead of replacing the contents of the file.

Filed Under: GoldenGate, oracle

Some more articles you might also be interested in …

  1. How to Configure Device File owner/group with udev rules
  2. How to find Cluster Name and Grid Version in Oracle RAC
  3. How to Enable Fast-Start Failover in Oracle Data Guard
  4. What are Oracle Data Guard Protection Modes (redo transport rules) and how to configure them
  5. Script to Automatically Start GoldenGate
  6. How To Set the Permission of the Files Created Using UTL_FILE
  7. Beginners guide to oracle synonyms
  8. How to reclaim entire space of an oracle database table with “Truncate Table” statement
  9. Oracle Database : Shutdown Basics (How to Shutdown Oracle Database)
  10. Error: ORA-16810: multiple errors or warnings detected for the database

You May Also Like

Primary Sidebar

Recent Posts

  • qsub Command Examples in Linux
  • qsub: command not found
  • qrcp Command Examples in Linux
  • qmrestore Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright