Tapdata Cloud 可以实现数据从 Oracle 数据库到 Elasticsearch 的数据同步,帮助用户轻松实现数据的全文检索。

准备工作

在创建同步任务前,请确保你已经配置好了相关的数据源,如果还没有,请参考:

  1. 配置 Oracle 连接
  2. 配置 Elasticsearch 连接

同时还请注意参考 《Tapdata Cloud 支持的数据类型》,确保你需要操作的数据库版本在系统支持的列表里。

配置任务

请参考以下文档,根据你的需求,选择其中一种同步的模式进行配置:

  1. 全量同步
  2. 全量及增量同步

    任务管理

    配置并执行同步任务后,你还可以通过任务列表页面,对任务进行启动/停止、监控、编辑、复制、重置、删除等操作。
    以上就是配置和运行任务的相关步骤。

数据类型限制

Oracle 中的 Number 类型在不指定 (P, S) 的情况下,默认可以存储的数字型数据非常灵活,见文档

p is the precision, or the maximum number of significant decimal digits, where the most significant digit is the left-most nonzero digit, and the least significant digit is the right-most known digit. Oracle guarantees the portability of numbers with precision of up to 20 base-100 digits, which is equivalent to 39 or 40 decimal digits depending on the position of the decimal point. The absence of precision and scale designators specifies the maximum range and precision for an Oracle number.

在 ElasticSearch 中暂时没有合适的类型与之相对应。默认情况下,Tapdata 使用 half_float 接管不指定 (P, S) 的 Number 类型,用户可以根据自身业务逻辑选择合适的类型与之对应,避免任务运行中途出现无法存入的数据导致任务失败停止,比如:

  1. 如果该业务字段主要是用于存储 ID 类型的数据,可以根据数据量的多少选择 long 、unsigned_long 或者 scaled_float(x, 0);
  2. 如果是用于浮点数,则按照业务数据从 half_float、float、double 中选择适合的精度;

如果你还未注册或者登陆 Tapdata Cloud ,请马上登陆吧!
Tapata Cloud 官方地址: https://cloud.tapdata.net
联系我们进入用户交流群