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

DevFeed: [Migrate Oracle-to-PostgreSQL Java code with AWS Transform custom](<https://devfeed.tech/articles/migrate-oracle-to-postgresql-java-code-with-aws-transform-custom-121784.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/migration-and-modernization/migrate-oracle-to-postgresql-java-code-with-aws-transform-custom/>)

Author: Abhinandan Singh

Published: 2026-11-06T11:38:23Z

Content type: tutorial

Language: en

Sources: [Migration & Modernization](<https://devfeed.tech/sources/migration-modernization.md>)

Topics: [AWS Transform](<https://devfeed.tech/topics/aws-transform.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Oracle Database](<https://devfeed.tech/topics/oracle-database.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [Hibernate](<https://devfeed.tech/topics/hibernate.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-transform](<https://devfeed.tech/tags/aws-transform.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [code](<https://devfeed.tech/tags/code.md>), [connectivity](<https://devfeed.tech/tags/connectivity.md>), [custom](<https://devfeed.tech/tags/custom.md>), [database](<https://devfeed.tech/tags/database.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [java](<https://devfeed.tech/tags/java.md>), [jdbc](<https://devfeed.tech/tags/jdbc.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [large](<https://devfeed.tech/tags/large.md>), [like](<https://devfeed.tech/tags/like.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

AWS Transform custom's open-source Oracle-to-PostgreSQL transformation definition packages 71 rules to update Java and Kotlin application code beyond embedded SQL, including JDBC types and parameter binding, ORM settings, tests, and build dependencies. The article describes publishing the definition once to an account registry, then running it from the CLI on clean Git repositories; changes are committed to a local staging branch for review, with optional compilation during unattended runs. Unlike AWS SCT and Amazon Q Developer, which the article says focus on embedded SQL conversion and require database or schema metadata access, this workflow targets broader application changes and runs without a database connection. It does not replace validation: teams should review the diff, compile and test against PostgreSQL, and check for issues such as lost TLS settings, exposed credentials, or inlined bound parameters.

## Source excerpt

Migrating an enterprise Java application from Oracle to PostgreSQL is often described as a database project -- but with tools like AWS Transform custom, most of the real work lands in the application code. A large Java or Kotlin codebase can carry thousands of Oracle-specific SQL statements, Java Database Connectivity (JDBC) type assumptions, object-relational mapping [...]