Look into ora2pg https://ora2pg.darold.net/. I used it successfully years ago, and it has been enhanced since. We migrated from a local Oracle database to Google Cloud SQL PostgreSQL. There are differences that you will have to repair manually, but the ora2pg website documents many of them. There is also orafce https://github.com/orafce/orafce which contains things like Oracle compatible date routines. I chose to fix the code rather than use it as I wanted to remove all Oracle dependencies as much as possible, but it does work.
Good luck.
Eric
On Thu, Mar 9, 2023 at 4:48 AM Holger Jakobs <holger@jakobs.com> wrote:
Am 09.03.23 um 10:46 schrieb Renjith Gk: > Hi, > > Can anyone confirm any online tool or best practice to migrate > postgresql queries to Oracle, there are few syntax differences > compared from postgresql to Oracle > > Best regards, > Renjith
There is no easy solution because Postgres' SQL dialect is a lot richer than Oracle's.