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 > When I was taking online backup I got following error .

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-11, 06:54
mlokesh834 mlokesh834 is offline
Registered User
 
Join Date: Jun 2011
Posts: 6
When I was taking online backup I got following error .

DB2 9.1 & Fp 4a & AIX -5.3

When I was taking online backup I got below error.I have increase the locktime parameter and REC_HIS_RETENTN also but still I am getting same error.

could you please help on this one and how to correct the problem ?


db2 backup db SAMPLE online use tsm include logs without prompting

SQL2048N An error occurred while accessing object "db2rhist.asc". Reason
code: "2".
Reply With Quote
  #2 (permalink)  
Old 11-29-11, 07:41
mlokesh834 mlokesh834 is offline
Registered User
 
Join Date: Jun 2011
Posts: 6
db2rhist file is missing.

I didn't find file (db2rhist.asc) on NODE0000/SQL00001/ on this directory.

What can I do now ?
Reply With Quote
  #3 (permalink)  
Old 11-29-11, 08:03
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You can restore the history file from a recent backup.
Reply With Quote
  #4 (permalink)  
Old 11-30-11, 04:09
wolaos123 wolaos123 is offline
Registered User
 
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
just run db2 list history backup all for xxx twice

it will re-create the history file automatically
Reply With Quote
  #5 (permalink)  
Old 11-30-11, 04:28
mlokesh834 mlokesh834 is offline
Registered User
 
Join Date: Jun 2011
Posts: 6
db2rhist.asc file is corrupted due to filesystem is full.

I have moved the two files(db2rhist.bak&db2rhist.asc) to some other directory. After I issued the history command . history command create these two files. later I ran online backup is executing fine.


IBM SQL2161N error reported for db2rhist.asc - United States


Thanks
Lokesh.M
Reply With Quote
  #6 (permalink)  
Old 11-30-11, 04:31
mlokesh834 mlokesh834 is offline
Registered User
 
Join Date: Jun 2011
Posts: 6
db2 list history backup all for xxx twice

Thanks for your help.
Reply With Quote
  #7 (permalink)  
Old 11-30-11, 05:14
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
db2rhist.bak is backup of db2rhist.asc
always first try to rename .asc file and rename .bak to .asc
if this does not help : have file created again or use restore for history file
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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