• 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. Define redo log files in an Oracle RAC environment
  2. Oracle database : Basics about pfile and spfile
  3. How to Verify if a Disk/Partition is in Use by Oracle ASM, was used by Oracle ASM or is never used by Oracle ASM
  4. ORA-00257:Archiver Error, Connect Internal Only Until Freed
  5. How to Turn Archiving ON and OFF in Oracle database
  6. Patching and Upgrading Databases in Oracle Data Guard Configuration
  7. How to Connect without password on Command line when using EZCONNECT
  8. How to Start and Stop Oracle RAC Instances (CDB/PDB)
  9. Oracle RAC: How to modify private hostname, Private network IP & MTU
  10. How To Recover From Lost SYS Password in Oracle Database

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright