orcl-query
Execute read-only SQL queries against the connected Oracle Database.The SQL query to execute
All queries are executed within a READ ONLY transaction for safety.
Example Usage
Response
Returns query results as a JSON array of row objects:orcl-explain
Generate execution plan for SQL queries against the connected Oracle Database.The SQL query to explain
Example Usage
Response
Returns the Oracle execution plan showing access paths, join methods, and cost estimates:orcl-stats
Get comprehensive statistics for a table in the current connected schema.The table name to retrieve statistics for
Table owner is determined by the USER SQL function (current schema).
Example Usage
Response
Returns detailed table statistics including:orcl-connect
Establish or reconnect to an Oracle database with new credentials.SQLNet connect string in format
host:port/service_name or host:port:SIDOracle database username
Oracle database password
Example Usage
Supported Connection Formats
host:port/service_name- Connect using service namehost:port:SID- Connect using SID
When using Docker on macOS, use
host.docker.internal to connect to databases running on localhost.Response
orcl-awr
Generate Automatic Workload Repository (AWR) reports for performance analysis.Optional SQL ID to generate an AWR report for a specific query. If omitted, returns the full last generated AWR report.
Example Usage
Full AWR Report:Response
Returns a comprehensive performance report including:- Database instance information
- Top SQL statements by elapsed time, CPU time, and executions
- Wait events and their impact
- Memory and I/O statistics
- System resource utilization
- Recommendations for optimization
Resources
The server automatically provides schema information for all tables in the current user’s schema:Table Schemas
URI Format:oracle://USER/<table>/schema
Returns JSON schema information including:
- Column names and data types
- Constraints and indexes
- Automatically discovered from Oracle metadata
Configuration
The Oracle server supports two methods for credential management:Environment Variables
Runtime Connection
Use theorcl-connect tool to establish connections dynamically without environment variables.
Connection strings should contain only host, port, and service/SID information. Credentials are always passed separately via environment variables or the connect tool.