SQLingPL Playground
Run Oracle PL/SQL — procedures, functions, packages, cursors, exception handlers, collections — against SQLite, DuckDB, or Postgres, with no Oracle instance underneath. The interpreter and the database both live inside a sandboxed frame in your own browser, so your code is never uploaded.
Press Run.
What this is
Powered by SQLing Engine, a PL/SQL interpreter that runs on SQLite, DuckDB, and Postgres instead of an Oracle instance. It matters for modernization because it answers a question every migration eventually asks: does this PL/SQL still behave once Oracle isn't underneath it?
What runs, and what doesn't
The split is worth understanding before you judge a result. PL/SQL itself is interpreted — the procedural language is implemented here, not translated. SQL statements are handed to the targeted database engine, with Oracle's types and functions rewritten on the way past. So where Oracle's SQL has no equivalent in that engine, it isn't there.
The Translate button shows that second half: Oracle SQL
in, target-dialect SQL out — the text your chosen backend would actually
see. PL/SQL control flow (BEGIN / END,
IF, LOOP, EXCEPTION) never reaches
the backend, so it passes through the Translate step unchanged; only
the SQL inside is rewritten.
-
The PL/SQL is faithful
Packages and package bodies, cursors, exception handlers, collections,
%TYPEand%ROWTYPE,BULK COLLECT,EXECUTE IMMEDIATE, autonomous transactions, savepoints — andNUMBER's decimal arithmetic, so0.1 + 0.2is exactly.3rather than a binary float. -
Oracle SQL that is translated
dual,NVL,DECODE,TO_CHAR,SUBSTR,INSTR,||,ROWNUM,MERGE— taken apart into the UPDATE and INSERT it stands for — date arithmetic onSYSDATE, and the column typesNUMBER(p,s)andVARCHAR2(n)— including theVARCHAR2(30 CHAR)andCHAR(5 BYTE)length qualifiers, which are dropped on the way past. Division is Oracle's:7/2is3.5, not the3SQLite would give you. -
Oracle schema objects that work
Sequences, with
NEXTVALandCURRVAL; database triggers; and most of the data dictionary —USER_TABLES,ALL_TAB_COLUMNS,USER_CONSTRAINTS,USER_SOURCE,USER_INDEXESand the rest of theUSER_/ALL_pair, so a script that reads its own schema runs unchanged. -
Oracle SQL that is missing
CONNECT BY. SQLite has no equivalent, so it raises an error rather than quietly misbehaving.MERGEruns, but itsDELETEsub-clause does not — that one is refused rather than approximated.
SELECT my_fn() FROM dual fails
with ORA-06512: no such function — in a WHERE
clause too. The same function called from PL/SQL works perfectly. If you
are checking whether extracted logic still behaves, call it from a block
rather than from a query.
Limits of this browser session
Nothing persists. Every run starts a fresh in-memory database, so a script cannot see what the last one left behind — that is deliberate, and it is why the stored-program-units example rebuilds its tables each time. Reloading the page discards everything.
Files go to a virtual filesystem. SPOOL and
UTL_FILE write normally, but into an in-memory filesystem
that exists only in this tab. Whatever a run leaves behind is offered
above as a download. HOST is refused outright.
Substitution variables are off by default. SQL*Plus
starts with SET DEFINE ON, but there is no interactive
prompt in this tab, so an & inside a string literal or
comment would raise a confusing error instead of asking you for a value.
Add SET DEFINE ON at the top of your script if you want it.
An endless loop may need a reload. The interpreter runs as WebAssembly, which cannot be interrupted once it is inside a tight loop. Stop is best-effort; if the next run won't start, reload the page.