Create pipeline resources
Create connections
OCI GoldenGate Pipelines support Oracle Database connections. Before you create a pipeline, ensure that you first prepare your database for GoldenGate, and then create connections to your source and target databases.
Note:
If replicating from an Autonomous AI Database source to a target that isn't an Autonomous AI Database, then you must unzip the source Autonomous AI Database wallet to/u01/targetwallet
on target database. DBLINK is created from the target database to the source
database.
You can also create connection source and target connections in the Create pipeline workflow.
Create pipelines
- Check your source and target database versions. The target database version must be a higher version than the source database.
- Review and configure row uniqueness across database tables to avoid primary key issues with ZeroETL mirroring. Primary keys uniquely identifies a record or row in a database table. See Ensuring row uniqueness in source and target tables.
- As a user with admin privileges for the target database, grant the
following privileges to the GGADMIN user for ZeroETL
mirroring:
GRANT DWROLE TO GGADMIN; GRANT DATAPUMP_CLOUD_EXP TO GGADMIN; GRANT DATAPUMP_CLOUD_IMP TO GGADMIN; GRANT EXECUTE ON DBMS_CLOUD_ADMIN TO GGADMIN; GRANT CREATE DATABASE LINK TO GGADMIN;Additionally, for non-Autonomous AI Databases, add the following for Initial Load:
For Capture and Apply in non-Autonomous AI Databases, review Prepare database users and privileges for Oracle.GRANT DATAPUMP_EXP_FULL_DATABASE TO GGADMIN CONTAINER=CURRENT; GRANT DATAPUMP_IMP_FULL_DATABASE TO GGADMIN CONTAINER=CURRENT; GRANT CREATE DATABASE LINK TO GGADMIN CONTAINER=CURRENT; - Check
DBA_GOLDENGATE_SUPPORT_MODEview on the source database that displays information about the level of Oracle GoldenGate capture process support for the tables in the database. - Add the minimum required policies for GoldenGate pipelines.
Note:
GLOBAL_NAMES on your
non-Autonomous AI Database. Run the following
command:ALTER SYSTEM SET GLOBAL_NAMES = FALSE;See step 4 of Create Database Links from Other Databases to Autonomous AI Database to learn more.
Add mapping rules
- On the Pipeline information page, select Mapping rules.
- In the Mapping rules list you can review or edit the current mapping rules
and:
- Preview: Review how your mapping rules affect the schemas and tables included in the replication.
- Add: Identify tables and schemas to include or exclude. You can use the fully qualified object name or wildcards in place of any part of the object name. For more information, see Using Wildcards in Database Object Names.
- Remove: Remove mapping rules.
Enable pipeline logs
- On the Pipelines page, select the pipeline for which you want to enable logging.
- On the Pipelines details page, select Logs.
- In list of pipeline logs, select Enable log from the Critical Events Actions menu.
- In the Enable log panel:
Oracle Data Pump fails if the target database time zone file version is lower than the source database's
The pipeline option, "Copy existing data to target database before starting replication" uses Oracle Data Pump. Oracle Data Pump fails if the target database's time zone file version is lower than that of the source database.
Workaround: To work around this, you must upgrade the target database's time zone version. See Manage time zone file updates on Autonomous Database.