Hello Izz,
In CA Support we typically use the pdm_key_refresh command to fix something that has gone wrong with the Key Control Table. It is (a) typically a "safe" script to run and (b) only used when the data sequence is corrupt, that is, not much else to lose.
We would typically avoid touching the Key Control Table at all except at system creation time. All subsequent data loads that then come in through standard integration points (via pdm_loads, Web Services, emails, AHD.dll etc etc) which will maintain the integrity of the Key Control Table.
My general experience is that those documentation warnings are not put in lightly - if it is there, then someone has corrupted their data. Although note that the warning is about changing the Key Control Table, not about running the command.
Having said that, we're not CA Services, so we don't see the side where this may be a 'common practice' to keep sites running with current data.
I'll refer you to (wait a second after clicking it for the jump within the page to occur) which speaks about the pdm_key_reference command and which links off to a useful TEC document.
I see you have an issue open with CA Support. If you'd like the CA Engineering perspective on "the interaction between the pdm_key_refresh command and manual changes to the id field of the usp_lrel_asset_chgnr table" then I suggest we let that run. Our Support understanding is that the pdm_key_refresh does a scan of data tables, and then updates the Key Control Table, but you don't know until you ask what else is going on.
You may want to give some more explanation of how this works at the moment - do you leave the system OPEN for access for three hours AND have id updates running at the same time THEN do a pdm_key_refresh at the end of that? That seems a recipe for clashes to tables occurring. Also update the case with the database type and version, and anything else site specific to that location.
Hello Everyone Else,
Any sites that have similar experience on the pdm_key_refresh for regular use?
Thanks, Kyle_R.