473,573 Members | 2,927 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

db2 v8.2 reorg

Hi,
I posted something a while ago about not being able to setup online
reorgs - the db2 control center only offers online runstats. So I
started adding tasks to reorg each table. This works fine, but
sometimes it does not! The reorg fails and alerts me that it failed.
The script is

CONNECT TO ECNDB;
REORG TABLE AIRLINE.FFMFWB INDEX AIRLINE.FFMFWB_ IX1 INPLACE ALLOW WRITE
ACCESS START ;
CONNECT RESET;

the retun code is -2219

and the output is

REORG TABLE AIRLINE.FFMFWB INDEX AIRLINE.FFMFWB_ IX1 INPLACE ALLOW WRITE
ACCESS START
SQL2219N The specified INPLACE table reorganization action on table
"AIRLINE.FFMFWB " is not allowed on one or more nodes. Reason code: "8".
These tasks are run as re-occuring scheduled tasks. From Iwhat I can
read it is telling me that it failed because of a previous failure,
even though the history of the tasks shows that the previous task was
OK. If I do a

db2 "select * from table(SNAPSHOT_ TBREORG('AIRLIN E', -1)) as snap "
it tells me the reorg has paused and not cmompleted - so I can and did
resume it.

Am I trying to do something that can not really be done online - and
why does the reorg stop - is it the INPLACE ALLOW WRITE ACCESS ? I run
it once a week. Is this too often ?
andy

Nov 12 '05 #1
3 5586
an***********@e cngroup.co.nz wrote:
Hi,
I posted something a while ago about not being able to setup online
reorgs - the db2 control center only offers online runstats. So I
started adding tasks to reorg each table. This works fine, but
sometimes it does not! The reorg fails and alerts me that it failed.
The script is

CONNECT TO ECNDB;
REORG TABLE AIRLINE.FFMFWB INDEX AIRLINE.FFMFWB_ IX1 INPLACE ALLOW WRITE
ACCESS START ;
CONNECT RESET;

the retun code is -2219

and the output is

REORG TABLE AIRLINE.FFMFWB INDEX AIRLINE.FFMFWB_ IX1 INPLACE ALLOW WRITE
ACCESS START
SQL2219N The specified INPLACE table reorganization action on table
"AIRLINE.FFMFWB " is not allowed on one or more nodes. Reason code: "8".
These tasks are run as re-occuring scheduled tasks. From Iwhat I can
read it is telling me that it failed because of a previous failure,
even though the history of the tasks shows that the previous task was
OK. If I do a

db2 "select * from table(SNAPSHOT_ TBREORG('AIRLIN E', -1)) as snap "
it tells me the reorg has paused and not cmompleted - so I can and did
resume it.

Am I trying to do something that can not really be done online - and
why does the reorg stop - is it the INPLACE ALLOW WRITE ACCESS ? I run
it once a week. Is this too often ?
andy


SQL2219N The specified INPLACE table reorganization action on
table "<table-name>" is not allowed on one or more
nodes. Reason code: "<reason-code>".

Explanation:

The statement cannot be processed because it violates a
restriction as indicated by the following reason code:

....
8 INPLACE table reorganization is already in progress for the
specified table.
....

Are you trying to start reorg in place while previous reorg is still in progress?
Jan M. Nelken

Nov 12 '05 #2
Jan
I do not think so - the task runs once a week. Mostly they run ok then
occasionally I get an error like this - the previous reorg says it
ran fine, but the current one suggests that it can't run as a previous
one is not finished or did not complete as you point out. But I can see
that the previous one completed in the task center journal. Runstats is
also run online every week. Is there a chance than runstats fails to
complete and that impacts the reorg ?

thanks
andy

Nov 12 '05 #3
I wonder if someone is running an additional reorg (that doesn't
complete) outside of the ones you've set up. This could cause exactly
what you are seeing.

Phil Sherman
an***********@e cngroup.co.nz wrote:
Jan
I do not think so - the task runs once a week. Mostly they run ok then
occasionally I get an error like this - the previous reorg says it
ran fine, but the current one suggests that it can't run as a previous
one is not finished or did not complete as you point out. But I can see
that the previous one completed in the task center journal. Runstats is
also run online every week. Is there a chance than runstats fails to
complete and that impacts the reorg ?

thanks
andy

Nov 12 '05 #4

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

Similar topics

27
7501
by: Raquel | last post by:
This question if for UDB on LUW. Suppose I take regular database backups of my database Monday: database backup <ts1> Tuesday: Tablespace reorged and imagecopied <ts2> Friday: database restored and roll-forwarded to a timestamp <ts3> on Wednesday. Now my question is: because the entire database is being roll-forwarded, I suppose the...
1
5300
by: Anna Hutter | last post by:
Hello, this question is about DB2 UDB V8 and its inplace reorganisation. It seems that in small tables, an inplace reorg doesn´t start. Is there a limit in size of a table when a reorg starts? How can I be sure that a reorg has successfully finished? I found three methods to watch if an asynchronous reorg has finished: a) db2 "select *...
9
7753
by: Lara | last post by:
Hello freaks, we have many problems with our online reorg and no idea how to resolve it. We had to do an online reorg beacause of 24 h online business. We start the reorg-statements (table by table) in a loop with the following statement: reorg table xxx.yyy inplace allow write access.
2
8291
by: TomHorner | last post by:
I have several quick questions about reorg's, and a request (favor). 1. The documentation says that reorg "Reorganizes an index or a table" I cannot see how one would reorg ONE particular index - is there a way to do this? More importantly, would you WANT to do this? 2. We plan on doing inplace reorg's due to the 24x7 nature of our...
1
4794
by: hikums | last post by:
1. I did a reorgchk, and found that F2 on table and F4 on index indicates a reorg is necessary. 2. Did a reorg. 3. Again I do a reorgchk, the report is the same as in Step 1 4. I do a runstats on all columns and key columns with distribution and indexes all
16
5445
by: andy.standley | last post by:
Hi, we are running DB2 V8.2 (8.1.0.80) on redhat linux and I am trying to set the reorg to be online. I use the control center on the box - db2cc and then configure automatic maintenance wizard - and can get runstats to be online but reorg only offers offline at the activities settings. I have tried to understand why - I thought that online...
13
4370
by: Yuri | last post by:
We have an update sql that was running OK for several months completing in under 2 minutes . Yesterday something changed and we had to kill this update after it ran more than 6 hours. Update input table contained the normal 100K rows and master table contained about 135 M rows. We reorged the master table specifying the index we wanted DB2 to...
9
7100
by: mike_dba | last post by:
I am using DMS raw. I have a tablespace which is defined with 5 containers each allocated at 1.5 GB for a total of about 7.5 GB. I did a major deletion followed by a reorg and a runstats. I am not regaining as much space as anticipated. Additionally, the syscat.tables and syscat.indexes show my usage to be small. How do I determine who...
2
3828
by: sethwai | last post by:
Hi, I have a nightly script that executes inplace reorgs allow write access for several tables after a previous script does a large number of delete operations. It usually has been executing fine. The other night 3 of them failed due to the log file system filling up. I resumed them individually and they all completed successfully. ...
0
2232
by: bwmiller16 | last post by:
Hi All - OSName: AIX NodeName: dr_aixdb01 Version: 5 Release: 3 dr_aixdb01$db2level DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08027"
0
7686
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...
0
8200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7771
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...
0
8060
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 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...
0
6407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5289
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...
0
3730
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...
0
3731
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2197
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.