What is reorg in DB2

Answers were Sorted based on User's Feedback



What is reorg in DB2 ..

Answer / harish

Reorg is needed whenever indexed columns are updated frequently.

When indexed columns are updated frequently, then the index
for the table has to be created again.

So REORG utility is run which will drop the index and create
the index again for the table.

Is This Answer Correct ?    36 Yes 5 No

What is reorg in DB2 ..

Answer / srini

REORG will reorganise the records as per the clustered
Index/index fields,so that the system can access records
easily thru which the access cost will come down
drastically,so its always advisable to run REORG after
every mass inserts/updates/deletes on table.

Is This Answer Correct ?    30 Yes 9 No

What is reorg in DB2 ..

Answer / vivekk ram

when ever a record is deleted, it marks the record to be deleted but the physically it is not deleted in db. So using reorg command is ran, it physically deletes the record from db.

Please correct me, if i'm wrong..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

i have an employment table whch has salary,dept,name? i want salary b/w 1000 to 5000 can anyone pls say the query for ths ?

8 Answers   Cap Gemini, CGI, EDS, IBM, Satyam, Wipro,


How to view db2 table structure?

0 Answers  


Explain how can you do the explain of a dynamic sql statement?

0 Answers  


What is a synonym ?

2 Answers  


in the CURSOR declare statement, if i am using an where clause and trying to compare the value with a host-varialble. EXEC SQL DECLARE C1 CURSOR FOR SELECT DEPTNO, DEPTNAME, MGRNO FROM DEPARTMENT WHERE ADMRDEPT = :ADM-DEPT Where would i need to provide value to this host-variable in the where clause. how could i pass value to this host-variable to check it.

2 Answers   iGate,






What is a cursor?

2 Answers  


What is the difference between base table and view?

7 Answers  


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

0 Answers  


What is the role of data manager in the db2 database?

0 Answers  


What is the maximum size of varchar data type in db2?

0 Answers  


What does db2 stand for?

0 Answers  


What is the use of db2 optimizer?

0 Answers  


Categories