Want to migrate from PostgreSQL to Oracle ?
Try Withdata DBCopier, a PostgreSQL to Oracle converter for Windows, Mac, and Linux, Migrate PostgreSQL to Oracle, Easy and Fast.
- Step by Step, just a few mouse clicks.
- Create Oracle tables with auto mapping data types. Create Oracle indexes.
Migrate from PostgreSQL to Oracle
Login to PostgreSQL -> Login to Oracle -> Select tables to migrate -> Migrate from PostgreSQL to Oracle
Choose source PostgreSQL database and logon.

Choose target Oracle database and logon.

Click “Wizard – Import All Tables” at task dialog.

then show the wizard.
1. Open source PostgreSQL.

2. Set “Import Type”.

3. Select Oracle tables to migrate.

4. Migrate from PostgreSQL to Oracle.
Create Oracle tables. Copy PostgreSQL data to Oracle. Create Oracle indexes.

FAQ
More about PostgreSQL to Oracle converter
See also:
PostgreSQL → Oracle reference
Type mapping
| Value kind | in PostgreSQL | in Oracle |
|---|---|---|
| Int | integer | NUMBER(10) |
| Bigint | bigint | NUMBER(19) |
| Decimal | numeric(p,s) | NUMBER(p,s) |
| Float | double precision | BINARY_DOUBLE |
| Text | varchar(n) | VARCHAR2(n) |
| Long text | text | CLOB |
| Date | date | DATE |
| Datetime | timestamp | TIMESTAMP |
| Binary | bytea | BLOB |
| Boolean | boolean | NUMBER(1) |
| JSON | jsonb | CLOB |
Dialect differences
Both PostgreSQL and Oracle are database servers, so the differences below are dialect-level: the same concept is spelled differently on each side.
| Property | in PostgreSQL | in Oracle |
|---|---|---|
| port | 5432 | 1521 |
| row limit | LIMIT n | FETCH FIRST n ROWS ONLY |
| dates | timestamp, timestamptz, date, time | DATE, TIMESTAMP |
| long text | TEXT | CLOB, NCLOB |
| binary | BYTEA | BLOB, BFILE |
Command line
| Side | Command |
|---|---|
| PostgreSQL | pg_dump or COPY ... TO |
| Oracle | exp / expdp |
| Oracle (load) | sqlldr (SQL*Loader) |
| PostgreSQL (load) | COPY ... FROM |
Convert your data online, free
Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.
