by langgenius · v0.0.8
Connect to Oracle database and execute SQL statements.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: langgenius Version: 0.0.3 Type: tool Repo: https://github.com/WilburOracle/dify-oracle-db-plugin
This plugin enables connections to Oracle databases (supporting Oracle Database 26ai and earlier versions) and offers two tools: one for executing SQL queries (e.g., SELECT statements) and another for running SQL commands (such as INSERT, UPDATE, or DELETE operations). It features a streamlined interface that allows direct interaction with Oracle databases within Dify, simplifying database operations for users.
When using the Query tool, you need to provide the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| host | String | Yes | The hostname or IP address of the Oracle database server |
| port | Integer | No | The port number of the Oracle database server (default is 1521) |
| user | String | Yes | The username for connecting to the Oracle database |
| password | String | Yes | The password for connecting to the Oracle database |
| service_name | String | Yes | The service name of the Oracle database |
| query | String | Yes | The SQL query to execute against the Oracle database |
| output_format | String | No | The format of the output (JSON, Text-Markdown, Text-CSV), default is JSON |
When using the Execution tool, you need to provide the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| host | String | Yes | The hostname or IP address of the Oracle database server |
| port | Integer | No | The port number of the Oracle database server (default is 1521) |
| user | String | Yes | The username for connecting to the Oracle database |
| password | String | Yes | The password for connecting to the Oracle database |
| service_name | String | Yes | The service name of the Oracle database |
| statement | String | Yes | The SQL statement to execute (INSERT, UPDATE, DELETE) |
| output_format | String | No | The format of the output (JSON, Text-Markdown, Text-CSV), default is JSON |
Parameters:
When using the Query tool, the plugin returns results in the format you specified (JSON by default) with the following structure:
JSON format:
{
"text": "",
"files": [],
"json": [
{
"columns": [
"NEW_ERPNO",
"NAME",
"NEW_PROVINCENAME",
"NEW_CITYNAME",
"NEW_COUNTYNAME"
],
"data": [
{
"NAME": "张三",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "1",
"NEW_PROVINCENAME": null
},
{
"NAME": "李四",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "2",
"NEW_PROVINCENAME": null
},
{
"NAME": "王五",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "3",
"NEW_PROVINCENAME": null
},
{
"NAME": "赵六",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "4",
"NEW_PROVINCENAME": null
},
{
"NAME": "钱七",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "5",
"NEW_PROVINCENAME": null
},
{
"NAME": "孙八",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "6",
"NEW_PROVINCENAME": null
},
{
"NAME": "周九",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "7",
"NEW_PROVINCENAME": null
},
{
"NAME": "吴十",
"NEW_CITYNAME": null,
"NEW_COUNTYNAME": null,
"NEW_ERPNO": "8",
"NEW_PROVINCENAME": null
}
],
"message": "Query executed successfully, returned 8 rows.",
"status": "success"
}
]
}
Markdown format: Returns a formatted markdown table with the query results.
CSV format: Returns the raw CSV data of the query results.
Parameters:
When using the Execution tool, the plugin returns execution status in the format you specified (JSON by default):
{
"text": "",
"files": [],
"json": [
{
"message": "SQL statement executed successfully, affected 1 rows.",
"row_count": 1,
"status": "success"
}
]
}
In case of an error, the response will be:
{
"status": "error",
"message": "Error description"
}
This plugin only executes SQL and returns results to Dify workflows. It does not actively or passively collect user information.