You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/05/26 02:37:24 UTC

[GitHub] [incubator-inlong] EMsnap commented on a diff in pull request #4382: [INLONG-4243][Sort] Add Oracle data extract support

EMsnap commented on code in PR #4382:
URL: https://github.com/apache/incubator-inlong/pull/4382#discussion_r882265292


##########
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/protocol/constant/OracleConstant.java:
##########
@@ -0,0 +1,116 @@
+/*
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you under the Apache License, Version 2.0 (the
+ *   "License"); you may not use this file except in compliance
+ *   with the License.  You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ */
+
+package org.apache.inlong.sort.protocol.constant;
+
+import lombok.Getter;
+
+/**
+ * Oracle options constant
+ */
+public class OracleConstant {
+
+    /**
+     * The key of flink connector defined in flink table
+     */
+    public static final String CONNECTOR = "connector";
+    /**
+     * Specify what flink connector to use for extract data from Oracle database, here should be 'oracle-cdc'
+     */
+    public static final String ORACLE_CDC = "oracle-cdc";
+    /**
+     * Database name of the Oracle server to monitor
+     */
+    public static final String DATABASE_NAME = "database-name";
+    /**
+     * IP address or hostname of the Oracle database server
+     */
+    public static final String HOSTNAME = "hostname";
+    /**
+     * Integer port number of the Oracle database server.
+     */
+    public static final String PORT = "port";
+    /**
+     * Name of the Oracle database to use when connecting to the Oracle database server
+     */
+    public static final String USERNAME = "username";
+    /**
+     * Password to use when connecting to the Oracle database server
+     */
+    public static final String PASSWORD = "password";
+    /**
+     * Table name of the Oracle database to monitor
+     */
+    public static final String TABLE_NAME = "table-name";
+    /**
+     * Schema name of the Oracle database to monitor
+     */
+    public static final String SCHEMA_NAME = "schema-name";
+    /**
+     * <p>The mining strategy controls how Oracle LogMiner builds
+     * and uses a given data dictionary for resolving table and column ids to names.</p>
+     * <p>redo_log_catalog - Writes the data dictionary to the online redo logs
+     * causing more archive logs to be generated over time.
+     * This also enables tracking DDL changes against captured tables,
+     * so if the schema changes frequently this is the ideal choice.</p>
+     * <p>online_catalog - Uses the database’s current data dictionary to resolve object ids
+     * and does not write any extra information to the online redo logs.
+     * This allows LogMiner to mine substantially faster but at the expense that DDL changes cannot be tracked.
+     * If the captured table(s) schema changes infrequently or never, this is the ideal choice.</p>
+     */
+    public static final String LOG_MINING_STRATEGY = "debezium.log.mining.strategy";
+    /**
+     * If true,CONTINUOUS_MINE option will be addec to the log mining session.

Review Comment:
   typo addec



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org