MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unload and load related.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
gavini_vasu
Beginner


Joined: 28 Jun 2005
Posts: 2
Topics: 1

PostPosted: Wed Mar 08, 2006 1:28 am    Post subject: Unload and load related. Reply with quote

Hi All,

I have a table TAB1 in database DataB1. This table is huge ( 2 million rows).
My requirement is to create the same table TAB1 under a different database called DataB after which we intend to drop TAB1 in DataB1.

The strategy I have thought about is to unload TAB1 into a file.
Create TAB1 in database DataB.
Load the table with the data from earlier unload.
Drop old table from DataB1.

Right now, I have a problem with unload. Data is huge, space and window time are constraints.

1. How can I unload data in partitions ? ( I am using DSNTIAUL )
2. It would be great if somebody can help with better alternatives to this job.

Thanks,
Vasu
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Mar 08, 2006 9:29 am    Post subject: Reply with quote

gavini_vasu,
Is the tablespace partitioned? 2 million is not a huge number and do you have tools like Platinium utilities? There are several examples for unloading by partitions. Typcally unloading 2 million rows should not take too long and also check your site specifications for compression (DATACLAS=*******) it would help mitigate space issues. Thanks
Back to top
View user's profile Send private message
raam_narayan
Beginner


Joined: 28 Apr 2006
Posts: 12
Topics: 2

PostPosted: Wed May 03, 2006 6:05 am    Post subject: Reply with quote

Hi Vasu,

I had got ur problem is Extracting the data's from DB2 to Flat file.. It's not a big issue to extract 2 million rows.. what u can do is if ur Shop floor is using FILE-AID RDX u can use that tool or u can simply use FILE-AID DB2 and u can accomplish the process.. The reason why I'm telling is use FILE-AID RDX is because even if u have any kind of Check constraints or if the Base table is having any kind of Dependency / siblings the tool wud take care of that and most important is the Destination File should have the size to hold the 2 Million records..revert back in case of any issue...

Thanks & Regards,
V.Ram NArayan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group