IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Concept of Auxiliary tables in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
d_pansare

New User


Joined: 25 Apr 2009
Posts: 20
Location: Pune

PostPosted: Mon Aug 10, 2009 11:57 am
Reply with quote

Hi All

I would like to get more in depth information about Auxiliary tables. As of now all I know is auxiliary tables are required if table contains column of data type Large Object (LOB). Auxiliary tables are created on these base tables and pointer is placed in base table. So ultimately actual LOB column data is saved in Auxiliary table and not in respective LOB column of base table.

I wanted some more information for following points. Can anyone tell me about these things or let me know the links where I can get more insight?

1. When I want to insert some large object in LOB column then whether I shall insert in into base table or Auxiliary table. If it is just base table then how it will be inserted in Auks table.

2. What will happen when row is deleted from base table. Will it delete the corresponding row from Auks table.

3. When I run rerig, all the unused space will be reclaimed in case of base table. How the same processing can be done for Auks table.

4. Can I run Load, unload, rerig etc utilities for Auks tables.

Please note that I looking for this information which is specific or relevant to Db2 v8. It would be really great if you can share your expertise on this topic.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Aug 10, 2009 2:52 pm
Reply with quote

d_pansare,

Quote:
1. When I want to insert some large object in LOB column then whether I shall insert in into base table or Auxiliary table. If it is just base table then how it will be inserted in Auks table.

Insert the data into the base table, DB2 will take care of the rest.

Quote:
2. What will happen when row is deleted from base table. Will it delete the corresponding row from Auks table.

Delete from base table, DB2 will do the rest.

Quote:
3. When I run rerig, all the unused space will be reclaimed in case of base table. How the same processing can be done for Auks table.
Do it as a separate task.


Refer to utility reference manual.

Sushanth
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Need to fetch data from so many DB2 t... DB2 9
No new posts How to: PK does not exist in several ... DB2 6
No new posts Discrepancy b/w SYSIBM tables and BMC... DB2 0
No new posts SYSIBM Tables Query DB2 8
No new posts Column names in SYSIBM tables DB2 5
Search our Forums:

Back to Top