Oracle to Postgres

 


Round 1:

Created metadata for tables, sequences, packages

Round 2:

Created indexes

Round 3:

freeze column name to freezes

to_date function updated

GEOMETRY datatype , installed POSTGIS package to support this datatype

Round 4:

created triggers

created Functions

Migration:

bash-4.2$ pwd
/usr/edb/migrationtoolkit/etc
bash-4.2$ cat toolkit.properties
SRC_DB_URL=jdbc:oracle:thin:@localhost:1521:orcl
SRC_DB_USER=hr
SRC_DB_PASSWORD=hr

TARGET_DB_URL=jdbc:edb://postoffline:5444/dev
TARGET_DB_USER=enterprisedb
TARGET_DB_PASSWORD=password
bash-4.2$ 

-bash-4.2$ pwd
/usr/edb/migrationtoolkit/bin
-bash-4.2$ ls -lrt
total 724
-rwxr-xr-x. 1 root root   2439 Dec 11 13:29 runJavaApplication.sh
-rwxr-xr-x. 1 root root    544 Dec 11 13:33 runMTK.sh
-rwxr-xr-x. 1 root root 729258 Dec 11 13:33 edb-migrationtoolkit.jar
-bash-4.2$ 


./runMTK.sh HR

OUTPUT:

Running EnterpriseDB Migration Toolkit (Build 55.7.0) ...

Source database connectivity info...

conn =jdbc:oracle:thin:@oel712c:1521/ORCLPDB

user =HR

password=******

Target database connectivity info...

conn =jdbc:edb://postoffline:5444/dev

user =enterprisedb

password=******

Connecting with source Oracle database server...

Connected to Oracle, version 'Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production'

Connecting with target EDB Postgres database server...

Connected to EnterpriseDB, version '14.11.0'

Importing redwood schema HR...

Table List: 'PAY_RUN_BALANCES'

Evaluating tables for parallel data load...

Evaluating table HR.PAY_RUN_BALANCES for parallel data load...

The table hr.PAY_RUN_BALANCES has no primary or unique key, table-level parallel loading will be skipped.

Initializing Data Loader 1...

Loading Table Data in 8 MB batches...

Dropping constraints & indexes on hr.pay_run_balances before data load...

Dropping Triggers on hr.pay_run_balances before data load...

Truncating table hr.pay_run_balances before data load...

Loading Table: hr.pay_run_balances ...

[HR.PAY_RUN_BALANCES] Migrated 75851 rows.

[HR.PAY_RUN_BALANCES] Migrated 151368 rows.

[HR.PAY_RUN_BALANCES] Migrated 227030 rows.

[HR.PAY_RUN_BALANCES] Migrated 302853 rows.

[HR.PAY_RUN_BALANCES] Migrated 378595 rows.

[HR.PAY_RUN_BALANCES] Migrated 454219 rows.

[HR.PAY_RUN_BALANCES] Migrated 529905 rows.

[HR.PAY_RUN_BALANCES] Migrated 605590 rows.

[HR.PAY_RUN_BALANCES] Migrated 681322 rows.

[HR.PAY_RUN_BALANCES] Migrated 757138 rows.

[HR.PAY_RUN_BALANCES] Migrated 832724 rows.

[HR.PAY_RUN_BALANCES] Migrated 908439 rows.

[HR.PAY_RUN_BALANCES] Migrated 983977 rows.

[HR.PAY_RUN_BALANCES] Migrated 1059705 rows.

[HR.PAY_RUN_BALANCES] Migrated 1135445 rows.

[HR.PAY_RUN_BALANCES] Migrated 1211152 rows.

[HR.PAY_RUN_BALANCES] Migrated 1286760 rows.

[HR.PAY_RUN_BALANCES] Migrated 1362400 rows.

[HR.PAY_RUN_BALANCES] Migrated 1438037 rows.

[HR.PAY_RUN_BALANCES] Migrated 1513632 rows.

[HR.PAY_RUN_BALANCES] Migrated 1589191 rows.

[HR.PAY_RUN_BALANCES] Migrated 1664686 rows.

[HR.PAY_RUN_BALANCES] Migrated 1740230 rows.

[HR.PAY_RUN_BALANCES] Migrated 1815825 rows.

[HR.PAY_RUN_BALANCES] Migrated 1891533 rows.

[HR.PAY_RUN_BALANCES] Migrated 1967750 rows.

[HR.PAY_RUN_BALANCES] Migrated 2044034 rows.

[HR.PAY_RUN_BALANCES] Migrated 2120322 rows.

[HR.PAY_RUN_BALANCES] Migrated 2196156 rows.

[HR.PAY_RUN_BALANCES] Migrated 2272376 rows.

[HR.PAY_RUN_BALANCES] Migrated 2348541 rows.

[HR.PAY_RUN_BALANCES] Migrated 2424830 rows.

[HR.PAY_RUN_BALANCES] Migrated 2501086 rows.

[HR.PAY_RUN_BALANCES] Migrated 2577325 rows.

[HR.PAY_RUN_BALANCES] Migrated 2653446 rows.

[HR.PAY_RUN_BALANCES] Migrated 2730613 rows.

[HR.PAY_RUN_BALANCES] Migrated 2806649 rows.

[HR.PAY_RUN_BALANCES] Migrated 2883178 rows.

[HR.PAY_RUN_BALANCES] Migrated 2959582 rows.

[HR.PAY_RUN_BALANCES] Migrated 3036078 rows.

[HR.PAY_RUN_BALANCES] Migrated 3112406 rows.

[HR.PAY_RUN_BALANCES] Migrated 3188613 rows.

[HR.PAY_RUN_BALANCES] Migrated 3264546 rows.

[HR.PAY_RUN_BALANCES] Migrated 3339594 rows.

[HR.PAY_RUN_BALANCES] Migrated 3414615 rows.

[HR.PAY_RUN_BALANCES] Migrated 3489549 rows.

[HR.PAY_RUN_BALANCES] Migrated 3564514 rows.

[HR.PAY_RUN_BALANCES] Migrated 3639507 rows.

[HR.PAY_RUN_BALANCES] Migrated 3714216 rows.

[HR.PAY_RUN_BALANCES] Migrated 3789010 rows.

[HR.PAY_RUN_BALANCES] Migrated 3864196 rows.

[HR.PAY_RUN_BALANCES] Migrated 3939431 rows.

[HR.PAY_RUN_BALANCES] Migrated 4014465 rows.

[HR.PAY_RUN_BALANCES] Migrated 4089459 rows.

[HR.PAY_RUN_BALANCES] Migrated 4164453 rows.

[HR.PAY_RUN_BALANCES] Migrated 4239519 rows.


[HR.PAY_RUN_BALANCES] Migrated 4911808 rows.

[HR.PAY_RUN_BALANCES] Migrated 4985564 rows.

[HR.PAY_RUN_BALANCES] Migrated 5059277 rows.

[HR.PAY_RUN_BALANCES] Migrated 5132915 rows.

[HR.PAY_RUN_BALANCES] Migrated 5206655 rows.

[HR.PAY_RUN_BALANCES] Migrated 5279822 rows.

[HR.PAY_RUN_BALANCES] Migrated 5352887 rows.

[HR.PAY_RUN_BALANCES] Migrated 5425996 rows.

[HR.PAY_RUN_BALANCES] Migrated 5499169 rows.

[HR.PAY_RUN_BALANCES] Migrated 5572212 rows.

[HR.PAY_RUN_BALANCES] Migrated 5645359 rows.

[HR.PAY_RUN_BALANCES] Migrated 5718444 rows.

[HR.PAY_RUN_BALANCES] Migrated 5775868 rows.

[hr.PAY_RUN_BALANCES] Table Data Load Summary: Total Time(s): 192.725 Total Rows: 5775868 Total Size(MB): 614.292

Creating constraints, indexes and triggers after data load...

Data Load Summary: Total Time (sec): 192.725 Total Rows: 5775868 Total Size(MB): 614.292


Schema HR imported successfully.



Migration process completed successfully.

Total Elapsed Migration Time (sec): 206.602


Migration logs have been saved to /var/lib/edb/.enterprisedb/migration-toolkit/logs


******************** Migration Summary ********************

Tables: 1 out of 1


Total objects: 1

Successful count: 1

Failed count: 0

Invalid count: 0


*************************************************************

-bash-4.2$ 

Comments

Popular Posts

AWR Report Analysis

Goldengate 19c Installation with issue resolution

Oracle 12c 2-node RAC setup in VMware Player 15 -- Part01

Execution_Explain Plan

Active Session History Analysis

General Queries

Fragmentation & Re-organisation

Postgresql installation offline using NGINX

OEM patches & vulnerabilities