Skip to content
DuckDB community extension

fusion_scanner

Query Oracle Fusion from DuckDB through BI Publisher, with SSO, an ATTACH-able catalog and cached metadata

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL fusion_scanner FROM community;
LOAD fusion_scanner FROM community;

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

The connection lives in a secret, so credentials stay out of SQL text

SQL
-- The connection lives in a secret, so credentials stay out of SQL text
-- and query history.
CREATE SECRET fusion (
    TYPE oracle_fusion,
    ENDPOINT 'https://<your-fusion-host>',
    REPORT_PATH '/Custom/Financials/RP_ARB.xdo',
    USERNAME '<user>',
    PASSWORD '<password>'
);

SELECT * FROM oracle_fusion_query(
    'SELECT currency_code, name FROM FND_CURRENCIES_TL WHERE rownum < 10'
);

-- Or attach it and query tables by name.
ATTACH 'fusion' AS f (TYPE oracle_fusion);
SELECT * FROM f.main.GL_JE_HEADERS LIMIT 10;

Provided by krokozyab. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

Oracle Fusion exposes no SQL endpoint. This extension reaches its database the way Oracle leaves open: a SELECT is wrapped in a SOAP runReport call to BI Publisher, a report runs it through dbms_xmlgen, and the rows come back as XML.

That detour requires a report deployed on the Fusion side — DM_ARB.xdm and RP_ARB.xdo, taking a p_sql parameter. The extension cannot work against a stock instance. The repository's README links the catalog archives, which live in the ofjdbc repository.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
krokozyab/ofquack
License
MIT
Maintainers
krokozyab
Written in
C++
Build source
8a84de39955e
Build definition
Community descriptor