473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Lock waits during online backup

Hi,

how can I fix lock-waits during an online backup? Is an online backup
in DB2 V8.2 not realy online? I'm using DB2 V8.2 Fixpak 15 on Linux.

The command to perform the backup is: db2 backup db BPEDB online to /
var/tmp
During the backup the application hangs on just one table
(variable_instance_b_t) which is a central table of the application
and which will be used a lot. But the table is not realy large, there
are about 50.000 rows in the table.
Here's an output of the locks hold by the backup session:

List Of Locks
Lock Name = 0x02006C00000000000000000074
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 108
Object Type = Internal Table Alter Lock
Tablespace Name = USERSPACE1
Table Schema = DB2INST1
Table Name = VARIABLE_INSTANCE_B_T
Mode = S

Lock Name = 0x02006C0000000000000000006F
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 2
Object Type = Internal Online Backup Lock
Tablespace Name = USERSPACE1
Table Schema = DB2INST1
Table Name = VARIABLE_INSTANCE_B_T
Mode = X

Lock Name = 0x02006C00000000000000000054
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 108
Object Type = Table
Tablespace Name = USERSPACE1
Table Schema = DB2INST1
Table Name = VARIABLE_INSTANCE_B_T
Mode = S

+ about 8 internal locks
Do you have any tipps to fix this issue?

Thanks

Michael

Jun 27 '08 #1
6 7687
<mi************@web.dewrote in message
news:cd**********************************@p25g2000 hsf.googlegroups.com...
Hi,

how can I fix lock-waits during an online backup? Is an online backup
in DB2 V8.2 not realy online? I'm using DB2 V8.2 Fixpak 15 on Linux.
An online backup should allow access to the database by applicaitons for
select, insert, update, delete.
The command to perform the backup is: db2 backup db BPEDB online to /
var/tmp
During the backup the application hangs on just one table
(variable_instance_b_t) which is a central table of the application
and which will be used a lot. But the table is not realy large, there
are about 50.000 rows in the table.
Here's an output of the locks hold by the backup session:

List Of Locks
Lock Name = 0x02006C00000000000000000074
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 108
Object Type = Internal Table Alter Lock
Tablespace Name = USERSPACE1
Table Schema = DB2INST1
Table Name = VARIABLE_INSTANCE_B_T
Mode = S

Lock Name = 0x02006C0000000000000000006F
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 2
Object Type = Internal Online Backup Lock
Tablespace Name = USERSPACE1
Table Schema = DB2INST1
Table Name = VARIABLE_INSTANCE_B_T
Mode = X

Lock Name = 0x02006C00000000000000000054
Lock Attributes = 0x00000000
Release Flags = 0x40000000
Lock Count = 1
Hold Count = 0
Lock Object Name = 108
Object Type = Table
Tablespace Name = USERSPACE1
Table Schema = DB2INST1
Table Name = VARIABLE_INSTANCE_B_T
Mode = S

+ about 8 internal locks
Do you have any tipps to fix this issue?

Thanks

Michael
I would restart the instance and try again. If that does not work, check the
db2diag.log for more information. Call IBM support if that does not help
you.
Jun 27 '08 #2
On Jun 11, 11:50*am, "Mark A" <nob...@nowhere.comwrote:
<michael.spo...@web.dewrote in message

news:cd**********************************@p25g2000 hsf.googlegroups.com...
Hi,
how can I fix lock-waits during an online backup? Is an online backup
in DB2 V8.2 not realy online? I'm using DB2 V8.2 Fixpak 15 on Linux.

An online backup should allow access to the database by applicaitons for
select, insert, update, delete.


The command to perform the backup is: db2 backup db BPEDB online to /
var/tmp
During the backup the application hangs on just one table
(variable_instance_b_t) which is a central table of the application
and which will be used a lot. But the table is not realy large, there
are about 50.000 rows in the table.
Here's an output of the locks hold by the backup session:
List Of Locks
Lock Name * * * * * * * * * = 0x02006C00000000000000000074
Lock Attributes * * * * * * = 0x00000000
Release Flags * * * * * * * = 0x40000000
Lock Count * * * * * * * * *= 1
Hold Count * * * * * * * * *= 0
Lock Object Name * * * * * *= 108
Object Type * * * * * * * * = Internal Table Alter Lock
Tablespace Name * * * * * * = USERSPACE1
Table Schema * * * * * * * *= DB2INST1
Table Name * * * * * * * * *= VARIABLE_INSTANCE_B_T
Mode * * * * * * * * * * * *= S
Lock Name * * * * * * * * * = 0x02006C0000000000000000006F
Lock Attributes * * * * * * = 0x00000000
Release Flags * * * * * * * = 0x40000000
Lock Count * * * * * * * * *= 1
Hold Count * * * * * * * * *= 0
Lock Object Name * * * * * *= 2
Object Type * * * * * * * * = Internal Online Backup Lock
Tablespace Name * * * * * * = USERSPACE1
Table Schema * * * * * * * *= DB2INST1
Table Name * * * * * * * * *= VARIABLE_INSTANCE_B_T
Mode * * * * * * * * * * * *= X
Lock Name * * * * * * * * * = 0x02006C00000000000000000054
Lock Attributes * * * * * * = 0x00000000
Release Flags * * * * * * * = 0x40000000
Lock Count * * * * * * * * *= 1
Hold Count * * * * * * * * *= 0
Lock Object Name * * * * * *= 108
Object Type * * * * * * * * = Table
Tablespace Name * * * * * * = USERSPACE1
Table Schema * * * * * * * *= DB2INST1
Table Name * * * * * * * * *= VARIABLE_INSTANCE_B_T
Mode * * * * * * * * * * * *= S
+ about 8 internal locks
Do you have any tipps to fix this issue?
Thanks
Michael

I would restart the instance and try again. If that does not work, check the
db2diag.log for more information. Call IBM support if that does not help
you.- Hide quoted text -

- Show quoted text -
Ideally there would/should not be any locks - however DB2 does hold
internal locks for a few things - like some of the config files and
other internal objects.
I am not sure of the actual objects, their durations, etc. I would
suggest reaching out to DB2 Support - and they can provide the
details.

All the same, just curious to know if these locks are causing you any
problems?

-- Jayesh
Jun 27 '08 #3
Thanks Mark, thanks Jayesh.

I've found the following in the manuals about the online option in the
backup command:
'During an online backup, DB2 obtains IN (Intent None) locks on all
tables existing in SMS table spaces as they are processed and S
(Share) locks on LOB data in SMS table spaces'

We're using SMS tablespaces and the table which is lockes has a lob
column. Do you think moving this table to a DMS tablespace can fix the
problem.

By the way, there no special entries in the db2diag.log file, just the
starting and finishing of the backup.

Regards

Michael

Jun 27 '08 #4
Ian
mi************@web.de wrote:
Thanks Mark, thanks Jayesh.

I've found the following in the manuals about the online option in the
backup command:
'During an online backup, DB2 obtains IN (Intent None) locks on all
tables existing in SMS table spaces as they are processed and S
(Share) locks on LOB data in SMS table spaces'

We're using SMS tablespaces and the table which is lockes has a lob
column. Do you think moving this table to a DMS tablespace can fix the
problem.

By the way, there no special entries in the db2diag.log file, just the
starting and finishing of the backup.
What are you trying to do in your application that is running in to the
locks?

The point of putting locks on objects in the tablespace is to prevent
changes (DDL) while the backup is active. DML is fine, of course.
Jun 27 '08 #5
<mi************@web.dewrote in message
news:2c**********************************@a70g2000 hsh.googlegroups.com...
Thanks Mark, thanks Jayesh.

I've found the following in the manuals about the online option in the
backup command:
'During an online backup, DB2 obtains IN (Intent None) locks on all
tables existing in SMS table spaces as they are processed and S
(Share) locks on LOB data in SMS table spaces'

We're using SMS tablespaces and the table which is lockes has a lob
column. Do you think moving this table to a DMS tablespace can fix the
problem.
It is worth a try.
Jun 27 '08 #6
Hi,

first tests on our test environment are successful. I've moved the
specific table from a SMS to a DMS tablespace. There are no more
shared locks on this table and no more lock-waits on the database.

Regards

Michael
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Arijit Chatterjee | last post by:
Dear Friends, I don't know anybody has asked this question before or not.But I need a support urgently.How to take online backup in MS Sql server 2000. Thanks Arijit Chatterjee
0
by: Bruce Pullen | last post by:
DB2 v7.2 (FP7 - DB2 v7.1.0.68) on AIX 5.2.0.0. We're seeing unexpected single row (then commit) insert locking behaviour. We're seeing Applications that already hold row-level W locks in...
4
by: manwiththeaxe.70 | last post by:
I have recently begun to migrate our DB2 UDB v7.2 enterprise databases up to DB2 UDB v8.2. One question I can't seem to understand is why would I want to run an offline backup for a database now...
5
by: Gladiator | last post by:
Hai..... I have a database............ i took an online backup for tht..... After tht mistakenly i dropped the database.......... now i dont have the logs also....... now after i restore the...
3
by: Konstantin Andreev | last post by:
Hello, everybody. I've spent a lot of time reading "DB2 Information Center" and Raul Chong's book "Understanding DB2. Learning Visually with Examples", but still unable to answer this simple...
10
by: Konstantin Andreev | last post by:
Hello. Some time ago I asked in this conference, - How to use an ONLINE BACKUP to restore database onto another system? - but got no answers. Therefore I can conclude it is not possible. But......
5
by: andrejf | last post by:
Occasionally, regular online backup fails with sql0911 reason 68, "lock-timeout" seconds after the command is issued. Normally a second try is successfull. The database is always in use. Can...
3
by: Marco | last post by:
Hi all, with db2 snapshot I know the lock waits number but I can not see the tables with locks an I can not see queries that produces locks. How can I know those details? Thanks Marco...
2
by: heyzulu59 | last post by:
I thought that an online backup could always be run while other processes with the database went about their business. However today I noticed that certain processes in my production database were...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.