473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Index length of in the DB2v9.

2
Hi,

I'm trying to create a table with a unique index consits of 5 columns with the datatypes ( VARCHAR(80), VARCHAR(144), VARCHAR(1020), VARCHAR(1020), VARCHAR(1020)). But my create table structure is failing as my primary key length is getting exceeded. But I've defined my page size as 32K. which means I can create an index with a length of 8K, but my key size is less than 8k. Can you please suggest me what could be the problem?

Your answer for this is highly appriciated.

Thanks & Regards,
Vamsi
Nov 30 '11 #1
3 1981
Rabbit
12,516 Expert Mod 8TB
Indexes have overhead, and that can count against your max. It is also affected by index options.

This article by IBM discusses the limits of SQL and XML.
http://publib.boulder.ibm.com/infoce...2Fr0001029.htm
Nov 30 '11 #2
vamsi
2
Hi Rabbit,

Thanks for the response. I had gone through this and found that it is quarter of the page size. I've declared my bufferpool as BP32K and hence I'm exepcting that it should accept a length of 8K. But it is still failing with a SQLCODE of -613.

Thanks & Regards,
Vamsi
Dec 1 '11 #3
Rabbit
12,516 Expert Mod 8TB
You didn't read it carefully enough. The maximum is a fourth of your index page size. However, it also says it's unlikely you can ever get that max because of index options and overhead. You think it's a fourth, but it's not it can be considerably less than that.
Dec 1 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Thorsten Kampe | last post by:
What is the best way to find out the length of an iterator? len() doesn't work. In the above code snippet I am only interested in the index (= length of the iterator), so I'm using...
7
by: Robert Mark Bram | last post by:
Hi All! How do you get the length of an associative array? var my_cars= new Array() my_cars="Mustang"; my_cars="Station Wagon"; my_cars="SUV"; alert(my_cars.length);
3
by: Eric Davies | last post by:
We've implemented a 5D box data type and have implemented both RTree and GiST access methods under PostgresSQL 7.4 and PostgresSQL 7.4.1. The 5D box internally looks like: struct Box5D{ float...
13
by: coinjo | last post by:
Is there any function to determine the length of an integer string?
2
by: Martin v. Löwis | last post by:
I've been working on PEP 353 for some time now. Please comment, in particular if you are using 64-bit systems. Regards, Martin PEP: 353 Title: Using ssize_t as the index type Version:...
2
by: Gidi | last post by:
Hello, I've a strange problem with substring function. I'm geting a string from my SQL DataBase and i want to split it to two substings. here is what i do: if(temp.Length>80 &&...
24
by: garyusenet | last post by:
I'm working on a data file and can't find any common delimmiters in the file to indicate the end of one row of data and the start of the next. Rows are not on individual lines but run accross...
0
by: Rajesh Kumar Joshi | last post by:
I have a table with only 1 column as Table : profileTable //-------------- profile XML; //-------------- A sample content of XML file is <sampleprofile name="joe" version="A123">...
2
by: paulablanca | last post by:
Hi! I have lots of problems here. I have here my codes for form validations and my problems are after submitting and there were errors, the page must be return to the index and retain it's values....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.