Get the App
SLTechnology News&Howtos  ›  Database  › 

Goldengate configuration ddl support

Shulou Source: shulou.com Published: 2022-06-01 07:24:38 10月04日 Update

Change to the goldengate software directory and log in to the database sqlplus / as sysdba:

A.@marker_setup.sql

B.@ddl_setup.sql # the input goldengate here the administrative user oggadmin must specify a separate tablespace and automatically extend.

C.@role_setup.sql

D.@ddl_enable.sql

E.@?/rdbms/admin/dbmspool.sql

F.@ddl_pin.sql oggadmin # # where oggadmin is the administrative account configured in goldnegate

Note: oracle10 needs to close recyclebin,oracle11g and does not need to close recyclebin in the future.

Add parameters at the source end:

Ddl &

Include mapped objname app.t_bi_sku &

Include mapped objname app.t_bi_barcode

Pump process add parameters:

Ddl

Add parameters to the application process:

DDL INCLUDE MAPPED

DDLERROR DEFAULT IGNORE RETRYOP

The specific script execution is as follows:

1. Execute the marker_setup.sql script on the source side:

[oracle@goldengate] $ls marker_setup.sql

Marker_setup.sql

[oracle@goldengate] $sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Tue Mar 19 15:21:11 2019

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL > @ marker_setup.sql

Marker setup script

You will be prompted for the name of a schema for the Oracle GoldenGate database objects.

NOTE: The schema must be created prior to running this script.

NOTE: Stop all DDL replication before starting this installation.

Enter Oracle GoldenGate schema name:oggadmin # # configure administrative users of goldengate

Marker setup table script complete, running verification script...

Please enter the name of a schema for the GoldenGate database objects:

Setting schema name to OGGADMIN

MARKER TABLE

-

OK

MARKER SEQUENCE

-

OK

Script complete.

SQL >

two。 Execute the second script, ddl_setup.sql:

SQL > @ ddl_setup.sql

Oracle GoldenGate DDL Replication setup script

Verifying that current user has privileges to install DDL Replication...

You will be prompted for the name of a schema for the Oracle GoldenGate database objects.

NOTE: For an Oracle 10g source, the system recycle bin must be disabled. For Oracle 11g and later, it can be enabled.

NOTE: The schema must be created prior to running this script.

NOTE: Stop all DDL replication before starting this installation.

Enter Oracle GoldenGate schema name:oggadmin

Working, please wait...

Spooling to file ddl_setup_spool.txt

Checking for sessions that are holding locks on Oracle Golden Gate metadata tables...

Check complete.

Declare

*

ERROR at line 1:

ORA-20783:

ORA-20783:

Oracle GoldenGate DDL Replication setup:

* Please move OGGADMIN to its own tablespace

ORA-06512: at line 34

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

Resolve:

Alter user OGGADMIN default tablespace OGG_TBS

Alter user OGGADMIN quota unlimited on OGG_TBS

3.

SQL > @ role_setup.sql

GGS Role setup script

This script will drop and recreate the role GGS_GGSUSER_ROLE

To use a different role name, quit this script and then edit the params.sql script to change the gg_role parameter to the preferred name. (Do not run the script.)

You will be prompted for the name of a schema for the GoldenGate database objects.

NOTE: The schema must be created prior to running this script.

NOTE: Stop all DDL replication before starting this installation.

Enter GoldenGate schema name:oggadmin

Wrote file role_setup_set.txt

PL/SQL procedure successfully completed.

Role setup script complete

Grant this role to each user assigned to the Extract, GGSCI, and Manager processes, by using the following SQL command:

GRANT GGS_GGSUSER_ROLE TO

Where is the user assigned to the GoldenGate processes.

SQL > grant GGS_GGSUSER_ROLE to oggadmin

Grant succeeded.

4. Execute some other sql scripts:

SQL > @ ddl_enable.sql

Trigger altered.

SQL > @? / rdbms/admin/dbmspool.sql

Package created.

Grant succeeded.

SQL > @ ddl_pin.sql oggadmin

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

Tags: Scripts parameters management configuration users processes comments data databases directories space accounts software switching applications login input support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology NVidia MariaDB Redmi Huawei