View previous topic :: View next topic
|
Author |
Message |
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Hi,
I have a question, suppose we do a reorg shrlevel none with copyddn option to specify the image copy dataset.
From the manual, I got to know that image copies are taken during reload phase.
Quote: |
RELOAD
Reloads data from the sequential data set into the table space and creates
full image copies if you specify COPYDDN, RECOVERYDDN, SHRLEVEL
REFERENCE, or SHRLEVEL CHANGE. A subtask sorts the index keys.
The utility also updates table and table space statistics.
|
Now my question is If suppose reorg fails during reload phase, can I use this copyddn dataset to recover? will it be created? |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
No. Image copy is recorded in the catalog (SYSIBM.SYSCOPY) only when the utility is successful. I believe, even if the COPYDDN dataset was catalogued, DB2 won't recognize it. |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
I think with SHRLEVEL NONE and COPYDDN , the image copy dataset is created but dataset record is entered to SYSCOPY only when RELOAD phase or entire reorg job successfully completes.
I tried to simulate and cancelled the job during reload phase the table went into recovery pending and I was not able to recover using inline image copy dataset as its entry was not there in syscopy.
Please let me know if my understanding is correct? |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
record is entered to SYSCOPY only when RELOAD phase or entire reorg job successfully completes |
There is no scope for OR here. Entire job has to complete successfully for SYSCOPY entries. Entries are done in UTILTERM phase. There are two, first REORG is recorded and then IMAGECOPY. |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Thanks Agkshirsagar |
|
Back to top |
|
|
|