GuidesOracle
An AI agent for Oracle Database that writes no SQL of its own.
Oracle schemas tend to be old, large and full of names nobody remembers. DeepORG maps them into a catalog the agent searches by intent, then compiles each question into one Oracle statement that runs inside the access rules you set.
The short version
What you get on Oracle.
- Search by intent. “Late shipments” finds the shipment tables and their status values, whatever the columns are called. The agent reads the matching entries, not the whole data dictionary.
- Oracle SQL written by the engine. Nested results are built with
JSON_OBJECTandJSON_ARRAYAGG, and pages useFETCH FIRST n ROWS ONLY. - Notes on the map. A person can pin a note to a cryptic column (
STAT_CDmeans order status,9means cancelled) and the agent reads it as data. - Rules from the caller. Row filters and column lists are compiled into the statement, not left to the model.
Connect
Name the database in config.
curl -fsSL https://deeporg.io/install.sh | bash# config/dev.yml
sources:
- name: ops
kind: database
type: oracle
default: true
# oracle://user:pass@host:1521/SERVICE_NAME
connection_string: ${ORACLE_DSN}
read_only: true # start read-onlyFor a first run, connect as a user that has SELECT on the schemas the agent should see and nothing else.
deeporg serveYour AI client
Add it to Claude Code or Codex.
claude mcp add deeporg -- deeporg mcp --path /absolute/path/to/config
codex mcp add deeporg -- deeporg mcp --path /absolute/path/to/configDeepORG runs over stdio with your config, and your client’s model does the reasoning. Against a running server, deeporg mcp add claude http://localhost:8080 registers it over HTTP.
Oracle specifics
The details the engine handles.
- Booleans. Oracle functions return
NUMBERwhere other databases return a boolean. Declare the return type once and the result comes back astrueorfalse. - Identifier case. Oracle stores unquoted names in upper case. The catalog shows the names as they are, and the engine quotes them correctly.
- Recursive relationships. Written as a
WITHclause without theRECURSIVEkeyword, which Oracle does not use. - Tested version. The test suite runs against Oracle Database Free 23.
functions:
- name: is_active
return_type: booleanLimits
Where Oracle differs.
Go deeper
Related pages.
- DeepORG vs text-to-SQL: why a model writing Oracle SQL from a schema dump goes wrong.
- Annotations: notes people pin to the catalog.
- MCP server for PostgreSQL: the five questions to ask any database MCP server.
- Database support: every dialect side by side.