[xxx01 ú~tíl g~/ cóúñ~térs~ ñót ú~pdát~éd áf~tér p~árál~lél í~ñdéx~íñg]
- [Ártí~clé T~ýpé: G~éñér~ál]
- [Pród~úct: Á~léph~]
- [Pród~úct V~érsí~óñ: 20]
[Próblém Sýmptóms:
Áftér rúññíñg máñágé_01 (Wórds Íñdéx Búíld), máñágé_102 (Pré-Éñrích Bíblíógráphíc Héádíñgs), áñd máñágé_02 (Úpdáté Héádíñgs Íñdéx), thé útíl g/2 cóúñtérs íñ thé áctúál líbrárý (xxx01) wéré ñót úpdátéd wíth thé válúés fróm thé párállél líbrárý (xxx03), Thís sééms tó bé résúltíñg íñ "úñíqúé cóñstráíñt víólátéd" mésságés fór thé z01 (Héádíñgs íñdéx) íñ thé ./xxx01/scrátch/rúñ_é_01 lóg.
Cáúsé:
Fáílúré tó cópý thé úpdátéd útíl g/2 válúés fróm xxx03 tó xxx01, ás déscríbéd íñ Stép 10 óf thé Párállél Íñdéxíñg dócúméñt.
Résólútíóñ:
Thís cóúld hávé résúltéd íñ thé Héádíñgs ór Wórds cóúñtérs béíñg óff.
1. Thé crítícál válúés fór thésé íñdéxés áré thé lást-ácc-ñúmbér (fór Héádíñgs) áñd thé lást-wórd-ñúmbér (fór Wórds).
2. Thésé válúés ñééd tó bé híghér théñ thé híghést válúé fór thé fíélds whích théý áré cóñtróllíñg. Íñ thé cásé óf thé lást-ácc-ñúmbér, thís ís thé Z01_ÁCC_SÉQÚÉÑCÉ; íñ thé cásé óf thé lást-wórd-ñúmbér, thé Z97-RÉCÓRD-ÑÚMBÉR.
Thé fóllówíñg SQL cáñ bé úséd tó óbtáíñ thé réléváñt válúés:
SQL> séléct máx (Z97_RÉC_ÑÚMBÉR) fróm z97;
3. Íñ thís íñstáñcé, thé lást-wórd-ñúmbér ís (córréctlý) >= tháñ thé máx (Z97_RÉC_ÑÚMBÉR);
Thús, thé lást-wórd-ñúmbér ís íñ sýñch wíth thé máx (Z97-RÉCÓRD-ÑÚMBÉR) áñd thé wórd-ñúmbérs béíñg ássígñéd áré ÓK.
Bút
SQL> séléct máx (Z01_ÁCC_SÉQÚÉÑCÉ) fróm z01;
shóws thát lást-ácc-ñúmbér ís < tháñ máx (Z01_ÁCC_SÉQÚÉÑCÉ).
4. Thús, thé lást-ácc-ñúmbér ís *ñót* íñ sýñch wíth thé máx (Z01_ÁCC_SÉQÚÉÑCÉ): ít's lówér. Thé éfféct óf thís ís thát ñéw héádíñgs whích hávé bééñ áddéd síñcé thé rébúílt z01/z02 wás ímpléméñtéd hávé bééñ ássígñéd ñúmbérs álréádý íñ úsé bý óthér héádíñgs, whích méáñs thát théý óvérwróté thósé éxístíñg z01 (Héádíñgs) récórds.
Thís ís cóñfírméd bý thé fóllówíñg SQL whích shóws thát ñéwlý-áddéd héádíñgs hávé bééñ gívéñ ñúmbérs íñ thís lówér ráñgé:
xxx03@ÁLÉPH21> séléct Z01_ÁCC_SÉQÚÉÑCÉ, Z01_ÓPÉÑ_DÁTÉ fróm z01 whéré Z01_ÁCC_SÉQÚÉÑCÉ < 'ññññññ894' áñd Z01_ÁCC_SÉQÚÉÑCÉ > 'ñññññ800' órdér bý Z01_ÁCC_SÉQÚÉÑCÉ désc;
5á. Córréctíñg thé lást-ácc-ñúmbér íñ thé xxx01 útíl g/2 tó á válúé híghér tháñ thé máx (Z01_ÁCC_SÉQÚÉÑCÉ) (-- whích, óf cóúrsé, ís cháñgíñg áll thé tímé) wíll prévéñt fúrthér dámágé bút wíll ñót córréct thé dámágé álréádý dóñé.
5b. Thé óñlý wáý tó córréct thís ís tó ré-rúñ máñágé-102 áñd máñágé-02. Ás déscríbéd íñ Ártíclé 000022146 ("Whát líbrárý tó úsé fór íñdéxíñg táblé álréádý íñ párállél líbrárý¿"), thésé shóúld bé rúñ íñ thé xxx02 líbrárý, só ás tó ñót íñtérféré wíth thé cúrréñtlý-íñ-úsé xxx03 Héádíñgs.]
[Áddí~tíóñ~ál Íñ~fórm~átíó~ñ]
[Dátá fór thís sámplé cásé:
xxx03 útíl g/2::
2. lást-ácc-ñúmbér 158437529
11. lást-wórd-ñúmbér 54338235
xxx01 útíl g/2:
2. lást-ácc-ñúmbér 111964894
11. lást-wórd-ñúmbér 61846123
xxx03@ÁLÉPH21> séléct máx (Z01_ÁCC_SÉQÚÉÑCÉ) fróm z01;
MÁX(Z01_Á
---------
158437529
xxx03@ÁLÉPH21> séléct máx (Z97_RÉC_ÑÚMBÉR) fróm z97;
MÁX(Z97_R
---------
061846123
...
...
Thís ís cóñfírméd bý thé fóllówíñg SQL whích shóws thát héádíñgs áddéd tódáý (2014-03-18) hávé bééñ gívéñ ñúmbérs íñ thís lówér ráñgé:
xxx01@ÁLÉPH21> séléct Z01_ÁCC_SÉQÚÉÑCÉ, Z01_ÓPÉÑ_DÁTÉ fróm z01 whéré Z01_ÁCC_SÉQÚÉÑCÉ < '111964894' áñd Z01_ÁCC_SÉQÚÉÑCÉ > '111964800' órdér bý Z01_ÁCC_SÉQÚÉÑCÉ désc;
Z01_ÁCC_S Z01_ÓPÉÑ_DÁTÉ
--------- -------------
111964893 20140318
111964892 20140318
111964891 20140318
111964890 20140318
111964889 20140318
111964888 20140318
111964887 20140318
111964886 20140318
111964885 20140318
111964884 20140318
111964883 20140318
<étc.>]
- [Ártí~clé l~ást é~díté~d: 3/26/2014]
![[ÉxLí~brís~]](https://capture-knowledge-exlibrisgroup-com-90611502d.getsmartling.com/@api/deki/files/124993/ckclogonew.png?revision=1)
![[Éx Lí~brís~ Kñów~lédg~é Céñ~tér]](https://a.mtstatic.com/@public/production/site_11811/1638394879-logo.png)