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

DB2 Sql Code=-327


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

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Wed Aug 29, 2007 11:36 pm
Reply with quote

Hi,

We havent specified any constraint on a field 'SER_DATE' of the DB2 table. (which is type of DATE ).But its not allowing to insert data greater than a range(say 2010-01-31).The field is an indexed one. how to identify the constraint specified on indexed field?

regards,
Nagu
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Wed Aug 29, 2007 11:53 pm
Reply with quote

it is not a constraint. It is a partition boundry violation. If you think you are trying to INSERT into the correct partition, you need to look at the Partition definition parms.
Back to top
View user's profile Send private message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Thu Aug 30, 2007 12:04 am
Reply with quote

Thank you.I have some doubts...

1)how the partioned will be chosen to insert the data?
2)will it based on date? how to identify the boundary specified in the partioned(range)?

regards,
Nagu
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Thu Aug 30, 2007 12:17 am
Reply with quote

Start with the DDL that created the tables.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Thu Aug 30, 2007 12:24 am
Reply with quote

sorry, actually what you need is the partitioning index definitions. which are also ddl.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6965
Location: porcelain throne

PostPosted: Thu Aug 30, 2007 12:33 am
Reply with quote

Here is the doc for SYSIBM.SYSINDEXPART
Which contains the Limitkey for the partition.

Here is sample SQL to access the rows containing info for your table.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts purge jobs with return code 0 and ret... JCL & VSAM 6
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:


Back to Top