473,287 Members | 1,866 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,287 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 7664
<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: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.