<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sergey Rudenko on Medium]]></title>
        <description><![CDATA[Stories by Sergey Rudenko on Medium]]></description>
        <link>https://medium.com/@rudenko.s?source=rss-c98730af6be5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*umItBlTqfhGJvRiS.jpg</url>
            <title>Stories by Sergey Rudenko on Medium</title>
            <link>https://medium.com/@rudenko.s?source=rss-c98730af6be5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:13:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rudenko.s/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Oracle AI Database 26ai Vector Search and Autonomous Database in DuckDB — No Instant Client, No…]]></title>
            <link>https://medium.com/@rudenko.s/oracle-ai-database-26ai-vector-search-and-autonomous-database-in-duckdb-no-instant-client-no-54a0f060b038?source=rss-c98730af6be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/54a0f060b038</guid>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[vector-database]]></category>
            <dc:creator><![CDATA[Sergey Rudenko]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 15:55:37 GMT</pubDate>
            <atom:updated>2026-11-18T17:23:37.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIuTgvKeaqOyVe5BzgxbiA.png" /></figure><h3>Oracle AI Database 26ai Vector Search and Autonomous Database in DuckDB — No Instant Client, No Unpacked Wallets</h3><p>If you work with Oracle AI Database 26ai (formerly 23ai) or OCI Autonomous Database, you already know how powerful native AI Vector Search (VECTOR) and binary JSON (OSON) are once your data is inside the database.<br>The friction usually starts on the client side:</p><ul><li>You have a Parquet file of document embeddings on your laptop or in an Airflow container.</li><li>You want to connect to Oracle Autonomous Database, load those vectors into a VECTOR(768, FLOAT32) column, and run nearest-neighbour queries (VECTOR_DISTANCE over an HNSW or IVF index) alongside local analytical files.</li><li>Normally, that means downloading and configuring a 300 MB Oracle Instant Client, unpacking a Cloud Wallet ZIP to disk, setting TNS_ADMIN, and writing Python glue code.</li></ul><p>To eliminate that friction, I built <a href="https://github.com/krokozyab/quack-oracle">oracle_scanner</a> — an open-source C++ extension (now published in the official DuckDB Community Extensions repository) that speaks Oracle’s TNS/TTC wire protocol directly. With it, the entire workflow happens in a few lines of SQL, with zero external drivers.<br>1. Install in Two Lines<br>oracle_scanner is published in the official DuckDB Community Extensions repository. There is no Oracle Instant Client, no ODBC/JDBC bridge, and no Python runtime required:</p><pre>INSTALL oracle_scanner FROM community;<br>LOAD oracle_scanner;</pre><p>2. Connect to OCI Autonomous Database Directly from Wallet.zip<br>When you provision an Oracle Autonomous Database in OCI, Oracle gives you a Wallet_&lt;dbname&gt;.zip file containing tnsnames.ora and cwallet.sso.<br>Instead of unpacking the archive on disk or configuring environment variables, point the DuckDB secret directly at the .zip file. oracle_scanner parses the ZIP archive and the auto-login cwallet.sso store entirely in memory:</p><pre>CREATE SECRET adb (<br>    TYPE oracle,<br>    TNS_ALIAS &#39;mydb_low&#39;,<br>    USER &#39;ADMIN&#39;,<br>    PASSWORD &#39;...&#39;,<br>    PROTOCOL &#39;tcps&#39;,<br>    TLS_SERVER_NAME &#39;adb.eu-frankfurt-1.oraclecloud.com&#39;,<br>    WALLET_FILE &#39;/secure/Wallet_mydb.zip&#39;<br>);</pre><p>Working against a local Oracle AI Database 26ai Free container instead? A single DSN string is all you need:</p><pre>CREATE SECRET ora26ai (<br>    TYPE oracle,<br>    DSN &#39;localhost:1521/FREEPDB1&#39;,<br>    USER &#39;app_user&#39;,<br>    PASSWORD &#39;...&#39;<br>);</pre><p>3. Mount Your Oracle Schema and Load Parquet Vectors Into Oracle 26ai<br>Once connected, ATTACH mounts your Oracle database as a native DuckDB catalog (o).<br>Oracle 26ai&#39;s VECTOR columns map directly to fixed-size DuckDB arrays (FLOAT[n], DOUBLE[n], TINYINT[n], or UTINYINT[n]), and native JSON columns are decoded directly from Oracle&#39;s binary OSON wire format.<br>Suppose you generated document embeddings locally in docs_embeddings.parquet and have a table in Oracle AI Database 26ai:</p><pre>-- In Oracle AI Database 26ai:<br>CREATE TABLE DOCS (<br>    id        NUMBER(19) PRIMARY KEY,<br>    title     VARCHAR2(200),<br>    metadata  JSON,<br>    embedding VECTOR(768, FLOAT32)<br>);</pre><p>Mount the Oracle catalog in DuckDB and stream your Parquet file straight into Oracle using array DML binds:</p><pre>ATTACH &#39;adb&#39; AS o (TYPE oracle_scanner);</pre><pre>INSERT INTO o.DOCS (id, title, metadata, embedding)<br>SELECT id, title, metadata, embedding<br>FROM &#39;docs_embeddings.parquet&#39;;</pre><p>Need an upsert instead? INSERT ... ON CONFLICT and MERGE INTO are translated into a native Oracle MERGE with array binds:</p><pre>INSERT INTO o.DOCS (id, title, metadata, embedding)<br>SELECT id, title, metadata, embedding<br>FROM &#39;daily_updates.parquet&#39;<br>ON CONFLICT (id) DO UPDATE SET<br>    title = excluded.title,<br>    embedding = excluded.embedding;</pre><p>4. Push Down Nearest-Neighbour Vector Search to Oracle 26ai<br>Pulling millions of vectors out of Oracle just to compute distances on the client would defeat the whole point of Oracle AI Vector Search.<br>With oracle_vector_search, the similarity search runs inside Oracle AI Database 26ai using its native VECTOR_DISTANCE operator and FETCH APPROX FIRST k ROWS ONLY:</p><pre>SELECT id, title, distance<br>FROM oracle_vector_search(<br>    &#39;adb&#39;,<br>    &#39;DOCS&#39;,<br>    &#39;EMBEDDING&#39;,<br>    (SELECT query_vec FROM &#39;questions.parquet&#39; WHERE q_id = 42)::FLOAT[768],<br>    k := 10,<br>    metric := &#39;COSINE&#39;<br>);</pre><p>What happens under the hood:</p><ol><li>oracle_scanner checks the target column&#39;s storage format (FLOAT32, FLOAT64, INT8, or BINARY) in the Oracle dictionary and encodes your query vector in the exact wire format Oracle expects.</li><li>It sends:</li></ol><pre>SELECT t.*, VECTOR_DISTANCE(t.&quot;EMBEDDING&quot;, :1, COSINE) AS DISTANCE<br>FROM &quot;DOCS&quot; t<br>ORDER BY DISTANCE<br>FETCH APPROX FIRST 10 ROWS ONLY</pre><ol><li>Oracle 26ai uses your HNSW or IVF vector index on the server, and only the top 10 matching rows cross the network back to DuckDB.</li></ol><p>Supported metrics include COSINE, EUCLIDEAN, EUCLIDEAN_SQUARED, DOT, MANHATTAN, and HAMMING (with approximate := false when you want an exact search instead of FETCH APPROX).<br>5. Transparent Pushdown and EXPLAIN ANALYZE Visibility<br>When you query attached Oracle tables in DuckDB — whether joining three Oracle tables, computing COUNT(DISTINCT col) or AVG(amount), or scanning a 50-million-row table across parallel ROWID ranges at a single consistent SCN — you can always inspect the exact SQL and network cost sent to Oracle with EXPLAIN ANALYZE:</p><pre>EXPLAIN ANALYZE<br>SELECT department_id, count(*), avg(salary)<br>FROM o.hr.employees<br>WHERE hire_date &gt;= TIMESTAMP &#39;2024-01-01 00:00:00&#39;<br>GROUP BY department_id;</pre><p>The plan outputs the exact remote statement executed by Oracle, the number of round trips, bytes transferred, cursor open latency, and fetch time.<br>Try It Out<br>I built oracle_scanner to make working with Oracle AI Database 26ai / 23ai, Oracle 19c, and OCI Autonomous Database effortless from modern analytical and AI pipelines. Feedback, issues, and feature requests are very welcome:</p><ul><li>DuckDB extension: <a href="https://duckdb.org/community_extensions/extensions/oracle_scanner">https://duckdb.org/community_extensions/extensions/oracle_scanner</a></li><li>GitHub repository &amp; documentation: <a href="https://github.com/krokozyab/quack-oracle">https://github.com/krokozyab/quack-oracle</a></li><li>More of my Oracle &amp; AI developer tools: <a href="https://oraclefusionsql.com/">https://oraclefusionsql.com</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54a0f060b038" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Fusion, Oracle EBS and your files in one SQL session]]></title>
            <link>https://medium.com/@rudenko.s/oracle-fusion-oracle-ebs-and-your-files-in-one-sql-session-edebb2c04678?source=rss-c98730af6be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/edebb2c04678</guid>
            <dc:creator><![CDATA[Sergey Rudenko]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 12:40:34 GMT</pubDate>
            <atom:updated>2026-08-30T04:55:32.478Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fusion, EBS and your files in one SQL session</h3><p><em>Two extracts and a VLOOKUP, or one SQL statement. A working guide for Oracle consultants who have never opened DuckDB.</em></p><p>Reconciling AP invoices between EBS and Fusion normally means two extracts, a VLOOKUP and an afternoon. By the end of this article it is one SQL statement — and the same statement runs unattended on a schedule.</p><p>What you will see:</p><ul><li>Fusion queried from an ordinary SQL prompt: no database server, no Oracle client stack, no driver to configure.</li><li>A Fusion query joined straight to a CSV or a Parquet file, with no export step in between.</li><li>Fusion and an EBS database open at the same time, reconciled in a single statement.</li><li>Rows copied out of Fusion into an ordinary Oracle database by a single INSERT … SELECT, with no file in between.</li><li>That same work as a file you can hand to cron or a Lambda.</li><li>The three places where this goes quietly wrong: a total that drifts, a join that drags whole tables onto your laptop, and a security assumption that does not hold.</li></ul><p>Several tools already reach Fusion through BI Publisher — my own JDBC driver among them — and almost all aim at reproducing the SQL Developer experience against it. This one aims elsewhere: Fusion stops being a window you pull data out of and becomes one source among the others.</p><p>Written for Oracle consultants who know SQL Developer and have never opened DuckDB. Everything below was run against DuckDB 1.5.5 with fusion_scanner 0.3.0.</p><h3>0. What Fusion needs first</h3><p>Start with the thing most people trip over: <strong>this does not work against a stock Fusion instance.</strong> Fusion has no SQL endpoint — no JDBC, no ODBC, no database port — so a report that executes arbitrary text is what remains. That door has to be hung first.</p><p>Fusion needs a deployed OTBI report that takes a p_sql parameter — the data model DM_ARB.xdm and the layout RP_ARB.xdo. Inside, it runs the text it is given through dbms_xmlgen and returns the rows as XML. Everything the extension does after that is wrapping your SELECT in a SOAP runReport call and reading the answer back.</p><p>The two catalog archives live in the <a href="https://github.com/krokozyab/ofjdbc/tree/master/otbireport">otbireport folder of the ofjdbc repository</a>. Un-archiving them in BI Publisher is an ordinary upload: five minutes for whoever holds the rights.</p><h3>1. DuckDB in five minutes</h3><p>DuckDB is a database inside a single executable. No server, no service, no installation. Download it, run it, get a SQL prompt. The closest thing an Oracle person already knows is SQLite — except columnar, and much faster at analytics.</p><pre># macOS<br>brew install duckdb</pre><pre># Linux / Windows: one binary from duckdb.org/docs/installation</pre><p>Start it with the web interface:</p><pre>duckdb -ui</pre><p>A browser opens onto a notebook: SQL cells, results under each one, a tree of attached databases on the left. If you live in SQL Developer the shape is familiar — cells instead of one query window, and the whole session visible at once.</p><h3>One idiom you need before anything else</h3><p>A lot of DuckDB is exposed as <em>table functions</em>, called through FROM rather than SELECT f():</p><pre>SELECT * FROM oracle_fusion_tables();</pre><p>Oracle spells the same idea SELECT * FROM TABLE(my_pipelined_function()). DuckDB does not need the TABLE() wrapper.</p><p>And note: some of these functions <strong>do something</strong> rather than just return data — fusion_scanner_sso_login() opens a browser and waits for a person. The row that comes back is the report of what happened, not the reason for the call.</p><h3>2. The extension, and signing in</h3><p>The extension is in the <a href="https://duckdb.org/community_extensions/extensions/fusion_scanner">DuckDB Community Extensions</a> registry, so installing it is two statements. A signed binary for your platform downloads once:</p><pre>INSTALL fusion_scanner FROM community;<br>LOAD fusion_scanner;</pre><p><strong>Trap.</strong> A community extension is built for one DuckDB version at a time. INSTALL … FROM community fetches the build matching yours, so this only bites when your DuckDB is newer than the newest published build: the install 404s, or a binary already on disk refuses to LOAD with a message that does not say why. SELECT version(); is the first thing to check when either happens.</p><p>Nothing tells you when a newer build lands in the registry — LOAD keeps using the copy already on disk, however old. Asking is one statement:</p><pre>UPDATE EXTENSIONS (fusion_scanner);</pre><p>It reports previous_version and current_version and downloads the newer one. That download lands on disk, not in the running process, so <strong>restart before it takes effect</strong>; SELECT fusion_scanner_version(); says what this process is actually running.</p><h3>Option one: username and password</h3><p>Credentials live in a <em>secret</em> — DuckDB’s credential store. Without one you would pass the password as a function argument, where it would end up in the query text, in duckdb_queries(), and in your shell history.</p><pre>CREATE SECRET fusion (<br>    TYPE oracle_fusion,<br>    ENDPOINT &#39;https://fa-xxxx-dev1.fa.ocs.oraclecloud.com&#39;,<br>    REPORT_PATH &#39;/Custom/Financials/RP_ARB.xdo&#39;,<br>    USERNAME &#39;sergey.rudenko&#39;,<br>    PASSWORD &#39;…&#39;<br>);</pre><p>The full BI Publisher service path is appended for you — the host is enough. duckdb_secrets() lists your secrets with the password redacted.</p><h3>Option two: corporate single sign-on</h3><p>If the instance sits behind Okta, Entra or anything with MFA, you may have no password at all. Then the secret holds no credential — only an address:</p><pre>CREATE SECRET fusion (<br>    TYPE oracle_fusion,<br>    PROVIDER browser,<br>    ENDPOINT &#39;https://fa-xxxx-dev1.fa.ocs.oraclecloud.com&#39;,<br>    REPORT_PATH &#39;/Custom/Financials/RP_ARB.xdo&#39;<br>);</pre><pre>-- This is the line that actually signs you in: it launches a browser<br>-- window, waits while you complete MFA or whatever else your company<br>-- requires, and does not return until you are done. Everything above it<br>-- only wrote down an address.<br>SELECT * FROM fusion_scanner_sso_login();</pre><p>No client secret, no registered application, no password in the process: the token collected is the one Fusion issues to its own signed-in session. Three things worth knowing:</p><ul><li><strong>A plain </strong><strong>SELECT never opens a browser.</strong> Query without signing in and the query fails, naming the sign-in function. A window appearing in the middle of somebody’s report would be worse than an error.</li><li>The token lives <strong>in memory only</strong> and goes when the process does. The browser profile at ~/.fusion_scanner/chrome-profile persists, so tomorrow’s sign-in is usually silent.</li><li>CREATE SECRET is not interactive either — it is routinely run from scripts.</li></ul><p><strong>Trap.</strong> CREATE PERSISTENT SECRET writes ~/.duckdb/stored_secrets <strong>in the clear</strong>. Redaction hides the password from duckdb_secrets(), not from the disk. A plain CREATE SECRET lives only for the session and never touches disk.</p><h3>3. First queries</h3><p>The simplest route is to hand Oracle a statement and get a table back. Dollar quotes are easier to live with: apostrophes inside them need no doubling.</p><pre>SELECT * FROM oracle_fusion_query($$<br>    SELECT je_header_id, name, currency_code, creation_date<br>    FROM gl_je_headers<br>    WHERE creation_date &gt;= DATE &#39;2025-01-01&#39;<br>      AND status = &#39;P&#39;<br>    FETCH FIRST 20 ROWS ONLY<br>$$);</pre><p>To DuckDB the text inside $$ … $$ is just a string. It travels to Fusion whole and Oracle executes it: Oracle builds the plan, Oracle uses the indexes, Oracle applies FETCH FIRST. Twenty rows come back.</p><h3>The result does not evaporate</h3><p>What you fetched can go into a local table that lives in the database file and survives a restart:</p><pre>-- One period, not one year. Every page is a SOAP request, so the WHERE<br>-- clause is what decides whether this takes seconds or an afternoon.<br>CREATE TABLE je_march AS<br>SELECT * FROM oracle_fusion_query($$<br>    SELECT je_header_id, name, currency_code, creation_date<br>    FROM gl_je_headers<br>    WHERE creation_date &gt;= DATE &#39;2025-03-01&#39;<br>      AND creation_date &lt;  DATE &#39;2025-04-01&#39;<br>$$);</pre><pre>SELECT count(*) FROM je_march;</pre><p>The table appears in the tree on the left, next to the attached databases. From there it behaves like any other: no indexes to build, because DuckDB is columnar.</p><p><strong>Size the filter before you run it.</strong> Rows come back a page at a time, and each page is a round trip measured in seconds — so ten thousand rows is fine and a million is an afternoon. That is a property of the channel rather than of this query, and it applies to everything in this article. A COUNT(*) inside oracle_fusion_query costs one request and tells you which of the two you are about to do.</p><p>The page is 500 rows by default. That is deliberately conservative — small enough that any report configuration returns it — and it is usually the first thing worth raising, because it is what decides how many round trips a given result costs:</p><pre>-- for one query<br>SELECT * FROM oracle_fusion_query($$ … $$, fetch_size := 5000);</pre><pre>-- or once, for every query on this connection<br>CREATE SECRET fusion (…, FETCH_SIZE 5000);</pre><p>Anything from 1 to 10000, or 0 to fetch the whole result in a single request. A large page is safe while paging is on: if the report cuts a response off, the scan keeps the rows that arrived whole and resumes from them, at the cost of one extra request. fetch_size := 0 is the exception — there is no next page to resume into, so a result too big for one response fails instead.</p><h3>Where it starts to differ</h3><p>Everything so far, a SQL Developer-shaped tool does too. This it does not:</p><pre>-- Agreed rates live in a spreadsheet on the procurement share.<br>-- Fusion data and that file, in one query.<br>SELECT f.vendor_id, f.invoice_amount, x.agreed_rate,<br>       f.invoice_amount * x.agreed_rate AS recalculated<br>FROM oracle_fusion_query($$<br>        SELECT vendor_id, invoice_amount FROM ap_invoices_all<br>        WHERE gl_date &gt;= DATE &#39;2025-03-01&#39;<br>          AND gl_date &lt;  DATE &#39;2025-04-01&#39;<br>     $$) f<br>JOIN read_csv(&#39;contracts.csv&#39;) x USING (vendor_id);</pre><p>DuckDB reads CSV, Parquet and JSON as though they were tables — the path goes straight into FROM, with no load step and no staging area. And back out again:</p><pre>COPY (SELECT * FROM je_march) TO &#39;je_march.parquet&#39;;</pre><p>This is the first answer to “why, when a driver already exists”: Fusion stops being a separate window you export from, and becomes one source inside a query.</p><h3>4. ATTACH and the dictionary</h3><p>Writing Oracle SQL inside quotes is not always what you want. Fusion can be mounted as an ordinary schema and queried by name:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pU_PWbTxLQhGdq4JASL3Gw.png" /></figure><pre>ATTACH &#39;fusion&#39; AS f (TYPE oracle_fusion);</pre><pre>SELECT invoice_num, invoice_amount, vendor_id<br>FROM f.AP_INVOICES_ALL<br>FETCH FIRST 5 ROWS ONLY;</pre><p>The thing in quotes is the <strong>secret name</strong>, not a connection string. Column types come from Fusion’s own dictionary rather than being guessed from data.</p><p><strong>Note what is missing from that query: a </strong><strong>WHERE clause.</strong> Add one and it still returns the right answer, but it is applied here rather than by Oracle — DuckDB reads the table and then filters what arrived. Pushing a filter down to Fusion is off by default, because a predicate that cannot be translated exactly would have to be approximated, and DuckDB drops a filter once it has handed it to a scan. So for anything selective, put the WHERE inside oracle_fusion_query where Oracle can use an index. Attached tables are for naming things, not for narrowing them.</p><h3>More than one instance at a time</h3><p>Nothing limits you to one ATTACH. A secret is an address, and a catalog is a secret with a name, so every Fusion instance you can reach is one more catalog in the same session:</p><pre>CREATE SECRET fusion_dev  (TYPE oracle_fusion, PROVIDER browser,<br>                           ENDPOINT &#39;https://fa-xxxx-dev1.fa.ocs.oraclecloud.com&#39;,<br>                           REPORT_PATH &#39;/Custom/Financials/RP_ARB.xdo&#39;);<br>CREATE SECRET fusion_prod (TYPE oracle_fusion, PROVIDER browser,<br>                           ENDPOINT &#39;https://fa-xxxx.fa.ocs.oraclecloud.com&#39;,<br>                           REPORT_PATH &#39;/Custom/Financials/RP_ARB.xdo&#39;);</pre><pre>ATTACH &#39;fusion_dev&#39;  AS dev  (TYPE oracle_fusion);<br>ATTACH &#39;fusion_prod&#39; AS prod (TYPE oracle_fusion);</pre><p>Both instances are now just names, and one query can read from either or both. The question every release raises — did the refresh bring the setup across? — becomes ordinary SQL:</p><pre>SELECT &#39;dev&#39; AS instance, name, currency_code, period_set_name<br>FROM dev.GL_LEDGERS<br>UNION ALL<br>SELECT &#39;prod&#39;, name, currency_code, period_set_name<br>FROM prod.GL_LEDGERS<br>ORDER BY name, instance;</pre><p>That reads well because GL_LEDGERS is a setup table of a few dozen rows. On a large one the rule from a moment ago applies — an attached table is read whole — so push the comparison into each instance instead, naming it with secret :=:</p><pre>SELECT * FROM oracle_fusion_query($$<br>    SELECT lookup_type, COUNT(*) AS n FROM fnd_lookup_values<br>    WHERE lookup_type LIKE &#39;XX%&#39; GROUP BY lookup_type<br>$$, secret := &#39;fusion_prod&#39;) p<br>FULL OUTER JOIN oracle_fusion_query($$<br>    SELECT lookup_type, COUNT(*) AS n FROM fnd_lookup_values<br>    WHERE lookup_type LIKE &#39;XX%&#39; GROUP BY lookup_type<br>$$, secret := &#39;fusion_dev&#39;) d USING (lookup_type)<br>WHERE p.n IS DISTINCT FROM d.n;</pre><p>With several secrets, secret := is not optional: the extension refuses to guess which instance a query means. Each instance keeps its own dictionary cache, keyed by endpoint, so dev and prod never confuse each other’s tables.</p><p>The catalogs need not be alike, either. The same session can hold two Fusion pods, an EBS database and an Autonomous Database, each under its own name, and a query can reach across any of them. That is where the next two sections go.</p><h3>Load the table list once</h3><pre>SELECT * FROM oracle_fusion_tables();</pre><p>Every table and view in the instance — 28,978 of them on the one used here. The first run fetches that list from Fusion and saves it to ~/.fusion_scanner/metadata.duckdb; every run after that reads the file.</p><p><strong>Columns are not part of this, and do not need to be.</strong> When you name a table, its columns are fetched at that moment and cached with it. So you pay once for the list, and after that only for the tables you actually touch.</p><p>That is the whole setup. Nothing else.</p><p>Once it has run, the sidebar tree holds every table and view in the instance, and so does SHOW TABLES. You can also search the list as a table, which is often faster than scrolling 28,978 nodes:</p><pre>SELECT table_name, table_type, remarks<br>FROM oracle_fusion_tables()<br>WHERE table_name LIKE &#39;XLA%&#39;;</pre><h3>Refreshing</h3><p>The list does not expire. Nothing but Oracle changes a Fusion dictionary, and it does that on its quarterly update, announcing nothing — so an age limit would mostly discard work that was still correct. If a table you know exists is missing, force a refresh:</p><pre>SELECT count(*) FROM oracle_fusion_tables(refresh := true);</pre><p>Deleting ~/.fusion_scanner/metadata.duckdb clears everything at once.</p><h3>One wrinkle in the tree</h3><p>Columns warm up on first use. Until a table has been queried it carries a placeholder column, so expanding it in a client or running DESCRIBE shows that placeholder rather than the real thing. One query against the table replaces it for good.</p><h3>5. Why a join belongs to Oracle</h3><p>The temptation is obvious: the tables are attached, so write the familiar thing.</p><pre>-- Do not do this<br>SELECT *<br>FROM f.GL_JE_LINES l<br>JOIN f.GL_CODE_COMBINATIONS cc<br>  ON cc.code_combination_id = l.code_combination_id<br>FETCH FIRST 20 ROWS ONLY;</pre><p>The query returns the right answer. It just pulls both source tables to your laptop first.</p><p>FETCH FIRST 20 is applied at the top of the plan and is not pushed into the sources; the join condition even less so. Then hash-join mechanics take over: one side is read <strong>completely</strong>, before the first probe, or the hash table is not ready. And which side that is, is not something you can rely on — the planner picks the build side from cardinality estimates, and a BI Publisher report carries none, so both tables look equally unknown to it. If it picks GL_JE_LINES, that is tens of millions of rows, paged over SOAP, one request at a time.</p><p>The same result, written properly:</p><pre>SELECT * FROM oracle_fusion_query($$<br>    SELECT l.je_header_id, l.je_line_num, l.entered_dr, l.entered_cr,<br>           cc.segment1, cc.segment2, cc.segment3<br>    FROM gl_je_lines l<br>    JOIN gl_code_combinations cc<br>      ON cc.code_combination_id = l.code_combination_id<br>    FETCH FIRST 20 ROWS ONLY<br>$$);</pre><p>Now Oracle does the join, Oracle uses the index on CODE_COMBINATION_ID, and twenty rows come back in one answer. A pleasant side effect: because the text already carries FETCH, paging is switched off — exactly one SOAP request.</p><p>Two markers tell you which side of the line you are on:</p><ul><li>An <strong>f. prefix on a table</strong> means DuckDB executes it. Inside oracle_fusion_query that prefix cannot appear: Oracle knows nothing about a catalog called f.</li><li><strong>Quotes around the whole statement</strong> mean Oracle executes it.</li></ul><p>Hence the working rule, and note the condition on it: <strong>when every table involved is a Fusion table</strong>, the JOIN, the GROUP BY, the COUNT(*) and the selective WHERE belong inside oracle_fusion_query, where Oracle can optimise them. The outer DuckDB query is for combining that already-reduced result with something Oracle cannot see — a CSV, EBS, a local table. That is the join in the previous section, and the reconciliation in the next one.</p><p>And list your columns — both tables carry LAST_UPDATE_DATE and CREATED_BY, and the result arrives as XML where columns are told apart only by name.</p><h3>6. Fusion and EBS in one query</h3><p>So far the instances have all been Fusion. What makes this worth the trouble starts when the second one is not.</p><p>A familiar post-migration question: some invoices are in Fusion, the historical ones are still in EBS, and someone needs to know whether the totals agree. The usual route is two extracts and a VLOOKUP. Here it is one query, because both databases are open at once.</p><h3>The second extension</h3><p><a href="https://duckdb.org/community_extensions/extensions/oracle_scanner">oracle_scanner</a> is the other half of this, and also mine: it talks to a normal Oracle database directly over TNS — no Instant Client, no tnsnames.ora:</p><pre>INSTALL oracle_scanner FROM community;<br>LOAD oracle_scanner;</pre><pre>-- EBS: a direct database connection<br>CREATE SECRET ebs (<br>    TYPE oracle,<br>    HOST &#39;ebs-db.example.com&#39;, PORT 1521, SERVICE_NAME &#39;PROD&#39;,<br>    USER &#39;apps&#39;, PASSWORD &#39;…&#39;<br>);</pre><pre>-- Fusion: through BI Publisher, as in section 2<br>CREATE SECRET fusion (<br>    TYPE oracle_fusion, PROVIDER browser,<br>    ENDPOINT &#39;https://fa-xxxx.fa.ocs.oraclecloud.com&#39;,<br>    REPORT_PATH &#39;/Custom/Financials/RP_ARB.xdo&#39;,<br>    NUMBER_MODE &#39;decimal&#39;<br>);<br>-- Opens a browser and waits for you to sign in, as in section 2.<br>SELECT * FROM fusion_scanner_sso_login();</pre><pre>ATTACH &#39;ebs&#39;    AS e (TYPE oracle_scanner);<br>ATTACH &#39;fusion&#39; AS f (TYPE oracle_fusion);</pre><p>Easy to get wrong: the secret’s type is oracle; the ATTACH type is oracle_scanner. Two different names.</p><h3>Reconciliation: totals first</h3><p>The first question is where the difference even is. Row-by-row is premature: let each system total its own data where that data lives, and have DuckDB compare seven rows.</p><pre>WITH ebs AS (<br>    -- COUNT and SUM over an unconstrained NUMBER both arrive as text.<br>    SELECT period, currency,<br>           CAST(cnt   AS BIGINT)         AS cnt,<br>           CAST(total AS DECIMAL(38,6))  AS total<br>    FROM oracle_query(&#39;ebs&#39;, $$<br>        SELECT TO_CHAR(gl_date, &#39;YYYY-MM&#39;) AS period,<br>               invoice_currency_code       AS currency,<br>               COUNT(*) AS cnt, SUM(invoice_amount) AS total<br>        FROM ap.ap_invoices_all<br>        WHERE gl_date &gt;= DATE &#39;2025-01-01&#39;<br>        GROUP BY TO_CHAR(gl_date, &#39;YYYY-MM&#39;), invoice_currency_code<br>    $$)<br>),<br>fus AS (<br>    SELECT * FROM oracle_fusion_query($$<br>        SELECT TO_CHAR(gl_date, &#39;YYYY-MM&#39;) AS period,<br>               invoice_currency_code       AS currency,<br>               COUNT(*) AS cnt, SUM(invoice_amount) AS total<br>        FROM ap_invoices_all<br>        WHERE gl_date &gt;= DATE &#39;2025-01-01&#39;<br>        GROUP BY TO_CHAR(gl_date, &#39;YYYY-MM&#39;), invoice_currency_code<br>        ORDER BY 1, 2<br>    $$)<br>)<br>SELECT COALESCE(e.period, f.period)     AS period,<br>       COALESCE(e.currency, f.currency) AS currency,<br>       e.cnt AS ebs_cnt,     f.cnt   AS fusion_cnt,<br>       e.total AS ebs_total, f.total AS fusion_total,<br>       f.total - e.total     AS diff<br>FROM ebs e FULL OUTER JOIN fus f USING (period, currency)<br>WHERE e.cnt IS DISTINCT FROM f.cnt<br>   OR e.total IS DISTINCT FROM f.total<br>ORDER BY period, currency;</pre><p>Note where TO_CHAR and GROUP BY sit: <strong>inside</strong> both statements, symmetrically. Each system aggregates its own rows and returns a few dozen instead of tens of thousands. Move either aggregate outside and that table travels to you whole, by exactly the mechanics of the previous section — and TO_CHAR is not a DuckDB function anyway, so the query would not even bind.</p><p><strong>And note what the grouping includes.</strong> INVOICE_AMOUNT is denominated in the invoice’s own currency; there is no implicit conversion in either system. Total by period alone and you add euros to yen, which produces a difference that exists nowhere in the data — the reconciliation reports a problem it invented. Group by currency as well, and each line compares like with like.</p><h3>The note about amounts, without which the reconciliation lies</h3><p>INVOICE_AMOUNT is declared in both systems as NUMBER <strong>with neither precision nor scale</strong> — which is how Fusion and EBS both declare an amount. The dictionary says only “a number”, and each extension has to decide what that becomes. They decide differently, and one of the two decisions is loud while the other is quiet.</p><p><strong>oracle_scanner chooses </strong><strong>VARCHAR</strong>: exact, but not arithmetic. That is the loud one, and loud is good — summing it does not return a wrong total, it refuses to run.</p><pre>Binder Error: No function matches the given name and argument types &#39;sum(VARCHAR)&#39;</pre><p>So you cast on the Oracle side, and you find out at once if you forget. COUNT(*) comes back as text for the same reason, which is why the query above casts both columns.</p><p><strong>fusion_scanner chooses </strong><strong>DOUBLE</strong> for a column read through ATTACH. That is the quiet one. Nothing errors, sums work — they just drift. Over two hundred thousand invoice-shaped amounts, a DOUBLE total came to 99,506,899.79997873 where the exact total was 99,506,899.80. In a reconciliation that is two cents of difference that exist nowhere in the data.</p><p>NUMBER_MODE &#39;decimal&#39; on the secret makes such a column a DECIMAL(38,6) instead. That removes the binary floating-point drift, which is what bites on a sum; it is not unconditional exactness, since it rounds anything past six fractional digits. &#39;text&#39; is the only mode that loses nothing at all, and it gives you back the casting problem. For invoice amounts, decimal is the right trade. To see which columns the choice was made for at all:</p><pre>SELECT column_name, oracle_type, duckdb_type<br>FROM oracle_fusion_columns(&#39;AP_INVOICES_ALL&#39;)<br>WHERE lossy;</pre><p><strong>Where the setting does and does not reach.</strong> NUMBER_MODE governs types that come from Fusion’s <em>dictionary</em> — that is, attached tables. A statement sent through oracle_fusion_query has no dictionary to consult and infers its types from the data, where a value below one is evidence of a scale on its own: the SUM in the query above arrives as an exact DECIMAL(38,2) with no setting at all. Set it for the ATTACH path, and read f.AP_INVOICES_ALL knowing what you are getting.</p><h3>Row by row, over the period you found</h3><p>The totals narrowed it to one month, and the volume is now safe to compare directly. Two things decide whether this comparison is worth anything:</p><p><strong>An invoice number is not a key.</strong> It is unique only within a supplier — two suppliers may both issue INV-001, and comparing on the number alone pairs one company’s invoice with another’s. The key is the supplier plus the number, and the supplier has to be identified by something that survived the migration: the supplier <em>number</em>, not VENDOR_ID, which each system assigns for itself. That means one join per side — done inside the quotes, where it costs nothing.</p><p><strong>The date range is half-open.</strong> An Oracle DATE carries a time, so BETWEEN DATE &#39;2025-03-01&#39; AND DATE &#39;2025-03-31&#39; stops at midnight and silently drops almost all of the last day.</p><pre>WITH e AS (<br>    SELECT supplier_num, invoice_num, currency,<br>           CAST(amount AS DECIMAL(38,6)) AS amount<br>    FROM oracle_query(&#39;ebs&#39;, $$<br>        SELECT s.segment1 AS supplier_num, i.invoice_num,<br>               i.invoice_currency_code AS currency,<br>               i.invoice_amount        AS amount<br>        FROM ap.ap_invoices_all i<br>        JOIN ap.ap_suppliers s ON s.vendor_id = i.vendor_id<br>        WHERE i.gl_date &gt;= DATE &#39;2025-03-01&#39;<br>          AND i.gl_date &lt;  DATE &#39;2025-04-01&#39;<br>    $$)<br>),<br>f AS (<br>    SELECT * FROM oracle_fusion_query($$<br>        SELECT s.segment1 AS supplier_num, i.invoice_num,<br>               i.invoice_currency_code AS currency,<br>               i.invoice_amount        AS amount<br>        FROM ap_invoices_all i<br>        JOIN poz_suppliers s ON s.vendor_id = i.vendor_id<br>        WHERE i.gl_date &gt;= DATE &#39;2025-03-01&#39;<br>          AND i.gl_date &lt;  DATE &#39;2025-04-01&#39;<br>        ORDER BY s.segment1, i.invoice_num<br>    $$)<br>)<br>SELECT COALESCE(e.supplier_num, f.supplier_num) AS supplier_num,<br>       COALESCE(e.invoice_num, f.invoice_num)   AS invoice_num,<br>       e.amount AS ebs, f.amount AS fusion,<br>       CASE WHEN e.invoice_num IS NULL       THEN &#39;Fusion only&#39;<br>            WHEN f.invoice_num IS NULL       THEN &#39;EBS only&#39;<br>            WHEN e.currency &lt;&gt; f.currency    THEN &#39;currency differs&#39;<br>            ELSE &#39;amounts differ&#39; END AS finding<br>FROM e FULL OUTER JOIN f USING (supplier_num, invoice_num)<br>WHERE e.amount   IS DISTINCT FROM f.amount<br>   OR e.currency IS DISTINCT FROM f.currency;</pre><p>If your migration renumbered suppliers, that mapping is the first thing to reproduce here — everything downstream inherits it.</p><p>A finished exception list. Save it and hand it over:</p><pre>COPY (…) TO &#39;recon_2025_03.parquet&#39;;<br>COPY (…) TO &#39;recon_2025_03.csv&#39; (HEADER);</pre><h3>The other direction: writing</h3><p>oracle_scanner does more than read. A reference list cleaned up in Fusion goes back into EBS in one statement, with no file in between:</p><pre>INSERT INTO e.XX_FUSION_VENDORS (supplier_num, supplier_name, updated_at)<br>SELECT supplier_num, supplier_name, CURRENT_TIMESTAMP<br>FROM oracle_fusion_query($$<br>    SELECT s.segment1 AS supplier_num, p.party_name AS supplier_name<br>    FROM poz_suppliers s<br>    JOIN hz_parties p ON p.party_id = s.party_id<br>    WHERE s.end_date_active IS NULL OR s.end_date_active &gt; SYSDATE<br>$$);</pre><p>That query is also a small lesson in Fusion’s own shape: POZ_SUPPLIERS holds no supplier name and no status column. The name lives in HZ_PARTIES through PARTY_ID, and “active” is a date range, not a flag. Both joins happen on the Oracle side, which is where they belong.</p><p>The rows go Fusion → your machine → EBS. Good for reference data and reconciliation output; <strong>not</strong> an ETL path for millions of rows.</p><p><strong>Types do not travel implicitly.</strong> oracle_scanner refuses a DOUBLE for a NUMBER column rather than rounding it into an exact one:</p><pre>Oracle column &quot;AMOUNT&quot; cannot take a DOUBLE value:<br>FLOAT and DOUBLE are not exact; cast to DECIMAL or VARCHAR first</pre><p>That bites exactly here, because DOUBLE is what an attached Fusion table gives you for an unconstrained NUMBER. Cast on the way in — CAST(… AS DECIMAL(38,6)), which is the cast you will see in the next section’s script — or set NUMBER_MODE &#39;decimal&#39; and it arrives as a DECIMAL already. Decimal text is accepted too, and parsed exactly. It is the same rule as on the read side, in the other direction: refuse rather than approximate.</p><p>Fusion itself cannot be written to. BI Publisher does not write: the f catalog is read-only, and an INSERT into it refuses with an explanation. Writing is only possible towards the ordinary Oracle side.</p><h3>What this section is really showing</h3><p>No tool built around a single connection can hold two different systems open and compare them in one statement. That is not a shortcoming of any particular driver — it follows from having one connection, and it is why reconciliation normally decomposes into two extracts and a manual merge.</p><ol><li><strong>Compute where the data is.</strong> GROUP BY, WHERE and JOIN belong inside the $$ … $$ of whichever system owns the rows. DuckDB should receive a result, not source tables.</li><li><strong>Totals first, rows second.</strong> The aggregate costs one request per system; the row-by-row comparison then runs over the interval you found.</li><li><strong>Check the types on your amounts.</strong> lossy shows where a choice was made for you, and NUMBER_MODE &#39;decimal&#39; corrects it.</li></ol><h3>7. The same thing, unattended</h3><p>Nothing so far needed a person at a keyboard — and none of it needs a programming language either. The whole job is one SQL file. If you have built a Fusion → Oracle feed in OIC — a connection, an integration, a mapping, an activation — this is the same data flow with none of that around it.</p><p>Install the two extensions once when you provision the machine or build the image:</p><pre>duckdb -c &quot;INSTALL fusion_scanner FROM community; INSTALL oracle_scanner FROM community;&quot;</pre><p>The scheduled script then only loads them:</p><pre>-- feed.sql<br>LOAD fusion_scanner;<br>LOAD oracle_scanner;</pre><pre>-- getenv keeps the credentials out of the file, and out of everything<br>-- that later reads the file.<br>CREATE OR REPLACE SECRET fusion (<br>    TYPE oracle_fusion,<br>    ENDPOINT    getenv(&#39;FUSION_HOST&#39;),<br>    REPORT_PATH getenv(&#39;FUSION_REPORT&#39;),<br>    USERNAME    getenv(&#39;FUSION_USER&#39;),<br>    PASSWORD    getenv(&#39;FUSION_PASSWORD&#39;),<br>    NUMBER_MODE &#39;decimal&#39;<br>);<br>CREATE OR REPLACE SECRET ebs (<br>    TYPE oracle,<br>    HOST getenv(&#39;EBS_HOST&#39;), PORT 1521, SERVICE_NAME getenv(&#39;EBS_SERVICE&#39;),<br>    USER getenv(&#39;EBS_USER&#39;), PASSWORD getenv(&#39;EBS_PASSWORD&#39;)<br>);</pre><pre>ATTACH &#39;ebs&#39; AS ora (TYPE oracle_scanner);</pre><pre>-- Yesterday&#39;s invoices, straight from Fusion into an Oracle staging<br>-- table. Nothing lands on disk in between.<br>INSERT INTO ora.STG_FUSION_INVOICES<br>    (invoice_id, invoice_num, vendor_id, amount, loaded_at)<br>SELECT invoice_id, invoice_num, vendor_id,<br>       CAST(invoice_amount AS DECIMAL(38,6)), now()<br>FROM oracle_fusion_query($$<br>    SELECT invoice_id, invoice_num, vendor_id, invoice_amount<br>    FROM ap_invoices_all<br>    WHERE last_update_date &gt;= SYSDATE - 1<br>$$);</pre><p>And that is the entire deployment:</p><pre>duckdb &lt; feed.sql</pre><p>The interesting line is the one doing the work: a single INSERT … SELECT whose source is Fusion and whose target is Oracle. No mapping to define, no intermediate file, no orchestration — the two systems are just two things in scope of one statement.</p><p>There is no server here either. The dependency is a single duckdb binary plus two extensions installed at deployment time, and the whole thing is small enough for a Lambda, a Cloud Function, or a cron line on a jump host. Point it at a schedule and you have the nightly feed.</p><h3>If you would rather write Python</h3><p>The same session is available from duckdb.connect(), with the SQL above passed to con.sql():</p><pre>import duckdb</pre><pre>con = duckdb.connect()<br>con.sql(&quot;INSTALL fusion_scanner FROM community&quot;)<br>con.sql(&quot;LOAD fusion_scanner&quot;)</pre><p><strong>The package version has to match.</strong> It bundles its own copy of DuckDB, so the bundled one has to be a version the registry has built the extension for. Watch the Python floor especially: each DuckDB release drops the oldest interpreters, so pip on an older Python quietly resolves to an older DuckDB than you expected — which is how this fails on a machine where the CLI works fine. print(duckdb.__version__) after installing is the whole check; skip it and you find out at LOAD, as a 404.</p><p>Two things to get right in a function: <strong>browser SSO cannot work there</strong> — no browser, nobody to click, so use USERNAME/PASSWORD or a TOKEN from your platform’s secret store — and <strong>the filesystem is usually read-only</strong>, so point HOME and extension_directory at /tmp for the extension download to land in.</p><p><strong>What this does not replace.</strong> OIC is an integration platform: error handling, retries you can see, monitoring, message tracking, business identifiers. This is a script. It fits a nightly pull into a staging table or a reconciliation report; it does not fit an event-driven integration that somebody has to support at three in the morning. And the channel is unchanged — every page out of Fusion is a SOAP request measured in seconds, so this moves reference data and daily deltas, not millions of rows.</p><h3>8. The security assumption that does not hold</h3><p>The query runs under your credentials, and Fusion checks that you are allowed to run the report. That is authentication and function security.</p><p><strong>It is not the row-level data security of a Fusion page.</strong> Oracle states plainly that physical SQL against base tables does not necessarily honour data-security profiles; for HCM the supported path is the *_SECURED_LIST_V views. Signing in as a user with a narrow role does not narrow what the report returns.</p><p>What actually holds the line is <strong>the Fusion-side role that grants access to the report</strong>. It should be purpose-made, narrow, and held only by the people meant to have that reach — not folded into a broad seeded role. Treat access to RP_ARB.xdo the way you would treat a database account, not a report subscription.</p><p>The secured_views option rewrites a fixed list of HR tables to their secured views, but it is a convenience rather than a control: the substitution happens on your machine before the request leaves, and anyone can simply not enable it.</p><h3>This is not a better SQL query tool</h3><p>There is a whole category of tools whose goal is to give you a SQL Developer-shaped window onto Fusion: an editor, a result grid, an object browser. My own JDBC driver, <a href="https://github.com/krokozyab/ofjdbc">ofjdbc</a>, is one of them. For that job they work, and if all you need is to run a SELECT against Fusion from a tool you already know, reach for one — this is not an argument against them.</p><p>The difference here is not a better tool for querying Fusion. It is that Fusion stops being a window you export from and becomes one source in a session where EBS, Parquet, spreadsheets and local tables sit beside it — and where the output of a reconciliation is not a file somebody has to open, but the input to the next query.</p><p><strong>And none of it is tied to </strong><strong>duckdb -ui.</strong> Every statement in this article is plain SQL sent to a DuckDB connection, so if you already live in DBeaver, work there instead — create a DuckDB connection and paste the same statements. One thing to check: DBeaver fetches duckdb_jdbc from Maven, and the DuckDB version inside that driver has to be one the registry builds the extension for — the same trap as above, in a different wrapper. Driver Manager → DuckDB → Libraries is where the version lives.</p><p>Both extensions are in the DuckDB Community Extensions registry: <a href="https://duckdb.org/community_extensions/extensions/fusion_scanner">fusion_scanner</a> and <a href="https://duckdb.org/community_extensions/extensions/oracle_scanner">oracle_scanner</a>. Written against DuckDB 1.5.5 with fusion_scanner 0.3.0.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edebb2c04678" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moving Oracle to PostgreSQL with a Single INSERT — No Oracle Client, No Python]]></title>
            <link>https://medium.com/@rudenko.s/moving-oracle-to-postgresql-with-a-single-insert-no-oracle-client-no-python-3efc99baaa40?source=rss-c98730af6be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3efc99baaa40</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Sergey Rudenko]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 16:16:53 GMT</pubDate>
            <atom:updated>2026-08-24T16:16:53.013Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to turn an embedded OLAP engine into a compact, lightning-fast ETL/ELT pipeline with no CSVs and no intermediate storage — and, if needed, parallelize Oracle reads across sessions under one consistent snapshot.</em></p><p>When people talk about DuckDB, they usually think of analytics: local queries to Parquet files, fast aggregations, notebooks, and data science. But DuckDB has another highly practical capability: <strong>it can connect data sources and sinks directly within a single SQL plan.</strong></p><p>By adding extensions for Oracle and PostgreSQL, complex data migration turns into one elegant query:</p><pre>INSERT INTO pg.public.orders<br>SELECT *<br>FROM oracle_query(&#39;ora&#39;, &#39;SELECT * FROM app.orders&#39;);</pre><p>This isn’t just shorthand for some external script. DuckDB actually executes the entire pipeline: it reads rows directly from Oracle, transforms them into its highly optimized vector chunks, and streams them directly into PostgreSQL. <strong>No intermediate DuckDB table, no CSV files, and no clunky Python loops are needed.</strong></p><p>In this architecture, DuckDB doesn’t act as the final storage, but as a powerful, <strong>in-process ETL/ELT engine</strong>.</p><h3>What We Are Building (The Architecture)</h3><p>The setup involves three key components:</p><pre>Oracle ──TNS/TTC──&gt; oracle_scanner ──&gt; DuckDB SQL pipeline ──&gt; postgres extension ──&gt; PostgreSQL</pre><ul><li><a href="https://github.com/krokozyab/quack-oracle"><strong>oracle_scanner</strong></a> reads from Oracle directly via the native TNS/TTC protocol. <strong>The advantage here:</strong> It requires <em>absolutely no</em> Oracle Instant Client, OCI, JDBC, ODBC, Python, or any separate proxy processes. Installing it is one SQL statement from the DuckDB Community Extensions — there is nothing else to put on the machine.</li><li><strong>DuckDB</strong> sits in the middle, executing projections, filtering, type casting, and other transformations at vector speed.</li><li><strong>The official </strong><a href="https://duckdb.org/docs/current/core_extensions/postgres/overview"><strong>postgres</strong></a> extension connects PostgreSQL as a natively accessible catalog for reading and writing.</li></ul><p>DuckDB is the “engine in the middle.” It understands the schema of both sides and constructs a single, highly optimized physical plan for the INSERT ... SELECT operation.</p><h3>Connecting Both Databases</h3><p>oracle_scanner is published in the DuckDB Community Extensions, so installing it is two statements — no build, no -unsigned flag. Version 0.1.0 targets DuckDB v1.5.5, which is the shell version used throughout this article.</p><pre>INSTALL oracle_scanner FROM community;<br>LOAD oracle_scanner;</pre><p>That is the whole installation: the signed binary is downloaded for your platform and it links nothing from an Oracle client. The PostgreSQL extension can be installed from the official DuckDB repository:</p><pre>INSTALL postgres;<br>LOAD postgres;</pre><p>It is highly recommended to store connection credentials securely in the <strong>DuckDB Secrets Manager</strong>, rather than hardcoding passwords in connection strings:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6be95bb5c13db9c95cefef1b92f50191/href">https://medium.com/media/6be95bb5c13db9c95cefef1b92f50191/href</a></iframe><p>The target table has to exist before the INSERT — the extension will not invent it for you. You can create it without leaving the DuckDB shell, because the attached catalog is writable:</p><pre>CREATE TABLE pg.public.orders (<br>    order_id       BIGINT,<br>    customer_id    BIGINT,<br>    created_at     TIMESTAMP,<br>    amount         DECIMAL(18, 2),<br>    source_system  VARCHAR<br>);</pre><p><em>(Note: this DDL runs inside PostgreSQL — </em><em>pg is a remote catalog, not a local DuckDB database, and </em><em>VARCHAR lands there as </em><em>text.)</em></p><h3>A Single INSERT Instead of a Cumbersome ETL App</h3><p>Now you can simultaneously extract data, conform it to the target model, and load it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/55176c2534a0e2e102839f77849a7836/href">https://medium.com/media/55176c2534a0e2e102839f77849a7836/href</a></iframe><p><strong>Key benefits of this approach:</strong></p><ul><li><strong>Clear Extract vs. Transform boundaries:</strong> The watermark filter runs <em>inside</em> Oracle — it is part of the statement you send, so only matching rows ever cross the network. DuckDB then handles type casting and adds the new source_system column. (This is deliberate hand-written pushdown, not the automatic filter pushdown the extension can do for ATTACHed Oracle tables; that one is opt-in via SET oracle_filter_pushdown = true.)</li><li><strong>Zero-friction loading:</strong> The output of the SELECT instantly becomes the input for writing to PostgreSQL.</li><li><strong>Values stay values:</strong> The bind parameter :watermark is sent as a typed bind, never concatenated into the SQL text — so a value can never turn into syntax. The statement text is still yours to keep static.</li></ul><p>Whether you call this ETL or ELT depends on where you draw the line. But practically, the <strong>key advantage</strong> is that your entire data movement logic is defined declaratively in a single SQL query, eliminating the need to write, deploy, and maintain a separate data pumping service.</p><h3>Why Not Just Use oracle_fdw in PostgreSQL?</h3><p>A natural question arises: if the goal is to query Oracle from PostgreSQL, why not just use the standard Foreign Data Wrapper (oracle_fdw) directly inside Postgres?</p><p>Here is why the DuckDB approach is fundamentally different and often superior:</p><ol><li><strong>Zero Client Dependencies (No OCI Nightmare):</strong> oracle_fdw requires installing Oracle Instant Client and OCI libraries directly on the PostgreSQL server OS. This is often an administrative nightmare and sometimes strictly prohibited in managed database environments (like AWS RDS or GCP Cloud SQL). In contrast, DuckDB&#39;s oracle_scanner speaks the native TNS/TTC wire protocol. It requires zero Oracle binaries.</li><li><strong>Decoupled Workload:</strong> With FDW, the heavy lifting of data extraction and type conversion happens <em>inside</em> your primary PostgreSQL database, potentially impacting production performance. By placing DuckDB in the middle (e.g., in a separate container, CI/CD runner, or sidecar), you offload the entire ETL workload.</li><li><strong>Vectorized Transformations:</strong> DuckDB processes data in columnar vectors, so type conversion and expression evaluation happen a batch at a time before the result is written to PostgreSQL. oracle_fdw prefetches from Oracle in batches too, but hands rows to the PostgreSQL executor one tuple at a time, and every transformation you add runs in that row-at-a-time engine.</li><li><strong>Native Range-Sharded Parallelism:</strong> As we’ll see next, DuckDB makes it trivial to split reads into perfectly consistent parallel shards, which is incredibly difficult to achieve purely with FDW.</li></ol><h3>Why the Table Doesn’t Need to Fit in Memory</h3><p>oracle_query is implemented as a <strong>streaming table function</strong>. It requests the next batch of rows from Oracle (sized to match a standard DuckDB vector), hands the chunk to the next operator, and only then reads further.</p><p>As a result, a simple INSERT ... SELECT pipeline <strong>does not materialize the entire source table in RAM</strong>. Memory is only consumed by the active chunks and operator buffers, making this approach extremely resource-efficient.</p><p><em>Caveat:</em> Streaming doesn’t defy the laws of query physics. Global sorts, massive GROUP BYs, window functions, or unoptimized joins might still require significant memory or spill to disk. If your goal is pure data transfer, avoid adding blocking operators unless necessary.</p><p><strong>Built-in Backpressure:</strong> If PostgreSQL ingest slows down, the pipeline won’t frantically read ahead from Oracle and overwhelm your system. The consumer dictates the pace, ensuring a stable, controlled, and resilient data flow.</p><h3>Scaling Up: When One Oracle Session Isn’t Enough</h3><p>A standard oracle_query uses a single Oracle session and one read thread. While perfect for incremental loads, a massive full-load might hit network round-trip or single-session throughput bottlenecks.</p><p>To drastically accelerate throughput, the source can be partitioned by numeric key ranges:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f89ec1fd42e5356311171f479d183fa6/href">https://medium.com/media/f89ec1fd42e5356311171f479d183fa6/href</a></iframe><p><strong>How </strong><strong>oracle_scan_parallel works its magic:</strong></p><ol><li>Grabs the current Oracle System Change Number (SCN).</li><li>Describes the table and checks the key is NUMBER, then reads the min and max key values — already AS OF SCN.</li><li>Divides the range into shards (half-open, the last one closing on the maximum, so every key belongs to exactly one shard).</li><li>Opens multiple parallel sessions.</li><li><strong>Crucially:</strong> Reads every range AS OF SCN using that same, single SCN.</li><li>Adds one extra shard for rows whose key is NULL — but only if the table actually has any, so you never pay for an idle session.</li></ol><p>The unified SCN is the <strong>critical component</strong> here. If you merely opened eight random connections, each would see a slightly different point in time. A row could update mid-flight and appear twice or vanish entirely. Using a <strong>Flashback snapshot</strong> guarantees that the parallel result is a perfectly consistent snapshot of a single logical table version.</p><p><em>Requirements:</em> The key must be an Oracle NUMBER with integer bounds — a non-numeric key is refused by name rather than approximated. You also need EXECUTE privileges on SYS.DBMS_FLASHBACK and FLASHBACK on the table. The shard count defaults to DuckDB&#39;s thread count and is capped at 256; it is also clamped to the width of the key range, so a table with five distinct keys gets five shards no matter what you ask for. The table name may be schema-qualified (&#39;APP.ORDERS&#39;).</p><p><em>Note:</em> This is range sharding, not automatic statistical balancing. A highly skewed key might cause some shards to finish early. Overall speed is still gated by your slowest link (source, transformations, network, or target write), so benchmark and adjust shards carefully to avoid overwhelming either database.</p><h3>Cross-Database Reconciliation — and What It Costs</h3><p>A migration is not finished until you have proven the two sides agree, and this is where querying both engines from one session pays off. Reconciliation becomes a SELECT instead of a Python script that pages both databases into memory.</p><p>But the naive version of that SELECT is a full extract in disguise, and it is worth seeing why before you point it at a 200-million-row table:</p><pre>-- Looks declarative. Reads both tables end to end.<br>SELECT order_id, amount<br>FROM oracle_query(&#39;ora&#39;, &#39;SELECT order_id, amount FROM app.orders&#39;)<br>EXCEPT<br>SELECT order_id, amount<br>FROM pg.public.orders;</pre><p>The join and the EXCEPT happen <strong>in DuckDB</strong>, so both sides have to arrive there first. oracle_query sends exactly the text you wrote — no filter is added on the way. Checking v$sql on the Oracle side after running a cross-database join confirms it: what arrives is</p><pre>SELECT &quot;ORDER_ID&quot;, &quot;AMOUNT&quot; FROM &quot;ORDERS&quot;</pre><p>with no WHERE clause at all. The same is true of an ATTACHed table: a join predicate against a PostgreSQL table is never pushed into Oracle, because Oracle cannot see the other table. And SET oracle_filter_pushdown = true does not change that — it pushes simple <em>constant</em> predicates (AMOUNT &gt; 100, IS NULL, IN (…), an equality on text), and it is <strong>off by default</strong>. Even SELECT count(*) over an attached table reads one row per row over the wire; DuckDB does the counting.</p><h4>Compare summaries first, rows only where they disagree</h4><p>The fix is the same hand-written pushdown as in the load itself: make each database compute its own summary, and compare the summaries. Bucket by something that already exists in the data — a month, a day, a key range:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6e411f682efb2c3d1f52c40e6ef812c/href">https://medium.com/media/a6e411f682efb2c3d1f52c40e6ef812c/href</a></iframe><p>A hundred buckets is a hundred rows over the wire, whatever the table weighs. Now descend, and only into what actually disagreed — with the bucket as a bind parameter, so the filter runs inside Oracle:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dad688e57f97608c6940deb1589433f9/href">https://medium.com/media/dad688e57f97608c6940deb1589433f9/href</a></iframe><p>Counts and sums catch missing and duplicated rows, but not a changed value that keeps the total intact. When you need content equality, hash the row — and note that this only works if both sides build <strong>the same text</strong>: LOWER(STANDARD_HASH(x, &#39;MD5&#39;)) in Oracle and md5(x) in PostgreSQL are the same digest, which is easy to verify (10|ACCOUNTING hashes to cb357227… on both). Getting there means pinning the representation yourself: format numbers and dates explicitly, and give NULL a marker, because &#39;a&#39; || NULL is NULL in Oracle and one side will silently disagree with itself.</p><h4>If you are going to scan Oracle more than once, scan it once</h4><p>Every oracle_query is a fresh statement against Oracle, so three reconciliation queries over the same table are three full reads. Land it once and work locally — and for a large table, read it through several sessions at a single SCN:</p><pre>CREATE TABLE ora_orders AS<br>SELECT * FROM oracle_scan_parallel(&#39;ora&#39;, &#39;APP.ORDERS&#39;, &#39;ORDER_ID&#39;, shards := 4);</pre><p>DuckDB spills to disk, so this is bounded by disk rather than RAM — the same property that lets the load itself run on a laptop.</p><h3>Is This a Replacement for Airflow and CDC?</h3><p>No — and recognizing this makes the pattern much easier to apply correctly.</p><p>DuckDB beautifully handles the <strong>data plane</strong> of a single load: connect, read, transform, and write. However, a standalone SQL query does not handle:</p><ul><li>Scheduling and orchestration</li><li>Watermark state management</li><li>Retries and alerting</li><li>Deduplication on rerun</li><li>Schema evolution</li><li>Continuous redo-log CDC</li><li>Row count and checksum reconciliations</li></ul><p>For one-off migrations, periodic batches, and backfills, this approach is phenomenal. For a production pipeline, wrap this query in a standard orchestrator and explicitly define your rerun semantics. (Pro tip: For large reloads, write to a staging PostgreSQL table first, validate, and then swap or merge).</p><h3>Pre-Flight Checklist</h3><ul><li><strong>Types:</strong> NUMBER(p,0) up to 18 digits becomes BIGINT, NUMBER(p,s) becomes DECIMAL, and unconstrained NUMBER is returned as a string to preserve exact precision. Oracle DATE maps to TIMESTAMP. Unsupported columns are safely rejected during the bind phase.</li><li><strong>LOBs:</strong> Reading CLOB, NCLOB and BLOB works, but the row carries only a locator, so every value costs extra round-trips: 2,000 rows with a 2,000-character CLOB measured <strong>1.22 s</strong>, against <strong>0.004 s</strong> for the same rows without that column. Don&#39;t SELECT LOBs you don&#39;t need — and note that <em>writing</em> a LOB back to Oracle is not supported, which matters only if you ever reverse the direction.</li><li><strong>Consistency:</strong> Parallel scan yields a consistent Oracle snapshot, but this is <em>not</em> a distributed transaction. Design your cleanup and retry strategies on the PostgreSQL side.</li><li><strong>Row Order:</strong> Shards execute concurrently, so row insertion order is undefined (which is standard for relational tables).</li><li><strong>Security First:</strong> For Oracle Autonomous Database, the extension natively reads wallet ZIPs in-memory and connects via TCPS with mandatory certificate validation (TLS verification cannot be disabled).</li><li><strong>Validation:</strong> Always verify row counts and key-range aggregates post-migration — computed <em>inside</em> each database and compared as summaries, not by pulling both tables into DuckDB and joining them.</li></ul><h3>Conclusion: A Simpler Pipeline</h3><p>DuckDB is typically viewed as a lightweight analytical tool. But its embedded architecture combined with extensible data sources turns it into a <strong>versatile SQL data mover.</strong></p><p>Instead of writing a bloated application that:</p><ol><li>Loads an Oracle driver</li><li>Manually loops and converts types</li><li>Manages queues or writes fragile temporary files</li><li>Loads a PostgreSQL driver</li><li>Batches inserts manually</li><li>Fights memory limits and backpressure</li></ol><p><strong>You get a purely declarative pipeline:</strong></p><pre>INSERT INTO postgres_target<br>SELECT transformed_columns<br>FROM oracle_source;</pre><p>And when you need more power, you scale out with consistent parallel range-shards without breaking a sweat.</p><p>This isn’t a bloated enterprise integration bus or complex CDC. It’s something much sharper: <strong>a compact, lightning-fast batch ETL/ELT pipeline with zero intermediate layers</strong>, running exactly where DuckDB runs.</p><p>Sometimes, the ultimate data pipeline really is just a single INSERT.</p><h3>Links</h3><ul><li><a href="https://github.com/krokozyab/quack-oracle">oracle_scanner: Source Code &amp; Documentation</a></li><li><a href="https://duckdb.org/docs/current/core_extensions/postgres/overview.html">PostgreSQL extension — DuckDB documentation</a></li><li><a href="https://duckdb.org/docs/current/core_extensions/postgres/overview.html#writing-data-to-postgresql">Writing Data to PostgreSQL from DuckDB</a></li><li><a href="https://duckdb.org/docs/current/sql/statements/insert.html">DuckDB </a><a href="https://duckdb.org/docs/current/sql/statements/insert.html">INSERT statement</a></li></ul><p><em>Every SQL statement in this article was run as written — Oracle Database 19c and PostgreSQL 16 in containers, DuckDB v1.5.5 with </em><em>oracle_scanner 0.1.0 installed from the Community Extensions and the official </em><em>postgres extension.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3efc99baaa40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Oracle Fusion data in Excel and Power BI, without an extract]]></title>
            <link>https://medium.com/@rudenko.s/your-oracle-fusion-data-in-excel-and-power-bi-without-an-extract-de6d78df38e3?source=rss-c98730af6be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/de6d78df38e3</guid>
            <dc:creator><![CDATA[Sergey Rudenko]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 16:44:19 GMT</pubDate>
            <atom:updated>2026-08-02T16:44:19.015Z</atom:updated>
            <content:encoded><![CDATA[<p>Getting data out of Oracle Fusion Cloud usually ends the same way. Someone writes a BI Publisher report for the question, someone else schedules an extract, and an analyst waits. Ask a slightly different question next week and the cycle starts again. Meanwhile the team already knows SQL, already has Excel and Power BI, and already runs Oracle databases every day.</p><p>The obstacle is not skills. It is that a SaaS tenant has no listener to connect<br>to. Fusion’s documented interface for ad-hoc SQL is the BI Publisher web<br>service: SOAP in, base64-wrapped XML out. No Oracle client speaks that.</p><p>So put something in between that speaks both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1hdC20ZZxtvzTgkbwHKwg.png" /><figcaption>That is Excel connected to Oracle Fusion Cloud. Not an export, not a CSV<br>someone mailed over — a live query, refreshable, written in ordinary SQL.</figcaption></figure><p><strong>How it works</strong></p><p>`oratofusionproxy` is a single binary that listens on port 1521 and answers<br>Oracle Net — the TNS/TTC protocol, the same bytes a real Oracle server puts on<br>the wire. To any Oracle client, it is an Oracle database.</p><p>Underneath, each `<em>SELECT</em>` becomes one call to Fusion’s BI Publisher service<br>with the credentials you configure. Nothing undocumented, nothing scraped, and<br>nothing that can write: BI Publisher serves reports, so DML is refused before<br>it reaches the tenant.</p><p><strong>Step 1: deploy one report to Fusion (once)</strong></p><p>BI Publisher will not run a statement that is not part of something. So the<br>proxy uses a single **universal** report whose data model takes your SQL as a parameter. One report, deployed once, serves every query anyone will ever send through the proxy. You never author another one.</p><p>Two catalog files, from (<a href="https://github.com/krokozyab/ofjdbc/tree/master/otbireport">https://github.com/krokozyab/ofjdbc/tree/master/otbireport</a>):<br>`DM_ARB.xdm.catalog`, the data model, and `RP_ARB.xdo.catalog`, the report that renders it. Upload both in **Tools → Reports and Analytics → Browse Catalog**, into a folder you control, and note the<br>report’s absolute path — the proxy needs it.</p><p>Two things people trip over:</p><p>- **The path is tenant-specific.** `/Custom/Financials/RP_ARB.xdo` is only a common default. A wrong path fails every query, and it fails in a way that<br> looks like a permissions problem.<br>- **The account the proxy authenticates as must be able to run that report<br> through the web service.** No per-table grants are needed — the data model<br> runs its SQL through BI Publisher’s own data source — and no DBA-equivalent account exists in a SaaS tenant anyway.</p><p>Uploading needs whatever privilege your tenant requires to publish a BI<br>Publisher report, so it is usually a one-off ticket rather than something an<br>analyst does. If your team already runs (<a href="https://github.com/krokozyab/ofjdbc">https://github.com/krokozyab/ofjdbc</a>), this step is already done — it<br>uses the same two artefacts, and both tools can share one deployment.</p><p><strong>Step 2: run the proxy</strong></p><p>Download the archive, put a five-line `.env` next to the binary, double-click<br>it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BR1YIYeyuVsGd9txsNQuOQ.png" /></figure><p><strong>Step 3: install Oracle’s client for Microsoft tools</strong></p><p>This is the part people expect to be hard, and it is one MSI. Oracle publishes [Oracle Client for Microsoft Tools](<a href="https://www.oracle.com/database/technologies/appdev/ocmt.html">https://www.oracle.com/database/technologies/appdev/ocmt.html</a>),<br>free, specifically so that Power BI Desktop, Excel, SSAS, SSIS, SSRS and SSDT can talk to an Oracle database. Install it and match its bitness to your Office install.</p><p>There is nothing else to install. No connector of mine, no gateway, no driver you have to trust.</p><p><strong>Step 4: Excel</strong></p><p>Data → Get Data → From Database → From Oracle Database. Server is<br>`127.0.0.1/fusion`. Authentication is Basic, the username is not checked, and<br>the password is the one you chose for the proxy — **not** a Fusion password.<br>Fusion credentials stay on the proxy side and never travel to the client.</p><p>**Advanced options** has a SQL statement box, which is the easiest place to<br>bound a query:</p><blockquote>sql select * from po_lines_all where rownum &lt; 10</blockquote><p><strong>Step 5: Power BI Desktop</strong></p><p>Home → Get Data → Oracle database. Same server value, same credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHBvn4YdcFJMYSz8uzRThA.png" /><figcaption>Power BI’s ordinary Oracle connector. The username really is “any” — it is not validated.</figcaption></figure><p>Choose **Import** rather than DirectQuery. Every query is a BI Publisher report execution measured in seconds, so a DirectQuery report firing one query per visual will feel broken. Import a bounded result and refresh it on a schedule.</p><p><strong>The part that took the work</strong></p><p>Returning rows was not the hard bit. Before Power BI or Excel loads anything, it interrogates the data dictionary — what tables exist, what columns they have, what types those are. Left alone, opening the Navigator would drag the whole Fusion catalog through BI Publisher, one slow SOAP call at a time. Those queries are answered locally instead, from a catalog file that ships with the release. The schema tree opens immediately, and the tenant is only touched when you actually ask for data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvos17QpYaSmTY9RteQcsw.png" /></figure><p><strong>It is not only Excel</strong></p><p>The same port serves everything else that speaks Oracle. SQL Developer, DBeaver and SQLcl connect with the same three values and browse the schema normally. And because it is the real protocol, another Oracle database can open a database link to it. An EBS R12 instance can reconcile against Fusion with plain SQL and existing PL/SQL, unchanged — no Database Gateway, no staging tables, no nightly export.</p><p><strong>Where to get it</strong></p><p>Windows, Linux and macOS builds, the pre-built catalog, and the compatibility matrix — which says exactly which clients have been verified and how — are here:</p><p><a href="https://github.com/krokozyab/oracle-fusion-tns-proxy">https://github.com/krokozyab/oracle-fusion-tns-proxy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de6d78df38e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting the Coding Vibe in Oracle Fusion OTBI: From SQL Struggle to Fluid Workflow]]></title>
            <link>https://medium.com/@rudenko.s/from-oracle-fusion-sql-struggles-to-smooth-sailing-how-ai-changed-my-database-life-545c7080b7a7?source=rss-c98730af6be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/545c7080b7a7</guid>
            <category><![CDATA[oracle-fusion]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[oracle-otbi]]></category>
            <dc:creator><![CDATA[Sergey Rudenko]]></dc:creator>
            <pubDate>Thu, 11 Sep 2025 07:39:39 GMT</pubDate>
            <atom:updated>2025-09-15T15:24:22.418Z</atom:updated>
            <content:encoded><![CDATA[<p>A practical tool that actually delivers on the promise of making SQL development enjoyable (yes, really)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*YiGAYBqvsuwakWNwU5-6wA.jpeg" /></figure><p>When working with Oracle Fusion Cloud’s vast metadata landscape, traditional database tools fall short. They treat table names as simple strings, forcing developers into endless cycles of guesswork and manual documentation searches.</p><p><a href="https://github.com/krokozyab/ofjdbc_claudie_mcp"><strong>OFMCP</strong></a> (Oracle Fusion Metadata Provider) is is an MCP (Model Context Protocol) server for Claude Desktop that provides a set of tools for Oracle Fusion Cloud metadata exploration and SQL development. Built as a companion to the <a href="https://github.com/krokozyab/ofjdbc">OFJDBC</a> project. Both tools are free, available on GitHub: <a href="https://github.com/krokozyab/ofjdbc_claudie_mcp">OFMCP</a> and <a href="https://github.com/krokozyab/ofjdbc">OFJDBC</a>. While <a href="https://github.com/krokozyab/ofjdbc">OFJDBC</a> handles the technical aspects of connecting to Oracle Fusion databases, <a href="https://github.com/krokozyab/ofjdbc_claudie_mcp">OFMCP</a> adds an intelligent layer that understands Oracle’s complex naming conventions, business processes, and table relationships to make database development more straightforward and conversational. Here’s how each tool helps improve developer productivity:</p><h3>🎯 Semantic Search: From Keywords to Business Intelligence</h3><p><strong>Traditional approach</strong>: Search for “AP invoice” → get scattered results: AP_INVOICES_ALL, AP_INVOICE_LINES_ALL, AP_HOLDS_ALL…, but no context about relationships <strong>OFMCP approach</strong>: Search for “vendor payment invoice approval” → connects the full workflow: AP_INVOICES_ALL, AP_INVOICE_LINES_ALL, AP_HOLDS_ALL…</p><pre>Query: &quot;vendor invoice approval workflow&quot;<br>→ Detects: &quot;procure_to_pay&quot; business process<br>→ Targets: AP_ (Accounts Payable) and PO_ (Purchase Orders) modules only<br>→ Filters: 27,000 tables down to 12 relevant matches<br>→ Returns: AP_INVOICES_ALL, AP_INVOICE_LINES_ALL, AP_HOLDS_ALL, AP_INVOICE_DISTRIBUTIONS_ALL...<br>→ Explains: &quot;Found in Accounts Payable module - tracks vendor invoices and approval workflows&quot;<br>→ Suggests: &quot;Consider POZ_SUPPLIERS for vendor details, PO_HEADERS_ALL for purchase order references&quot;</pre><p><strong>The advantage</strong>: Built-in knowledge of 25+ Oracle business processes and 100+ business concepts. It knows that “order to cash” involves Distributed Order Orchestration (DOO_), Accounts Receivable (AR_, RA_), and Warehouse Shipping (WSH_) modules.</p><h3>🔍 Smart Fuzzy Search: Handles Human Imperfection</h3><p><strong>Traditional tools</strong>: “recievable” (typo for receivable) → No results found, start over <strong>OFMCP</strong>: “recievable” → AR_RECEIVABLES_ALL, AR_RECEIVABLE_APPLICATIONS_ALL, AR_AGING_BUCKETS</p><pre>Query: &quot;cstmr accts&quot; (abbreviation for customer accounts)<br>→ Finds: HZ_CUST_ACCOUNTS, HZ_CUST_ACCT_SITES_ALL, HZ_PARTIES<br>→ Scores: 89% match confidence for &quot;customer accounts&quot;<br>→ Explains: &quot;Fuzzy match: &#39;cstmr&#39; → customer, &#39;accts&#39; → accounts&quot;<br>→ Context: &quot;Customer master data in Trading Community Architecture (TCA)&quot;</pre><p><strong>The approach</strong>: Advanced scoring algorithms that understand Oracle-specific abbreviations (cust→customer, acct→account, dist→distribution), handle common typos, and recognize that “HZ_” prefix means Trading Community Architecture tables.</p><h3>📖 Full-Text Description Search: Mining Oracle’s Hidden Documentation</h3><p><strong>Traditional approach</strong>: Stare at cryptic table names like “POZ_SUPPLIER_SITES_ALL_M” and guess their purpose <strong>OFMCP approach</strong>: Search business intent: “supplier geographic locations” → finds the exact table with explanation</p><pre>Query: &quot;tracks employee vacation balances&quot;<br>→ TF-IDF Analysis: Searches CACHED_TABLES.REMARKS field across 27,000 tables<br>→ Weighted Results: &quot;vacation&quot;=high relevance, &quot;balances&quot;=medium, &quot;employee&quot;=context<br>→ Finds: HXT_TIMECARD_SUMMARY (score: 94.2%)<br>→ Description: &quot;Stores PTO accruals and absence tracking for workforce management&quot;<br>→ Context: &quot;Perfect for HR reporting and compliance dashboards&quot;</pre><p><strong>The TF-IDF advantage</strong>: Instead of simple keyword matching, uses Term Frequency-Inverse Document Frequency to identify which words are truly distinctive. “Employee” appears in 800+ tables (low weight), but “vacation balances” appears in only 3 tables (high weight). This method helps reduce noise and find relevant results.</p><pre>Query: &quot;regulatory compliance audit trail&quot;<br>→ TF-IDF discovers: FND_AUDIT_COLUMNS, GL_JE_SOURCES_TL<br>→ Rare terms: &quot;compliance&quot;=high weight, &quot;audit&quot;=medium weight<br>→ Common terms: &quot;trail&quot;=filtered out as noise<br>→ Result: Perfect match for SOX compliance tables</pre><p><strong>The insight</strong>: Oracle embeds detailed business documentation in REMARKS fields — thousands of person-hours of domain expertise. OFMCP’s full-text search with TF-IDF weighting makes this information easier to access and use.</p><h3>⚡ Auto-Correcting SQL: Metadata Knowledge Drives Intelligence</h3><p><strong>Traditional experience</strong>:</p><pre>SELECT customer_id, order_number FROM sales_orders WHERE region = &#39;WEST&#39;<br>→ Error: Table &#39;sales_orders&#39; doesn&#39;t exist<br>→ 20 minutes hunting through documentation...<br>→ Discover it&#39;s actually called DOO_HEADERS_ALL<br>→ Error: Column &#39;customer_id&#39; doesn&#39;t exist<br>→ Another 15 minutes to find it&#39;s SOLD_TO_PARTY_ID</pre><p><strong>OFMCP experience leveraging metadata knowledge</strong>:</p><pre>SELECT customer_id, order_number FROM sales_orders WHERE region = &#39;WEST&#39;<br>→ [Metadata Analysis] &#39;sales_orders&#39; → fuzzy match to DOO_HEADERS_ALL (95% confidence)<br>→ [Column Mapping] &#39;customer_id&#39; → SOLD_TO_PARTY_ID (Oracle Fusion pattern)<br>→ [Column Mapping] &#39;order_number&#39; → ORDER_NUMBER (exact match)<br>→ [Auto-corrected] SELECT SOLD_TO_PARTY_ID, ORDER_NUMBER FROM DOO_HEADERS_ALL WHERE REGION_NAME = &#39;WEST&#39;<br>→ [Smart Suggestions] &quot;Consider joining with HZ_PARTIES for customer details&quot;</pre><p><strong>The metadata advantage</strong>: OFMCP understands Oracle Fusion’s naming conventions because it has analyzed all 27,000 tables:</p><ul><li>Customer references → PARTY_ID, CUST_ACCOUNT_ID, SOLD_TO_PARTY_ID patterns</li><li>Standard columns → CREATED_BY, LAST_UPDATE_DATE, OBJECT_VERSION_NUMBER</li><li>Module patterns → DOO_ for orders, AR_ for receivables, PO_ for purchasing</li></ul><pre>-- Another example: Purchase Order query<br>SELECT vendor_name, po_amount FROM purchase_orders WHERE status = &#39;APPROVED&#39;<br>→ [Metadata Intelligence] Maps to: PO_HEADERS_ALL, PO_VENDORS → HZ_PARTIES<br>→ [Auto-correction] SELECT hp.PARTY_NAME, ph.TOTAL_AMOUNT<br>                     FROM PO_HEADERS_ALL ph<br>                     JOIN PO_VENDORS pv ON ph.VENDOR_ID = pv.VENDOR_ID<br>                     JOIN HZ_PARTIES hp ON pv.PARTY_ID = hp.PARTY_ID<br>                     WHERE ph.AUTHORIZATION_STATUS = &#39;APPROVED&#39;<br>→ [Explanation] &quot;Mapped vendor_name to HZ_PARTIES.PARTY_NAME via PO_VENDORS join&quot;</pre><p><strong>Practical benefit</strong>: Reduces time spent deciphering Oracle’s complex naming conventions. The AI applies 15+ years of Oracle Fusion patterns automatically.</p><h3>🧠 Business Process Intelligence: Oracle Fusion Domain Expertise Built-In</h3><p><strong>Traditional tools</strong>: You need to memorize that Order Management uses OM_, OE_, DOO_ prefixes <strong>OFMCP</strong>: Just describe what you’re building</p><pre>Query: &quot;procurement approval workflow&quot;<br>→ Detects: &quot;procure_to_pay&quot; process<br>→ Suggests: PO_HEADERS_ALL, PO_APPROVALS, PO_ACTION_HISTORY<br>→ Modules: PO_ (Purchase Orders), AP_ (Accounts Payable), POR_ (Procurement)<br>→ Analytics: &quot;Track approval cycle times, bottleneck analysis&quot;</pre><p><strong>The knowledge base</strong>: 87+ Oracle module descriptions, typical table patterns, and business process flows are built into the AI.</p><h3>📊 Intelligent Result Prioritization: Quality Over Quantity</h3><p><strong>Traditional search</strong>: Returns 500 tables alphabetically <strong>OFMCP approach</strong>: Returns 5–12 highly relevant tables with confidence scores</p><pre>Search Results for &quot;sales order&quot;:<br>1. DOO_HEADERS_ALL (98% - Direct match, core sales order table)<br>2. DOO_LINES_ALL (95% - Order line items)<br>3. OE_ORDER_HEADERS_ALL (85% - Legacy order management)<br>4. WSH_DELIVERY_DETAILS (75% - Related shipping info)</pre><p><strong>The curation</strong>: Advanced scoring combines semantic relevance, business context, and usage patterns.</p><h3>🎨 Claude Desktop Integration: Conversational Database Exploration</h3><p>Instead of switching between multiple tools, everything flows naturally in Claude Desktop:</p><pre>You: &quot;I need to build a report showing ar overdue invoices&quot;</pre><pre>Claude: Let me search for invoice-related tables...<br>[Uses semantic_search with &quot;overdue invoice payment&quot;]</pre><pre>Found these relevant tables:<br>- RA_CUSTOMER_TRX_ALL<br>- HZ_CUST_ACCOUNTS<br>- RA_CUST_TRX_TYPES_ALL<br>- ...</pre><pre>Here&#39;s a query to get overdue invoices:<br>[Uses auto-correcting raw_select]</pre><pre>Would you like me to add aging buckets or filter by customer?</pre><p><strong>The result</strong>: Database exploration becomes more interactive and less reliant on manual searching.</p><h3>📈 Productivity Multiplication: Measurable Impact</h3><p><strong>Before OFMCP</strong>:</p><ul><li>⏱️ 15–30 minutes finding the right tables</li><li>📚 Constant documentation switching</li><li>🐛 Syntax errors and Oracle-specific quirks</li><li>🤔 Guesswork about table relationships</li><li>📊 Manual business process mapping</li></ul><p><strong>After OFMCP</strong>:</p><ul><li>⚡ 30 seconds to find relevant tables</li><li>🎯 Business-context search in natural language</li><li>✨ Auto-corrected SQL that just works</li><li>🧠 Built-in Oracle Fusion expertise</li><li>💡 Intelligent suggestions and explanations</li></ul><h3>🚀 The Bigger Picture: AI-Augmented Development</h3><p>OFMCP doesn’t just make database searches faster — it changes how developers interact with complex enterprise systems. By embedding domain expertise directly into the development workflow, it makes Claude Desktop a more focused Oracle Fusion tool.</p><p>The result? Developers spend less time navigating the database and more time delivering business value. Junior developers gain immediate access to senior-level Oracle knowledge. Senior developers can speed up their most complex integrations.</p><p><strong>In summary</strong>: AI tools can enhance developer productivity by providing domain-specific knowledge and reducing manual effort.</p><p><em>OFMCP is an example of how AI assistants can become domain experts, turning complex enterprise platforms into more approachable, conversational interfaces that help developers work more efficiently.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=545c7080b7a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging the Gap: Using the Open-Source JDBC Driver as SQL query tool for Oracle Fusion saas…]]></title>
            <link>https://medium.com/@rudenko.s/bridging-the-gap-using-the-open-source-jdbc-driver-as-sql-query-tool-for-oracle-fusion-saas-f8532846d2e0?source=rss-c98730af6be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8532846d2e0</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[aws-quicksight]]></category>
            <category><![CDATA[oracle-fusion]]></category>
            <dc:creator><![CDATA[Sergey Rudenko]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 18:58:03 GMT</pubDate>
            <atom:updated>2025-09-11T06:46:24.130Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bridging the Gap: Using the Open-Source JDBC Driver as SQL query tool for Oracle Fusion saas database</h3><p>After publishing the JDBC driver for querying Oracle Fusion SaaS (GitHub link: <a href="https://krokozyab.github.io/ofjdbc/">https://krokozyab.github.io/ofjdbc/</a>), I received multiple inquiries about its compatibility with Oracle SQL Developer. Given how essential SQL Developer has been for working with Oracle E-Business Suite, many users hesitate to explore alternatives. However, SQL Developer primarily supports Oracle databases and a limited number of third-party plugins, making it incompatible with the JDBC driver. Instead, I recommend using DBeaver, a more versatile database IDE, and in this article, I’ll explain why</p><ol><li>The JDBC driver and the other similar tools use just BIP/OTBI under the hood. Essentially, each SQL invocation is translated to an invocation of a BIP/OTBI report. So we are restricted to just issuing SQL queries, and all other features of Oracle SQL Developer are unavailable anyway.</li><li>DBeaver is different kind of animal, it is mature database agnostic IDE (<a href="https://www.linkedin.com/posts/dbeaver_dbeaver-takes-6m-seed-investment-to-build-activity-7051591561972715520-kewS/">https://www.linkedin.com/posts/dbeaver_dbeaver-takes-6m-seed-investment-to-build-activity-7051591561972715520-kewS/</a>)</li><li>It provides a feature-rich free community version.</li><li>SQL Developer retrieves schema information directly from the database every time, causing delays due to network latency, database load, and the need to fetch large metadata sets dynamically instead of caching them locally.</li></ol><p>Some examples.</p><p>Correct statement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*i63WdVuBVgKqvwpr" /></figure><p>Below, DBeaver highlights the mistyped table name by using different colors for various SQL components. The key observations from the image include:</p><p>1. Table Name Highlighting: The correctly typed table name (PO_HEADERS_ALL) appears in a specific color, while the mistyped table name is likely underlined or displayed in a different shade indicating an issue.</p><p>2. Column Name Highlighting: The column names (SEGMENT1, PO_HEADER_ID) are highlighted separately, ensuring they stand out from keywords and table names.</p><p>3. Keyword Highlighting: SQL keywords like SELECT, FROM, and WHERE are in a different color, making it easier to distinguish from database objects.</p><p>4. Error Indicator: If the table name does not exist in the schema, DBeaver may provide an underline or other visual indicator to suggest a possible issue.</p><p>This syntax highlighting and real-time schema validation help users quickly identify errors while writing SQL queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*kUgNEdcfBjsb7ukT" /></figure><p>All that formatting and IntelliSense are just convenience features. Now, I’m going to provide a step-by-step example of how to use DBeaver to load data from Fusion SAAS into AWS and generate reports using the BI tool QuickSight. The process involves:</p><p>1. Uploading data from Fusion into AWS S3 in a partitioned Parquet format.</p><p>2. Querying the data in AWS Athena.</p><p>3. Creating a QuickSight report based on the queried data.</p><p>As mentioned above, DBeaver is database-agnostic, allowing us to create connections to different databases, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*CxaBLFQYA8XdW688" /></figure><p>DBeaver offers direct data loading to AWS S3, but this feature is available only in the paid versions. Instead, we’re going to build a cost-effective alternative using DuckDB — our own “poor man’s” solution.</p><p>Let’s switch to the DuckDB connection and create the following table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*6RWZFkV6XO-PE7_N" /></figure><p>Return to the Fusion connection and write a SELECT statement that retrieves 100 records from the gl_je_lines table for each accounting period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OJh6dJ31amd5po9O" /></figure><p>Right-click on the SELECT statement, then navigate through the drop-down menus and select Execute → Export From Query. Choose DuckDB as the target database and select the sampledata table we just created. Configure the mapping, then click Proceed to start the export. This setup can be saved as a Task in DBeaver for future reuse and, in the paid version, can even be scheduled for automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6-xR3D38KfHfrybv" /></figure><p>Return to the DuckDB connection and copy the sampledata table into an AWS S3 bucket, partitioned by period_name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*nPanOa_D7gmiahk5" /></figure><p>Select data back from AWS S3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8fJe4bUDQZCxgRhJ" /></figure><p>Navigate to AWS S3 and inspect the data stored in the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/0*ZKEoEymmK1zIGOJh" /></figure><p>Navigate to AWS Athena and execute SQL queries to analyze the uploaded data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NePEMcI6fDDKMCKl" /></figure><p>Navigate to AWS QuickSight and create a new dataset linked to the uploaded table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DDUQKxYFTyAPwE2p" /></figure><p>Create and analyze the new QuickSight report generated from the uploaded data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q9g90de3TN4--UZV" /></figure><p>In conclusion, while Oracle SQL Developer primarily serves as a robust tool for working within the Oracle ecosystem, DBeaver stands out as a database-agnostic solution with broader capabilities, including seamless integration with cloud platforms such as AWS (S3, Athena, QuickSight), Google Cloud (BigQuery, Cloud Storage), and Azure (Synapse, Blob Storage, Power BI). Unlike SQL Developer, which is tightly coupled with Oracle databases, DBeaver enables users to connect to multiple database engines and efficiently transfer data across different platforms.</p><p>Through this demonstration, we built an entire data pipeline — extracting data from Fusion, loading it into cloud storage in a partitioned Parquet format, querying it in a serverless SQL engine, and visualizing it in a BI tool — all without writing a single line of code beyond SQL statements. Additionally, DBeaver’s automation features, such as scheduled tasks (available in paid versions), provide further efficiency, making it an invaluable tool for data professionals working across multi-cloud and hybrid environments.</p><h3><strong>More screen-shots</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZsS55VVQWzBP_n0I-aIxhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sdySlvT8iKL1j8W3KyKNQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpcJ5rAKLQr-HdKaYeJ3ww.png" /></figure><h3>Go Further with ofarrow</h3><p>Looking for enhanced exports? Check out <a href="https://github.com/krokozyab/ofarrow"><strong>ofarrow</strong></a>, which offers:</p><ul><li>Arrow Flight SQL endpoints</li><li>CSV/Excel/Parquet exports</li><li>Hive-style partitioning by date columns</li></ul><p>Pair it with OFJDBC or replace it for high-performance bulk loads and ETL pipelines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8532846d2e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Oracle Fusion Data Access with ofarrow]]></title>
            <link>https://medium.com/@rudenko.s/simplifying-oracle-fusion-data-access-with-ofarrow-a78f59a18b12?source=rss-c98730af6be5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a78f59a18b12</guid>
            <category><![CDATA[apache-arrow]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[oracle-fusion]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Sergey Rudenko]]></dc:creator>
            <pubDate>Sat, 05 Jul 2025 20:49:02 GMT</pubDate>
            <atom:updated>2025-07-14T07:25:58.194Z</atom:updated>
            <content:encoded><![CDATA[<p>Oracle Fusion Cloud Applications are a powerhouse of enterprise data, but tapping into that data for analysis or integration can be a daunting task. Developers and architects often grapple with Fusion’s complex APIs, convoluted integration tools, and sparse documentation. In this landscape, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> emerges as a breath of fresh air — a lightweight, versatile, and free tool designed to simplify data extraction from Oracle Fusion via a modern, developer-friendly interface.</p><p>The Challenge of Extracting Fusion Cloud Data</p><p>Accessing data from Oracle Fusion Cloud traditionally requires navigating a maze of options. Oracle offers robust (but heavy) official tools like Oracle Integration Cloud (OIC) and the Business Intelligence Cloud Connector (BICC) for moving data out of Fusion. In fact, Oracle positions BICC as “the best integration option to use when exporting bulk data from Oracle Fusion Cloud Applications” , and many organizations use OIC to orchestrate data flows from Fusion to other systems. These solutions work, but they come with significant overhead:</p><p>Complex Setup &amp; Infrastructure: Using OIC or BICC often means setting up cloud services, defining extract jobs, storage buckets, and more. For example, a typical BICC data pipeline involves creating workspaces, configuring extraction jobs, staging data in object storage, and loading it into a database — a multi-step process requiring careful configuration and scheduling. This complexity makes simple ad hoc data pulls feel like overkill.</p><p>Performance and Reliability Issues: Even when using Oracle’s integration tools, handling large Fusion datasets can strain the system. As one blog notes, “a common approach is to use Oracle Integration Cloud to orchestrate outbound data flows. However, performance and reliability become major challenges when dealing with thousands of records, especially if the integration relies on Oracle BI Publisher (BIP) reports” . In practice, developers often encounter timeouts, memory issues, and long wait times when extracting substantial data via these methods.</p><p>Cumbersome APIs and Documentation Gaps: The alternative — accessing Fusion data directly via REST or SOAP APIs — is not much easier. Oracle Fusion’s APIs are numerous and can be obtuse, with incomplete examples and authentication hurdles. One exasperated integration engineer described working with Fusion’s native APIs as “an absolute nightmare. Really poor documentation especially around REST and SOAP APIs” . From dealing with OAuth tokens or WS-Security headers to figuring out pagination across dozens of endpoints, the developer experience can be frustrating.</p><p>In short, whether you use heavy enterprise tools or raw APIs, pulling data out of Oracle Fusion for external use (like analytics or integrations) has historically been a pain point. This is the gap that <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> aims to fill.</p><p>Introducing <a href="https://github.com/krokozyab/ofarrow">ofarrow</a>: A Lightweight free solution.</p><p><a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> is a new open-source tool that reimagines Oracle Fusion data access with simplicity and speed in mind. At its core, ofarrow is essentially an Arrow Flight SQL server for Oracle Fusion data. What does that mean? In practical terms, it turns your Fusion Cloud instance into a “modern data platform” with minimal effort . You download a single JAR file, run it, and instantly gain:</p><p>Zero-Infrastructure Deployment: <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is just one Java application — no need to set up databases, ETL servers, or complex middleware. There are “no servers to manage, no containers to deploy, no infrastructure to maintain” . If you have Java 17+ and your Fusion credentials, you’re ready to go. This contrasts starkly with traditional ETL or integration tools, which might require multiple server components and configurations. Unlike traditional Fusion data extraction setups that involve complex infrastructure and even licensing costs, ofarrow runs as a single JAR with zero infrastructure and is completely free to use .</p><p>Arrow Flight SQL Interface: Apache Arrow Flight is a high-performance, columnar data transport protocol. <a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> leverages this to provide a gRPC-based SQL interface to Fusion data. In practice, that means you can connect to ofarrow from languages like Python, R, JavaScript, Go, or Rust using Arrow Flight clients and query Fusion data as if it were coming from a database. For developers, this opens up direct integration with data science tools and frameworks: e.g. pulling Fusion ERP data directly into a Pandas dataframe or R tibble with one call.</p><p>Built-in REST API: Not only does <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> speak gRPC, it also offers a simple HTTP REST API for those who prefer basic web calls or scripting. With the server running, you can fetch data with a curl or wget command hitting a REST endpoint, without writing a single line of integration code . For example, you could download a Fusion data extract by visiting a URL or executing curl http://&lt;server&gt;:8081/export?sql=&lt;YOUR QUERY&gt;&amp;format=csv. This makes it easy to integrate into shell scripts or quick ad hoc requests.</p><p>Minimal Configuration (Leveraging OTBI): A key design goal of <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is to avoid complicated setup. You don’t need to write complex queries against obscure Fusion tables or figure out obscure API parameters. Instead, ofarrow works with Oracle’s own reporting layer. You simply provide an existing Oracle Fusion OTBI (Oracle Transactional Business Intelligence) report as the data source, along with your Fusion credentials, and <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> will handle the rest . Essentially, it uses the report’s predefined logic to pull data via Oracle’s standard report web service, so you’re safely accessing data you’re authorized to see. This approach means no direct database access (which isn’t available in SaaS anyway) and no violation of Oracle’s support policies — it’s an officially safe way to extract data, just made far easier.</p><p><em>Figure: ofarrow in action — The Flight SQL server provides both a gRPC endpoint and a REST HTTP interface for querying Oracle Fusion. In this example GUI screenshot, the server is running locally and shows sample REST endpoints for CSV, JSON, Excel, and Parquet exports. Developers can connect via Arrow Flight for high-speed dataframes or simply hit these URLs to download results in the desired format.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SRhFBuzQJ_hZwP7pnSuRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdzT7gN938L0Op_OaESTtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZmK2ISPBn-6B7u-z_Mb0g.png" /></figure><p>Key Strengths and Features of <a href="https://github.com/krokozyab/ofarrow">ofarrow</a></p><p>Why use <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> instead of existing tools? Here are some of its conceptual strengths that make it stand out:</p><p>• 🚀 Streaming Data Access: Powered by Apache Arrow, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> enables fast, streaming retrieval of data. It automatically handles pagination under the hood, so even if you request a large data set, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> will stream it to you in manageable chunks without hogging memory . This means you can fetch thousands of Fusion records efficiently, without manual looping or risking timeouts. The Arrow Flight protocol further ensures that the transfer is binary and optimized, often significantly faster than traditional REST/JSON or SOAP XML transfers.</p><p>• 💻 Developer-Friendly &amp; Easy to Use: The tool is designed with developers in mind. Setup is incredibly simple — just drop the JAR and run it, no installation wizard or multi-day configuration effort. Your Fusion credentials (and a one-time setup of an OTBI report, if not already available) are all that’s needed. Once running, you can use standard SQL queries to retrieve data, which is a familiar approach for any developer or data analyst. By abstracting away the SOAP calls and token handling, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> lets you focus on the data rather than integration plumbing. It’s equally accessible via code (connect with any Arrow Flight client) or command line (via the REST endpoints), fitting the workflow of software engineers, data scientists, and IT admins alike.</p><p>• 📊 Multi-Format Data Exports: Flexibility in output formats is a huge plus. Out-of-the-box, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> lets you export data in CSV, JSON, Excel, Parquet, or even as Hive-partitioned Parquet files . This versatility means it caters to multiple use cases:</p><p>• Need a quick spreadsheet for a finance report? Export to Excel with all formatting preserved.</p><p>• Integrating with a web app or sending data to a REST endpoint? Grab JSON.</p><p>• Feeding a data lake or doing big-data analytics? Parquet (including a Hive-compatible partitioned layout) is ready to go.</p><p>• Traditional analysis or small datasets? Good old CSV is available too.</p><p>All these formats are available with simple parameters or one-click in the provided GUI, making data exchange trivial. In contrast, Oracle’s official tools often require additional conversion steps (for example, BICC extracts land as ZIP files that you then load to a database). With <a href="https://github.com/krokozyab/ofarrow">ofarrow</a>, the format you need is available on demand.</p><p>• 🛠️ Open Standards and Integration: <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> built on open standards, which alleviates vendor lock-in concerns. It uses Arrow Flight SQL for data transfer (an open protocol), meaning you can connect from a variety of environments without proprietary libraries . This openness makes <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> play nicely in modern data stacks. You can incorporate it into Apache Airflow or Prefect workflows as a simple task (it even advertises seamless compatibility with orchestrators like Airflow, Dagster, etc. for ETL automation ). Because it behaves like a standard data service, enterprise architects can slot ofarrow into architectures alongside other microservices or data tools.</p><p>• 🔒 Secure and Non-Intrusive: Despite being a quick solution, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> doesn’t compromise on security. It respects Oracle Fusion’s security model — you only access data you have permissions for, and it uses your Fusion user login (via the standard authentication methods) . The tool provides read-only access, so there’s no risk of accidentally altering production data . It also does not persist any data internally; it streams results directly to you without storing them on the server . This stateless approach means using <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> for production data access is low-risk and won’t violate IT governance (as long as you handle the extracted data appropriately). Essentially, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> acts as a conduit — it pulls data from Fusion and hands it to you, leaving no footprints of the data on the way.</p><p>Complementing (Not Replacing) Oracle’s Official Tools</p><p>It’s important to position <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> correctly in the Oracle ecosystem: this tool complements Oracle’s official integration solutions like OIC and BICC, rather than outright replacing them. Enterprises invested in Fusion Cloud will likely continue using OIC integrations and scheduled BICC extracts for large-scale, mission-critical data synchronization. Those tools are battle-tested for certain scenarios (e.g. massive full data dumps to a warehouse, or complex multi-app workflows). However, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> shines in the areas those heavyweight tools may fall short:</p><p>• Ad Hoc Data Access: If a developer or analyst needs to quickly fetch a subset of Fusion data (say, to troubleshoot an issue or do a one-time analysis), setting up an OIC flow or BICC job is overkill. <a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> can deliver that data in minutes via a simple query or REST call. It fills the gap for on-demand data access that doesn’t justify a full integration project.</p><p>• Lightweight Scripting and Automation: There are many cases where you might want to automate a small task involving Fusion data — for example, a nightly script to pull the day’s new orders and send to an FTP, or a quick backup of some reference data. Doing this through OIC would require deploying and managing an integration, whereas <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> lets you script it with basic tools (shell, Python, etc.) using its API. In other words, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> empowers DevOps-style automation for Fusion, treating Fusion like any other service you can GET data from.</p><p>• Developer Prototyping and Testing: For developers building integrations or extensions, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> can serve as a convenient testing endpoint. Rather than working directly with Fusion’s live APIs (and dealing with authentication each time or risking affecting production), a developer can use <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> to rapidly pull sample datasets and experiment in a sandbox environment. It’s a quick way to validate that the data you need is available and to shape it as needed, before coding a more permanent solution.</p><p>• Filling Functionality Gaps: OIC and BICC have their limitations. BICC extracts are batch-oriented and not designed for real-time or on-the-fly queries — they typically run on schedules and output entire data objects. OIC, on the other hand, can orchestrate calls but doesn’t inherently provide a unified SQL-based view of data. <a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> helps by providing a pseudo-database interface to Fusion data for flexible querying (thanks to the OTBI report underpinning). Also, consider format flexibility: BICC primarily delivers data to database or flat files, whereas ofarrow can produce an Excel file for a user in one click — something very handy for business users.</p><p>• Cost and License Considerations: OIC is a paid cloud service, and its usage incurs cost. BICC itself is part of Fusion but often requires an Oracle cloud storage or integration setup. <a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> is free — using it doesn’t add licensing fees. This makes it attractive for organizations looking to minimize cost for non-mission-critical integration tasks or for those in trial/pilot phases.</p><p>In summary, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> acts as a nimble sidekick to Oracle’s official tools. You might still rely on BICC for your big nightly data warehouse feed (as Oracle recommends ), and use OIC for complex multi-step workflows. But when you need quick, flexible access to Fusion data — especially for exploration, one-off needs, or developer-centric use cases — ofarrow is there to fill that niche with minimal fuss.</p><p>Smoothing the Rough Edges of Fusion APIs</p><p>One of the most appreciated aspects of <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is how it abstracts away the rough edges of dealing with Fusion’s native APIs. As mentioned, working directly with Oracle Fusion APIs can be painful: multiple endpoints, extensive JSON payloads, SOAP XML quirks, custom security requirements, pagination logic, etc. Ofarrow wraps all that complexity behind a simple interface:</p><p>• Single SQL Query vs. Many API Calls: Suppose you want to pull a list of, say, all active suppliers from Fusion ERP with certain attributes. The REST API might require you to call a suppliers endpoint, handle OAuth, possibly filter via query params, and if the data is large, loop through “pages” of results 50 at a time. With <a href="https://github.com/krokozyab/ofarrow">ofarrow</a>, you can instead write a single SQL-like query (e.g. SELECT .., status, … FROM poz_suppliers) through the Flight SQL or JDBC interface, and <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> will retrieve the data via the OTBI report and stream it back to you. No manual pagination — “automatic pagination” is handled internally — and no wrestling with low-level API details.</p><p>• Simplified Authentication: <a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> uses your Fusion credentials to log into the reporting service. You don’t have to construct complex auth headers or obtain tokens separately; you simply supply your username/password (or other supported auth mechanism) in a config and <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> takes care of establishing a session securely . This lowers the barrier for developers — it feels like connecting to a database with a connection string, rather than a bespoke integration.</p><p>• Focus on Usage, Not Plumbing: Ultimately, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> lets developers and data teams spend more time using Fusion data and less time on the plumbing to get that data. The time saved in not having to read through pages of API docs or debug integration errors is significant. And when things are easier, new possibilities open up — teams might be more inclined to include Fusion data in analytics, or to build experimental tools, because the barrier to entry is lower.</p><p>By smoothing out these edges, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> significantly improves the developer experience with Oracle Fusion data. It transforms what could be a week-long integration project into something you can accomplish in an afternoon. This democratization of data access means more agility for the business and more empowerment for those who need the data.</p><p>Who Can Benefit from <a href="https://github.com/krokozyab/ofarrow">ofarrow</a>?</p><p>One of the beauties of <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is that it’s useful to a broad range of professionals in the enterprise technology space. Whether you’re hands-on with code or more on the analytics side, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> has something to offer:</p><p>• Data Scientists &amp; Analysts: Need to pull data from Oracle Fusion into Python or R for analysis or machine learning? <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> was practically made for this. It provides direct Python/R access to Oracle Fusion data via Arrow Flight connectors. Instead of working with static CSV exports, data scientists can query live data and get it as a DataFrame in-memory, accelerating exploratory analysis on ERP/CRM data.</p><p>• Business Analysts &amp; Power Users: Many analysts live in Excel. With <a href="https://github.com/krokozyab/ofarrow">ofarrow</a>, a one-click Excel export is possible . A financial analyst could, for example, retrieve the latest actuals vs. budget data from Fusion ERP by themselves, without waiting on IT to run a BIP report. This self-service capability (with proper governance) can speed up reporting cycles.</p><p>• Integration Developers &amp; Architects: For those designing data flows, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> offers a standards-based API that any language or platform can use . Integration teams can treat ofarrow as an Oracle Fusion data microservice. Need to connect Fusion data to a third-party system? Instead of building a custom integration from scratch, they can plug into ofarrow’s Flight SQL or REST endpoint and focus on mapping the data to the target. The fact that it works with modern workflow tools (Airflow, Prefect, Dagster, etc.) means it slots into CI/CD and ETL pipelines smoothly .</p><p>• DevOps &amp; IT Automation Engineers: For DevOps folks, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> enables simple scripting of data tasks. Using shell scripts with curl or PowerShell with web requests, they can automate data extracts, backups, or monitoring tasks (for example, pulling a daily report of user accounts for audit purposes). The tool is designed for simple shell script automation — an appealing quality for those who want to integrate Fusion data checks into broader IT operations.</p><p>• Data Engineers &amp; Lakehouse Builders: With the ability to output partitioned Parquet files in a Hive-friendly way, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is also handy for feeding data lakes or lakehouse platforms. Parquet exports for data lakes and analytics are supported natively . A data engineer could use ofarrow to periodically extract incremental data from Fusion (e.g., new transactions) and drop the Parquet files into an S3 bucket or HDFS, ready to be consumed by Spark or Snowflake. This bridges the gap between cloud applications and analytic ecosystems without needing an expensive middleware solution.</p><p>In essence, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> was built with a wide audience in mind — from the individual developer hacking away on a problem to the enterprise architect looking at the big picture of data flow. By adhering to open protocols and common formats, it ensures each of these personas can use the tool with minimal learning curve.</p><p>A Modern Tool in the Integration Toolkit</p><p><a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> represents a modern approach to enterprise data integration: lightweight, and optimized for speed. It doesn’t carry the baggage of older enterprise software, yet it respects the importance of security and reliability. In a world where real-time analytics and agile data ops are becoming the norm, having quick access to SaaS application data is crucial. <a href="https://github.com/krokozyab/ofarrow">Ofarrow</a> brings Oracle Fusion — a system traditionally seen as somewhat siloed and heavy — into the fold of modern data pipelines.</p><p>It’s worth stressing the honesty over hype: <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is not a magic wand that will replace all your Oracle integration solutions. If you have massive volumes to extract or highly complex transformation logic, you might still lean on Oracle’s official tools or a full-fledged ETL platform. However, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> brings real value in the scenarios where those tools are too clunky or cost-prohibitive. It provides a developer-friendly bridge into Fusion Cloud, using cutting-edge technology (Apache Arrow) under the hood to deliver performance and flexibility.</p><p>For organizations already invested in Oracle Fusion, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> can be a missing puzzle piece — the utility that makes Fusion’s data more accessible and actionable. And for the curious tech enthusiasts or architects always scouting for better ways to do things, <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is an excellent example of how innovation can complement big vendor ecosystems.</p><p>In conclusion, if you’re looking to simplify and speed up your Oracle Fusion data access — whether for a quick analysis, a custom app, or feeding a data pipeline — <a href="https://github.com/krokozyab/ofarrow">ofarrow</a> is definitely worth a look. With just a JAR file and a few minutes of setup, you might just turn what used to be a tedious integration project into a smooth experience. By embracing open standards and focusing on ease of use, ofarrow lowers the barrier to unlocking your Fusion Cloud data, empowering developers and data teams to work smarter with one of their most critical data sources. It’s free, and it’s built to make your life easier — a combination that’s hard to beat in the enterprise software world. Give it a try and see how it fits into your modern data toolkit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a78f59a18b12" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>