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

DB2 Imagecopy & Unload


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

New User


Joined: 29 Apr 2005
Posts: 21
Location: Gurgaon, India

PostPosted: Wed Jan 28, 2009 3:07 pm
Reply with quote

Hi,

I have a requirement to migrate data from prod table to dev table using a backup imagecopy. I tried 2 approached but both of them failed:

1. I tried Recover in dev table from imagecopy, but I got the error 'the recovery does not permit DSNUM(ALL) recovery'. This table is a non-partitioned table. What option should I use?

2. I also tried doing a Unload from imagecopy (giving PARM in the job for Dev DB2 system), but it returns error that 'content of imagecopy dataset are inconsistent with Dev tablespace'.

Any help with either of these method would be appreciated.

Thanks,
Rohin
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Wed Jan 28, 2009 4:06 pm
Reply with quote

As it is nonpartioned, try to recover by removing DSNUM parameter.
Back to top
View user's profile Send private message
rohin

New User


Joined: 29 Apr 2005
Posts: 21
Location: Gurgaon, India

PostPosted: Wed Jan 28, 2009 4:19 pm
Reply with quote

I forgot to add, I did not have DSNUM parameter in my sysin card. I think it picked DSNUM(ALL) by default.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Jan 28, 2009 7:51 pm
Reply with quote

Hi Rohin,

Quote:
I also tried doing a Unload from imagecopy (giving PARM in the job for Dev DB2 system), but it returns error that 'content of imagecopy dataset are inconsistent with Dev tablespace'.


Do you have access to production, if you do. You can unload from the prod backup image copy. You are unloading from production image copy give production sub-system ID in the JOB not development.
Unload it as a sequential file and Load it in the development and give the Development sub-system id.

Sushanth
Back to top
View user's profile Send private message
DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Wed Jan 28, 2009 11:54 pm
Reply with quote

Hi,

My experience differs a little here - I could not load the data from my "normal load jobs" I had to get in touch with my DBA who provided me with other JCL which did the trick - might be getting in contact with them cn help..
Back to top
View user's profile Send private message
jontyjun

New User


Joined: 12 Sep 2006
Posts: 12
Location: India

PostPosted: Mon Mar 02, 2009 12:17 am
Reply with quote

Hi DB2 Guy,

Saw ur post on the Copying Prod table to Dev Environment. You had told that your DBA gave a different JCl/card which solved your case. Can you let me know what changes did the DBA do to the card? Did they change the Object ID? What other changes?

Regards,
jonty
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 Load new table with Old unload - DB2 DB2 6
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
No new posts changing defaults in db2 admin - Unlo... DB2 0
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top