Want to convert data from PostgreSQL to Oracle ?
Try Withdata DBCopier, a PostgreSQL to Oracle converter for Windows, Mac, and Linux, Convert PostgreSQL to Oracle, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Support Windows, Linux, and macOS.
Download Withdata DBCopier
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit
Convert data from PostgreSQL to Oracle
Login to PostgreSQL and Oracle -> Select source PostgreSQL tables -> Set target Oracle tables -> Convert 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. List target Oracle tables.
3. Select Oracle tables to import.
4. Convert data from PostgreSQL to Oracle.
More about PostgreSQL to Oracle converter
Download Withdata DBCopier
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit
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.