create_mview_log
Create a materialized-view log on an Oracle master table to enable fast refresh and DML tracking for materialized views.
Instructions
Create a materialized-view log on a table for fast refresh. Requires CREATE TABLE privilege and tablespace quota; Oracle returns ORA-01031 / ORA-01950 otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Master table name. | |
| schema | No | Schema (owner) of the master table. Optional — defaults to the server's current schema; omit rather than guess. | |
| withRowid | No | Whether to include ROWID columns. | |
| withPrimaryKey | No | Whether to include PRIMARY KEY columns (recommended). | |
| includingNewValues | No | Whether to add INCLUDING NEW VALUES (enables fast refresh with DML tracking). |