473,386 Members | 1,766 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.

DB21034E

DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL20075 The index "SQL050303003553230" cannot be created or altered
because
the length of "CDE_DESC" is more than 255 bytes. SQLSTATE=54008

PS: it occurs on Sun Solaris 7 and db2 version 6.1

please give me the solution..
thanks for your help...

jacelyn

--
Message posted via http://www.dbmonster.com
Nov 12 '05 #1
4 5397
"jacelyn Yswan via DBMonster.com" <fo***@DBMonster.com> wrote in message
news:58******************************@DBMonster.co m...
DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned:
SQL20075 The index "SQL050303003553230" cannot be created or altered
because
the length of "CDE_DESC" is more than 255 bytes. SQLSTATE=54008

PS: it occurs on Sun Solaris 7 and db2 version 6.1

please give me the solution..
thanks for your help...

jacelyn


Solution:

Don't try to create or alter index using a column that is greater than 255
bytes.
Nov 12 '05 #2
but i need to alter index using a column that is greater than 255
bytes. so, what other solution you can give me?, if i really need to do
so...

please help!!

thanks..

--
Message posted via http://www.dbmonster.com
Nov 12 '05 #3
"jacelyn Yswan via DBMonster.com" <fo***@DBMonster.com> wrote in message
news:ec******************************@DBMonster.co m...
but i need to alter index using a column that is greater than 255
bytes. so, what other solution you can give me?, if i really need to do
so...

please help!!

thanks..


In version 8, you can have up to 1024 bytes (including column overhead).

The only other solution that I know is to create a new column which contains
the first 255 bytes of the column you want to index, and index the new
column.
Nov 12 '05 #4
"jacelyn Yswan via DBMonster.com" <fo***@DBMonster.com> a écrit dans le
message de news:ec******************************@DBMonster.co m...
but i need to alter index using a column that is greater than 255
bytes. so, what other solution you can give me?, if i really need to do
so...

please help!!

thanks..

--
Message posted via http://www.dbmonster.com


DB2 Version 7.2 allows columns with a length greater than 255 bytes to be
specified as part of an index key. A larger index key has a positive effect
on the usefulness of an index. The DB2_INDEX_2BYTEVARLEN registry variable
allows for the use of two bytes instead of one to store the length of an
index key. To convert existing indexes to use larger index keys: drop the
indexes, set the DB2_INDEX_2BYTEVARLEN registry variable to ON, then
recreate the indexes (using the larger columns).

HTH,

Jean-Marc
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Amy DBA | last post by:
OK, I'm stumped now. I need help restoring a tablespace that has been marked offline. Here's a little background on the problem: 1) There was a hardware failure that caused the tablespace to...
1
by: Maria | last post by:
Hello we got a script automatically generated to populate a table that belongs to a partition table, then while executing we get this error message: "DB21034E The command was processed as an...
7
by: cbielins | last post by:
So yea... I rm-ed a rlv that our TS_FACT2 tblspace was using. So our db went to the crapper. The tblspace didn't have any pertinent info, so I'm ok with dropping the tblspace and starting over. ...
11
by: Chris | last post by:
I have searched this group for answers and tried the responses. I am trying to Use an full online backup from our production server and apply it to our test server. The Tablespaces in the...
8
by: Ian Mackenzie | last post by:
Hi Guys I am VERY new to DB2 and have created a workingdays function to return the working days between 2 dates, but I get some compiler errors when running it: CREATE FUNCTION WORKINGDAYS...
2
by: kya2 | last post by:
I am not able to create following store procedure. CREATE PROCEDURE DBSAMBA.InsertDeleteBatch(OUT norows INT ) RESULT SETS 1 LANGUAGE SQL BEGIN part1 DECLARE TOTAL_LEFT INT DEFAULT 0; ...
4
by: saravananmc | last post by:
Hi All, I am new to Stored Procedures, Cursors. I am getting an error "DB21034E The command was processed as an SQL statement because it was invalid Command Line Processor command. During SQL...
0
by: ccoq | last post by:
I received the below error message when I ran this command ALTER TABLE WAC.SUPPRESSED_CUSTOMER ALTER COLUMN CUSTOMER_ID SET DATA TYPE VARCHAR(28) DB21034E The command was processed as an SQL...
4
by: =?ISO-8859-2?Q?Gregor_Kova=E8?= | last post by:
Hi! My trigger looks like this: CREATE TRIGGER REVIZIJA.T_1_AU AFTER UPDATE ON TABLE1 REFERENCING OLD O NEW N FOR EACH ROW MODE DB2SQL BEGIN ATOMIC
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.