HALDB Mirgrations - IMS UG Singapore 8-2013

  • 126 views
Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
126
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. HALDB Migration How to get from FF to HALDB Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1
  • 2. AGENDA • Understand the HALDB Partition naming conventions • Understand and practice the Migration process – FF DB with no secondary indexes – FF DB with secondary indexes © Copyright IBM Corporation 2008
  • 3. Current Structure for RxCSTP CUSTOMER DSG1 DISTRICT CUSTLOCN CUSTINV DSG4 ADDRLINE PAYMENTS ADJSMNTS DSG1 DSG5 CUSTORDN DSG2 DSG3 ORDNINDX RxORDY INVYINDX RxINVY
  • 4. Naming Standard Example DBDname DDname DSN RxCSTP RxCSTP1 USERID.CMW46.RxCSTP1 RxCSTP RxCSTP2 USERID.CMW46.RxCSTP2 RxCSTP RxCSTP3 USERID.CMW46.RxCSTP3 RxCSTP RxCSTP4 USERID.CMW46.RxCSTP4 RxCSTP RxCSTP5 USERID.CMW46.RxCSTP5 RxCSTX RxCSTX USERID.CMW46.RxCSTX RxINVY RxINVY USERID.CMW46.RxINVY RxORDY RxORDY USERID.CMW46.RxORDY The world depends on it
  • 5. • Partition Name – 7 characters – 5 characters to identify the partition • Partition ID – Numeric number allocated from 00001 for each Database • DDnames – Partition name SUFFIX (A,X,L) depending on data set • • • • A for primary HALDB (base data set group) B – J for data set groups data sets (if any) X for primary index A for Secondary index data sets • DSN – USERID.CMW46.partitionname.Apartionid – See next slide © Copyright IBM Corporation 2008
  • 6. Naming Standard Example DBD name Partition name DD name DSN RxCSTP Rxpart RxpartA USERID.CMW46.Rxpart.A00001 RxCSTP Rxpart RxpartA USERID.CMW46.Rxpart.A00002 RxCSTX Rxpart RxpartX USERID.CMW46.Rxpart.X00001 RxINVY Rxpart RxpartA USERID.CMW46.Rxpart.A00001 RxORDY Rxpart RxpartA USERID.CMW46.Rxpart.A00001
  • 7. Partition Naming conventions CA251DBD CA251DG1 CA251C9A OSAMP240.CA251.NOTICC9.CL.A00003 CA251C9X CA251C9L OSAMP240.CA251.NOTICEG5.CL CA251DG6 CA251C9 OSAMP240.CA251.NOTICC9.CL.X00003 OSAMP240.CA251.NOTICC9.CL.L00003 CA251D9A OSAMP240.CA251.NOTICD9.CL.A00004 OSAMP240.CA251.NOTICD9.CL.X00004 OSAMP240.CA251.NOTICD9.CL.L00004 OSAMP240.CA251.NOTICEG4.CL CA251DG5 OSAMP240.CA251.NOTICB9.CL.A00002 OSAMP240.CA251.NOTICB9.CL.X00002 OSAMP240.CA251.NOTICB9.CL.L00002 OSAMP240.CA251.NOTICEG3.CL CA251DG4 CA251B9A CA251B9X CA251B9L OSAMP240.CA251.NOTICEG2.CL CA251DG3 OSAMP240.CA251.NOTICA9.CL.A00001 OSAMP240.CA251.NOTICA9.CL.X00001 OSAMP240.CA251.NOTICA9.CL.L00001 OSAMP240.CA251.NOTICEG1.CL CA251DG2 CA251DBD CA251A9A CA251A9X CA251A9L CA251D9X CA251D9L VSAMP240.CA251.NOTICEX1.CL CA251A9 CA251B9 CA251DBX CS251DBX OSAMP240.CA251.NOTICEG6.CL CA251D9 CA251SX1 CS251SX1 VSAMP240.CA251.NOTICES1.CL CA251SX1 YA2511A YA2511B YA2511AA YA2511BA VSAMP240.CA251.NOTIC1A.CL.A00001 VSAMP240.CA251.NOTIC1B.CL.A00002 CA251SX2 CA251SX3 CA251SX2 CS251SX3 VSAMP240.CA251.NOTICES2.CL VSAMP240.CA251.NOTICES3.CL CA251SX3 CA251SX4 CA251SX5 CA251SX7 CA251SX9 CA251SX4 CS251SX1 CA251SX2 CS251SX3 VSAMP240.CA251.NOTICES4.CL VSAMP240.CA251.NOTICES5.CL VSAMP240.CA251.NOTICES7.CL VSAMP240.CA251.NOTICES9.CL CA251SX4 CA251SX5 YA2513A YA2513B YA2514A YA2515A YA2513AA YA2513BA YA2514AA YA2515AA VSAMP240.CA251.NOTIC3A.CL.A00001 VSAMP240.CA251.NOTIC3B.CL.A00002 VSAMP240.CA251.NOTIC4A.CL.A00001 VSAMP240.CA251.NOTIC5A.CL.A00001 CA251SXA CA251SXA VSAMP240.CA251.NOTICESA.CL CA251SXA CA251SXB CA251SXB VSAMP240.CA251.NOTICESB.CL CA251SXB CA251SXC CA251SXC VSAMP240.CA251.NOTICESC.CL CA251SXC CA251SXD CA251SXD VSAMP240.CA251.NOTICESD.CL CA251SXD YA2519A YA2519B YA251AA YA251AB YA251BA YA251BB YA251CA YA251CB YA251DA YA251DB YA2519AA YA2519BA YA251AAA YA251ABA YA251BAA YA251BBA YA251CAA YA251CBA YA251DAA YA251DBA VSAMP240.CA251.NOTIC9A.CL.A00001 VSAMP240.CA251.NOTIC9B.CL.A00002 VSAMP240.CA251.NOTICAA.CL.A00001 VSAMP240.CA251.NOTICAB.CL.A00002 VSAMP240.CA251.NOTICBA.CL.A00001 VSAMP240.CA251.NOTICBB.CL.A00002 VSAMP240.CA251.NOTICCA.CL.A00001 VSAMP240.CA251.NOTICCB.CL.A00002 VSAMP240.CA251.NOTICDA.CL.A00001 VSAMP240.CA251.NOTICDB.CL.A00002 © Copyright IBM Corporation 2008 CA251SX9
  • 8. Full Function to HALDB FF Database Secondary Index 1 Secondary Index 1 2 partitions FF Database Secondary Index 2 Secondary Index 2 3 partitons HALDB 3 Partitions © Copyright IBM Corporation 2008 HALDB 3 Partitions
  • 9. The migration process options 1. HALDB with no secondary indexes 2. HALDB with secondary indexes – migration with out external tools (utilities not supplied as part of the base IMS product) 1. Unload secondary indexes independently 2. Unload secondary indexes during HD Unload 3. HALDB with secondary indexes – migration with some external tools (utilities not supplied as part of the base IMS product) 1. Rebuild secondary indexes after HD Reload © Copyright IBM Corporation 2008
  • 10. HALDB without Secondary Indexes Migrate the HALDB only Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1
  • 11. 1. HALDB with no Secondary Indexes FF DBD © Copyright IBM Corporation 2008
  • 12. 1. HALDB with no Secondary Indexes HD Unload FF DBD Unload File DBDLIB © Copyright IBM Corporation 2008 RECON • HD Unload • Unload with MIGRATE=YES • Single output file
  • 13. 1. HALDB with no Secondary Indexes HD Unload FF DBD DBDGEN Unload File DBDLIB RECON DBDLIB © Copyright IBM Corporation 2008 • DBDGEN • Generate changed DBDs • DBDLIB not usable for FF DBD anymore (including IC,Recovery
  • 14. 1. HALDB with no Secondary Indexes • DBRC HD Unload FF DBD DBDGEN Unload File DBDLIB DBRC DBDLIB © Copyright IBM Corporation 2008 RECON RECON • DELETE.DB FF DBD • Removes all DBRC history information including recovery information • INIT.DB • TYPE=TYPHALDB • INIT.PART • PART • KEYSTRNG • DSNPREFX
  • 15. 1. HALDB with no Secondary Indexes • IDCAMS HD Unload • Define all data sets • DFPUPNT0 FF DBD DBDGEN Unload File DBDLIB DBRC DBDLIB © Copyright IBM Corporation 2008 IDCAMS DFSUPNT0 RECON RECON ILDS Primary index HALDB • Initialize the partition
  • 16. Migration Path – Simpliest Form • HD UReload HD Unload FF DBD DBDGEN Unload File DBDLIB DBRC DBDLIB © Copyright IBM Corporation 2008 IDCAMS DFSUPNT0 RECON RECON HD Reload ILDS Primary index HALDB • Reload all partitions • Sets IC needed for each partition loaded • Not all partitions may get data loaded.
  • 17. HALDB with Secondary Indexes Option 1 Migrate the secondary indexes Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1
  • 18. 2. HALDB with secondary indexes Option 1 Sec Index Primary ndex FF DBD © Copyright IBM Corporation 2008 Sec Index
  • 19. 2. HALDB with secondary indexes Option 1 Sec Index Primary ndex FF DBD Sec Index HD Unload HD Unload DBDLIB DBDLIB Unload File © Copyright IBM Corporation 2008 RECON Unload File RECON
  • 20. 2. HALDB with secondary indexes Option 1 Sec Index Primary ndex FF DBD Sec Index HD Unload HD Unload DBDGEN DBDLIB DBDLIB Unload File Unload File DBDLIB DBDLIB © Copyright IBM Corporation 2008 DBDGEN RECON
  • 21. 2. HALDB with secondary indexes Option 1 Sec Index Primary ndex FF DBD Sec Index HD Unload HD Unload DBDGEN DBDLIB DBDLIB RECON RECON Unload File DBRC DBRC Unload File DBDGEN DBDLIB DBDLIB © Copyright IBM Corporation 2008 RECON RECON
  • 22. 2. HALDB with secondary indexes Option 1 Sec Index Primary ndex FF DBD Sec Index HD Unload HD Unload DBDGEN DBDLIB DBDLIB RECON RECON Unload File DBRC DBRC Unload File DBDGEN DBDLIB DBDLIB ILDS Primary index HALDB © Copyright IBM Corporation 2008 IDCAMS DFSUPNT0 RECON IDCAMS DFSUPNT0 RECON
  • 23. 2. HALDB with secondary indexes Option 1 Sec Index Primary ndex FF DBD Sec Index HD Unload HD Unload DBDGEN DBDLIB DBDLIB RECON RECON Unload File DBRC DBRC Unload File DBDGEN DBDLIB DBDLIB IDCAMS DFSUPNT0 IDCAMS DFSUPNT0 RECON HD Reload HD Reload ILDS Primary index HALDB © Copyright IBM Corporation 2008 SEC INDEX RECON
  • 24. HALDB with Secondary Indexes Option 2 MIGTRATX=YES Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1
  • 25. 2. HALDB with secondary indexes Option 2 Sec Index Primary ndex FF DBD © Copyright IBM Corporation 2008 Sec Index
  • 26. 2. HALDB with secondary indexes Option 2 Sec Index Primary ndex FF DBD DFSSRT01 DFSWRK01 Sec Index HD Unload DBDLIB Unload File © Copyright IBM Corporation 2008 DFSSRT02 DFSWRK02 SORT RECON SORT
  • 27. 2. HALDB with secondary indexes Option 2 Sec Index Primary ndex FF DBD DFSSRT01 DFSWRK01 Sec Index HD Unload SORT DBDGEN DBDLIB Unload File DBDLIB © Copyright IBM Corporation 2008 DFSSRT02 DFSWRK02 RECON SORT
  • 28. 2. HALDB with secondary indexes Option 2 Sec Index Primary ndex FF DBD DFSSRT01 DFSWRK01 Sec Index HD Unload SORT DBDGEN DBDLIB RECON DBRC Unload File DBDLIB © Copyright IBM Corporation 2008 DFSSRT02 DFSWRK02 RECON SORT
  • 29. 2. HALDB with secondary indexes Option 2 Sec Index Primary ndex FF DBD DFSSRT01 DFSWRK01 Sec Index HD Unload DFSSRT02 DFSWRK02 SORT SORT IDCAMS DFSUPNT0 IDCAMS DFSUPNT0 DBDGEN DBDLIB RECON DBRC Unload File DBDLIB ILDS Primary index HALDB © Copyright IBM Corporation 2008 IDCAMS DFSUPNT0 RECON
  • 30. 2. HALDB with secondary indexes Option 2 Sec Index Primary ndex FF DBD DFSSRT01 DFSWRK01 Sec Index HD Unload DFSSRT02 DFSWRK02 SORT SORT IDCAMS DFSUPNT0 IDCAMS DFSUPNT0 HD Reload HD Reload PSINDEX PSINDEX DBDGEN DBDLIB RECON DBRC Unload File DBDLIB IDCAMS DFSUPNT0 HD Reload RECON ILDS Primary index HALDB © Copyright IBM Corporation 2008
  • 31. HALDB with HD Reload Options Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1
  • 32. HD Reload Options BLANK SYSIN HD Reload • HD Reload • SYSIN DD * • Blank • ILDS update during reload processing • Not in key sequence • CA/CI splits • Performance poor
  • 33. HD Reload Options NOILDS • HD Reload • SYSIN DD * HD Reload • Blank SYSIN DFSPREC0 • ILDS update during reload processing DFSPREC0 DFSPREC0 • Parallel ILDS load processing • Not in key sequence • CA/CI split • Performance better
  • 34. HD Reload Options • HD Reload ILDSMULTI HD Reload SYSIN • SYSIN DD * • Blank • ILDS update during reload processing MVS Data Spaces • Data spaces used to sort data into key sequence • Performance better