If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to create indexes in a new tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-03, 06:29
kollisri kollisri is offline
Registered User
 
Join Date: Aug 2003
Posts: 14
how to create indexes in a new tablespace

Hi,
I have few tables and few indexes to be created in DB2 v8.1.2 over linux.

I have created 2 tablespaces(DMS) TBS1 & TBS2
I have created the tables in tablespace1 i.e TBS1
Now how can i create the indexes(both normal,unique) indexes in the other tablespace i.e TBS2.

The documentation says that when we create DMS tablespaces,we have the option of moving or creating the indexes in another tablespace.

Can anyone give me examples of creation of normal and unique indexes in a separate tablespace other than the one created for tables.

Any help is appreciated.

Sri
Reply With Quote
  #2 (permalink)  
Old 10-18-03, 16:10
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
The specification of which tablespace to use for indexes is made in the CREATE TABLE statement (assuming that DMS is used for the tablespace used by the table). Check out the SQL Reference for details.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On