What is REORG? When is it used?

Answer Posted / mehdee

REORG INDEX
The online REORG INDEX utility reorganizes an index space
to improve access performance and reclaim fragmented space.
You can specify the degree of access to your data during
reorganization, and you can collect inline statistics by
using the STATISTICS keyword.

REORG TABLESPACE
The online REORG TABLESPACE utility reorganizes a table
space to improve access performance and to reclaim
fragmented space. In addition, the utility can reorganize a
single partition or range of partitions of a partitioned
table space.
Traditionally, tablespace reorg consists of the following
steps:
• unload of the data
• redefinition of the tablespace
• reload of the data
• rebuild of the indexes

Now that we know what it dose, it is a DBA person to run
it as required.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of database is db2?

574


What does db2 mean?

589


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

706


What is temporal table in db2?

605


What type of database is db2?

527






What is explain in db2?

585


Explain the benefits you can get from mainframe connect?

522


Which components manage deadlocks in db2?

615


How do I optimize a query in db2?

624


How many databases can be created inside an instance in db2 ?

605


How connect db2 database to datastage?

765


How to check last update on table in db2?

629


SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.

2155


Can one database have multiple instances?

583


What do you mean by storage group (stogroup)?

583