Dodeca Oracle SQL Connector
Overview
The Oracle SQL connector is a modular extension that enables Dodeca to connect to Oracle databases directly from the client instead of going through the Dodeca server as a middle tier.
Once imported, it enables Dodeca views and workbook scripts to query and write data against Oracle, with full support for parameterized queries, schema-aware data adapters, and writeback via auto-generated INSERT, UPDATE, and DELETE commands.
Prerequisites
-
Access to an Oracle database instance.
-
Appropriate credentials for the intended authentication method: a username and password, external (operating system or wallet) authentication, or an Oracle Authorization connection to obtain an access token.
Getting Started
To begin using the Dodeca Oracle SQL connector, the Oracle SQL Connector module must be downloaded and imported into the Dodeca tenant. An Oracle SQL connection must be created and configured with the connection string and authentication details appropriate for the environment.
Oracle SQL Connection Properties
Connection Properties
Only a single connector property is required to configure and test an Oracle SQL connection:
| Property | Requirement | Description |
|---|---|---|
ConnectionString |
Required |
A standard Oracle connection string, including the data source and any provider options. |
Credentials can be embedded directly in the connection string, supplied through the connection’s credential settings, or provided as an OAuth access token obtained from an Oracle Authorization connection. A connection string with a User Id of / uses external (operating system or wallet) authentication.
Using the Oracle SQL Connector
To add support for and configure the Oracle SQL connector, a Dodeca administrator can follow these steps:
-
Download and import the latest version of the Oracle SQL Connector module into a Dodeca tenant.
-
Restart the Dodeca application. The
Oracle SQL Connectoris now available for use. -
Go to the
SQL Connectionseditor and create a new connection with theConnectionMethodproperty set toClientBasedand the connector type set to theOracle SQL Connector. -
Set the
ConnectionStringconnector property and the credential settings appropriate for the environment, then test the connection to confirm the details are valid before proceeding. -
Go to the
SQL Passthrough DataSetseditor and create or select a SQL Passthrough DataSet, then set each query’sSQLConnectionIDproperty to the new connection. -
Use the SQL Passthrough DataSet in views and workbook scripts as usual; the queries now execute directly from the client against Oracle.
Returning Result Sets from Stored Procedures
Unlike SQL Server, where a stored procedure can simply be executed from the SelectSQL property to return its recordset, Oracle stored procedures return result sets through SYS_REFCURSOR output parameters. To consume one, call the procedure from an anonymous PL/SQL block in the SelectSQL property and hand its cursor back as an implicit result set:
DECLARE
v_cursor SYS_REFCURSOR;
BEGIN
my_schema.my_procedure(p_input => '[T.SomeValue]', p_cursor => v_cursor);
DBMS_SQL.RETURN_RESULT(v_cursor);
END;
A stored procedure can also call DBMS_SQL.RETURN_RESULT itself, in which case the block reduces to a simple call.
ℹ️ Note: Implicit result sets require Oracle Database 12.1 or later. When a statement returns multiple result sets, the first result set fills the data table.
Release History
Version 1.1
-
Stored procedures that return result sets through
SYS_REFCURSORoutput parameters can now be consumed by handing the cursor back as an implicit result set (DBMS_SQL.RETURN_RESULT, Oracle 12c and later) in theSelectSQLstatement. #3159 -
PL/SQL block statements in the
SelectSQLproperty now execute exactly once per retrieval; previously, an internal schema pass executed a block a second time, which duplicated any side effects such as inserts. #3159 -
Update
Oracle.ManagedDataAccessto 23.26.300.