If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Problem restoring db2 database with rollforward using HP Data Protector

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-06-10, 04:22
junkie junkie is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
Problem restoring db2 database with rollforward using HP Data Protector

Hi,
i really have trouble restoring my database into the same database using HP Data Protector with rollforward to end of logs.
i'm getting the error
SQL1268N Roll-forward recovery stopped due to error "24" while retrieving log
file "S0000021.LOG" for database "<name>" on node "0".

backup and restore without rollforward works perfectly,although afterwards i'm not able to rollforward to end of logs manually..i then use the command to get the database out of the pending state:
=> rollforward db <name> stop

i configure the database as follows
=> CREATE DATABASE <name>
=> UPDATE DB CFG FOR <name> USING USEREXIT ON DEFERRED
=> UPDATE DB CFG FOR <name> USING LOGRETAIN RECOVERY
=> UPDATE DB CFG FOR <name> USING TRACKMOD YES DEFERRED
=> BACKUP DATABASE <name> TO "" WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING

i think all the environmental variables are set right. i can see the logs in the folder /app/db2inst2/db2inst2/NODE0000
i don't know why they have trouble restoring them


i'm working on the platform
HP UX B.11.31 U ia64
DB2 V9.7

hope someone can help me with this problem
Regards
Reply With Quote
  #2 (permalink)  
Old 12-06-10, 11:00
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I think you need to look at your userexit code to figure out what the error code 24 means there.
Reply With Quote
  #3 (permalink)  
Old 12-06-10, 18:28
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
If all required logs are in /app/db2inst2/db2inst2/NODE0000, then try adding NORETRIEVE option to the rollforward command if this is allowed when using HP Data Protector.
Reply With Quote
  #4 (permalink)  
Old 12-07-10, 04:35
junkie junkie is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
unfortunately there is no such option
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On