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

A unique key field accepting duplicate key


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Chennai

PostPosted: Tue Jul 13, 2010 12:02 pm
Reply with quote

Hi all,

I've something interesting to solve now.

I've an IMS DB with one single segment and one single field defined in it, which acts as the key for the segment and defined as unique key.

Just to give you a brief background, the database of interest (is in test region)was recently refreshed from the production databases. And once after the refresh is done the database is allowing the insertion of duplicate keys.

I'll detail you the scenario.

* If I try to repeat any record using IMS FM, it is allowing the duplicated record without any 'II'.
* But if I again try to insert this duplicate (i.e. 3 same records to be added), it is throwing an 'II'
* Similarly I added a new record to the DB. And when I tried to browse through the DB, interestingly this record is not shown up.
* But when I tried to reinsert this record, 'II' is being thrown.
* The same is the case when trying with a job to insert records.

It is quite strange to my knowledge. Is there any chance that the key constraints are not properly registered in the DB when the refrsh happened? The DBD definition of the DB is too simple such that no chance of anything going wrong.

Also I've checked the Refresh jobset up, DBRC components and all.
I could not find anything wrong.

Can anyone of you please help me out in this?

Thanks in advance,
Reni
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 13, 2010 7:33 pm
Reply with quote

Hello,

Suggest you work with your dba to determine what has been broken (or at least bent).
Back to top
View user's profile Send private message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Chennai

PostPosted: Tue Jul 13, 2010 8:42 pm
Reply with quote

Thanks Dick Sch.
But I requested for the solution, expecting some DBAs from the forum could help on this, as our DBA team is also finding this problem as tough.

Anyone from the team can help me on this?

Thanks,
Reni.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 13, 2010 8:56 pm
Reply with quote

Hello,

Yes, we know you wanted a solution. When your request went for 8 hours with no response, i suggested following the course that usually gets answers quicker anyway.

If you had already presented this to your dbas and got no answer, it would have been good to mentoin this. . .

From what you have posted so far, it sounds like there is an out-of-sync - i.e. there may be 2 sets of data in play.

If all else fails, contact IBM support.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
Search our Forums:

Back to Top