Home icon

Migrate Oracle-to-PostgreSQL Java code with AWS Transform custom

Migration and Modernization Blog



This article demonstrates how to use AWS Transform custom with a pre-built transformation definition to automate Oracle-to-PostgreSQL migration for Java applications, addressing not just SQL syntax but also JDBC types, ORM configuration, and test infrastructure.

  • 71 transformation rules cover DDL type conversions, SQL syntax, JDBC return-type handling, parameter binding, ORM configuration, and build dependencies
  • Publish the transformation definition to your AWS account registry once, then execute against multiple Java repositories from the CLI
  • Handles 60%+ of real migration work beyond SQL: JDBC type handling, entity field types, test assertions, and transaction semantics
  • Includes guardrails to prevent security issues like plaintext credentials in source code or loss of TLS settings
  • Supports build verification with compilation checks and generates staging branches for review before merging
  • Open-source transformation definition available in aws-samples/sample-oracle-to-postgresql-td GitHub repository

AWS Transform custom enables faster, more consistent Oracle-to-PostgreSQL migrations at scale by automating application-layer changes across hundreds of files without requiring database connectivity.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Aug 6
2025
Automate conversion of Oracle SQL to PostgreSQL inside Java applications with AWS SCT
Aug 7
2026
Migrating and Modernizing Oracle Databases to PostgreSQL on AWS – Part 1: Discovery
Aug 7
2026
Migrating and Modernizing Oracle Databases to PostgreSQL on AWS – Part 2: Assessment
Aug 7
2026
Migrating and Modernizing Oracle Databases to PostgreSQL on AWS – Part 3: Planning and Execution

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.