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 would you not use this option
as part of the reorg? If you want to truncate, why not just
delete the table and recreate it w/ DDL?
I deleted a great many rows from a wide table yesterday, then did
an online/inplace REORG against it, using the NOTRUNCATE TABLE
option. To my surprise, no pages were freed up in the tablespace.
Is this because I used the NOTRUNCATE option?
Yes, I have RTFM - but all it says about the option is "Do not
truncate the table after inplace reorganization. During truncation,
the table is S-locked."
Any explanation appreciated...
aj 2 6135
I believe the no truncate option does exactly what you saw. It
doesn't free up the empty pages for reuse by another object in the
tablespace. Those pages may be empty but they are reserved for the
object you reorged.
On Mar 16, 9:18 am, aj <ron...@mcdonal ds.comwrote:
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 would you not use this option
as part of the reorg? If you want to truncate, why not just
delete the table and recreate it w/ DDL?
I deleted a great many rows from a wide table yesterday, then did
an online/inplace REORG against it, using the NOTRUNCATE TABLE
option. To my surprise, no pages were freed up in the tablespace.
Is this because I used the NOTRUNCATE option?
Yes, I have RTFM - but all it says about the option is "Do not
truncate the table after inplace reorganization. During truncation,
the table is S-locked."
Any explanation appreciated...
aj
aj wrote:
Yes, I have RTFM - but all it says about the option is "Do not
truncate the table after inplace reorganization. During truncation,
the table is S-locked."
As the manual says, during the truncation the table is S-locked, which
means that it is read only.
This read-only phase may not be desirable in certain situations, which
is why you can eliminate it with the NOTRUNCATE TABLE option. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: randi_clausen |
last post by:
Using SQL against a DB2 table the 'with' key word is used to
dynamically create a temporary table with an SQL statement that is
retained for the duration of that SQL statement.
What is the equivalent to the SQL 'with' using TSQL? If there is not
one, what is the TSQL solution to creating a temporary table that is
associated with an SQL statement? Examples would be appreciated.
Thank you!!
|
by: aboycalled3 |
last post by:
I'm interested in using the fascinating CSS available at
http://www.moronicbajebus.com/playground/cssplay/reformat-table/
which allows one to present tabular data in a way that's more appealing
to the eye (at least to my eye it's more appealing :^)
To my mind this is very much what CSS is all about: allowing content
providers to present properly coded data in a way they and, ideally,
their readers, find inviting and accessible....
|
by: Laphan |
last post by:
Hi All
Wonder if you could help, I have a bog standard table called STOCKPRICES
that has served me well for a while, but now I need to change the structure
of it and because a number of users have used it in it's present form I need
to so the following in SQL script:
a) Grab a snapshot of the current SQL data.
b) Re-structure the STOCKPRICES table.
|
by: G.W. Lucas |
last post by:
I apologize if this is a RTFM question, but I have not been able
to find a definitive answer elsewhere.
Does a "REINDEX TABLE" lock the table while it is working?
Can applications write data to the table during the REINDEX?
I am working on a real-time application that handles over 2 million
"events" per day and runs 7-by-24. Most of these events involve an
UPDATE to one or two tables, though a small subset involve a bit
more work. ...
|
by: Selden McCabe |
last post by:
Sometimes I want to put a table inside a cell of another table (say, to
create 3 equal divisions, etc.).
When I want the inner table's edges to correspond exactly with the edges of
the cell, I set the border (top, left, bottom, right) to zero for both the
inner table and outer table. Also padding to 0 and spacing to 0.
But, for some reason, there is still some space between the bottom of the
inner table and the bottom of the containing...
| |
by: donet programmer |
last post by:
I have a requirement where I need to create a dataset that consists of
a table inside a table ( a child table inside a parent table). I am not
really familiar with the data relations and not sure how to represent
this relation.
I did create a schema and it looks good on paper, but when I create a
dataset from this schema it does not allow me to write to the child
table. I am elaborate more if required.
This is what my schema looks...
|
by: lcourchesne |
last post by:
Hi there,
This is what I am trying to do:
Create a query that will insert a column from Table 2 into Table 1. These two tables are exactly the same in structure, however, there is no unique identifier in either table. For example, Table 1 has fields called Broker Number, Category, and Total Amount, and Table 2 also has fields called Broker Number, Category, and Total Amount. Broker Number and Category are identical in both tables,...
|
by: Alvin SIU |
last post by:
Hi all,
I am using DB2 in AIX.
I have a master table
and a txn table.
The master table has many many records.
Each month, there is a new txn table.
|
by: oranoos3000 |
last post by:
hi
I have a table with large height
and inside of this large table
i have only one table with small height
in show small height table is shown in middle of space of large table
and have blank space befor and after small table
I want small table appear in top of space of large table
and blank space is appear in bottom of small table inside large table
what do I have to do?
thanks alot
|
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: 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: 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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |