Hi all,
Just wanna share some experices with you. We have experienced deadlock
problems after we migrated our DB2 v7.x to v8.x. And we are using WAS
5.x and WCBE 5.5 at the same time.
It tooks us days to find the root cause. By reading this post,
hopefully it won't cost you that much.
The root cause of the problem is "restore db" only restores type 1
indexes to type 1. In V8.x, DB2_RR_TO_RS=YE S is deprecated for Type 2
Index. I didn't find the officical document from DB2 info center.
However, I tried this trick on AIX 5.1, DB2 V8.1.1.16 and seems no
longer supported there.
To fix the problem, we need to run reorg for every table to convert
type 1 index to type 2 after we restore the v7 database.
such as
REORG INDEXES ALL FOR TABLE <FOO> CONVERT;
and it does solve the deadlock problem.
cheers,
Victor 2 2783
This is not a restore specific issue.
During any database migration, either on disk or through restore, we will
not change the type 1 indexes to type 2.
All new indexex create in V8 will default to type 2, UNLESS there is already
a type 1 index defined on the table in which case the new index will also be
of type 1. The method you described is the recommended way to convert your
indexes to type 2.
Dale McInnis
"Victor Yongwei Yang" <py*********@ya hoo.com> wrote in message
news:fe******** *************** ***@posting.goo gle.com... Hi all,
Just wanna share some experices with you. We have experienced deadlock problems after we migrated our DB2 v7.x to v8.x. And we are using WAS 5.x and WCBE 5.5 at the same time.
It tooks us days to find the root cause. By reading this post, hopefully it won't cost you that much.
The root cause of the problem is "restore db" only restores type 1 indexes to type 1. In V8.x, DB2_RR_TO_RS=YE S is deprecated for Type 2 Index. I didn't find the officical document from DB2 info center. However, I tried this trick on AIX 5.1, DB2 V8.1.1.16 and seems no longer supported there.
To fix the problem, we need to run reorg for every table to convert type 1 index to type 2 after we restore the v7 database.
such as REORG INDEXES ALL FOR TABLE <FOO> CONVERT;
and it does solve the deadlock problem.
cheers, Victor
"Victor Yongwei Yang" <py*********@ya hoo.com> wrote in message
news:fe******** *************** ***@posting.goo gle.com... Hi all,
Just wanna share some experices with you. We have experienced deadlock problems after we migrated our DB2 v7.x to v8.x. And we are using WAS 5.x and WCBE 5.5 at the same time.
It tooks us days to find the root cause. By reading this post, hopefully it won't cost you that much.
The root cause of the problem is "restore db" only restores type 1 indexes to type 1. In V8.x, DB2_RR_TO_RS=YE S is deprecated for Type 2 Index. I didn't find the officical document from DB2 info center. However, I tried this trick on AIX 5.1, DB2 V8.1.1.16 and seems no longer supported there.
In V8.x, db2_rr_to_rs=ye s still can work with type-1 index. It is strange
you did not get deadlock problem before migration.
To fix the problem, we need to run reorg for every table to convert type 1 index to type 2 after we restore the v7 database.
such as REORG INDEXES ALL FOR TABLE <FOO> CONVERT;
and it does solve the deadlock problem.
cheers, Victor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James |
last post by:
HI,
I'm looking for a script that will allow users/admins to have a one
click backup solution for a MYSQL Database..
'BACK DATABASE' button, click and its done...
The a restore option, that shows all current backups, and restores the
selected one with one click...
|
by: xo55ox |
last post by:
Hi,
I have been trying to set up an automated restore process from prod to
backup server. First, I schedule the full database backup nightly,
transfer the backup file and restore it to the database on the backup
server. Meanwhile, I leave the database ready to accept transaction
log from the transaction log backup at noon daily.
And I had used different restore options to test out the transaction
that was being applied. And I couldn't...
|
by: Jon Jacobs |
last post by:
I attempt to back up a database on one server and restore it on my local machine.
This is what the query text looks like:
restore database model from
Disk='c:\JQJ\mydump\model.bak'
with replace
I get this error:
|
by: Vikrant |
last post by:
Friends,
Due an application (old) install program problem, Under AIX I could
only create DB2 instance, I could also catalog it. Its complex
application and I am not expert in creating full database for this
application, but I have desired DB2 backup (by db2 backup db command).
Can I do redirected restore (SET TABLESPACE CONTAINERS ....) only
when instance is created & cataloged , I am under the impression that
redirected restore is...
|
by: anna_cheng11 |
last post by:
We do not have a DBA available, and this is a development environment,
hence I was asked to do the work. I am not a DBA. I need some help to
clarify my understanding of DB2 recovery and I am reading the following
as well.
http://publib.boulder.ibm.com/infocenter/db2help/index.jsp
I have a database say DB_INV on machine A and the database is backed
up to tape, I am going to create a second system, say machine B with a
database called...
| |
by: Chris |
last post by:
I have searched this group for answers and tried the responses.
I am trying to Use an full online backup from our production server and
apply it to our test server. The Tablespaces in the productions server
are on the d drive and my test server has no d drive.
The restore command i am using is:
RESTORE DATABASE CENTRAL FROM "C:\DB2Backups" TAKEN AT 20050620000000
INTO CENT0620 REDIRECT;
|
by: Mohammed Abdel-Razzak |
last post by:
Dear sirs
I`ve used SQLDMO to make a backup to my database
How can I use it to restore database?
thanks
Mohammed
|
by: Takpol |
last post by:
Hello,
I have several archived filegroups that have data in them partitioned
based on the date. These filegroups have been removed from database
after archival. For example two months ago. Meantime my production
database is populating everyday.
Now I would like to restore one of my old archived filegroups. In order
to do that I would like to backup and restore the current Primary
filegroup to another server, and also restore the...
|
by: zgh1970 |
last post by:
Hi, Friends,
default DB2 compression library.
I am wondering if this option will have any new restriction on RESTORE
in the following.
(Can I used that backup imsage for restore at the follwoing compatible
situations?)
:
There are operating system considerations when using the RESTORE
DATABASE command:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |