Understand an Oracle schema
Ask your AI to list the permitted tables and describe their columns and relationships before writing a query. Schema discovery keeps the discussion grounded in the structures visible to the restricted user.
Databases · MCP integration
Bring Oracle schemas and query results into your AI workflow through GateRook. The built-in connector connects to one Oracle service using JDBC Thin, keeps database credentials in the gateway, and separates read queries from changes that need approval by default.
Connection in GateRook
stage-oracle
Oracle Database
stage / QAThe route
Your AI requests a tool. GateRook checks the endpoint policy, resolves credentials locally, and calls the configured service.
Understand the request flowAsk your AI
Read pending orders from APP.ORDERS through stage-oracle. Return no more than ten rows and do not change anything.
{
"connection": "stage-oracle",
"sql": "SELECT ORDER_ID, STATUS, TOTAL FROM APP.ORDERS WHERE STATUS = 'PENDING' ORDER BY ORDER_ID",
"limit": 10
}{
"columns": [
"ORDER_ID",
"STATUS",
"TOTAL"
],
"rows": [
[
"48213",
"PENDING",
"149.00"
],
[
"48214",
"PENDING",
"89.50"
]
],
"rowCount": 2,
"truncated": false
}Sample configuration and output, not a live connection. Replace example values with your environment. Tool names here are connector names; the endpoint may expose a connection-specific name.
Put context to work
Ask your AI to list the permitted tables and describe their columns and relationships before writing a query. Schema discovery keeps the discussion grounded in the structures visible to the restricted user.
Read a small set of orders or processing records from trusted tables. Use explicit columns and filters, and check whether the result was truncated before drawing conclusions.
When writes are needed, expose sql_execute in Approval mode and keep database grants narrow. Review the exact target and SQL, then use a separate read to verify the result and inspect the call in Activity.
From service to MCP
GateRook must be running on a computer that can reach your service. Open Connections, choose Add connection, and select Oracle Database. Give the connection a name and environment.
New to GateRook? Start with the full setup guide.Use Oracle Database 19c or later and a dedicated user with CREATE SESSION and SELECT on the intended tables or trusted views. Grant write access only when needed. Confirm that the computer running GateRook can reach the service through your existing network or VPN.
In Connections, choose Add connection and Oracle Database. Set the name and environment, listener host and port, service name, and protected user credentials. Supply the service name directly rather than a SID or TNS alias.
In Advanced, match SSL mode to the listener and keep verify-full for a TCPS server. Add its private CA when required. Set the schema allowlist and an explicit default schema when the login reads another schema; use uppercase for unquoted Oracle identifiers.
Run Test connection and review the database identity, connectivity and permissions. Save only the intended service. Start with schema discovery and a bounded SELECT against a known table; leave sql_execute Off until you intend to review changes.
Add the tested connection to an endpoint. In Tools & policies, enable only the tools needed for the task. Start with Read only where supported; use Approval for any selected mutation and leave other tools Off. A connection alone does not grant an AI client access.
In Clients, choose your AI app and endpoint, review the connection details, and connect. Try this guide’s example in Playground before asking your AI. Open Activity to inspect the tool, target, decision and returned result. The getting started guide covers this shared flow.
Connection settings
These are example values for the connection form. Enter credentials into GateRook’s secret fields, not into an AI prompt. Requirements and alternatives are noted per field.
| Setting | Example | How to use it |
|---|---|---|
Name / environment | stage-oracle / stage | Choose Oracle Database in Connections. The values in this guide are illustrative; replace the host, service, user and schema with your own. |
Host / port | oracle.example.test / 1522 | Use the host and TCP port of your Oracle listener. Port 1522 here illustrates a configured TCPS listener; the form defaults to 1521. Verify the actual listener port with your administrator. |
Service name | orders.example.test | Enter an Oracle service name. One connection reaches one service; SID connections, TNS aliases and Oracle wallets are not supported. |
User / password | GATEROOK_READER / enter in GateRook | Use a dedicated database user with only the required grants. Enter the password in the protected connection field, not in a prompt or tool arguments. Do not use SYS. |
SSL mode / CA certificate | verify-full / your private CA PEM when needed | The default verifies the CA and host name over TCPS. The chosen port must have a TLS listener. An empty CA field uses the system trust store; verify-ca omits host-name verification and disable uses unencrypted TCP. |
Default schema / schema allowlist | APP / APP | Default schema is the authenticated user unless specified. Set APP explicitly when using a reader account for another schema, and allow only the needed schemas. Unquoted Oracle names are uppercase; double-quote case-sensitive names. |
Statement timeout / connection timeout | 5000 ms / 5000 ms | Choose a bounded statement timeout for the workload; an unset statement timeout follows policy. The connection timeout defaults to 5000 ms. Oracle query cancellation rounds the statement timeout up to whole seconds. |
Pool size | 2 | The default is two connections; supported values are one through ten. Environment policies may tighten query limits. |
Know what you expose
The connector determines what is possible. Endpoint modes and connection policies determine what a particular AI client may use.
| Tool | Purpose | Access behavior |
|---|---|---|
sql_list_schemas | List schemas and accessible tables or views within the connection and policy allowlists. | Read only |
sql_describe_table | Inspect a permitted table or view, including columns, types, indexes and foreign keys. Qualify the schema when it differs from the default. | Read only |
sql_query | Run one analyzed SELECT or WITH ... SELECT with supported built-in functions, in an explicit read-only transaction that is rolled back afterward. Row, size and timeout limits apply. | Read only |
sql_execute | Request a permitted SQL change. Approval shows the exact statement and target; Oracle schema changes carry an implicit-commit warning. | Approval by default |
GateRook stores local connection secrets encrypted and resolves them for connectors. Allowed tool results are returned to your AI client and may be processed by its provider. Scope the data you expose as well as the actions you allow.
Practical answers
Use Test connection to isolate service access problems. Use Playground and Activity to inspect endpoint permissions and tool calls.
The built-in connector targets Oracle Database 19c and later using JDBC Thin and an explicit host, port and service name. It does not accept SID connections, TNS aliases or Oracle wallets.
verify-full uses TCPS and requires a TLS-enabled Oracle listener. Check the actual listener port, server certificate name and CA chain. The default port does not establish that the server provides TCPS on that port.
Check the user grants, schema allowlist and default schema. Unquoted Oracle names use uppercase. If the username comes from an external credential provider, set the default schema explicitly or use a qualified table name for introspection.
No. This connector blocks procedural PL/SQL and EXPLAIN PLAN. The latter writes a plan table, so GateRook also leaves Oracle plan-based impact estimates unavailable rather than producing side effects while preparing an approval.
No. Oracle DDL commits implicitly even when a gateway policy allows it and a person approves it. Keep DDL disabled when it is unnecessary and review the implicit-commit warning before an allowed schema change.
Keep exploring
Connect Microsoft SQL Server to AI through MCP. Select databases, inspect schemas, run bounded SELECT queries and review SQL changes with local access controls.
Connect PostgreSQL to GateRook step by step with screenshots. Configure MCP access, run read queries, approve an UPDATE and inspect the full Activity audit trail.
Connect MySQL to GateRook step by step with screenshots. Configure MCP access, run read queries, approve an UPDATE and follow every call in Activity.
Your infrastructure, on your terms
Start with one connection. Choose what your AI can do.