> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rootkey.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Oracle Database Connector

> Protect the rows of Oracle Database tables in ROOTKey with a self-hosted agent that sends every insert, update and delete as a versioned record — using a read-only user, or LogMiner for very large tables.

> [!NOTE]
>
> **Preview.** The Oracle connector is available as a preview. It was verified against real multitenant Oracle databases (21c Express Edition and 23ai/26ai Free); see [What was verified](#what-was-verified-and-what-was-not) before relying on it for Oracle 19c, RAC or Data Guard.

## How It Works

The Oracle connector protects **table rows**, not files. A small agent (a single container) runs **inside your network**, reads the tables you choose, and sends every new or changed row to ROOTKey as a **versioned record**. When a row is deleted in Oracle, its record is **marked deleted** in ROOTKey — it is not removed at once: the record and its whole version history stay and it can be restored, until ROOTKey purges it permanently 3 years after the delete.

```
Oracle Database              ROOTKey agent (your network)             ROOTKey API
───────────────              ────────────────────────────             ───────────
  Row inserted,       →      Finds what changed                →      POST /api-v1/connectors/records
  updated or deleted         (table read or redo log)                 (Connector API Key,
  and committed              Sends only real changes                   batches of up to 100 records)
                             Remembers what was accepted
```

Unlike the cloud-storage connectors there is no Terraform module: an Oracle database can be on-premises, on OCI or on any cloud, so the connector is one container that runs wherever it can reach both the database listener and `api.rootkey.ai`. The source is public: [github.com/ROOT-Key/rootkey-connectors/tree/main/oracle](https://github.com/ROOT-Key/rootkey-connectors/tree/main/oracle).

> [!NOTE]
>
> ROOTKey's cyber resilience guarantee covers recovery — not just detection. A hash alone can tell you a row was tampered with; it cannot give you the row back. Each record therefore carries the row's column values, and every change becomes a new version of that record.

**One connector = one Oracle table = one ROOTKey table.** Every table you protect has its own connector and its own Connector API Key. One agent can serve many tables.

***

## Choosing a Capture Mode

The agent finds changes in one of two ways. You choose with a single setting, `CAPTURE_MODE`, and you can run different agents in different modes.

| | `rowscn` (default) | `logminer` |
| - | - | - |
| **How changes are found** | Each poll reads the table for rows committed since the last poll (`ORA_ROWSCN`). | Reads the redo log through Oracle LogMiner, then re-reads only the rows it names. |
| **Cost of a poll** | A full table scan, whatever changed. | Proportional to the redo generated since the last poll, by the whole database. Independent of table size. |
| **Deletes reach ROOTKey** | After the next full scan (daily by default). | Within about two poll intervals. |
| **Database user** | `CREATE SESSION` and `READ` on the protected tables. | The same user, plus a user allowed to run LogMiner. |
| **Database settings changed** | None. | `ARCHIVELOG` mode and minimal supplemental logging. |
| **Who has to approve it** | The owner of the tables. | Your DBA and, usually, your security team. |
| **Full table reads** | First run, then at every full scan. | First run only (and after a redo-log gap or DDL on the table). |

### `rowscn` — read-only, nothing to change

**Advantages**

* Needs only a read-only user. No database setting is touched, no restart, no extra redo.
* Works on any edition and on databases where you are not allowed to change anything.
* Running in minutes: create the user, start the container.
* The user can read the protected tables and nothing else.

**Disadvantages**

* Every poll reads the whole table. On a table with hundreds of millions of rows this is the wrong mode.
* A deleted row leaves nothing to find, so deletes are detected by elimination on the periodic full scan — with a delay of up to `FULL_SCAN_INTERVAL_MINUTES` (24 hours by default).

**Best for**

* Reference data, configuration, contracts, master data: tables up to a few million rows.
* Proofs of concept and first deployments.
* Environments where the security policy forbids log-reading privileges.
* A small table inside a very busy database, where reading all the redo would cost more than reading the table.

### `logminer` — for large and busy tables

**Advantages**

* The cost of a poll follows what changed, not the size of the table. A 100-million-row table with a few thousand changes per minute is cheap to follow.
* Deletes are read from the log as facts and reach ROOTKey within about two poll intervals.
* The table is read in full only once, on the first run.

**Disadvantages**

* Requires `ARCHIVELOG` mode and minimal supplemental logging (most production databases already have both, for Data Guard or GoldenGate).
* Requires the `LOGMINING` privilege. That user can read the redo of the **whole database** — every table, in a multitenant database every PDB — not only the protected tables. See [Security and blast radius](#security-and-blast-radius).
* LogMiner runs inside the database and uses its CPU and memory while a window is read.
* The first run still reads and sends every row, and this mode does not make that faster. The initial load is bounded by the ROOTKey API, not by Oracle. ROOTKey stores each request of up to 100 records in a single database transaction. In a local test of the API alone (one stream of 100-record requests against a local PostgreSQL 16, with no agent and no network in between) it stored about 1,100–1,200 new or changed rows per second. At that rate the API alone needs about 15 minutes per million rows and about a day per 100 million rows. This is a measurement on one test machine, not a guarantee for production: real throughput depends on your hardware, your network and the width of your rows, and the time the agent needs to read the rows and the round trip to ROOTKey come on top. We have not yet measured a complete initial load through an agent with this version of the API; the previous figure, measured end to end when ROOTKey stored records one at a time, was 50–90 rows per second per agent. Plan the initial load of a very large table with your account team before starting. After the initial load only changed rows are sent.
* The agent keeps one small entry per protected row on local disk: about **150 bytes per row, roughly 15 GB for 100 million rows**.
* A transaction left open for hours holds the read position back; every cycle re-reads the redo since its start (nothing is sent twice).

**Best for**

* Ledgers, transactions, movements, audit tables: large tables that are cheap to follow in this mode once loaded. It does not shorten the first load; see the limit above.
* Any table where a delete must be reflected promptly.
* Databases that already run in `ARCHIVELOG` with supplemental logging.

### Quick decision guide

| Your situation | Use |
| - | - |
| Table under a few million rows, deletes may take up to a day to appear | `rowscn` |
| Nothing may be changed in the database, or log-reading privileges are not allowed | `rowscn` |
| Table with tens of millions of rows or more | `logminer` |
| Deletes must appear within minutes | `logminer` |
| Small table in a database with very heavy write activity elsewhere | `rowscn` |
| Trying the connector for the first time | `rowscn`, then switch |

***

## Security and Blast Radius

The agent **never writes to your database** in either mode. What differs is how much it can *read*, and what it can cost operationally. This section states both plainly, with the controls for each.

### What each database user can do

| | `rowscn` user | `logminer` user |
| - | - | - |
| Insert, update, delete, DDL | No | No |
| Read tables | Only the tables you grant | None (rows are still read by the `rowscn` user) |
| Read the redo log | No | Yes — the changes of every table in the database (in a CDB: of every PDB) |
| Can the database restrict it to one table | Yes, by grant | No. The filter by table is applied by the agent |
| Operational impact | A table scan per poll | CPU and memory of a LogMiner session per poll |

### Controls for `logminer` mode

* **Minimum grants, no write access.** The mining user gets `CREATE SESSION`, `LOGMINING`, `EXECUTE` on `DBMS_LOGMNR` and `SELECT` on six `V$` views. It gets no table privilege at all. The exact script is in the repository ([`sql/create-logminer-user.sql`](https://github.com/ROOT-Key/rootkey-connectors/blob/main/oracle/sql/create-logminer-user.sql)).

* **Audit it.** Put the mining user under a Unified Auditing policy, so that every session and every LogMiner call is recorded and you can show what was read and when:

  ```sql theme={null}
  CREATE AUDIT POLICY rootkey_miner_audit
    ACTIONS LOGON, LOGOFF, EXECUTE ON SYS.DBMS_LOGMNR, SELECT ON SYS.V_$LOGMNR_CONTENTS;
  AUDIT POLICY rootkey_miner_audit BY c##rootkey_miner;
  ```

* **Limit its sessions.** Give the mining user a profile that caps its sessions and idle time:

  ```sql theme={null}
  CREATE PROFILE c##rootkey_miner_profile LIMIT SESSIONS_PER_USER 2 IDLE_TIME 30 CONTAINER = ALL;
  ALTER USER c##rootkey_miner PROFILE c##rootkey_miner_profile CONTAINER = ALL;
  ```

* **Resource Manager does not apply to the mining user in a multitenant database.** Its session lives in `CDB$ROOT`, where a consumer group cannot be created (`ORA-65046`). Use Resource Manager for the row-reading user inside the PDB, or in a non-multitenant database; it is not available on Express Edition.

* **Restrict where it logs in from** to the host that runs the agent.

* **Identify it.** The agent's sessions carry `MODULE = 'rootkey-oracle-connector'` in `V$SESSION`.

* **`CONTAINER_DATA` does not narrow it.** In a multitenant database the mining user can read the redo of **every PDB**. We tested narrowing `CONTAINER_DATA` to one PDB: views such as `GV$TRANSACTION` then show only that PDB, but `V$LOGMNR_CONTENTS` still returned the changes of another PDB. What limits this user is therefore not a grant but the controls on this page: auditing, the session profile, where it may log in from, and the agent's closed egress.

### Controls that apply to both modes

* **The agent runs in your infrastructure.** Database credentials never leave it. ROOTKey has no access to your database and never receives a credential.
* **Close the egress.** The agent needs exactly one outbound destination: the ROOTKey API over HTTPS. With egress limited to it, even a compromised agent has nowhere else to send data.
* **Only what you list leaves.** Only the rows of the configured tables are sent. Columns named in `excludeColumns` are left out of the query itself, not filtered afterwards.
* **One API key per table.** A Connector API Key can only write records into its own ROOTKey table. It cannot read anything and cannot call any other endpoint.
* **Hardened container.** The example deployment runs as a non-root user with a read-only filesystem and secrets mounted as files.
* **Open source.** The agent's code is public and can be audited before it is deployed.

> [!TIP]
>
> If your security policy cannot accept a user that reads the redo log, use `rowscn`. You trade speed on large tables and prompt deletes for a strictly read-only, table-scoped user.

***

## Deletes

A delete is sent as its own operation and ROOTKey **marks the record deleted**. The record and its history remain and can be restored; ROOTKey purges a deleted record permanently 3 years after the delete. If the same key is inserted again later, it becomes a new live record next to the deleted one.

* In `logminer` mode, each `DELETE` is read from the redo log and sent within about two poll intervals.
* In `rowscn` mode, deletes are found by the periodic full scan: every row it reads is stamped, and the rows ROOTKey holds that were not stamped are gone. Setting `FULL_SCAN_INTERVAL_MINUTES=0` disables delete detection in this mode.

### Mass-delete safety valve

A table that suddenly lost a large share of its rows is far more often an accident — a `TRUNCATE`, a failed load, a configuration pointing at the wrong schema — than an intent to delete them, and ROOTKey is the recovery copy for exactly that case.

If a full scan finds more than `MAX_DELETE_PERCENT` (default **20**) of a table's known rows missing, the agent sends **no** delete, logs `rootkey.oracle.mass_delete_suspected` and carries on. To confirm the deletions, set `MAX_DELETE_PERCENT=100`; they are sent by the next full scan. Tables with fewer than 100 known rows are exempt.

The valve applies to deletions *inferred* by a full scan. Individual `DELETE` statements read from the redo log in `logminer` mode are facts and are always sent.

***

## Prerequisites

* Oracle Database **19c or later** (single instance or a PDB of a multitenant database). Verified on 21c XE and 23ai Free; see [What was verified](#what-was-verified-and-what-was-not). `rowscn` mode only uses features available since 12.1.0.2.
* A ROOTKey **table** to receive the records, and one connector per Oracle table, created in the dashboard.
* Network access from the agent to the database listener and, outbound over HTTPS, to the ROOTKey API.
* Docker, or Node.js 22.13 or later to run the agent directly.
* A persistent local disk for the agent's state (about 150 bytes per protected row). Prefer a local SSD over network storage.
* A primary key on each table, or a set of columns that uniquely identifies a row.

For `logminer` mode, additionally:

* `ARCHIVELOG` mode.
* Minimal supplemental logging, database-wide. This is **not optional**: without it Oracle writes some transactions to the redo log in a form LogMiner does not return, and their changes would be missed silently. The agent checks both at startup and refuses to start if either is missing.
* For every protected table with a `CLOB`, `NCLOB` or `BLOB` column: `ALTER TABLE … ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS`. Without it nothing is lost, but each change to a large LOB makes the agent read the whole table again (`rootkey.oracle.logminer_resync`).
* Archived logs kept on disk for longer than the agent may be stopped.
* A user allowed to run LogMiner. In a multitenant database this is a common user in `CDB$ROOT`.

***

## Setup

**1. Create the ROOTKey table and the connector**

In the ROOTKey dashboard, create (or choose) a **table** for each Oracle table you want to protect, then create an **Oracle Database** connector that points at it. Copy the **Connector API Key** — it is shown only once.

**2. Create the database user**

Edit the password and the table list in [`sql/create-connector-user.sql`](https://github.com/ROOT-Key/rootkey-connectors/blob/main/oracle/sql/create-connector-user.sql) and run it as a DBA, connected to the PDB that holds the tables. It creates a user with `CREATE SESSION` and `READ` on those tables.

For `logminer` mode, also work through [`sql/create-logminer-user.sql`](https://github.com/ROOT-Key/rootkey-connectors/blob/main/oracle/sql/create-logminer-user.sql) with your DBA. Read it before running: unlike the default mode, it changes database-level settings.

**3. Store the secrets as files**

```bash theme={null}
mkdir -p secrets && chmod 700 secrets
```

One key file per table:

```bash theme={null}
printf '%s' 'rk_conn_xxxxxxxxxxxxxxxxxxxx' > secrets/key_hr_employees
```

```bash theme={null}
printf '%s' 'the-database-password' > secrets/oracle_password
```

```bash theme={null}
chmod 644 secrets/*
```

The agent runs as an unprivileged user inside the container (uid 1000) and has to read these files, so they are `644`; the `secrets` directory stays `700`, which is what keeps other users of the host away from them. With `600` the agent stops with `EACCES: permission denied` unless your own uid happens to be 1000.

Then list every file you created under `secrets:` in `docker-compose.example.yml`, in both places: the service's `secrets:` list and the top-level `secrets:` block. The example file ships with sample names (`key_hr_employees`, `oracle_password`); a secret that is not listed there is not mounted, and the agent refuses to start because it cannot read the key.

> [!TIP]
>
> If you created the connector in the dashboard, its **Deploy** step gives you these commands ready to copy. They ask for the key at a prompt instead of taking it on the command line, so it stays out of your shell history, and they name the key file after the table plus the end of the connector's id (for example `key_hr_employees_1a2b3c4d`). Use that file name in the compose file and in the `.env` lines the same step shows.

**4. Configure the agent**

Copy `.env.example` to `.env` and set at least the connection, the tables and the capture mode:

```bash theme={null}
ORACLE_CONNECT_STRING=db.example.com:1521/ORCLPDB1
ORACLE_USER=rootkey_connector
ORACLE_PASSWORD_FILE=/run/secrets/oracle_password
ORACLE_TABLES=[{"schema":"HR","table":"EMPLOYEES","apiKeyFile":"/run/secrets/key_hr_employees"}]
CAPTURE_MODE=rowscn
```

**5. Start it**

```bash theme={null}
docker compose -f docker-compose.example.yml up -d --build
```

Pin the checkout to a release tag before building, so that two deployments a week apart run the same code.

**6. Verify**

Change a row in a protected table and commit:

```sql theme={null}
UPDATE hr.employees SET salary = salary + 1 WHERE employee_id = 1042;
COMMIT;
```

Within one poll interval (`logminer`: two) the agent logs a `Synced HR.EMPLOYEES … sent=1` line and a new version of record `1042` appears in ROOTKey.

***

## Configuration

| Variable | Required | Default | Description |
| - | - | - | - |
| `ORACLE_CONNECT_STRING` | Yes | — | Easy Connect string, e.g. `db.example.com:1521/ORCLPDB1` or `tcps://db.example.com:2484/ORCLPDB1`. |
| `ORACLE_USER` | Yes | — | The connector's database user. |
| `ORACLE_PASSWORD` / `ORACLE_PASSWORD_FILE` | Yes | — | Its password, or the path of a file containing it. |
| `ORACLE_TABLES` | Yes | — | Tables to protect, each with its Connector API Key. See below. |
| `CAPTURE_MODE` | No | `rowscn` | `rowscn` or `logminer`. |
| `ORACLE_LOGMINER_CONNECT_STRING`, `ORACLE_LOGMINER_USER`, `ORACLE_LOGMINER_PASSWORD` / `_FILE` | No | The main connection | Connection used to run LogMiner. In a multitenant database: a service of `CDB$ROOT` and a common user. |
| `ROOTKEY_API_URL` | No | `https://api.rootkey.ai` | ROOTKey API base URL. Must use `https://`. |
| `POLL_INTERVAL_SECONDS` | No | `60` | Pause between two cycles (5–86400). |
| `FULL_SCAN_INTERVAL_MINUTES` | No | `1440` (`rowscn`), `0` (`logminer`) | How often every row is read again. In `rowscn` mode this is also how often deletes are detected. |
| `MAX_DELETE_PERCENT` | No | `20` | A full scan that finds more than this share of a table missing sends no delete. `100` disables the check. |
| `BATCH_SIZE` | No | `100` | Maximum records per request (1–100). |
| `STATE_DIR` | No | `/var/lib/rootkey-oracle` | Where positions, hashes and the dead-letter file are kept. Must be persistent. |
| `ORACLE_DATABASE_LABEL` | No | PDB / database name | Name of this database as ROOTKey sees it. Do not change it afterwards. |
| `ORACLE_WALLET_DIR`, `ORACLE_CONFIG_DIR`, `ORACLE_CLIENT_LIB_DIR` | No | — | TLS wallet, `tnsnames.ora` directory, and Oracle Instant Client (Thick mode). |

`ORACLE_TABLES` is JSON, one entry per table:

```json theme={null}
[
  { "schema": "HR",  "table": "EMPLOYEES", "apiKeyFile": "/run/secrets/key_hr_employees", "excludeColumns": ["PASSWORD_HASH"] },
  { "schema": "FIN", "table": "LEDGER",    "apiKeyFile": "/run/secrets/key_fin_ledger",   "keyColumns": ["BOOK", "ENTRY_NO"] }
]
```

| Field | Meaning |
| - | - |
| `apiKeyFile` | Path of a file holding the Connector API Key of this table's connector. The agent refuses to start when a table has no key or two tables share one, and never logs a key. |
| `excludeColumns` | Columns that must never leave the database. They are left out of the query itself. |
| `keyColumns` | The columns that uniquely identify a row, for tables with no `PRIMARY KEY` constraint. |

The full reference is in the [repository README](https://github.com/ROOT-Key/rootkey-connectors/tree/main/oracle#configuration).

***

## Reliability

* **At-least-once, no gaps.** If anything fails — database unreachable, API down, agent killed mid-scan — the position stays put and the next poll starts from it again.
* **Idempotent.** A row re-sent with the same content is a no-op in ROOTKey, and so is a delete of a key that is unknown or already deleted. Replaying a batch changes nothing.
* **A request is all-or-nothing.** ROOTKey applies the records of a request in one transaction. If it refuses the request (`400` for an invalid record, naming its position in the request; `429` quota; `410` table deleted or paused; `503` lock wait), nothing of that request is stored, and the same request can be sent again as it is. Each record still gets its own version and its own audit entries.
* **A rejected record does not block the table.** The agent splits a refused batch in half, again and again, to isolate the record ROOTKey will not take, delivers the rest, and writes the rejected one to a dead-letter file. It is offered again the next time the row is read.
* **A redo-log gap is repaired, not ignored** (`logminer`). If the log files for the next window are gone, the agent logs `rootkey.oracle.logminer_gap`, reads every table again and resumes mining from there.

***

## Limitations

* **Intermediate versions can be skipped.** If a row changes three times between two polls, ROOTKey receives the last state only, in both modes. A row inserted and deleted between two polls is never sent. Lower `POLL_INTERVAL_SECONDS` for finer granularity.
* **Tables only.** Views, external tables and tables without a usable key are not supported.
* **Limits of a record.** A row beyond them is written to the dead-letter file, never truncated:
  * at most **100 columns** (list the ones to leave out in `excludeColumns`);
  * at most **65,536 bytes in any single value** — a `CLOB` above 64 KB, or a `BLOB` above about 48 KB;
  * at most **1 MB** for the whole record.
* **Limit of a request.** The API refuses a request larger than 5 MB (`413`), whatever the number of records in it. The agent keeps its requests below that and splits a batch by itself, so there is nothing to configure; with very wide rows, expect fewer than 100 records per request.
* **A schema change re-versions the table.** Adding or dropping a column changes every row, so every row is sent once more as a new version.
* **Do not change the key of a protected table.** ROOTKey identifies a record by its key; changing `keyColumns` would make every row a new record.
* **One agent per state directory.**
* **Usage and initial load.** Every stored version counts towards your plan's records quota, and every request towards its API quota. The initial load of a large table can take many hours or days, depending on your hardware and network (see the estimate and its limits under Capture modes above), so plan it with your account team before starting.

### Columns that are not sent

The agent sends a column only if it can render its value as text in a form that is the same on every machine. In every case below **the rest of the row is still protected**, and the agent logs `rootkey.oracle.column_skipped` with the column's name.

| Column type | Why it is not sent |
| - | - |
| `LONG`, `LONG RAW` | Legacy types that Oracle does not allow in SQL expressions. |
| `BFILE` | A pointer to a file on the database server's disk; the content is not in the database. |
| `XMLTYPE`, `JSON`, object types, collections (`VARRAY`, nested tables), `SDO_GEOMETRY` | No single canonical text form: the same value can be serialised in several ways. |
| Any column whose name is reserved by ROOTKey: it starts with `__`, contains `constructor`, or is exactly `prototype`, `eval`, `Function`, `setTimeout` or `setInterval` | A record cannot carry a field with such a name; the API refuses it. The agent leaves the column out so that the rest of the row is still protected, and logs `rootkey.oracle.column_skipped` with `reason=reserved_name`. The match is case-sensitive: an ordinary upper-case Oracle name such as `CONSTRUCTOR_NAME` is sent; a quoted lower-case `"constructor_name"` or `"__x"` is not. |

If the content of such a column must be protected, it has to exist in a supported type (for XML or JSON documents, a `CLOB`).

***

## Observability

The agent logs to stdout/stderr. Use these **stable log markers** for alerting:

| Marker | Meaning | Suggested alert |
| - | - | - |
| `rootkey.connector.fatal` | ROOTKey refused the connector (wrong key, table deleted or paused), or the agent could not start. | Any occurrence → page. |
| `rootkey.oracle.cycle_failed` | The agent could not connect to the database, or a `logminer` cycle failed. | More than a few in a row. |
| `rootkey.oracle.table_failed` | One table could not be synced. Other tables continue. | Any occurrence. |
| `rootkey.record.dead_letter` | A record was rejected for good or exceeds the size limits. | Any occurrence. |
| `rootkey.oracle.mass_delete_suspected` | A full scan found more than `MAX_DELETE_PERCENT` of a table missing. **No delete was sent.** | Any occurrence → a person decides. |
| `rootkey.oracle.logminer_gap` | The redo log no longer covers the position to resume from. Tables are being read again. | Any occurrence — check archived-log retention. |
| `rootkey.oracle.logminer_resync` | DDL, or a change the log could not describe, on one table. That table is being read again in full. | Review if frequent. If the reason mentions a LOB, add primary-key supplemental logging to the table. |
| `rootkey.oracle.column_skipped` | A column is not sent and not protected: unsupported type, or a reserved name. | Review once. |

***

## What Was Verified, and What Was Not

**Verified against real multitenant Oracle databases** — Oracle Database 21c Express Edition and Oracle Database 23ai Free (it reports itself as 26ai Free, 23.26.4) — in both capture modes: the initial load; inserts, updates and deletes with single and composite keys; an `UPDATE` that changes a primary-key value; LOB columns; a delete followed by a re-insert of the same key; transactions open across several cycles; rollbacks; an API outage in the middle of a cycle; archived logs removed while the agent was down; `TRUNCATE` and `ALTER TABLE … MOVE`; delete detection and the mass-delete safety valve in `rowscn` mode; a table with reserved column names; the example Docker Compose deployment (21c XE); and the mining user under the audit policy and profile shown above (23ai Free).

**Not verified — test these in your own environment first:**

* Oracle 19c itself, RAC, ASM, and Data Guard (including running LogMiner on a standby instead of the primary). No 19c environment was available to us; 21c XE and 23ai Free are not 19c.
* A non-multitenant database: every test database was a CDB.

If any of this matters for a table, run a periodic full scan as a safety net in `logminer` mode too (for example `FULL_SCAN_INTERVAL_MINUTES=10080` for weekly).

***

## Troubleshooting

> [accordion] Nothing arrives in ROOTKey
>
> Read the agent's log first: every failure mode has a marker from the table above, with the Oracle or API error in the line. `rootkey.connector.fatal` means the key is wrong, belongs to a connector of another type, or the ROOTKey table was deleted or paused.

> [accordion] table not found or not readable
>
> The `READ` grant is missing, or the name's case does not match. Use the JSON form of `ORACLE_TABLES` for case-sensitive names.

> [accordion] CAPTURE\_MODE=logminer cannot be used
>
> The database is not in `ARCHIVELOG` mode or minimal supplemental logging is off. See `sql/create-logminer-user.sql`.

> [accordion] ORA-01031 or ORA-00942 in logminer mode
>
> A grant from `create-logminer-user.sql` is missing, or (multitenant) `ORACLE_LOGMINER_CONNECT_STRING` points at the PDB instead of the root container.

> [accordion] ORA-01555 during a scan
>
> The scan runs longer than the undo retention allows. Raise `UNDO_RETENTION`, or move the table to `logminer` mode.

> [accordion] Deletes do not show up
>
> In `rowscn` mode deletes appear after the next full scan (`FULL_SCAN_INTERVAL_MINUTES`). If the log shows `rootkey.oracle.mass_delete_suspected`, the safety valve held them back: see [Mass-delete safety valve](#mass-delete-safety-valve).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.