In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.