This is a Tcl 9 extension that re‑implements Oratcl on top of ODPI‑C 5.6.2 (no OCI).
- Async (oraexecasync,orawaitasync,orabreak)
- LOB helpers (oralob size|read|write|trim|close), withinlineLobsoption
- Extended oramsgfields (fn,action,sqlstate,recoverable,warning,offsetviaallx)
./configure --with-tcl=/path/to/tcl9
makeWindows (MSVC): Use the TEA
tclconfigfiles withnmakeor generate a Visual Studio project; ensure the ODPI sources in./odpi/srcare compiled into the same binary (or link with a static ODPI build). Define_WIN64on 64‑bit builds.
You can statically link Oratcl into tclsh. Each new interpreter will call oratcl_Init; Oratcl creates the ODPI context once per process, so Oracle client libraries are only loaded once.
export ORATCL_CONNECT='user/pw@//host:1521/service'
tclsh9 tests/all.tclSee doc/oratcl.n for the full command reference.