ExecuteProcedure
Task for performing stored procedures in Oracle database.
Task version: 2.5.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.Oracle/tree/main/Frends.Oracle.ExecuteProcedure
Task Parameters
Command : String
Query to be executed in string format.
Default: -
Example: "SpGetResultsByAge"
CommandType : OracleCommandType
Type of the command: Command or Stored Procedure.
Possible values:
Command: Used to make commands in the CommandType.TextStoredProcedure: Used to call stored procedures as CommandType.StoredProcedure
Default: StoredProcedure
Example: Type.StoredProcedure
Parameters : InputParameter[]
Parameters for the database query.
Default: -
Example: { Name = "ParamName", Value = "1", DataType = QueryParameterType.NVarchar2 }
🗝ConnectionString : String
Oracle connection string.
Default: Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort))(CONNECT_DATA=(SERVICE_NAME=MyOracleSID)));User Id=myUsername;Password=myPassword;
Example: "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort))(CONNECT_DATA=(SERVICE_NAME=MyOracleSID)));User Id=myUsername;Password=myPassword;"
DataReturnType : OracleCommandReturnType
Data type for the Result of the procedure.
Possible values:
XmlString: Data type for the Result of the procedure.XDocument: Data type for the Result of the procedure.AffectedRows: Data type for the Result of the procedure.JSONString: Data type for the Result of the procedure.Parameters: Data type for the Result of the procedure.
Default: XDocument
Example: "SpGetResultsByAge"
OutputParameters : OutputParameter[]
Parameters for the output of the procedure or command.
Default: -
Example: { Name = "name", DataType = QueryParameterType.Varchar2 }
ThrowErrorOnFailure : Boolean
Choose if error should be thrown if Task failes.
Otherwise returns Object { Success = false }
Default: True
Example: true
TimeoutSeconds : Int32
Timeout value in seconds.
Default: 30
Example: 30
BindParameterByName : Boolean
Choose to bind the parameter by name.
If set to false parameter order is crucial.
Default: True
Example: true
ClearConnectionPools : Boolean
Choose to clear connection pools after execution.
This is an internal Oracle setting to clear cached connections.
Default: True
Example: true
CloseConnection : Boolean
Choose to close the created connection after execution.
Setting this to false will allow the connection to be reused
but can cause issues with left open connections or concurrent usage if not handled properly.
Default: True
Example: true
ConnectionRetryAttempts : Int32
Number of retry attempts after initial failure when encountering stale Oracle connections.
Value of 0 means no retry (fail immediately on first error).
Value of 1 means one retry after initial failure (2 total attempts).
Used to automatically recover from connection errors after Oracle server restart.
Valid range: 0-4.
Default: 1
Example: 1
ConnectionRetryDelayMs : Int32
Delay in milliseconds between connection retry attempts.
Used when a stale connection is detected after Oracle server restart.
Default: 100
Example: 100
Task Result
Success : Boolean
Boolean value of success of the query.
Example: true
Output : Object
Content and data type depends on task output properties.
Example: [{"ID": "1","FIRST_NAME": "Saija","LAST_NAME": "Saijalainen","START_DATE": ""}]
Error : String
String value of the Error message that comes from Oracle.
Example: "ORA-01722: invalid number"
Task Changelog
Changelog for Task Frends.Oracle.ExecuteProcedure.
[2.5.0] - 2026-05-26
Added
Added configurable retry mechanism for stale Oracle connections with
ConnectionRetryAttempts(default: 2, range: 1-5) andConnectionRetryDelayMs(default: 100ms) options.
Fixed
Fixed issue where cached connections would fail after Oracle server restart by adding automatic retry logic to detect and recover from stale connections.
[2.4.0] - 2026-03-20
Fixed
Resolve issue with long time execution
Added
Add new options (
CloseConnection,ClearConnectionPools) to control connection behavior.
[2.3.0] - 2025-12-29
Fixed
Improved Oracle parameter handling for NULL values and BLOBs.
[2.2.0] - 2025-12-02
Fixed
Fix missing output parameter values
[2.1.0] - 2025-03-25
Changed
Update packages: Microsoft.Extensions.DependencyInjection 6.0.0 -> 9.0.3 Newtonsoft.Json 12.0.1 -> 13.0.3 Oracle.ManagedDataAccess.Core 3.21.70 -> 23.7.0 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 MSTest.TestFramework 2.2.8 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0
[2.0.0] - 2022-11-04
Fixed
[Breaking] change the parameter implementation to resemble other database related Tasks.
Fixed issue that task was not able to close connection.
[1.0.0] - 2022-10-12
Added
Initial implementation.
Last updated
Was this helpful?

