Uses of Class
io.debezium.connector.oracle.Scn
-
Packages that use Scn Package Description io.debezium.connector.oracle io.debezium.connector.oracle.logminer io.debezium.connector.oracle.logminer.valueholder io.debezium.connector.oracle.xstream -
-
Uses of Scn in io.debezium.connector.oracle
Fields in io.debezium.connector.oracle declared as Scn Modifier and Type Field Description private ScnSourceInfo. commitScnstatic ScnScn. MAXRepresents an Scn that implies the maximum possible value of an SCN, useful as a placeholder.static ScnScn. NULLRepresents an Scn without a value.private ScnOracleOffsetContext.Builder. scnprivate ScnSourceInfo. scnFields in io.debezium.connector.oracle with type parameters of type Scn Modifier and Type Field Description private AtomicReference<Scn>OracleStreamingChangeEventSourceMetrics. committedScnprivate AtomicReference<Scn>OracleStreamingChangeEventSourceMetrics. currentScnprivate AtomicReference<Scn>OracleStreamingChangeEventSourceMetrics. offsetScnprivate AtomicReference<Scn>OracleStreamingChangeEventSourceMetrics. oldestScnMethods in io.debezium.connector.oracle that return Scn Modifier and Type Method Description ScnScn. add(Scn value)Returns aSCnwhose value is(this + value).ScnOracleOffsetContext. getCommitScn()ScnSourceInfo. getCommitScn()private ScnOracleSnapshotChangeEventSource. getCurrentScn(AbstractSnapshotChangeEventSource.SnapshotContext ctx)ScnOracleOffsetContext. getScn()ScnSourceInfo. getScn()static ScnOracleOffsetContext.Loader. getScnFromOffset(Map<String,?> offset, LcrPosition lcrPosition)static ScnOracleOffsetContext. getScnFromOffsetMapByKey(Map<String,?> offset, String key)Helper method to resolve aScnby key from the offset map.ScnScn. subtract(Scn value)Returns aScnwhose value is(this - value).static ScnScn. valueOf(int value)Construct aScnfrom an integer value.static ScnScn. valueOf(long value)Construct aScnfrom a long value.static ScnScn. valueOf(String value)Construct aScnfrom a string value.Methods in io.debezium.connector.oracle that return types with arguments of type Scn Modifier and Type Method Description private Optional<Scn>OracleSnapshotChangeEventSource. getLatestTableDdlScn(RelationalSnapshotChangeEventSource.RelationalSnapshotContext ctx)Returns the SCN of the latest DDL change to the captured tables.Methods in io.debezium.connector.oracle with parameters of type Scn Modifier and Type Method Description ScnScn. add(Scn value)Returns aSCnwhose value is(this + value).private booleanOracleSnapshotChangeEventSource. areSameTimestamp(Scn scn1, Scn scn2)Whether the two SCNs represent the same timestamp or not (resolution is only 3 seconds).intScn. compareTo(Scn o)Compares thisScnwith the specifiedScn.OracleOffsetContext.BuilderOracleOffsetContext.Builder. scn(Scn scn)voidOracleOffsetContext. setCommitScn(Scn commitScn)voidSourceInfo. setCommitScn(Scn commitScn)voidOracleStreamingChangeEventSourceMetrics. setCommittedScn(Scn scn)voidOracleStreamingChangeEventSourceMetrics. setCurrentScn(Scn scn)voidOracleStreamingChangeEventSourceMetrics. setOffsetScn(Scn scn)voidOracleStreamingChangeEventSourceMetrics. setOldestScn(Scn scn)voidOracleOffsetContext. setScn(Scn scn)voidSourceInfo. setScn(Scn scn)ScnScn. subtract(Scn value)Returns aScnwhose value is(this - value).Constructors in io.debezium.connector.oracle with parameters of type Scn Constructor Description OracleOffsetContext(OracleConnectorConfig connectorConfig, Scn scn, Scn commitScn, LcrPosition lcrPosition, boolean snapshot, boolean snapshotCompleted, TransactionContext transactionContext)OracleOffsetContext(OracleConnectorConfig connectorConfig, Scn scn, LcrPosition lcrPosition, boolean snapshot, boolean snapshotCompleted, TransactionContext transactionContext) -
Uses of Scn in io.debezium.connector.oracle.logminer
Fields in io.debezium.connector.oracle.logminer declared as Scn Modifier and Type Field Description private ScnLogMinerQueryResultProcessor. currentOffsetCommitScnprivate ScnLogMinerQueryResultProcessor. currentOffsetScnprivate ScnLogMinerStreamingChangeEventSource. endScnprivate ScnLogFile. firstScnprivate ScnTransactionalBuffer.Transaction. firstScnprivate ScnTransactionalBuffer. lastCommittedScnprivate ScnTransactionalBuffer.Transaction. lastScnprivate ScnLogFile. nextScnprivate ScnLogMinerStreamingChangeEventSource. startScnFields in io.debezium.connector.oracle.logminer with type parameters of type Scn Modifier and Type Field Description private AtomicReference<Scn>TransactionalBufferMetrics. committedScnprivate AtomicReference<Scn>TransactionalBufferMetrics. offsetScnprivate AtomicReference<Scn>TransactionalBufferMetrics. oldestScnMethods in io.debezium.connector.oracle.logminer that return Scn Modifier and Type Method Description private ScnTransactionalBuffer. calculateSmallestScn()static ScnLogMinerHelper. getCurrentScn(OracleConnection connection)This method returns current SCN from the database(package private) static ScnLogMinerHelper. getEndScn(OracleConnection connection, Scn startScn, OracleStreamingChangeEventSourceMetrics streamingMetrics, int defaultBatchSize)This method returns next SCN for mining and also updates streaming metrics.(package private) static ScnLogMinerHelper. getFirstOnlineLogScn(OracleConnection connection, Duration archiveLogRetention)This method fetches the oldest SCN from online redo log filesScnLogFile. getFirstScn()ScnLogFile. getNextScn()static ScnRowMapper. getScn(OracleStreamingChangeEventSourceMetrics streamingMetrics, ResultSet rs)private static ScnLogMinerHelper. getScnFromString(String value)Methods in io.debezium.connector.oracle.logminer that return types with arguments of type Scn Modifier and Type Method Description static Optional<Scn>LogMinerHelper. getLastScnToAbandon(OracleConnection connection, Scn offsetScn, Duration transactionRetention)This method calculates SCN as a watermark to abandon long lasting transactions.Methods in io.debezium.connector.oracle.logminer with parameters of type Scn Modifier and Type Method Description (package private) voidTransactionalBuffer. abandonLongTransactions(Scn thresholdScn, OracleOffsetContext offsetContext)If for some reason the connector got restarted, the offset will point to the beginning of the oldest captured transaction.static StringSqlUtils. archiveLogsQuery(Scn scn, Duration archiveLogRetention)Obtain the query to be used to fetch archive logs.private voidTransactionalBuffer. commit(ChangeEventSource.ChangeEventSourceContext context, OracleOffsetContext offsetContext, Instant start, List<TransactionalBuffer.CommitCallback> commitCallbacks, Timestamp timestamp, Scn smallestScn, Scn scn, EventDispatcher<?> dispatcher)(package private) booleanTransactionalBuffer. commit(String transactionId, Scn scn, OracleOffsetContext offsetContext, Timestamp timestamp, ChangeEventSource.ChangeEventSourceContext context, String debugMessage, EventDispatcher dispatcher)Commits a transaction by looking up the transaction in the buffer and if exists, all registered callbacks will be executed in chronological order, emitting events for each followed by a transaction commit event.static StringSqlUtils. diffInDaysQuery(Scn scn)This method return query which converts given SCN in days and deduct from the current dayvoidTransactionalBuffer.CommitCallback. execute(Timestamp timestamp, Scn smallestScn, Scn commitScn, int callbackNumber)Executes callback.private static voidLogMinerHelper. flushRacLogWriters(Scn currentScn, JdbcConfiguration config, Set<String> racHosts)Oracle RAC has one LogWriter per node (instance), we have to flush them all We cannot use a query like from gv_instance view to get all the nodes, because not all nodes could be load balanced.static List<LogFile>LogMinerHelper. getArchivedLogFilesForOffsetScn(OracleConnection connection, Scn offsetScn, Duration archiveLogRetention)This method returns all archived log files for one day, containing given offset scn(package private) static ScnLogMinerHelper. getEndScn(OracleConnection connection, Scn startScn, OracleStreamingChangeEventSourceMetrics streamingMetrics, int defaultBatchSize)This method returns next SCN for mining and also updates streaming metrics.static Optional<Scn>LogMinerHelper. getLastScnToAbandon(OracleConnection connection, Scn offsetScn, Duration transactionRetention)This method calculates SCN as a watermark to abandon long lasting transactions.static List<LogFile>LogMinerHelper. getOnlineLogFilesForOffsetScn(OracleConnection connection, Scn offsetScn)This method returns all online log files, starting from one which contains offset SCN and ending with one containing largest SCN 18446744073709551615 on Ora 19c is the max value of the nextScn in the current redostatic StringRowMapper. getSqlRedo(OracleStreamingChangeEventSourceMetrics streaingMetrics, ResultSet rs, boolean isDml, HistoryRecorder historyRecorder, Scn scn, String tableName, String segOwner, int operationCode, Timestamp changeTime, String txId)It constructs REDO_SQL.voidHistoryRecorder. record(Scn scn, String tableName, String segOwner, int operationCode, Timestamp changeTime, String transactionId, int csf, String redoSql)Records the LogMiner entry.voidNeverHistoryRecorder. record(Scn scn, String tableName, String segOwner, int operationCode, Timestamp changeTime, String transactionId, int csf, String redoSql)(package private) voidTransactionalBuffer. registerCommitCallback(String transactionId, Scn scn, Instant changeTime, TransactionalBuffer.CommitCallback callback)Registers callback to execute when transaction commits.voidTransactionalBufferMetrics. setCommittedScn(Scn scn)voidTransactionalBufferMetrics. setOffsetScn(Scn scn)(package private) voidTransactionalBufferMetrics. setOldestScn(Scn scn)static voidLogMinerHelper. setRedoLogFilesForMining(OracleConnection connection, Scn lastProcessedScn, Duration archiveLogRetention)This method substitutes CONTINUOUS_MINE functionality(package private) static StringSqlUtils. startLogMinerStatement(Scn startScn, Scn endScn, OracleConnectorConfig.LogMiningStrategy strategy, boolean isContinuousMining)This returns statement to build LogMiner view for online redo log files(package private) static voidLogMinerHelper. startLogMining(OracleConnection connection, Scn startScn, Scn endScn, OracleConnectorConfig.LogMiningStrategy strategy, boolean isContinuousMining, OracleStreamingChangeEventSourceMetrics streamingMetrics)This method builds mining view to query changes from.Constructors in io.debezium.connector.oracle.logminer with parameters of type Scn Constructor Description LogFile(String fileName, Scn firstScn, Scn nextScn)Create a log file that represents an archived log record.LogFile(String fileName, Scn firstScn, Scn nextScn, boolean current)Creates a log file that represents an online redo log record.Transaction(Scn firstScn) -
Uses of Scn in io.debezium.connector.oracle.logminer.valueholder
Fields in io.debezium.connector.oracle.logminer.valueholder declared as Scn Modifier and Type Field Description private ScnLogMinerDmlEntryImpl. scnMethods in io.debezium.connector.oracle.logminer.valueholder that return Scn Modifier and Type Method Description ScnLogMinerDmlEntry. getScn()the scn obtained from a LogMiner entry.ScnLogMinerDmlEntryImpl. getScn()Methods in io.debezium.connector.oracle.logminer.valueholder with parameters of type Scn Modifier and Type Method Description voidLogMinerDmlEntry. setScn(Scn scn)sets scn obtained from a LogMiner entryvoidLogMinerDmlEntryImpl. setScn(Scn scn) -
Uses of Scn in io.debezium.connector.oracle.xstream
Fields in io.debezium.connector.oracle.xstream declared as Scn Modifier and Type Field Description private ScnLcrPosition. scnMethods in io.debezium.connector.oracle.xstream that return Scn Modifier and Type Method Description ScnLcrPosition. getScn()Methods in io.debezium.connector.oracle.xstream with parameters of type Scn Modifier and Type Method Description private byte[]XstreamStreamingChangeEventSource. convertScnToPosition(Scn scn)private voidXstreamStreamingChangeEventSource. sendPublishedPosition(LcrPosition lcrPosition, Scn scn)
-