Maximo Wire - The IBM Maximo Help & Discussion Forum
February 08, 2012, 02:35:14 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Managing Sequence Numbers  (Read 2435 times)
0 Members and 1 Guest are viewing this topic.
kiethboots
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: April 21, 2008, 06:51:19 am »

I find that sequence numbers for certain unique ids get mixed up. Occasionally these cause duplicate key row issues. I would have assumed that these numbers stay in a correct sequence. At the moment I have to shut down the server, and replace the the maxsequence number for a particular unique id with a larger number, to increment the sequence number, hence (xxxx.Nextval) greater than the maximum in the core table. Maybe i don't understand how sequence numbers are determined, incremented or changed by Maximo. What causes sequence numbers to get out of sequence, and how do i manage this?
Logged
amdisuk
Administrator
Full Member
*****

Karma: -1
Posts: 198


allandonaldson@hotmail.com
View Profile WWW
« Reply #1 on: April 21, 2008, 07:04:16 am »

I have never seen sequence numbers getting out of sequence with Maximo Mbo's before. Is the sequence problem on a custom mbo? Basically every time a record is inserted into the a tyable the sequence number 'should' be incremented. This sounds to me like you have some custom code that is inserting records but not incrementing the sequence number for that table.

Al
Logged

Big Al
amdisuk
Administrator
Full Member
*****

Karma: -1
Posts: 198


allandonaldson@hotmail.com
View Profile WWW
« Reply #2 on: April 21, 2008, 07:05:37 am »

Depending on the table, it sounds like your sequencing is working generally. Otherwise you weould be getting lots of these errors.
Logged

Big Al
kiethboots
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #3 on: April 21, 2008, 07:51:57 am »

Its not on a custom table, its on the joblabor table, joblaborid. How can sequence numbers be changed through the application (if there is a way)? Are there other ways to change it manually? I am not aware of the history of this system, but I have been told that is a vanila system (i.e. no significant customisations). Is manually changing the maxsequence table the best approach?
Logged
amdisuk
Administrator
Full Member
*****

Karma: -1
Posts: 198


allandonaldson@hotmail.com
View Profile WWW
« Reply #4 on: April 21, 2008, 04:27:43 pm »

It sounds strange to me. I would check that the sequence table is indeed working correctly. Insert a record and see that the sequence increments. If it does then you must have some custom code (maybe some raw sql code) that is inserting records. If the sequence doesn't work then obviously that is the place to look. Have a look at the record insert trigger and see that it is enabled and working.

Al
Logged

Big Al
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 299



View Profile WWW
« Reply #5 on: July 01, 2009, 02:10:31 pm »

for every table sequence no is based on site and orgid if the table is site or org level.. for different sites same sequence no may be generated.... if you want different sequence no's for different sites or orgs you have to modify autokey table...

query would look like
Update autokey set seed = ‘100000’ where orgid=’EAGLENA’ and autokeyname=’PRNUM’


where seed is the base value where the sequencing will start and autokeyname is the name of the table...

give large different in seed for different orgs or sites..
Logged

regards,

Ethen...
jyoti sukhani
Newbie
*

Karma: 2
Posts: 21


View Profile Email
« Reply #6 on: May 03, 2010, 11:55:15 am »

Hi

If you are working in maximo 7

than you can do the squencing in organisation application select action also
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 299



View Profile WWW
« Reply #7 on: May 04, 2010, 07:40:01 pm »

yeah ryt...  Smiley but i guess there are some limitations there..
Logged

regards,

Ethen...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!