473,231 Members | 1,815 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,231 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 7647
<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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.