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 > Few Queries?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-09, 01:37
denisvenis denisvenis is offline
Registered User
 
Join Date: Dec 2008
Posts: 29
Few Queries?

1.
If DB2 table is having composite primary key,can one OF THE key column among them be NULLABLE?

2.
The table controlled partition is applied using PARTITION BY keyword while creating tables,
while index controlled partion is implemented using part values.
In index controlled partions,only one partioned index cab exists, but in table controlled partitions any number of partitioned index can exists.
I.E if we does not creates the table with partitions by clause and creates partitioned index with part by values.If again we tried to create partitioned index, will it give error?
If yes then what type of error?
Can we create partitioned index only in partitioned tablesspace? not simple tablespace?

3.
Can anyone pass good documents on alter and rotate partition,what are the various states the last or any partition will be while altering or rotating partitions?

4.
While loading data into table,if load job failed then at what pending state table will be?
and how to resolve that pending state?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 12-16-09, 07:41
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
1. No. The SQL standard requires that columns in a primary key must not be nullable.

2. There is a difference between "partitioning" indexes and "partitioned" indexes. The former defines the partitioning of a table while the latter just states that the index itself is partitioned (but does not define the partitioning of the rows in the table) - completely different concept despite the similar name.

3. Have a look at the DB2 manual. It documents those commands and how they work.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 12-17-09, 03:52
denisvenis denisvenis is offline
Registered User
 
Join Date: Dec 2008
Posts: 29
Hi Stolze,

Thanks for reply.
Can you please answer 4th question also.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 12-17-09, 07:28
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
4. It depends:

If the problem occurred while you load data into the tablespace, the tablespace will most probably by in "recover pending". If the problem occurred during index build, the index spaces are in "rebuild pending". Additionally, the tablespace may be in check pending if RI constraints are involved and need to be verified in case the LOAD abended before the check could be done.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 12-17-09, 17:24
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by denisvenis View Post
While loading data into table,if load job failed then at what pending state table will be? and how to resolve that pending state?
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows
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