暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

第111篇 专题 :01.GoldenGate Microservices Architecture

原创 ByteHouse 2025-12-30
347

摘要:使用案例详细介绍了 19C ogg 的微服务构架,如有错误可以私信我修改完善。

  1. 第110篇 专题 :OGG 微服务架构的介绍 https://www.modb.pro/db/2002928197801959424
  2. 第111篇 专题 :01.GoldenGate Microservices Architecture https://www.modb.pro/db/2006005568231251968

1.Oracle GoldenGate

Oracle GoldenGate 微服务架构(MA)是从 GoldenGate 12.3 开始引入,目前最新的 Oracle GoldenGate(OGG)微服务架构是 21.4 版本。

Oracle GoldenGate 12.3版中引入了Oracle GoldenGate微服务体系结构。在每一个新版本中,Oracle都增强了微服务体系结构。直到OGG21c,UI都是一样的。但是,Oracle GoldenGate23ai已经推出了一个新的现代化用户界面和一系列增强功能。

Oracle数据库的Oracle GoldenGate Classic Extract已经从OGG 18c版本和现在的OGG 21c版本中被取消支持,Oracle GoldenGate Classic Architecture 本身在Oracle Goldengate23ai中被弃用、取消支持和不可用。

Oracle GoldenGate provides low-impact capture, routing, transformation, and delivery of database transactions across homogeneous and heterogeneous environments in real-time with no distance limitations.

We all know the architecture of Oracle GoldenGate which is pretty simple and easy to understand. It has components like。

  1. Manager Process
  2. Extract Process
  3. DataPump Process
  4. Server Collector Process
  5. Replicat Process
  6. Trail Files
  7. Checkpoint Files

Each and every process has it’s own roles and responsibilities to play during the course of replication. The more details about this architecture is explained in the below link

, From OGG 12.3, a new kind of architecture has been introduced in Oracle GoldenGate known as “Microservices Architecture”. In this article, I will be explaining you the various components involved in it and their roles and responsibilities.

Oracle GoldenGate Microservices Architecture can be used to manager the data replication using an HTML interface. The replication processes works with the secure REST API interfaces.

In the Classic Architecture of OGG, we need separate tools to monitor the OGG instances. But Oracle GoldenGateMA provides all the tools you need to configure, monitor, and administer your deployments.

There are five major components introduced in Oracle GoldenGate MA. Each component has it’s own login console page. They are as below

  • SERVICE MANAGER
  • ADMINISTRATION SERVER
  • DISTRIBUTION SERVER
  • RECEIVER SERVER
  • PERFORMANCE METRICS SERVER
    One of the difference between the Classic Architecture and OGG MA is, in the Classic Architecture you have DataPump process and Server Collector process. But in OGG MA it has been replaced by Distribution Server and Receiver Server. The Extracts and Replicats does not have any change in it. It is the same as the Classic Architecture.

Oracle GoldenGate 21c has many enhancements. One of which is Oracle Database Unified Build Support.

What is Unified Build Support?

  1. 安装版本的选择
    在安装 Oracle GoldenGate for Oracle Database 21C 以前的版本,在安装过程中有一个步骤,即选择要安装Oracle GoldenGate的数据库版本。

    如果数据库版本为12c,则必须选择12c选项,需要安装选择相应的数据库版本。

将Oracle数据库从12c升级到19c,我们将通过选择数据库选项19c来重新安装Oracle GoldenGate。

从Oracle GoldenGate 21c中,选择Oracle数据库版本的步骤将不存在。

这是Oracle GoldenGate 21c中的一个优秀功能,它在我们执行Oracle数据库版本的重大升级时简化了我们的工作。

  1. 是否安装据库客户端
    如果要使用HUB类型的模型,则不需要安装数据库客户端。

从Oracle GoldenGate 21c开始,该包含在最新的Oracle数据库客户端库中。

OGG Microservices 19c 安装相关的 lib 文件

Oracle GoldenGate 21c 安装相关的 lib 文件,您可以看到与之捆绑的附加库和即时客户端。

1.1.Oracle GoldenGate 微服务架构与组件

Oracle GoldenGate Microservices Architecture(MA)允许您使用RESTful服务在同构或异构数据库环境中配置和管理数据复制。可以使用各种接口来访问这些微服务,包括web界面、命令行界面、REST API或允许访问基于REST的微服务的任何其他服务。

下图说明了安全(HTTPS)或非安全(HTTP)环境中的复制过程循环。

Oracle GoldenGate微服务架构的特点:
Oracle GoldenGate微服务体系结构处理在数据复制周期的不同阶段执行的不同任务。一些产品功能包括:
Oracle GoldenGate微服务架构与配置与每个部署相关联的微服务所需的实用程序捆绑在一起。请参阅Oracle GoldenGate微服务体系结构的组件。
它采用行业标准HTTPS通信协议和JavaScript对象表示法(JSON)数据交换格式进行设计。
该体系结构提供了使用各种安全策略来保护数据复制环境的选项,包括保护静态和动态数据、TLS加密、OAuth 2.0身份验证和授权、与外部用户身份验证服务的集成等。

Oracle GoldenGate微服务的接入点:
Oracle GoldenGate微服务可以从各种客户端或服务接口访问。您可以使用这些服务接口连接或登录到微服务,并设置数据复制任务,使用统计数据管理和监视流程,调整性能,配置安全选项,以及许多其他相关任务。

Oracle GoldenGate微服务体系结构与以下服务接口捆绑在一起:

  • 管理客户端:从命令行提供对微服务的访问。
  • 基于浏览器的用户界面,实现基于GUI的体验
  • REST API服务终结点

下图显示了各种客户端(Oracle产品、命令行界面、浏览器和编程REST API接口),您可以使用它们来访问和管理部署、微服务和所有其他Oracle GoldenGate进程。

微服务架构包括一个基于HTML5的web界面,用于管理、管理、监控和安全部署。您可以在特定于每个微服务和服务管理器的URL的帮助下访问此web界面。web界面包括Service Manager、Administration Service、Distribution Service、Receiver Service和Performance Monitoring Service。

您可以使用这些web界面访问点来创建和运行所有提取、复制和分发路径进程。除此之外,您还可以设置数据库凭据,添加在为用户定义角色后可以访问部署的用户,并监视流程的性能。

请参见关于提取和关于复制。

REST API提供服务端点来管理Oracle GoldenGate部署和复制服务。请参阅REST API文档。

您可以使用这些选项中的任何一个来使用Oracle GoldenGate Microservices Architecture设置。

管理客户机:
管理客户端是一个命令行实用程序(类似于经典的GGSCI实用程序)。您可以使用它发出配置、控制和监视Oracle GoldenGate的完整命令范围。请参阅关于管理客户端。

管理客户端用于创建、修改和删除进程,而不是使用MA web用户界面。Admin Client程序位于OGG_HOME/bin目录中,其中OGG_ HOME是Oracle GoldenGate主目录。如果需要自动化管理客户端与部署的连接,可以使用Oracle Wallet存储用户凭据。存储的凭据必须具有以下特征:

  • 单个用户名(帐户)和密码
  • 管理客户端运行的环境的本地
  • 仅对当前登录的用户可用
  • 由管理客户端管理
  • 使用凭据名称引用
  • 可用于Oracle GoldenGate部署和代理连接。

REST API
Oracle GoldenGate的REST API提供了服务端点,用于直接从REST API接口执行各种数据复制任务。这是使用web界面或命令行设置数据复制过程和任务的替代方法。

1.2.Oracle GoldenGate微服务体系结构的组件

微服务体系结构中的目录和变量

微服务架构采用简化的安装和部署目录结构进行设计。
此目录结构基于Linux Foundation文件系统层次结构标准。增加了额外的灵活性,允许将部分部署子目录放置在文件系统中的其他位置或其他设备(包括共享网络设备)上。该设计包括一个只读的Oracle GoldenGate主目录,其中安装了Oracle GoldenCate Microservices Architecture,并创建自定义部署特定目录,如下所示:

[root@localhost bin]# pwd
/u01/app/ogg/ogg213_ma/bin
[root@localhost bin]# 
[root@localhost bin]# ll
total 113596
-rwxrwxr-x. 1 oracle oinstall  5111424 Jul 29  2021 adminclient
-rwxrwxr-x. 1 oracle oinstall 11692320 Jul 29  2021 adminsrvr
-rwxrwxr-x. 1 oracle oinstall  1645280 Jul 29  2021 cachefiledump
-rwxrwxr-x. 1 oracle oinstall  3185008 Jul 29  2021 certstore
-rwxrwxr-x. 1 oracle oinstall  2325248 Jul 29  2021 checkprm
-rwxrwxr-x. 1 oracle oinstall  1903992 Jul 29  2021 convchk
-rwxrwxr-x. 1 oracle oinstall  3075192 Jul 29  2021 convprm
-rwxrwxr-x. 1 oracle oinstall  5676840 Jul 29  2021 defgen
-rwxrwx---. 1 oracle oinstall 12413968 Jul 29  2021 distsrvr
-rwxrwxr-x. 1 oracle oinstall  4976136 Jul 29  2021 emsclnt
-rwxrwx---. 1 oracle oinstall 11182752 Jul 29  2021 extract
-rwxrwxr-x. 1 oracle oinstall  5013192 Jul 29  2021 ggcmd
-rwxrwxr-x. 1 oracle oinstall   112920 Jul 29  2021 keygen
-rwxrwxr-x. 1 oracle oinstall  5568576 Jul 29  2021 logdump
-rwxr-x---. 1 oracle oinstall    10362 Dec 16  2020 oggca.sh
-rwxrwxr-x. 1 oracle oinstall  1694456 Jul 29  2021 oggerr
-rwxrwxr-x. 1 oracle oinstall     4369 Jul 28  2021 orapki
-rwxrwxr-x. 1 oracle oinstall  8977080 Jul 29  2021 pmsrvr
-rwxrwx---. 1 oracle oinstall 10299008 Jul 29  2021 recvsrvr
-rwxrwx---. 1 oracle oinstall 11236912 Jul 29  2021 replicat
-rwxrwxr-x. 1 oracle oinstall  1690360 Jul 29  2021 retrace
-rwxrwxr-x. 1 oracle oinstall  8483888 Jul 29  2021 ServiceManager
-rwxrwxr-x. 1 oracle oinstall     6809 Oct 18  2018 XAGTask
[root@localhost bin]# 

服务管理器(Service Manager)

SM充当用于MicroServices架构的其他服务的看门狗。服务管理器允许您在本地主机上管理一个或多个Oracle Goldengate部署。服务管理器可选可以作为系统服务运行,并维护有关部署的库存和配置信息,并允许您维护多个本地部署。使用Service Manager,您可以启动和停止实例和查询部署和其他服务。

管理服务器(Administration Server)

AS在Oracle Goldengate部署中监督管理,管理和监视进程。管理服务器作为中央控制实体运行,用于管理Oracle Goldengate部署中的复制组件。您可以使用它来创建和管理本地提取和投递过程,而无需访问安装Oracle Goldengate的服务器。管理服务器的关键特征是可以从任何HTTP或HTTPS客户端访问的REST API服务接口,此外AdminClient可用于使REST API调用与管理服务器直接通信。同时管理服务器负责协调和协调提取,投递和trail,以支持更大的自动化和操作管理。

接收器服务器(Receiver Server)

RS是处理所有传入跟踪文件的中央控制服务。它与分发服务器互操作,并提供与远程经典部署的经典架构pump的兼容性。

分发服务器(Distribution Server)

DS是一种用作网络数据分发代理,以支持分布式部署中的传送和处理数据和命令的服务。它是一种高性能应用程序,能够同时处理来自多个源TRAIL文件的多个命令和数据流。

性能指标服务器(Performance Metrics Server)

PMS使用指标服务来收集和存储实例部署性能结果。可以使用其他嵌入式Web应用程序监视性能指标,并使用数据调整您的部署以进行最大性能。

OGG的微服务架构包含上述5个组件,此外还有一个AdminClient。AdminClient类似于ggsci的命令行使用程序。可以用它来发出配置,控制和监视Oracle Goldengate的完整命令范围。比如可以用于创建,修改和删除进程等等。

1.3.OGG 21 数据库支持矩阵

以下是最常用的三种关系型数据库的支持矩阵

产品 版本 操作系统 数据库 版本
OGG for MySQL 21.1.0.0.1 Oracle Linux 7/8, RHEL 7/8 MySQL 5.7, 8.0
OGG for MySQL 21.3.0.0.1 Oracle Linux 7/8, RHEL 7/8 MySQL 8.0
OGG for Oracle 21.3.0.0.0 Oracle Linux 7/8, RHEL 7/8 Oracle 11.2.0.4, 12.1.0.2, 19c, 21
OGG for Oracle 21.3.0.0.1 Microsoft Windows x64 (64-bit) Oracle 11.2.0.4, 12.1.0.2, 19c, 21
OGG for PostgreSQL 21.3.0.0.0 Oracle Linux 7/8, RHEL 7/8 PostgreSQL 10, 11, 12, 13, 14
OGG for SQL Server 21.3.0.0.0 Oracle Linux 7/8, RHEL 7/8 Microsoft SQL Server 2014, 2016, 2017, 2019
OGG for SQL Server 21.4.0.0.0 Oracle Linux 7/8, RHEL 7/8 Microsoft SQL Server 2012.2019 (Linux)
OGG for SQL Server 21.5.0.0.0 Microsoft Windows x64 (64-bit) Microsoft SQL Server 2019 (Linux)
OGG for SQL Server 21.4.0.0.0 Microsoft Windows x64 (64-bit) Microsoft SQL Server 2012, 2014, 2016, 2017, 2019

2.OGG微服务部署架构

整体部署架构。依据实际需要,可以有不同变型。

2.1.基本OGG Hub配置

同一数据中心,一个OGG实例。就是免费版的模式。

The MAA Oracle GoldenGate hub, shown in the following image, provides the following advantages:

  • Offloads Oracle GoldenGate software installation, configuration, and life cycle management from source and target Exadata database systems.
  • Reduces Oracle GoldenGate resource impact on the source and target database systems.
  • Provides high availability by configuring a 2-node cluster server for fast and simple failover, and disaster recovery by leveraging ACFS replication to another identical GoldenGate hub server on a separate 2-node cluster server.
  • Consolidates Oracle GoldenGate configurations and software deployment for multiple independent MAA Platinum or Oracle GoldenGate architectures.

2.2.Source OGG微服务+Target OGG 微服务

这是典型的从微服务模式,在数据库服务都满足要求时,可直接采用。

2.3.Source OGG 传统模式+Target OGG 微服务

这种部署模式在源数据库因为版本原因,不能支持OGG 微服务模式是采用。

2.4.Source OGG 传统模式+Target OGG 微服务(Socket5 Proxy Tunnel)

这种部署模式在源数据库因为版本原因,不能支持OGG 微服务模式是采用。通过Socket5 Proxy Tunnel,在安全性要求更高的情景下采用。

3.OGG 微服务 docker 镜像构建

step 1.下载 Oracle Docker镜像构建工具包
访问:GitHub - oracle/docker-images: Official source of container configurations, images, and examples for Oracle products and projects
https://github.com/oracle/docker-images

包括其它Oralce软件的Docker构建工具包

git clone https://github.com/oracle/docker-images/

step 2.下载安装程序:Oracle GoldenGate Downloads下载文件包:
213000_fbo_ggs_Linux_x64_Oracle_services_shiphome.zip

step 3.创建Docker Image,使用命令如下:

docker build --tag=oracle/goldengate_microservices:21.3.0.0.0 \
--build-arg INSTALLER=213000_fbo_ggs_Linux_x64_Oracle_services_shiphome.zip .

说明引用
• Docker Build files available on GIT, under Oracle Docker images
https://github.com/oracle/docker-images/tree/main/OracleGoldenGate/21c
• Download GoldenGate installation files from Oracle OTN download site
https://www.oracle.com/middleware/technologies/goldengate-downloads.html
• Run Docker Build command, giving the GG installation file to INSTALLER argument

$ docker build --tag=oracle/goldengate_microservices:21.3.0.0.0 \
--build-arg INSTALLER=213000_fbo_ggs_Linux_x64_Oracle_services_shiphome.zip .
Sending build context to Docker daemon
...
Successfully tagged oracle/goldengate_microsservices:21.3.0.0.0

• Check the image is successfully built

$ docker images oracle/goldengate-microservices:21*
REPOSITORY TAG IMAGE ID CREATED SIZE
oracle/goldengate-microservices 21.3.0.0.0 ff910ccc7f89 2 weeks ago 2.12GB

step 4.OGG 微服务 docker 镜像使用

$ docker run \
--name <container name> \
-p <host port>:443 \
-e OGG_ADMIN=<admin user name> \
-e OGG_ADMIN_PWD=<admin password> \
-e OGG_DEPLOYMENT=<deployment name> \
-v [<host mount point>:]/u02 \
-v [<host mount point>:]/u03 \
-v [<host mount point>:]/etc/nginx/cert \
oracle/goldengate_microservices:21.3.0.0.0

Parameters
<container name> - A name for the new container (default: auto generated)
-p <host-port> - The host port to map to the Oracle GoldenGate HTTPS server (default: no mapping)
-e OGG_ADMIN - The name of the administrative account to create (default: oggadmin)
-e OGG_ADMIN_PWD - The password for theadministrative account (default: auto generated)
-e OGG_DEPLOYMENT - The name of the deployment (default: Local)
-v /u02 - The volume used for persistent GoldenGate data (default: use container storage)
-v /u03 - The volume used for temporary GoldenGate data (default: use container storage)
-v /etc/nginx/cert - The volume used for storing the SSL certificate for the HTTPS server (default: create a self-signed certificate)

Docker运行示例:

docker run --name oggma213dk -p 3443:443 -h oggma213dk \
-e OGG_ADMIN=oggadmin -e OGG_ADMIN_PWD=oggadmin \
-v /jppeng/app/ogg/u02:/u02 \
-v /jppeng/app/ogg/u03:/u03 \
-v /jppeng/app/ogg/cert:/etc/nginx/cert \
-d oracle/goldengate_microservices:21.3

这个配置应该是还没有,直接用缺省值,否则不能启动

-e OGG_DEPLOYMENT=oggma213dk \

查看容器运行情况

docker ps -f name=oggma213dk
CONTAINER ID   IMAGE                         COMMAND            CREATED              STATUS              PORTS                                                              NAMES
71e92e39a209   lhrbest/ogg213maoracle:v1.0   "/usr/sbin/init"   About a minute ago   Up About a minute   3389/tcp, 9000-9005/tcp, 0.0.0.0:3443->443/tcp, :::3443->443/tcp   oggm

进入docker 容器进行相关操作

docker exec -it oggma213dk bash

cd /ogg213c/ogg_ma/bin/
./adminclient

3.Adminclient vs. GGSCI

3.1.Adminclient与GGSCI相似点

微服务架构中没有 GGSCI但有Adminclient,两者比较相似点如下:
• 两者都是可以管理 GoldenGate 实例的命令界面
• 几乎所有 GGSCI 命令都可以运行,而无需对 Adminclient 进行任何更改

3.2.Adminclient优点

adminclient 的优势:
• OGG 用户身份验证,不同用户,不同角色,更安全
• 远程运行连接到任何 OGG MA
• 支持 Linux 风格的命令历史记录和调用,

3.3 Adminclient命令示例

adminclient 示例应用:

[ogg@oggma213dk bin]$ ./adminclient
Oracle GoldenGate Administration Client for Oracle
Version 21.3.0.0.0 OGGCORE_21.3.0.0.0_PLATFORMS_210728.1047
Copyright (C) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
Oracle Linux 7, x64, 64bit (optimized) on Jul 28 2021 12:32:46
Operating system character set identified as US-ASCII.
OGG (not connected) 2> connect https://localhost:443 as oggadmin !
Password for 'oggadmin' at 'https://localhost':
Using default deployment 'oggma213dk'
OGG (https://localhost oggma213dk) 3> info all
Program Status Group Type Lag at Chkpt Time Since Chkpt
00:00:02 00:00:05
ADMINSRVR RUNNING
DISTSRVR RUNNING
PMSRVR RUNNING
RECVSRVR RUNNING
EXTRACT RUNNING EDB19MAC INTEGRATED
 
 
OGG (https://localhost oggma213dk) 4> info extract EDB19MAC, detail
Extract EDB19MAC Last Started 2021-09-02 03:26 Status RUNNING
Description Database 19c running on Mac Docker
Checkpoint Lag 00:00:00 (updated 00:00:00 ago)
Process ID 591
Log Read Checkpoint Oracle Integrated Redo Logs
2021-09-02 05:09:22
SCN 0.3656202 (3656202)
Settings Profile Default
Encryption Profile LocalWallet
Target Extract Trails:
Trail Name Seqno RBA Max MB Trail Type
et 4 1345 50 EXTTRAIL
Extract Source Begin End
Integrated Extract outbound server first scn: 0.3016529 (3016529)
Integrated Extract outbound server filtering start scn: 0.3016840 (3016840)

4.数据同步配置

4.1.ogg数据同步用户权限

# 源数据库端Onsource database (extract):
GRANT CREATE SESSION, ALTER SESSION,RESOURCE, CONNECT,SELECT ANY dictionary,SELECT ANY TRANSACTION TO ogg;
GRANT flashback ANY TABLE, SELECT ANY TABLE TO ogg;
GRANT EXECUTE ON dbms_flashback TO ogg;


# 目标数据库端 Ontarget (Replicat) database:
GRANT CREATE SESSION, ALTER SESSION,RESOURCE, CONNECT,SELECT ANY dictionary TO ogg;
GRANT SELECT ANY TABLE, INSERT ANYTABLE, UPDATE ANY TABLE, DELETE ANY TABLE TO ogg;
GRANT CREATE TABLE, ALTER ANY TABLE,LOCK ANY TABLE TO ogg;
GRANT ALTER ANY TABLE TO ogg;

4.2.源端数据库准备

查看已有ogg进程数据库对 streams_pool_size 的占用,可以考虑每个抽取进程=1*1.25个G的分配。

show parameter streams_pool_size;

alter system set streams_pool_size = 512M;
alter system set sga_max_size = 2g scope=spfile;
alter system set sga_target = 2g scope=spfile;
alter system set pga_aggregate_target=1g;

oracle数据库配置
step 1.开启数据库归档–如果没有开启
若要改变日志模式至归档模式,需要数据库处于MOUNT状态,执行以下步骤:
a. 首先,关闭数据库:
b. 启动到MOUNT状态:
c. 切换到归档模式:
d. 打开数据库:

step 2.开启数据库级别附加日志–如果没有开始最小附加日志

alter database add supplemental log data;
alter database add supplemental log data (all) columns;

step 3.开启强制日志–如果没有开启强制日志

alter database force logging;

step 4.设置ENABLE_GOLDENGATE_REPLICAT参数为TRUE

alter system set enable_goldengate_replication=TRUE;
select name,supplemental_log_data_min , force_logging, log_mode from v$database;

step 5.创建OGG用户包括包括源端用户、目标端用户以及OGG抽取用户

OGG管理用户

create tablespace ogg_data datafile '/u01/app/oracle/oradata/ogg_data01.dbf' size 20m autoextend on next 10m maxsize 1g;
create user ogg identified by ogg#1231 default tablespace ogg_data temporary tablespace temp;
alter user ogg quota unlimited on ogg_data;
grant connect,resource to ogg;

-- 不建议
-- GRANT DBA to ogg;
GRANT CREATE SESSION, ALTER SESSION,RESOURCE, CONNECT,SELECT ANY dictionary,SELECT ANY TRANSACTION TO ogg;
GRANT flashback ANY TABLE, SELECT ANY TABLE TO ogg;

--增加
GRANT alter system, alter user TO ogg;
GRANT EXECUTE ON dbms_flashback TO ogg;

--这一行必须在命令行下执行
exec dbms_goldengate_auth.grant_admin_privilege('OGG','*',TRUE); 

源端业务用户

create tablespace test_tbs datafile '/u01/app/oracle/oradata/test_tbs01.dbf' size 50m autoextend on next 100m;
create user test identified by test#1231 default tablespace test_tbs;
alter user test quota unlimited on test_tbs;
-- 不建议
-- GRANT DBA to testsrc;
GRANT CONNECT,RESOURCE TO test;
grant SELECT ANY DICTIONARY to test;
GRANT EXECUTE ON SYS.DBMS_LOCK TO test;

目标业务用户

-- create tablespace test_tbs datafile '/u01/app/oracle/oradata/test_tbs01.dbf' size 50m autoextend on next 100m;
create user testtgt identified by testtgt#1231 default tablespace test_tbs;
alter user testtgt quota unlimited on test_tbs;
-- 不建议
-- GRANT DBA to testtgt;
GRANT CONNECT,RESOURCE TO testtgt ;
grant SELECT ANY DICTIONARY to testtgt ;
GRANT EXECUTE ON SYS.DBMS_LOCK TO testtgt ;

4.3.创建同步的源表test.t1

--准备表
create table test.t1 
(  id number,
  name varchar2(32),
  description varchar2(128),
  cdate timestamp,
  constraint pk_t1 primary key(id) using index
) ;

--准备序列用于造数
create sequence test.t1_seq 
increment by 1 start with 1 nomaxvalue nocycle cache 1000;

4.4.创建同步的目标表test.t11

create table test.t11
(  id number,
  name varchar2(32),
  description varchar2(128),
  cdate timestamp,
  constraint pk_t11 primary key(id) using index
);

4.5.同步准备

登录管理服务URL页面: https://<服务器IP地址>:8001

点击左上角菜单按钮,点击左边“配置” 选择“数据库”,点击“身份证明”旁边的 + - 建立数据库信任

最后修改时间:2026-01-04 09:56:00
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论