Skip to main content

Oracle REST Data Services

Pass oracleOrdsRelation("https://oracle.example.com", login) as provider in the SQL mount example. Mount once per observed table. The mount supports public and protected labels. Use Oracle Database 19c or later and enable the REST-Enabled SQL service for a dedicated login schema. Grant the login SELECT on the chosen source table and use ORDS schema authentication. The profile sends credentials to the configured HTTPS origin and the exact /ords/{alias}/_/sql path. Seal this JSON for that receiver with bijection secret set.
Use a local base table with an enabled, validated primary key. Declare one to eight columns in index order. Use NUMBER(p,0) with at most 18 digits for bigint and VARCHAR2 of at most 512 source bytes for text. Text keys require an AL32UTF8 database and use UTF-8 byte order. Record keys are JSON arrays of strings up to 512 encoded bytes. Name up to sixteen projection columns that Oracle can encode with JSON_OBJECT. Each statement checks relation identity and returns up to 32 published rows. Oracle limits a projected JSON payload to 4,000 bytes, and the receiver limits the encoded result payload to 48 KiB. Each page observes a statement snapshot. Later traversals refresh seen keys and keep missing keys in the mount. After a restore or replacement, set a new incarnation and authorize a reset at the health revision and gap instant.

Oracle Net over TCPS

Pass oracleNetRelation("oracle.example.com:2484", login) as provider on a separate mount. For protected data, pass the mount’s data label as the final argument and bind the mount under it. Use Oracle Database 21c or later with a dedicated service, a server certificate trusted by the deployment, and a password account with an Oracle 12c password verifier. Grant SELECT on the target table. In the sealed credential, replace the ORDS alias field with the Oracle Net service name, such as "service": "inventory.example.com". Use the database login’s exact username. The receiver binds the hostname and port. The driver never accepts a TNS descriptor, wallet path or redirect. Configure a listener that serves the dedicated session on the admitted socket. The key and projection use the same definitions as the ORDS profile. Each page observes one Oracle statement snapshot. The connector binds the retained key, checks relation identity and publishes up to 32 observations within the encoded result limit. Later traversals refresh seen keys and keep keys that disappear. After source replacement or restore, change the incarnation and authorize a reset at the source’s health revision and gap instant.

Archived redo with LogMiner

Bind oracleLogMiner({ endpoint: "oracle.example.com:2484", … }) with its receiver block: label, credential: login, requests: { retain, message }, a reviewed isolation statement and a retention budget hold (bytes such as "8GiB", or an age). At the budget the source releases its log (onHold: "release"), which is a gap, to a fresh labelled mount. Use the Oracle Net credential shape with "pdb": "INVENTORYPDB", a string key such as "key": "ID", and a dedicated TCPS service in CDB$ROOT. Give a common password account visibility of the chosen PDB in the CDB_* views and the Oracle privileges required for LogMiner and the database, transaction, incarnation and archived-log views. Restrict access to that account and review its LogMiner privileges before sealing it. Use a single enabled redo thread, ARCHIVELOG, database force logging, and database minimal and all-column supplemental logging. Choose one nonpartitioned heap table, a validated single-column NUMBER(p,0) primary key with p at most 18, and up to twelve ordinary VARCHAR2 or scale-zero NUMBER columns. String values are at most 1,024 source bytes. The published JSON object carries scalar values as text or null. The miner requires exact before or after values for each admitted image. Installation records a current SCN and the earlier restart point needed by in-flight transactions. The mount starts empty. It reads only complete archived redo ranges, checks every archive sequence, and publishes the net effect per key of one complete commit SCN. Deletes remove keys, including the old key of a primary key update. Multiple transactions sharing an SCN publish together. Each commit group fits 32 redo rows, 32 resulting keys and one encoded result. At most eight archived logs are loaded per read. Archive loss, a new database, PDB or table incarnation, or unsafe redo stops progress at the retained SCN. DDL in the selected PDB, unsupported redo, continuation rows and compensation rows also stop polling. A transaction that pins the range beyond eight logs or exceeds a result blocks progress at its predecessor. Keep sufficient archive history for the restart SCN. Install a fresh mount after an authorized baseline repair. Oracle LogMiner documentation