| Package | Description |
|---|---|
| io.debezium.connector.oracle | |
| io.debezium.connector.oracle.logminer | |
| io.debezium.connector.oracle.logminer.valueholder | |
| io.debezium.connector.oracle.xstream |
| Modifier and Type | Field and Description |
|---|---|
private Scn |
SourceInfo.commitScn |
static Scn |
Scn.MAX
Represents an Scn that implies the maximum possible value of an SCN, useful as a placeholder.
|
static Scn |
Scn.NULL
Represents an Scn without a value.
|
private Scn |
SourceInfo.scn |
private Scn |
OracleOffsetContext.Builder.scn |
| Modifier and Type | Field and Description |
|---|---|
private AtomicReference<Scn> |
OracleStreamingChangeEventSourceMetrics.committedScn |
private AtomicReference<Scn> |
OracleStreamingChangeEventSourceMetrics.currentScn |
private AtomicReference<Scn> |
OracleStreamingChangeEventSourceMetrics.offsetScn |
private AtomicReference<Scn> |
OracleStreamingChangeEventSourceMetrics.oldestScn |
| Modifier and Type | Method and Description |
|---|---|
Scn |
Scn.add(Scn value)
Returns a
SCn whose value is (this + value). |
Scn |
SourceInfo.getCommitScn() |
Scn |
OracleOffsetContext.getCommitScn() |
private Scn |
OracleSnapshotChangeEventSource.getCurrentScn(AbstractSnapshotChangeEventSource.SnapshotContext ctx) |
Scn |
SourceInfo.getScn() |
Scn |
OracleOffsetContext.getScn() |
static Scn |
OracleOffsetContext.Loader.getScnFromOffset(Map<String,?> offset,
LcrPosition lcrPosition) |
static Scn |
OracleOffsetContext.getScnFromOffsetMapByKey(Map<String,?> offset,
String key)
Helper method to resolve a
Scn by key from the offset map. |
Scn |
Scn.subtract(Scn value)
Returns a
Scn whose value is (this - value). |
static Scn |
Scn.valueOf(int value)
Construct a
Scn from an integer value. |
static Scn |
Scn.valueOf(long value)
Construct a
Scn from a long value. |
static Scn |
Scn.valueOf(String value)
Construct a
Scn from a string value. |
| Modifier and Type | Method and Description |
|---|---|
private Optional<Scn> |
OracleSnapshotChangeEventSource.getLatestTableDdlScn(RelationalSnapshotChangeEventSource.RelationalSnapshotContext ctx)
Returns the SCN of the latest DDL change to the captured tables.
|
| Modifier and Type | Method and Description |
|---|---|
Scn |
Scn.add(Scn value)
Returns a
SCn whose value is (this + value). |
private boolean |
OracleSnapshotChangeEventSource.areSameTimestamp(Scn scn1,
Scn scn2)
Whether the two SCNs represent the same timestamp or not (resolution is only 3 seconds).
|
int |
Scn.compareTo(Scn o)
Compares this
Scn with the specified Scn. |
OracleOffsetContext.Builder |
OracleOffsetContext.Builder.scn(Scn scn) |
void |
SourceInfo.setCommitScn(Scn commitScn) |
void |
OracleOffsetContext.setCommitScn(Scn commitScn) |
void |
OracleStreamingChangeEventSourceMetrics.setCommittedScn(Scn scn) |
void |
OracleStreamingChangeEventSourceMetrics.setCurrentScn(Scn scn) |
void |
OracleStreamingChangeEventSourceMetrics.setOffsetScn(Scn scn) |
void |
OracleStreamingChangeEventSourceMetrics.setOldestScn(Scn scn) |
void |
SourceInfo.setScn(Scn scn) |
void |
OracleOffsetContext.setScn(Scn scn) |
Scn |
Scn.subtract(Scn value)
Returns a
Scn whose value is (this - value). |
| Constructor and Description |
|---|
OracleOffsetContext(OracleConnectorConfig connectorConfig,
Scn scn,
LcrPosition lcrPosition,
boolean snapshot,
boolean snapshotCompleted,
TransactionContext transactionContext) |
OracleOffsetContext(OracleConnectorConfig connectorConfig,
Scn scn,
Scn commitScn,
LcrPosition lcrPosition,
boolean snapshot,
boolean snapshotCompleted,
TransactionContext transactionContext) |
| Modifier and Type | Field and Description |
|---|---|
private Scn |
LogMinerQueryResultProcessor.currentOffsetCommitScn |
private Scn |
LogMinerQueryResultProcessor.currentOffsetScn |
private Scn |
LogMinerStreamingChangeEventSource.endScn |
private Scn |
TransactionalBuffer.Transaction.firstScn |
private Scn |
LogFile.firstScn |
private Scn |
TransactionalBuffer.lastCommittedScn |
private Scn |
TransactionalBuffer.Transaction.lastScn |
private Scn |
LogFile.nextScn |
private Scn |
TransactionalBuffer.DmlEvent.scn |
private Scn |
LogMinerStreamingChangeEventSource.startScn |
| Modifier and Type | Field and Description |
|---|---|
private AtomicReference<Scn> |
TransactionalBufferMetrics.committedScn |
private AtomicReference<Scn> |
TransactionalBufferMetrics.offsetScn |
private AtomicReference<Scn> |
TransactionalBufferMetrics.oldestScn |
| Modifier and Type | Method and Description |
|---|---|
private Scn |
TransactionalBuffer.calculateSmallestScn() |
static Scn |
LogMinerHelper.getCurrentScn(OracleConnection connection)
This method returns current SCN from the database
|
(package private) static Scn |
LogMinerHelper.getEndScn(OracleConnection connection,
Scn startScn,
OracleStreamingChangeEventSourceMetrics streamingMetrics,
int defaultBatchSize)
This method returns next SCN for mining and also updates streaming metrics.
|
(package private) static Scn |
LogMinerHelper.getFirstOnlineLogScn(OracleConnection connection,
Duration archiveLogRetention)
This method fetches the oldest SCN from online redo log files
|
Scn |
LogFile.getFirstScn() |
Scn |
LogFile.getNextScn() |
Scn |
TransactionalBuffer.DmlEvent.getScn() |
static Scn |
RowMapper.getScn(ResultSet rs) |
private static Scn |
LogMinerHelper.getScnFromString(String value) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<Scn> |
LogMinerHelper.getLastScnToAbandon(OracleConnection connection,
Scn offsetScn,
Duration transactionRetention)
This method calculates SCN as a watermark to abandon long lasting transactions.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
TransactionalBuffer.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 String |
SqlUtils.archiveLogsQuery(Scn scn,
Duration archiveLogRetention)
Obtain the query to be used to fetch archive logs.
|
private void |
TransactionalBuffer.commit(ChangeEventSource.ChangeEventSourceContext context,
OracleOffsetContext offsetContext,
Instant start,
TransactionalBuffer.Transaction transaction,
Timestamp timestamp,
Scn smallestScn,
Scn scn,
EventDispatcher<TableId> dispatcher) |
(package private) boolean |
TransactionalBuffer.commit(String transactionId,
Scn scn,
OracleOffsetContext offsetContext,
Timestamp timestamp,
ChangeEventSource.ChangeEventSourceContext context,
String debugMessage,
EventDispatcher<TableId> 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 String |
SqlUtils.diffInDaysQuery(Scn scn)
This method return query which converts given SCN in days and deduct from the current day
|
private static void |
LogMinerHelper.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 Scn |
LogMinerHelper.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 redo
|
static String |
RowMapper.getSqlRedo(ResultSet rs,
boolean isDml,
HistoryRecorder historyRecorder,
Scn scn,
String tableName,
String segOwner,
int operationCode,
Timestamp changeTime,
String txId)
It constructs REDO_SQL.
|
void |
NeverHistoryRecorder.record(Scn scn,
String tableName,
String segOwner,
int operationCode,
Timestamp changeTime,
String transactionId,
int csf,
String redoSql) |
void |
HistoryRecorder.record(Scn scn,
String tableName,
String segOwner,
int operationCode,
Timestamp changeTime,
String transactionId,
int csf,
String redoSql)
Records the LogMiner entry.
|
(package private) void |
TransactionalBuffer.registerDmlOperation(int operation,
String transactionId,
Scn scn,
TableId tableId,
LogMinerDmlEntry parseEntry,
Instant changeTime,
String rowId)
Register a DML operation with the transaction buffer.
|
void |
TransactionalBufferMetrics.setCommittedScn(Scn scn) |
void |
TransactionalBufferMetrics.setOffsetScn(Scn scn) |
(package private) void |
TransactionalBufferMetrics.setOldestScn(Scn scn) |
static void |
LogMinerHelper.setRedoLogFilesForMining(OracleConnection connection,
Scn lastProcessedScn,
Duration archiveLogRetention)
This method substitutes CONTINUOUS_MINE functionality
|
(package private) static String |
SqlUtils.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 void |
LogMinerHelper.startLogMining(OracleConnection connection,
Scn startScn,
Scn endScn,
OracleConnectorConfig.LogMiningStrategy strategy,
boolean isContinuousMining,
OracleStreamingChangeEventSourceMetrics streamingMetrics)
This method builds mining view to query changes from.
|
| Constructor and Description |
|---|
DmlEvent(int operation,
LogMinerDmlEntry entry,
Scn scn,
TableId tableId,
String rowId) |
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(String transactionId,
Scn firstScn) |
| Modifier and Type | Field and Description |
|---|---|
private Scn |
LogMinerDmlEntryImpl.scn |
| Modifier and Type | Method and Description |
|---|---|
Scn |
LogMinerDmlEntryImpl.getScn() |
Scn |
LogMinerDmlEntry.getScn()
the scn obtained from a LogMiner entry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LogMinerDmlEntryImpl.setScn(Scn scn) |
void |
LogMinerDmlEntry.setScn(Scn scn)
sets scn obtained from a LogMiner entry
|
| Modifier and Type | Field and Description |
|---|---|
private Scn |
LcrPosition.scn |
| Modifier and Type | Method and Description |
|---|---|
Scn |
LcrPosition.getScn() |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
XstreamStreamingChangeEventSource.convertScnToPosition(Scn scn) |
private void |
XstreamStreamingChangeEventSource.sendPublishedPosition(LcrPosition lcrPosition,
Scn scn) |
Copyright © 2021 JBoss by Red Hat. All rights reserved.