ページの先頭行へ戻る
Interstage Shunsaku Data Manager トラブルシューティング集

2.4.8 文字コードの誤り

【現象】

shundrecoverコマンドによるリカバリ終了宣言時に、以下のメッセージが出力されリカバリがエラーとなる。


[出力メッセージ]

shn30355u : The data which is not well-formed XML document exists. [shund1]

整形式でないXML文書が存在します。または、データの文字コードに誤りがあります。


【原因】

以下の文字コードが異なっています。

  • システム用動作環境ファイルのCharacterCodeパラメタに設定した文字コード

  • ディレクタデータファイルのバックアップデータの文字コード


【問題発生時の対処方法】

システム用動作環境ファイルのCharacterCodeパラメタに設定した文字コードをディレクタデータファイルのバックアップデータの文字コードに変更後、バックアップデータのリストアからリカバリ処理を再実行してください。


  1. Shunsakuシステムを停止します。


    shunsysstop -n shunsaku (Shunsakuシステム名)
    shn30579i:Stopping Shunsaku system. [shunsaku]
    shn30582i:Stopping conductor. [shunsaku]
    shn30583i:Stopping sorter. [shunsaku]
    shn30584i:Stopping director. [shunsaku]
    shn30580i:Shunsaku system has been stopped. [shunsaku]

  2. システム用動作環境ファイルのCharacterCodeパラメタを正しい文字コードに変更し、全サーバに配布します。


  3. Shunsakuシステムを起動します。


    shunsystart -n shunsaku (Shunsakuシステム名)
    shn30567i:Activating Shunsaku system. [shunsaku]
    shn30573i:Activating director. [shunsaku]
    shn30572i:Activating sorter. [shunsaku]
    shn30571i:Activating conductor. [shunsaku]

  4. リカバリ開始宣言を行います。


    shundrecover -s shund1 -b
    shun: INFO: shn21001i: Starting process... [shund1] shun: INFO: shn30327i: Recovery start declaration processing has been completed. [shund1] shun: INFO: shn21002i: Processing has been completed. [shund1]

  5. 再度、ディレクタデータファイルのバックアップデータをリストアします。


  6. shundrecoverコマンドでリカバリ終了宣言を実行します。

    以下は、最新状態までのリカバリを例としています。


    shundrecover -s shund1 -e
    shun: INFO: shn21001i: Starting process... [shund1] shun: INFO: shn30334i: Recovery end declaration processing is complete. [shund1] shun: INFO: shn21002i: Processing has been completed. [shund1]

  7. shundstateコマンドで表示される、directorの稼働状況が“ACTIVE”であることを確認します。


    shundstate -s shund1
    Shunsaku shundstate 2006/09/01 13:10:00 Time State DataFileStatus DataSize Fragments(%) LastBackedUp OperationLogStatus OperationLogSize Records ReadRecords ReadTime(sec) ReadSize 13:10:00 ACTIVE NORMAL 9.67MB 66 2006/08/31 22:00:00 NORMAL 20.8MB 10000 10000 0.829 9.78MB

  8. shundbackupコマンドでディレクタデータファイルをバックアップします。


  9. 運用を再開します。