Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
A unique key field accepting duplicate key

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Bangalore

PostPosted: Tue Jul 13, 2010 12:02 pm    Post subject: A unique key field accepting duplicate key
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

Site Director


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

PostPosted: Tue Jul 13, 2010 7:33 pm    Post subject:
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: Bangalore

PostPosted: Tue Jul 13, 2010 8:42 pm    Post subject:
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

Site Director


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

PostPosted: Tue Jul 13, 2010 8:56 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us