Oracle Database connector
Use the Oracle Database connector to query tables, search rows, and explore schema in an Oracle Database from chat conversations.
This connector is currently available in Agent Builder only. Workflow support is planned for a future release. Actions marked (not yet available) are not exposed to agents. Until workflow support is added, you can only run them through the Run a connector API.
This connector loads its database driver upon first use. In Elastic Cloud Hosted deployments, this connector requires Kibana instances to have at least 2 GB of memory per availability zone.
The connector connects to Oracle Database over the native Oracle Net (Transport Network Substrate, TNS) protocol, on port 1521 by default. It uses the node-oracledb driver in Thin mode, so you don't need to install Oracle Client libraries.
The connector works with Oracle Database 12.2 or later, including self-managed databases and managed services such as Amazon RDS for Oracle. Your Kibana instance must be able to reach the listener, and any firewall or security group must allow the outbound IP address of your Kibana instance.
To use the connector, you need:
- An Oracle Database with a listener that Kibana can reach
- A database user (a user name and password) that can access the schemas you want to query
- The listener host name, the port, the service name, and the user credentials
The connector identifies the database by its service name, such as the name of a pluggable database. It doesn't support connecting by system identifier (SID).
By default, the connection uses Transport Layer Security (TLS) over TCPS (TCP with TLS). Certificate verification follows your Kibana xpack.actions.ssl settings and any matching xpack.actions.customHostSettings entry for the listener:
- If you configure a custom certificate authority for the listener in
xpack.actions.customHostSettings, it's the only authority trusted for this connector. Otherwise the standard public certificate authorities are trusted. - The
fullverification mode checks the certificate chain and that the server host name matches the certificate. Thecertificatemode checks the chain only. - The Oracle driver doesn't support the
noneverification mode. The connector verifies the certificate as infullmode instead. - The connector doesn't support client certificates (mutual TLS).
If the listener doesn't support TCPS, set TLS to Disabled in the connector configuration.
You can't route the connector through an HTTP proxy. If xpack.actions.proxyUrl applies to the listener, the connector refuses to connect instead of bypassing the proxy. Add the host name to xpack.actions.proxyBypassHosts to allow a direct connection.
An Oracle listener, such as a RAC SCAN listener, can redirect the driver to another host and port, up to two times. When TLS is Required, Kibana checks each address the driver connects to, including redirect targets, against xpack.actions.allowedHosts and the proxy settings, and refuses the connection if the address isn't allowed. The Oracle driver can't apply this check when TLS is Disabled, so redirects aren't checked in that case. If you need to strictly control where Kibana connects, keep TLS required and restrict outbound traffic at the network level.
You can create connectors in Stack Management → Connectors.
To collect the details you'll need to configure the connection:
- Confirm the database has a listener on a TCP port that Kibana can reach, and note the service name it registers (for example, from
SELECT SYS_CONTEXT('USERENV', 'SERVICE_NAME') FROM DUAL). - Create a database user with the permissions you want Kibana to have (refer to Database user permissions).
- Note the host name, the port, the service name, and the user credentials.
Oracle Database connectors have the following configuration properties:
- Host
- The host name or IP address of the Oracle listener, for example
oracle.example.com. Don't include a protocol prefix. - Port
- The port of the listener (default: 1521).
- Service name
- The service name to connect to, for example
ORCLPDB1. - TLS
- Whether to connect over TCPS. Required is the default. Select Disabled only for listeners that don't support TCPS.
- Username
- The database user to authenticate as.
- Password
- The password for the user.
While you create or edit the connector in Kibana, select Test in the connector flyout to check the connection.
The Oracle Database connector has the following actions:
- Query
-
Run a read-only SQL query against the database. The action returns at most
maxRowsrows, stops at the Kibana maximum response size (xpack.actions.maxResponseContentLength), and marks the result as truncated when more rows exist. Refer to Query result formats for how it returns dates and large objects. If you drop, re-create, or truncate a table and query it within a couple of seconds, the action can fail withORA-01466: unable to read data - table definition has changed. Run the query again.- sql (required): The
SELECTorWITHquery to run. UseFETCH FIRST n ROWS ONLYto limit results, becauseLIMITis not valid in Oracle SQL. Don't include a trailing semicolon. - maxRows (optional): Maximum number of rows to return (1 to 1,000, default: 100).
- sql (required): The
- List Schemas
- List the schemas (database users) visible to the connected user, with their creation date. The list leaves out Oracle-maintained schemas such as
SYSandSYSTEM. - List Tables
-
List the tables and views in a schema that the connected user can see, with their type.
- schema (optional): The schema to list. Defaults to the schema of the connected user.
- Describe Table
-
Describe a table or view, including columns, data types, nullability, defaults, primary key and unique constraints, and foreign keys.
- table (required): The table or view name. The connector matches the name as written first, then in uppercase.
- schema (optional): The schema containing the table. Defaults to the schema of the connected user.
- Search Rows
-
Search rows in a table by matching a search term against one or more columns, using a case-insensitive partial match.
- table (required): The table to search.
- searchTerm (required): The text to search for.
- columns (required): The columns to search in. Use Describe Table to find them.
- maxRows (optional): Maximum number of rows to return (1 to 1,000, default: 100).
- schema (optional): The schema containing the table. Defaults to the schema of the connected user.
- Execute SQL (not yet available)
-
Run any SQL or PL/SQL statement against the database and commit it on success. This action has no restrictions. You can run
INSERT,UPDATE,DELETE,DROP, PL/SQL blocks, and data definition language (DDL) statements. Use it only when you explicitly need a write or destructive operation. The connector removes a trailing semicolon from a statement, except for PL/SQL blocks that need it. If a call times out, don't assume that no changes were made. Only the first 1,000 output rows are returned. Not exposed to AI agents; becomes usable when workflow support is added. Prefer Query for read-only access.- sql (required): The statement to run.
The Query and Search Rows actions return values as follows:
DATEandTIMESTAMPvalues are wall-clock strings without a time zone, such as2026-01-02T03:04:05.- Timestamps with a time zone are UTC instants that end in
Z. - If the Kibana host's time zone observes daylight saving time, a
DATEorTIMESTAMPvalue in the hour that the spring clock change skips comes back one hour later than stored. - Text large object (LOB) values are cut at 10,000 characters.
- Binary LOB values are described, not returned.
The privileges you grant to the database user determine what the connector can do. Configure them to match your use case.
For chat conversations, use a dedicated user with read access only:
-- Run as a privileged user
CREATE USER kibana_reader IDENTIFIED BY "<password>";
GRANT CREATE SESSION TO kibana_reader;
GRANT SELECT ON hr.employees TO kibana_reader;
GRANT SELECT ON hr.departments TO kibana_reader;
Grant SELECT on each table or view you want the connector to see. The schema discovery actions only list objects the user can access.
The Query action enforces read-only access in two ways:
- It accepts only
SELECTandWITHstatements. It rejects statements separated by a semicolon,SELECT ... FOR UPDATE, inlineWITH FUNCTIONorWITH PROCEDUREdeclarations, database links, and theUTL_*andDBMS_*packages. - It runs each query in a read-only transaction, so Oracle rejects data changes made by the query itself.
Neither measure stops a function that the user is allowed to run from changing data, for example one that runs as an autonomous transaction.
The checks in the connector aren't a security guarantee. Prompt injection and similar techniques can bypass them. The only reliable protection is granting the user read-only privileges. Treat the checks as defense in depth, not a substitute for least-privilege credentials.
The Execute SQL action bypasses these restrictions and can run any statement the user is allowed to run. Don't grant write privileges unless your use case requires them.
If your use case requires write access, grant the appropriate privileges and scope them as narrowly as possible:
-- Example: allow reads and writes on one table only
GRANT SELECT, INSERT, UPDATE, DELETE ON hr.employees TO kibana_user;