This section contains information about:
- The behavior of how Datastream handles data that's being pulled from a source Oracle database
- The versions of Oracle database that Datastream supports
- An overview of how to setup a source Oracle database so that data can be streamed from it to a destination
- Known limitations for using Oracle database as a source
Behavior
The source Oracle database relies upon its Oracle Logminer feature for exposing changes to the data.
- All schemas or specific schemas from a given database, as well as all tables from the schemas or specific tables, can be selected.
- All historical data is replicated.
- All data manipulation language (DML) changes, such as inserts, updates, and deletes from the specified databases and tables, are replicated.
- Datastream replicates both committed and, in some cases, uncommitted changes into the destination. Datastream reads uncommitted changes. In case of a rollback, the Datastream output records also include the opposite operation. For example, if there's a rolled-back
INSERT
operation, then the output records will also contain a correspondingDELETE
operation. In this case, the event will appear as aDELETE
event with only theROWID
.
Versions
Datastream supports the following versions of Oracle database:
- Oracle 11g, Version 11.2.0.4
- Oracle 12c, Version 12.1.0.2
- Oracle 12c, Version 12.2.0.1
- Oracle 18c
- Oracle 19c
Setup
To set up a source Oracle database so that data from it can be streamed into a destination, you must configure the database to grant access, set up logging, define a retention policy, and so on.
See Configure a source Oracle database to learn how to configure this database so that Datastream can pull data from it into a destination.
Known limitations
Known limitations for using Oracle database as a source include:
- A table that has more than 500 million rows can't be backfilled unless the following conditions are met:
- The table has a unique index.
- This index must also be Btree, which is a default index. The index can be composite.
- The index can't be reversed.
- The index can't contain a function-based column.
- None of the columns of the index are nullable.
- The index doesn't include a column of type
DATE
that contains negative dates as values. - All columns of the index are included in the stream.
- Streams are limited to 10,000 tables.
- Oracle multi-tenant architecture (CDB/PDB) isn't supported.
- Oracle Autonomous Database isn't supported.
- Secure Sockets Layer (SSL) authentication isn't supported.
- Events from tables that don't have a primary key won't contain the information required to perform a merge operation on the consumer side.
- Events have a size limitation of 3 MB.
- Index-organized tables (IOTs) aren't supported.
- Temporary tables aren't supported.
- For columns of type
BFILE
, only the path to the file will be replicated. The contents of the file won't be replicated. - Columns of data types
ANYDATA
,BLOB
,CLOB
,LONG/LONG RAW
,NCLOB
,UDT
,UROWID
,XMLTYPE
aren't supported, and will be replaced withNULL
values. - For Oracle 11g, tables that have columns of data types
ANYDATA
orUDT
aren't supported, and the entire table won't be replicated. - Oracle Label Security (OLS) isn't replicated.
- Datastream periodically fetches the latest schema from the source as events are processed. If a schema changes, then some events from the new schema may be read while the old schema is still applied. In this case, Datastream will detect the schema change, trigger a schema fetch, and reprocess the failed events.
- Not all changes to the source schema can be detected automatically, in which case data corruption may occur. The following schema changes may cause data corruption or failure to process the events downstream:
- Dropping columns
- Adding columns to the middle of a table
- Changing the data type of a column
- Reordering columns
- Dropping tables (relevant if the same table is then recreated with new data added)
- Truncating tables
- Datastream doesn't support replicating views.
- Datastream supports materialized views. However, new views created while the stream is running aren't backfilled automatically.
SAVEPOINT
statements aren't supported and can cause data discrepancy in case of a rollback.- Datastream supports the following character set encodings for Oracle databases:
AL32UTF8
AL16UTF16
UTF8
WE8ISO8859P1
US7ASCII
WE8MSWIN1252
WE8ISO8859P15
IN8ISCII