-- AWS for Database Administrators — downloadable lab code
-- Lab 5 — Oracle GoldenGate to AWS
-- Step 3 — Configure and start Extract
-- Block: Store the database credentials and add schema-level supplemental logging
-- Run on: lenovaonprem1, in the Admin Client. Replace the URL and
-- administrator name with those of your deployment; the client prompts for
-- passwords you do not supply.
--
-- GoldenGate Admin Client commands. Each command must be entered on ONE line;
-- the book wraps long commands for the page, this file does not. Paste the
-- commands below one at a time at the Admin Client prompt.
-- ----------------------------------------------------------------------

CONNECT https://lenovaonprem1.bcs.com:<ADMIN_PORT> DEPLOYMENT OGGDEP1 AS <OGG_ADMIN_USER>
ALTER CREDENTIALSTORE ADD USER ggadmin@//hponprem1.bcs.com:1521/BAJPDB1 ALIAS src_pdb DOMAIN OracleGoldenGate
ALTER CREDENTIALSTORE ADD USER ggadmin@//localhost:15210/FREEPDB1 ALIAS tgt_pdb DOMAIN OracleGoldenGate
DBLOGIN USERIDALIAS src_pdb DOMAIN OracleGoldenGate
ADD SCHEMATRANDATA shop ALLCOLS
INFO SCHEMATRANDATA shop
