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 > online backup error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-09, 22:21
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
online backup error

Hello,

My backup failed with sql0911n. I see this error:


2009-06-09-00.00.43.926292 I1598A523 LEVEL: Error
PID : 1960345 TID : 1 PROC : db2bm
INSTANCE: db2inst1 NODE : 000 DB : UATDB
APPHDL : 0-694 APPID: *N0.db2inst1.080470543
FUNCTION: DB2 UDB, database utilities, SqlubTableLock::request, probe:153
DATA #1 : String, 59 bytes
Error upgrading lock.
PoolId: 0, ObjectId: 2, Intent: 3.


Can you offer some advice? Thank you!
Reply With Quote
  #2 (permalink)  
Old 06-11-09, 06:38
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
SYSIBM.SYSTABLES is locked.
Most common reason is RUNSTATS ?
Are you doing one, when you initiate the backup

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 06-11-09, 10:39
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
Thank you. I don't think we execute runstats during the week. This is an online backup so why would db2 care if some table is locked? Any reason why it can't backup a table even if it's locked?
Reply With Quote
  #4 (permalink)  
Old 06-12-09, 06:57
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
RUNSTATS takes a exclusive row locks in few system catalog tables ...

DB2 needs a consistent copy of the system catalog tables for backup. Hence, if the system table is locked (table or row) in exclusive mode, then backup fails.

If it is a user table that is locked, then backup will continue ...

Once the system tables are backed up, then it doesn't matter if RUNSTATS starts - as there is a consistent copy already for that image.

Hope this explains
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.

Last edited by sathyaram_s; 06-12-09 at 07:02.
Reply With Quote
  #5 (permalink)  
Old 06-12-09, 09:29
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
depending what ver you are on, you might want to check on AUTO_RUNSTATS parm. If it is ON db is doing stats for you.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #6 (permalink)  
Old 06-12-09, 11:39
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
auto runstats is off.

Is there any workaround for this locking problem?
Reply With Quote
  #7 (permalink)  
Old 06-12-09, 12:10
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Yes, script your script to send a backup into a sleep mode for a while and then do another attempt.

Check for locks first and either wait or force them. there are more depending on your business requirements.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #8 (permalink)  
Old 06-13-09, 15:57
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
see the following technote for some additional info:
IBM - DB2 online backup fails with SQL0911N reason code 68
Reply With Quote
  #9 (permalink)  
Old 06-30-09, 09:54
coolwinds coolwinds is offline
Registered User
 
Join Date: Apr 2007
Posts: 6
This is very common in our environment, most of time the deadlock was caused by runstats or reorg running on the table when backup was started. Also db2diag.log will show you the detail.
---------------
Eric Xu (许 昌)
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