orafit
orafit · Server-side SQL runtime for the Orafit Oracle-compatible JDBC driver.
Overview
PostgreSQL · 16, 17
Usage
Sources:
orafit is the server-side SQL runtime for the Orafit JDBC compatibility layer. The 1.0.3 distribution’s native control and install SQL remain 1.0.0; its release fixes are in the JDBC driver and do not require reinstalling an unchanged runtime. PostgreSQL 17 is the primary target, 16 is supported and 18 receives compatibility checks only.
Enablement
The native runtime installs nonrelocatable objects into orafit and needs no preload. On managed services, use the official transactional plain-SQL installer instead. Keep the matching Java 17+ Orafit driver, its declared JSqlParser dependency and a separately supplied pgJDBC on the application classpath; SQL helpers alone do not translate application SQL.
Compatibility boundary
Oracle 18c XE is the compatibility reference. Supported subsets and explicit rejections are listed in COMPATIBILITY.md; accepted parsing is not proof of equivalent results. The driver defaults to autosave=always and cleanupSavepoints=true to preserve statement-error behavior, unless connection properties override them. Version 1.0.3 fixes unsafe operator and outer-join rewrites; re-run the analyzer because previously mistranslated statements may now be rejected.
After an Ora2Pg migration, orafit.apply_byte_length_semantics(‘public’) adds BYTE-length constraints only when the source columns and source/target encodings justify that policy. Review it before loading or accepting writes. The runtime does not perform schema/data migration or provide general Oracle emulation.