AdminClient and Set Commands
AdminClient is the “new” command line utility that is used with Oracle GoldenGate Microservices. Initally, AdminClient was released with Oracle GoldenGate 12c (12.3.0.0.1) and enhanced in each release there after. With this new command line tool, there are a few things you can do with it that makes it a powerful tool for administering Oracle GoldenGate.
Reminder: This is only avaliable in Oracle GoldenGate Microservices Editions.
Features that make this tool so nice:
- Default command line tool for Microservices
- Can be installed on a remote linux machine or Windows Workstations/Laptops
- Can “Set” advanced setting that provide a few nice features
The third bullet is what will be the focus of this post.
The “Set” command within AdminClient provide you with options that allow you to extend the command line for Oracle GoldenGate. These features are:
- SET COLOR
- SET DEBUG
- SET EDITOR
- SET INSTANTIATION CSN
- SET PAGER
- SET VERBOSE
After starting the AdminClient, it is possible to see the current settings of these values by using the SHOW command:
Oracle GoldenGate Administration Client for Oracle Version 19.1.0.0.1 OGGCORE_19.1.0.0.0_PLATFORMS_190524.2201 Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved. Linux, x64, 64bit (optimized) on May 25 2019 02:00:23 Operating system character set identified as US-ASCII. OGG (not connected) 1> show Current directory: /home/oracle/software/scripts COLOR : OFF DEBUG : OFF EDITOR : vi PAGER : more VERBOSE : OFF OGG (not connected) 2>
If you want to change any of these settings, you can simply run the “set <option> <value>” at the command prompt. For example, I want to turn on the color option.
OGG (not connected) 2> set color on OGG (not connected) 3> show Current directory: /home/oracle/software/scripts COLOR : ON DEBUG : OFF EDITOR : vi PAGER : more VERBOSE : OFF OGG (not connected) 4>
Now, that we can set these values and change how AdminClient responds; how can these settings be automated (to a degree)? In order to do this, you can write a wrapper around the execution of the AdminClient executable (similar to my post on resolving OGG-01525 error). Within this wrapper, the setting you want to change has to be prefixed with ADMINCLIENT_. This would like this:
export ADMINCLIENT_COLOR=<value>
Note: The <value> is case sensitive.
My shell script for AdminClient with the settings I like to have turned on is setup as follows:
#/bin/bash export OGG_VAR_HOME=/tmp export ADMINCLIENT_COLOR=ON export ADMINCLIENT_DEBUG=OFF ${OGG_HOME}/bin/adminclient
Now, when I start AdminClient, I have all the settings I want for my environment. Plus, the ones I do not set will take the default settings.
[oracle@ogg19c scripts]$ sh ./adminclient.sh Oracle GoldenGate Administration Client for Oracle Version 19.1.0.0.1 OGGCORE_19.1.0.0.0_PLATFORMS_190524.2201 Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved. Linux, x64, 64bit (optimized) on May 25 2019 02:00:23 Operating system character set identified as US-ASCII. OGG (not connected) 1> show Current directory: /home/oracle/software/scripts COLOR : ON DEBUG : OFF EDITOR : vi PAGER : more VERBOSE : OFF OGG (not connected) 2>
Enjoy!!!
Current Oracle Certs
Bobby Curtis
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.