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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table": "<table>"
},
"name": "create_mview_log"
}
}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). |