IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 to Postgre migration


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
A_programmers

New User


Joined: 24 Mar 2010
Posts: 17
Location: USA

PostPosted: Wed Jul 22, 2020 8:26 pm
Reply with quote

Hello Friends,

I am working on POC for small application migration; written in COBOL and DB2. I need to move this application to distributed platform Linux with Postgre SQL as target DB.

For DB2 data migration; I was thinking of below approach :

1. Get details about current schema structure / DDL statements;
2. Convert appropriately to relevant data types in Postgre.
3. Create schema in Post gre
4. Extract delimited data from DB2 using high performance unload utility (from BMC) or either IKJEFT01.
5. sFTP data to Linux system.
6. Load into Postgrel sql.

I am looking for guidance in every step of above process. E.g. for getting schema details any tool available ? Similarly for converting schema any tool available ? For extracting tool from DB2 what is best tool ? For loading data in post gre sql what is the best tool ?

Any help will be highly helpful.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10765
Location: italy

PostPosted: Wed Jul 22, 2020 9:26 pm
Reply with quote

this is a mainframe/zOS related forum,
it is not reasonable to ask for help for a different platform

what happened when you googled with db2 to postgres migration ?
Back to top
View user's profile Send private message
A_programmers

New User


Joined: 24 Mar 2010
Posts: 17
Location: USA

PostPosted: Thu Jul 23, 2020 12:18 pm
Reply with quote

I understand your view enrico.

I did search on internet; but found more of a marketing presentation. Also I wanted view of what different options people have used.

Thanks.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1018
Location: India

PostPosted: Wed Aug 12, 2020 4:53 am
Reply with quote

Hi

First main thing to check would be encoding as that would cause lots of headaches. Is your mainframe table EBCDIC or UNICODE ?

For DB2 data migration; I was thinking of below approach :

1. Get details about current schema structure / DDL statements;
ANS : What tool do you have RC/Query, BMC or Admin tool. In all the tools either by giving DDL, HDDL or GEN you can get the ddls

2. Convert appropriately to relevant data types in Postgre.
3. Create schema in Post gre
4. Extract delimited data from DB2 using high performance unload utility (from BMC) or either IKJEFT01.
ANS : HPU is not BMC product it's IBM.

5. sFTP data to Linux system.
6. Load into Postgrel sql.
ANS : You need to test with some samples here. How the data should be, should it enclosed with double quotes or not.

There is not much straight answers to migrations as it depends on data

Thanks,
Sushanth
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10765
Location: italy

PostPosted: Wed Aug 12, 2020 4:35 pm
Reply with quote

well ...
googling with db2 postgres migration

returned as first link (Your mileage might vary )
wiki.postgresql.org/images/d/d1/DB2UDB-to-PG.pdf

worth following the discussions going on here
wiki.postgresql.org/wiki/Main_Page
Back to top
View user's profile Send private message
A_programmers

New User


Joined: 24 Mar 2010
Posts: 17
Location: USA

PostPosted: Mon Oct 12, 2020 8:05 pm
Reply with quote

Thanks Sushanth and Enrico.

FYI; I have partially used IBM Data studio to extract DDLs.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Need opinion on mainframe to cloud mi... General Talk & Fun Stuff 6
This topic is locked: you cannot edit posts or make replies. COBOL/CICS with real time MQ Series u... CICS 2
No new posts DFSMShsm dump tape migration to new t... IBM Tools 1
No new posts Db2 migration from V4/6 to V8/10 DB2 1
No new posts Data Migration from Fujitsu AIM/DB to... DB2 2
Search our Forums:

Back to Top