Oracle GoldenGate Notes
Oracle GoldenGate Notes
Directory Contents
dirbdb * Berkeley DB for Monitor facility
dirchk Oracle GoldenGate checkpoint files
dircrd * Credential Store for users and passwords
dirdat Oracle GoldenGate trail and Extract files
dirdef Column definitions produced by defgen to translate heterogeneous data
dirjar Java executables to support OGG Monitor and other services
dirpcs Process status files
dirprm Parameter files
dirrpt Process report files
dirsql SQL scripts
dirtmp Temp storage for transactions that exceed allocated memory
dirwlt * Wallet for masterkey; works with dircrd
dirwww * Web artifacts for Monitoring
A few other directories are not shown. * New with 12c
Oracle Wallet:
– Contains user IDs and passwords
– Is used in Extracts, ASM, and so
on
GGSCI> Create Wallet
GGSCI> Add CredentialStore
GGSCI> Alter CredentialStore Add User oggadmin
Password Welcome1 Alias oggalias
GGSCI> Info CredentialStore
GGSCI> DBLogin UserIDAlias oggalias
The Info command lists the user IDs and aliases, but not the passwords.
The following are the additional commands that are not shown in the slide:
GGSCI> Alter CredentialStore Replace User userid …
GGSCI> Alter CredentialStore Delete User userid …
Optionally, you can add “Domain mydom” at the end of each of the Alter commands
to
maintain multiple groups of credentials in the same wallet. As another option, the
userid
can include an Oracle SID in the form of @mysid as a suffix.
The parameter file on the previous page would now look like:
Extract extwest
ExtTrail ./dirdat/ew
UserIDAlias oggalias
TranLogOptions ExcludeUser ogguser
Table WEST.*;
Table SALES.INVENTORY;
Convert to Integrated:
• In the parameter file:
GGSCI> DBLogin UserIDAlias <useralias>
GGSCI> Register Extract my_capt Database
GGSCI> Stop Extract my_capt
GGSCI> Alter Extract my_capt, Upgrade Integrated Tranlog
GGSCI> Start Extract my_capt
--Extract my_capt
:
TranLogOptions IntegratedParams (max_sga_size 900, &
parallelism 3)
:
Replicat: Overview
• The Replicat process runs on the target system.
• Multiple Replicat processes can be used with multiple
Extract processes in parallel to increase throughput.
• Replicat can:
– Read data out of Oracle GoldenGate trails
– Perform data filtering by table, row, or operation
– Perform data transformation
– Perform database operations just as your application
performed them
Oracle GoldenGate trails are temporary queues for the Replicat process. Each record
header
in the trail provides information about the database change record. Replicat reads these
trail
files sequentially and then processes INSERTs, UPDATEs, and DELETEs that meet your
criteria. Alternatively, you can filter out the rows that you do not want to deliver, as well
as
perform data transformation before applying the data.
Replicat supports a high volume of data-replication activity. As a result, network activity
is
block based, not record-at-a-time. Replicat uses native calls to the database for optimal
performance. You can configure multiple Replicat processes for increased throughput.
When replicating, Replicat preserves the boundaries of each transaction so that the
target
database has the same degree of integrity as the source. Small transactions can be
grouped
into larger transactions to improve performance. Replicat uses a checkpointing scheme,
so
changes are processed exactly once. After a graceful stop or a failure, processing can
be
restarted without repetition or loss of continuity.
Oracle GoldenGate 12c: Fundamentals for Oracle 7 - 5
Copyright