Rdb to Oracle or PostgreSQL

Sector7’s Rdb to Oracle or PostgreSQL Toolset Bundle is purpose-built to accelerate and simplify complex OpenVMS database migrations. Designed for mission-critical environments, our solution seamlessly translates Rdb SQLMOD and embedded SQL applications into industry-standard Oracle Pro*C or PostgreSQL ECPG formats. Leveraging decades of OpenVMS expertise, we ensure high fidelity, performance retention, and minimal disruption during the migration process.

Rdb to Oracle or PostgreSQL flow. An Application on VMS reads an Rdb database. VX/SQLCC takes SQLMOD and CDD as inputs and produces Pro*C or ECPG code and an automatic test program. The converted Application on VMS then runs against Oracle or Postgres, with the automatic test program exchanging data both ways with the Oracle or Postgres database, and the migrated Application on VMS also working both ways with Oracle or Postgres.
  1. PostgreSQL
  2. Application on VMS
  3. Rdb
  4. SQLMOD
  5. CDD
  6. VX/SQLCC
  7. Pro*C or ECPG
  8. Automatic test program

Modernize OpenVMS Rdb Applications with Confidence

Sector7’s Rdb to Oracle or PostgreSQL Toolset is purpose-built to simplify complex OpenVMS database migrations. It automates the conversion of Rdb SQLMOD and embedded SQL applications into fully supported Oracle Pro*C or PostgreSQL ECPG code, preserving performance, structure, and logic.

Whether you’re migrating to Oracle or PostgreSQL on modern Linux platforms, our toolset ensures smooth transformation with minimal disruption. No full rewrites. No data loss. Just efficient, future-ready database applications.

Why Choose Sector7’s Rdb Migration Toolset?

  • No-Rewrite Conversion: SQLMOD modules are automatically translated into industry-standard Pro*C or ECPG procedures.
  • Preserve Application Logic: Original code structure remains intact, ensuring easy maintenance.
  • Future-Proofed Compatibility: Eliminates reliance on unsupported legacy SQL interfaces.
  • Streamlined Build Process: Output is ready for direct compilation and linking in modern environments

What the Toolset Generates

Input File Generated Output Purpose
Module.sqlmod Module.pc Pro*C or ECPG procedures replacing embedded Rdb SQL calls.
Module.h C header with procedure declarations for linking.
Module.inc Fortran-style header for integration with existing codebases.
Module.F Updated Fortran source file calling converted procedures.

‍

‍Once compiled and linked, the resulting executable will run seamlessly with Oracle, eliminating dependency on Pro*Fortran while maintaining compatibility with existing applications.

Before and After – Code Example

Fortran

! Original Rdb SQLMOD in Fortran
EXEC SQL CONNECT :user IDENTIFIED BY :password USING :dbname;

‍

Fortran

! After conversion with Sector7 Toolset
CALL connect_to_database(user, password, dbname)

‍

C

/* Generated Pro*C procedure */
void connect_to_database(char *user, char *password, char *dbname) {
    EXEC SQL CONNECT :user IDENTIFIED BY :password USING :dbname;
}

‍

This illustrates how embedded SQL is extracted and converted into standalone, reusable procedures, making the application fully compatible with modern Oracle or PostgreSQL environments.

Result:

Oracle – and PostgreSQL – ready applications that maintain operational continuity and are built for the future.

Rdb to Oracle or PostgreSQL toolset bundle flow. An Application on VMS reads an Rdb database. VX/SQLCC takes SQLMOD and CDD as inputs and produces Pro*C or ECPG code and an automatic test program. The converted Application on VMS then runs against Oracle or Postgres, with the automatic test program exchanging data both ways with the Oracle or Postgres database, and the migrated Application on VMS also working both ways with Oracle or Postgres.
  1. Application on VMS
  2. Rdb
  3. SQLMOD
    CDD
    VX/SQLCC
    Pro*C or ECPG
    Automatic test program
  4. Application on VMS
    Rdb
    Automatic test program
    Oracle Postgres
    Application on VMS
    Oracle Postgres

Frequently Asked Questions

Curious about how Sector7 can facilitate your application migration? Explore our FAQs for expert insights.

Why should we migrate off Rdb SQLMOD now?

Oracle Rdb reaches end of life on Itanium in December 2027 and Oracle is not porting it to x86. SQL$MOD gives SQLMOD-based applications a supported path onto modern platforms and open back ends, while preserving the procedure interface so the application itself is largely unchanged.

Will migrated procedures still see the same Rdb error codes?

Yes. SQL$MOD provides an Rdb-compatible SQLCA and maps Rdb SQLCODE and SQLSTATE, so procedures that inspect sqlca.sqlcode behave as they did under Rdb.

What happens to VMS quadword dates when the data lives in PostgreSQL or Oracle?

VMS quadword date and time parameters are converted to and from SQL TIMESTAMP automatically. Dates are stored as normal timestamps in the target database, so other tools can read them, while your application keeps sending and receiving VMS quadwords with no application change.

How are CDD record parameters handled?

A RECORD ... END RECORD parameter, optionally sourced from a CDD dictionary path, becomes a C struct and is bound field by field, so SELECT ... INTO :record populates every column. Domains resolve through CDD to C typedefs, and VMS CDD data-type definitions can be extracted into C headers.

Which databases can SQL$MOD target?

PostgreSQL (the reference, most tested driver), MySQL/MariaDB, Microsoft SQL Server (via ODBC), any ODBC data source, Oracle (via the OCI client) and SQLite. The database is chosen at run time by configuration, so the same generated modules move between back ends without rebuilding.

Transform Your Legacy Software Today!

Get In Touch
Unlock the potential of your legacy software with our expert migration services.