Skip to content

Oracle SQL Query

The Oracle SQL Query module allows executing SQL queries on Oracle databases. It uses the oracledb library and supports dynamic variables in the query. Results are returned in object format (OUT_FORMAT_OBJECT) for easier processing in subsequent workflow nodes. It is ideal for integrations with enterprise systems based on Oracle Database.

ParameterTypeRequiredDescription
credentials_idcredentialsYesOracle connection credentials
querycodeYesSQL query to execute (supports {{variable}} variables)

The credential must contain the fields:

  • host: Oracle server address
  • user: Database user
  • password: User password
  • database: Oracle service name/SID
  • port: Connection port (default: 1521)

The connection string is built as: host:port/database

{
"nextModule": "siguiente_modulo",
"data": [
{ "ID": 1, "NOMBRE": "Ejemplo", "ESTADO": "ACTIVO" }
]
}
{
"credentials_id": "cred_oracle_01",
"query": "SELECT * FROM clientes WHERE ROWNUM <= 100"
}
  • Supports dynamic variables {{variable}} in the SQL query
  • Results are returned in object format (oracledb.OUT_FORMAT_OBJECT), meaning each row is a key-value object
  • Column names in Oracle are usually in UPPERCASE
  • The connection is automatically closed in the finally block
  • In case of SQL error, the executed query is included in the error message
  • sqlQuery (MySQL queries)
  • sqlQueryMSSQL (SQL Server queries)
  • sqlQueryPostgres (PostgreSQL queries)
  • sqlQueryPostgresSSL (PostgreSQL queries with SSL)