Page 1 of 1

Handling KeyMgtGetNextValue() while moving machines

Posted: Wed Feb 11, 2004 8:26 am
by raju_chvr
I have the worst case of moving one of our Production boxes to a new machine as their is some kind of hardware issue.

We have some 40-50 tables which are using KeyMgtGetNextValue() to insert the Surrogate keys. I can go into the ware house and get the max()values and start the keys from that point. but it is a very tedious process.

Is there any way I can get hands on the table which stores the KeyMgtGetNextValue()'s in the DS Universe ?

Excuse me if it already posted. I did some quick search and didn't find this issue.

Re: Handling KeyMgtGetNextValue() while moving machines

Posted: Wed Feb 11, 2004 1:25 pm
by raju_chvr
Can some one look at this post ... please

Posted: Wed Feb 11, 2004 1:49 pm
by chulett
If you look at the source for the routine in question, you can see that it uses a Hash file called "SDKSequences". In the absense of some back-door Universe methodology for transferring the contents from one Project to another, I would think it would be fairly straight-forward to write two DataStage jobs - one to dump its contents to a flat file and then another to populate it from that flat file after you transfer it to the new server.

I'd run KeyMgtGetNextValue once on your new machine so that it can create it with the specs it wants, either that or make you create it using the same command as in the source code:

Code: Select all

EXECUTE "CREATE.FILE SDKSequences 2 1 1"
FYI - This is from a Version 6 server.

Posted: Wed Feb 11, 2004 2:26 pm
by raju_chvr
Thanks that worked !!