create_sequence
Creates an Oracle sequence in the current or specified schema. Use it to define start, increment, cache, cycle, and order settings for generating numeric values.
Instructions
Create a sequence in the MCP user's own schema. Requires CREATE SEQUENCE privilege; Oracle returns ORA-01031 otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cache | No | Optional CACHE size (e.g. 20). 0 or omit means NOCACHE. | |
| cycle | No | Whether to CYCLE when max is reached (default false). | |
| order | No | Whether to guarantee ORDER (default false, useful in RAC). | |
| schema | No | Schema (owner) for the new sequence. Optional — defaults to the server's current schema; omit rather than guess. | |
| sequence | Yes | Sequence name. | |
| startWith | No | Optional START WITH value. | |
| incrementBy | No | Optional INCREMENT BY value (can be negative for descending). |