IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is SQLCODE=-803 Error?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satish_mf

New User


Joined: 19 Mar 2007
Posts: 1
Location: chennai

PostPosted: Tue Mar 20, 2007 2:21 pm
Reply with quote

can anyone tell me how to solve the following error :

SQLCODE = -803, ERROR: AN INSERTED OR UPDATED VALUE IS
INVALID BECAUSE INDEX IN INDEX SPACE "..." CONSTRAINS
COLUMNS OF THE TABLE SO NO TWO ROWS CAN CONTAIN DUPLICATE
VALUES IN THOSE COLUMNS. RID OF EXISTING ROW IS X'0000A0490C

Also let me know how to view the index space??
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Tue Mar 20, 2007 2:36 pm
Reply with quote

Hi,

You are trying to insert a row with primary key value which is already present in the table, That's why you are getting -803.




Sai
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Wed Mar 21, 2007 1:22 pm
Reply with quote

I see that you have masked the index name in the message.
Run the following query,

SELECT * FROM SYSIBM.SYSKEYS
WHERE IXNAME = 'XXXX'
where xxxx is the index name which you got from the error message.
You could get the column names which are defined as unique/Primary for that table.
So it means that Not more than one row can have the same value.
It has to be unique. Hope this helps
Back to top
View user's profile Send private message
sachin_star3
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 78
Location: pune

PostPosted: Sun Apr 08, 2007 3:18 pm
Reply with quote

THIS IS WHEN YOU VIOLATE THE PRIME KEY

YOU HAVE CREATE THE TABLE AND ONE COLOUMN WITH PRIMARY KEY

AN D WHEH WE INSERT THE SAME DATA IN THE PRIMARY KEY COLOUMN
SO YOU WIIL GET THE -803
I.E SAME FILE STATUS 22 IN COBOL

FROM-SACHIN BORASE
PUNE
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top