Generating encryption keys

GoldenGate uses encryption keys for encrypting the passwords and trail files. You can use default keys or define custom encryption keys. Oracle recommends using custom encryption keys for encrypting passwords and trail files. In this recipe you will learn how to generate encryption keys using the keygen tool.

How to do it…

  1. As the GoldenGate software owner, change the current directory to GoldenGate Home directory:
    cd $GG_HOME
  2. Generate the encryption key using the keygen utility:
    ./keygen <length> <number>

    for example

     ./keygen 128 1
  3. Copy the generated encryption key to the ENCKEYS file under $GG_HOME and give this key a logical name:
    dbkey1 0xC2052964C5C2C1309FEF5042E306716A
  4. If you are going to use encryption for encrypting the ...

Get Oracle GoldenGate 11g Complete Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.