DSE provides the FIND command and the RANGE command for locating information.
When you have terminated all processes, do a MUPIP RUNDOWN on all database files:
mupip rundown -file <name of database>
![]() | Caution |
---|---|
Use ipcrm with extreme care, as removing the wrong resources can have disastrous results. |
ipcs IPC status from /dev/kmem as of Sat Feb 16 13:13:11 1999 T ID KEY MODE OWNER GROUP Shared Memory: m 1800 0x01021233 --rw-rw-rw- uuu dev m 91 0x01021232 --rw-rw-rw- uuu dev Semaphores: s 1360 0x01021233 --ra-ra-ra- uuu dev s 61 0x01021232 --ra-ra-ra- uuu dev
Check the integrity of the database:
mupip integ -file <name of database>
The conditions that lead to an LDSPANGLOINCMP error are as follows:
Case SN1 - While loading a spanning node the next record contained a non-spanning node: "Expected chunk number : ccccc but found a non-spanning node"
The partial value can be used as the basis for reconstructing the spanning node.
Case SN2 - While loading a spanning node the next record did contain the expected chunk: "Expected chunk number : ccccc but found chunk number : ddddd"
Case SN3 - Not loading a spanning node but found a record with a spanning node chunk: "Not expecting a spanning node chunk but found chunk : ccccc"
Case SN4 - While loading a spanning node adding the next chunk caused the value to go over expected size: "Global value too large: expected size : sssss actual size : tttttt chunk number : ccccc"
"Expected size : sssss actual size : ttttt
All of the chunks were found but the size of the value is not what was expected.
Here is an example for repairing an error in a binary extract.
Assume that during the load of a binary extract, you get the following error:
%GTM-E-LDSPANGLOINCMP, Incomplete spanning node found during load at File offset : [0x0000027E] Expected Spanning Global variable : ^mypoem Global variable from record: ^mypoem(#SPAN32) Expected chunk number : 3 but found chunk number : 32 Partial Value : "Half a league, half a league,Half a league onward,All in the valley of Death Rode the six hundred. Forward, the Light Brigade! Charge for the guns he said: Into the valley of Death Rode the six hundred. Forward, the Light Brigade! Was there a man dismayed? Not tho the soldiers knew Some one had blundered: Theirs not to make reply, Theirs not to reason why, Theirs but to do and die: Into the valley of Death Rode the six hundred. Cannon to right of them, Cannon to left of " Errant Chunk : "them, Cannon in front of them Volleyed and thundered; Stormed at with shot and shell, Boldly they rode and well, Into the jaws of Death, Into the mouth of Hell Rode the six hundred. Flashed all their sabres bare, Flashed as they turned in air Sabring the gunners there, Charging an army while All the world wondered: Plunged in the battery-smoke Right thro the line they broke; Cossack and Russian Reeled from the sabre-stroke Shattered and sundered. Then they rode back, but no" %GTM-E-LDSPANGLOINCMP, Incomplete spanning node found during load at File offset : [0x00000470] Global variable from record: ^mypoem(#SPAN4) Not expecting a spanning node chunk but found chunk : 4 Errant Chunk : "t Not the six hundred. Cannon to right of them, Cannon to left of them, Cannon behind them Volleyed and thundered; Stormed at with shot and shell, While horse and hero fell, They that had fought so well Came thro the jaws of Death, Back from the mouth of Hell, All that was left of them, Left of six hundred. When can their glory fade? O the wild charge they made! All the world wondered. Honour the charge they made! Honour the Light Brigade, Noble six hundred!"
$ $gtm_dist/mumps -direct
From the first error message pick :
Expected Spanning Global variable : ^mypoem
Use it together with the partial value:
GTM>set ^mypoem="Half a league, half a league,Half a league onward,All in the valley of Death Rode the six hundred. Forward, the Light Brigade! Charge for the guns he said: Into the valley of Death Rode the six hundred. Forward, the Light Brigade! Was there a man dismayed? Not tho the soldiers knew Some one had blundered: Theirs not to make reply, Theirs not to reason why, Theirs but to do and die: Into the valley of Death Rode the six hundred. Cannon to right of them, Cannon to left of "
Add in the chunk that has the bad internal subscript:
GTM>set ^mypoem=^mypoem_"them, Cannon in front of them Volleyed and thundered; Stormed at with shot and shell, Boldly they rode and well, Into the jaws of Death, Into the mouth of Hell Rode the six hundred. Flashed all their sabres bare, Flashed as they turned in air Sabring the gunners there, Charging an army while All the world wondered: Plunged in the battery-smoke Right thro the line they broke; Cossack and Russian Reeled from the sabre-stroke Shattered and sundered. Then they rode back, but no"
Finally, add the last chunk for that spanning node:
GTM>set ^mypoem=^mypoem_"t Not the six hundred. Cannon to right of them, Cannon to left of them, Cannon behind them Volleyed and thundered; Stormed at with shot and shell, While horse and hero fell, They that had fought so well Came thro the jaws of Death, Back from the mouth of Hell, All that was left of them, Left of six hundred. When can their glory fade? O the wild charge they made! All the world wondered. Honour the charge they made! Honour the Light Brigade, Noble six hundred!"
You have successfully reconstructed the global from the damaged binary load:
GTM>w ^mypoem Half a league, half a league,Half a league onward,All in the valley of Death Rode the six hundred. Forward, the Light Brigade! Charge for the guns he said: Into the valley of Death Rode the six hundred. Forward, the Light Brigade! Was there a man dismayed? Not tho the soldiers knew Some one had blundered: Theirs not to make reply, Theirs not to reason why, Theirs but to do and die: Into the valley of Death Rode the six hundred. Cannon to right of them, Cannon to left of them, Cannon in front of them Volleyed and thundered; Stormed at with shot and shell, Boldly they rode and well, Into the jaws of Death, Into the mouth of Hell Rode the six hundred. Flashed all their sabres bare, Flashed as they turned in air Sabring the gunners there, Charging an army while All the world wondered: Plunged in the battery-smoke Right thro the line they broke; Cossack and Russian Reeled from the sabre-stroke Shattered and sundered. Then they rode back, but not Not the six hundred. Cannon to right of them, Cannon to left of them, Cannon behind them Volleyed and thundered; Stormed at with shot and shell, While horse and hero fell, They that had fought so well Came thro the jaws of Death, Back from the mouth of Hell, All that was left of them, Left of six hundred. When can their glory fade? O the wild charge they made! All the world wondered. Honour the charge they made! Honour the Light Brigade, Noble six hundred!