Configuring a downstream mining database, see Configuring a Downstream Mining Database.
Topics:
This example captures changes from source database DBMS1 by deploying an integrated capture session at a downstream mining database DBMSCAP.
Note:
The example assumes that you created the necessary standby redo log files as shown in Configuring a Downstream Mining Database.
This assumes that the following users exist:
User GGADM1 in DBMS1 whose credentials Extract will use to fetch data and metadata from DBMS1. This user has the alias of ggadm1
in the Oracle GoldenGate credential store and logs in as ggadm1@dbms1
. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at the source database.
User GGADMCAP in DBMSCAP whose credentials Extract will use to retrieve logical change records from the logmining server at the downstream mining database DBMSCAP. This user has the alias of ggadmcap
in the Oracle GoldenGate credential store and logs in as ggadmcap@dbmscap
. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at the mining database.
Parent topic: Example Downstream Mining Configuration
To prepare the mining database to archive its local redo:
To prepare the mining database to archive the redo received in standby redo logs from the source database:
To prepare the source database to send redo to the mining database:
To set up integrated capture (ext1) on DBMSCAP:
Note:
You can create multiple Extracts running in real-time integrated capture mode in the downstream mining database, as long as they all are capturing data from the same source database, such as capturing changes for database DBMS1 in the preceding example.
The following example captures changes from database DBMS1 and DBMS2 by deploying an integrated capture session at a downstream mining database DBMSCAP.
It assumes the following users:
User GGADM1 in DBMS1 whose credentials Extract will use to fetch data and metadata from DBMS1. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at DBMS1.
User GGADM2 in DBMS2 whose credentials Extract will use to fetch data and metadata from DBMS2. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at DBMS2.
User GGADMCAP in DBMSCAP whose credentials Extract will use to retrieve logical change records from the logmining server at the downstream mining database. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at the downstream mining database DBMSCAP.
This procedure also assumes that the downstream mining database is configured in archive log mode.
Parent topic: Example Downstream Mining Configuration
To prepare the mining database to archive its local redo:
Set DG_CONFIG
at the downstream mining database.
ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(dbms1,dbms2, dbmscap)'
To prepare the first source database to send redo to the mining database:
To prepare the second source database to send redo to the mining database:
The following example captures changes from database DBMS1, DBMS2 and DBMS3 by deploying an integrated capture session at a downstream mining database DBMSCAP.
Note:
This example assumes that you created the necessary standby redo log files as shown in Configuring a Downstream Mining Database.
It assumes the following users:
User GGADM1 in DBMS1 whose credentials Extract will use to fetch data and metadata from DBMS1. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at DBMS1.
User GGADM2 in DBMS2 whose credentials Extract will use to fetch data and metadata from DBMS2. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at DBMS2.
User GGADM3 in DBMS3 whose credentials Extract will use to fetch data and metadata from DBMS3. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at DBMS3.
User GGADMCAP in DBMSCAP whose credentials Extract will use to retrieve logical change records from the logmining server at the downstream mining database. It is assumed that the DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE()
procedure was called to grant appropriate privileges to this user at the downstream mining database DBMSCAP.
This procedure also assumes that the downstream mining database is configured in archive log mode.
In this example, the redo sent by DBMS3 will be mined in real time mode, whereas the redo data sent from DBMS1 and DBMS2 will be mined in archive-log-only mode.
Parent topic: Example Downstream Mining Configuration
To prepare the mining database to archive its local redo:
Because redo data is being accepted in the standby redo logs of the downstream mining database, the appropriate number of correctly sized standby redo logs must exist. If you did not configure the standby logs, see Configuring a Downstream Mining Database.
To prepare the first source database to send redo to the mining database:
To prepare the second source database to send redo to the mining database:
To prepare the third source database to send redo to the mining database:
These steps set up Extract at the downstream database to capture from the archived logs sent by DBMS1 and DBMS2.
Perform the following steps on the DBMSCAP downstream mining database.
Parent topic: Set up Extracts at Downstream Mining Database
Perform the following steps on the DBMSCAP downstream mining database.
Parent topic: Set up Extracts at Downstream Mining Database
Perform the following steps on the DBMSCAP downstream mining database.
Note:
You can create multiple Extracts running in real-time integrated capture mode in the downstream mining database, as long as they all are capturing data from the same source database, such as all capturing for database DBMS3 in the preceding example.
Parent topic: Set up Extracts at Downstream Mining Database