| |
|
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.
|
 |

02-21-06, 09:35
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 54
|
|
|
How to create table with partition range?
|
|
I find this statement, but it's not correct for Udb v8:
alter table tabella add partition by range (chiave)
( STARTING(MINVALUE) ENDING AT (99999999999999999) INCLUSIVE,
STARTING(100000000000000000) ENDING AT (199999999999999999) INCLUSIVE,
STARTING(200000000000000000) ENDING AT (299999999999999999) INCLUSIVE,
STARTING(300000000000000000) ENDING AT (MAXVALUE)
);
I would to create 4 range for a table not partitioned... it's possible?
Thank you..
Fabio
|
|

02-21-06, 09:57
|
|
Super Moderator
|
|
Join Date: Aug 2001
Location: UK
Posts: 4,534
|
|
No range partitioned table in V8 ..
Allegedly, it is in V9
Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
|
|

02-21-06, 10:03
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 54
|
|
|
|
Oh no!!!
Have you idea about the date of new release?
Thank you!
Fabio
|
|

02-21-06, 10:04
|
|
Super Moderator
|
|
Join Date: Aug 2001
Location: UK
Posts: 4,534
|
|
BTW, an alternative to Range Partitioning is Union All views ...
create tabella_r1 (col1 int <check constraint for the range>,col2 int)
create tabella_r2 (col1 int <check constraint for the range>,col2 int)
create view tabella as
select * from tabella_r1
union all
select * from tabella_r2
etc ....
You can, INSERT, UPDATE and DELETE using the view .. If you are using a recent fixpak, UPDATE of the 'partiioning key' is also possible ... Row movement between tables happens behind the scenes ...
Being a view, there are limitations -
a) Load not possible
b) If your select query does not include the partitioing key in the predicate, in many cases, the optimizer decides to do a Union All before evaluating your predicate which obviously is a performance killer
There are some more as well ...
This approach is an alternative to range partitioning, but not real range partitioning
Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
|
|

02-21-06, 10:05
|
|
Super Moderator
|
|
Join Date: Aug 2001
Location: UK
Posts: 4,534
|
|
tentatively, end of Q3/ early Q4
Quote:
|
Originally Posted by petitof
Oh no!!!
Have you idea about the date of new release?
Thank you!
Fabio
|
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
|
|

02-21-06, 10:53
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 54
|
|
I'll speak with my boss about this!!!
Bye and Thanks very well!!
|
|

02-21-06, 15:41
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
You can get a beta copy of V9 now, if you can convice IBM to let you join the beta program. Be aware, that the DB2 beta program in not informal like Microsoft and other vendor beta programs.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

02-21-06, 16:13
|
|
Super Moderator
|
|
Join Date: Aug 2001
Location: UK
Posts: 4,534
|
|
Marcus, Do you know when the 'public' beta starts ?
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
|
|

02-21-06, 17:29
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
I don't think that DB2 usually has public betas.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

02-21-06, 21:43
|
|
Super Moderator
|
|
Join Date: Aug 2001
Location: UK
Posts: 4,534
|
|
I remember one being avaiable under the name 'Stinger' for 8.2 ... Previously I don't remember to have had any ..
Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
|
|

02-22-06, 01:24
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
Quote:
|
Originally Posted by sathyaram_s
I remember one being avaiable under the name 'Stinger' for 8.2 ... Previously I don't remember to have had any ..
Cheers
Sathyaram
|
You are correct, I forgot about that one. I guess it is possible that they have another one for V9, but I have not heard anything.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|