473,399 Members | 3,832 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,399 software developers and data experts.

Seemingly Successful Inplace Reorg returns -1 Completion Status

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.

To eliminate the log space problem I changed the script to wait for
one to complete before startng the next one. Well the same 3 that
failed the day before returned a -1 completion status but they all
succeeded according to the list history reorg command. I'm wondering
why that is. There weren't any errors (or warnings) in the diag or
notify logs. Below is a table snapshot and a list history for one of
the failed reorgs.

Thanks.

Lew

Table Schema = DB2AI
Table Name = TABLE1
Table Type = User
Data Object Pages = 106453
Index Object Pages = 97299
Rows Read = 4827049
Rows Written = 995492
Overflows = 0
Page Reorgs = 92806
Table Reorg Information:
Reorg Type =
Reclaiming
Inplace Table Reorg
Allow Write Access
Reorg Index = 0
Reorg Tablespace = 2
Start Time = 09/06/2006 01:07:48.282006
Reorg Phase =
Max Phase =
Phase Start Time =
Status = Completed
Current Counter = 106432
Max Counter = 106452
Completion = -1
End Time = 09/06/2006 01:14:41.682621

Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------
--------------
G T 20060906010748 N S0005436.LOG

----------------------------------------------------------------------------
Table: "DB2AI "."TABLE1"
----------------------------------------------------------------------------
Comment: REORG START
Start Time: 20060906010748
End Time: 20060906010748
Status: A

----------------------------------------------------------------------------
EID: 7056
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------
--------------
G T 20060906011441 N S0005444.LOG

----------------------------------------------------------------------------
Table: "DB2AI "."TABLE1"
----------------------------------------------------------------------------
Comment: REORG Done
Start Time: 20060906011441
End Time: 20060906011441
Status: A

----------------------------------------------------------------------------
EID: 7065

Sep 6 '06 #1
2 3811
Check the status of the REORG using this command

db2pd -db <database-reorgs

cheers...
Shashi Mannepalli
se*****@yahoo.com wrote:
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.

To eliminate the log space problem I changed the script to wait for
one to complete before startng the next one. Well the same 3 that
failed the day before returned a -1 completion status but they all
succeeded according to the list history reorg command. I'm wondering
why that is. There weren't any errors (or warnings) in the diag or
notify logs. Below is a table snapshot and a list history for one of
the failed reorgs.

Thanks.

Lew

Table Schema = DB2AI
Table Name = TABLE1
Table Type = User
Data Object Pages = 106453
Index Object Pages = 97299
Rows Read = 4827049
Rows Written = 995492
Overflows = 0
Page Reorgs = 92806
Table Reorg Information:
Reorg Type =
Reclaiming
Inplace Table Reorg
Allow Write Access
Reorg Index = 0
Reorg Tablespace = 2
Start Time = 09/06/2006 01:07:48.282006
Reorg Phase =
Max Phase =
Phase Start Time =
Status = Completed
Current Counter = 106432
Max Counter = 106452
Completion = -1
End Time = 09/06/2006 01:14:41.682621

Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------
--------------
G T 20060906010748 N S0005436.LOG

----------------------------------------------------------------------------
Table: "DB2AI "."TABLE1"
----------------------------------------------------------------------------
Comment: REORG START
Start Time: 20060906010748
End Time: 20060906010748
Status: A

----------------------------------------------------------------------------
EID: 7056
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------
--------------
G T 20060906011441 N S0005444.LOG

----------------------------------------------------------------------------
Table: "DB2AI "."TABLE1"
----------------------------------------------------------------------------
Comment: REORG Done
Start Time: 20060906011441
End Time: 20060906011441
Status: A

----------------------------------------------------------------------------
EID: 7065
Sep 6 '06 #2
Thanks for the info. The db2pd command shows pretty much the same
thing:

Address TbspaceID TableID TableName Start
End PhaseStart MaxPhase
Phase CurCount MaxCount Type Status Completion IndexID
TempSpaceID
0x40E61404 2 2 TABLE1 09/06/2006
01:07:48.282006 09/06/2006 01:14:41.682621 n/a
n/a n/a 106432 2 Online Done 4294967295
0 2

That huge number 4294967295 is actually all Fs which is equivalent to
-1
Shashi Mannepalli wrote:
Check the status of the REORG using this command

db2pd -db <database-reorgs

cheers...
Shashi Mannepalli
se*****@yahoo.com wrote:
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.

To eliminate the log space problem I changed the script to wait for
one to complete before startng the next one. Well the same 3 that
failed the day before returned a -1 completion status but they all
succeeded according to the list history reorg command. I'm wondering
why that is. There weren't any errors (or warnings) in the diag or
notify logs. Below is a table snapshot and a list history for one of
the failed reorgs.

Thanks.

Lew

Table Schema = DB2AI
Table Name = TABLE1
Table Type = User
Data Object Pages = 106453
Index Object Pages = 97299
Rows Read = 4827049
Rows Written = 995492
Overflows = 0
Page Reorgs = 92806
Table Reorg Information:
Reorg Type =
Reclaiming
Inplace Table Reorg
Allow Write Access
Reorg Index = 0
Reorg Tablespace = 2
Start Time = 09/06/2006 01:07:48.282006
Reorg Phase =
Max Phase =
Phase Start Time =
Status = Completed
Current Counter = 106432
Max Counter = 106452
Completion = -1
End Time = 09/06/2006 01:14:41.682621

Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------
--------------
G T 20060906010748 N S0005436.LOG

----------------------------------------------------------------------------
Table: "DB2AI "."TABLE1"
----------------------------------------------------------------------------
Comment: REORG START
Start Time: 20060906010748
End Time: 20060906010748
Status: A

----------------------------------------------------------------------------
EID: 7056
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------
--------------
G T 20060906011441 N S0005444.LOG

----------------------------------------------------------------------------
Table: "DB2AI "."TABLE1"
----------------------------------------------------------------------------
Comment: REORG Done
Start Time: 20060906011441
End Time: 20060906011441
Status: A

----------------------------------------------------------------------------
EID: 7065
Sep 6 '06 #3

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

Similar topics

27
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...
1
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?...
4
by: pike | last post by:
db2 v8.1FP 7a on AIX 5.3. My weekly overnight REORG job sometimes generates SQL2219N rc 9 errors "START is not allowed as a prior paused table reorganization has not been stopped". Is there a...
2
by: aj | last post by:
DB2 LUW v8.2 FP 14 RHAS 2.1 I'm confused about the NOTRUNCATE TABLE option of the REORG TABLE INPLACE command. In my mind, truncating the table means that you delete all rows that it has - why...
0
by: Roger | last post by:
I changed my classic reorgs to inplace reorg on my siebel database last weekend and ran into the log space getting full issue . This is one of the command on my script : reorg table SIEBEL.ASSET...
2
by: Okonita | last post by:
Hi all, How can I implement using REORGCHK to tell REORG what DB2 UDB v8 tables, etc to perform REORG on? Any example script will be highly appreciated. Okonita
7
by: Okonita via DBMonster.com | last post by:
Hi all, I am very surprised to see that after doing a Reorgchk followed by reorg of selected tables and concluding with a runstats of the reorged tables, all of the tables continue to be...
0
by: mvsmsh | last post by:
Hi Listers , While REORG INPLACE WRITE ACCESS , large and frequently update table , previous' DBA got experience that all the program could not access the table during the last phase of the...
0
by: db2dbdba | last post by:
Hi all, Can any one help me in understanding how to monitor the status of index REORG? All I know till now is do I don't know whether "snaptab_reorg " will help me in knowing the status...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
marktang
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,...
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
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.