[an error occurred while processing this directive] [an error occurred while processing this directive]


プログラミング
逆引き
クライアントとの通信
VisMでの通信
Factoryでの通信
WebServiceでの通信
CSP (Cache' Server Pages)
Cache'SQL
設定・性能


【広告】









^INTEGRIT ユーティリティ

データベースの整合性を確認する

データーベースに破損がないか整合性を検査する時に使用するのが^INTEGRITユーティリティです。

このユーティリティは指定されたデータベースのグローバル内の物理的な関連に誤りがないか(具体的にはポインタ間の関連に誤りがないか)を確認します。
データベースのバックアップを取得する前に、このユーティリティを使用してバックアップ対象に破損がないことを確認することが推奨されています。

以下のような別の方法でも、データベースの整合性を確認することができます。
  • ^Integrity ユーティリティ
  • ##class(SYS.Database).IntegrityCheck("") など

使い方

%SYS> Do ^INTEGRIT

 以降、画面に表示される内容に応答する。

動作例

%SYS>ZN "%SYS"

%SYS>D ^INTEGRIT

This utility is used to check the integrity of a database
and the pointer structure of one or more globals.

Output results on
Device:
Right margin: 80 =>

Stop after any error? No=>
Do you want to check all databases? No=>

Directory: : c:\intersystems\cache\mgr\ =>               // ? 入力で候補が表示されます
---Directory c:\intersystems\cache\mgr\---

All globals? No=> Y

Global: %
トップ/ボトムポインタレベル: ブロック数=1 8kb (充填率 0%)
データレベル: ブロック数=2 16kb (充填率 79%)
合計: ブロック数=3 24kb (充填率 53%)
経過時間 = 0.0 秒 11:10:59

Global: %IS
トップ/ボトムポインタレベル: ブロック数=1 8kb (充填率 0%)
データレベル: ブロック数=1 8kb (充填率 23%)
合計: ブロック数=2 16kb (充填率 11%)
経過時間 = 0.0 秒 11:10:59

(中略)

---Total for directory c:\intersystems\cache\mgr\---
57 Pointer Level blocks 456kb (12% full)
3,502 Data Level blocks 27MB (81% full)
1,271 Big String blocks 10168kb (81% full) # = 606
4,845 Total blocks 37MB (80% full)
1,043 Free blocks 8344kb

Elapsed time = 1.2 seconds 11:11:00

No Errors were found in this directory.                // この行が表示されることでエラーがないことが確認できます


Directory: : c:\intersystems\cache\mgr\ => ^           // ^ 入力で終了
%SYS>

備考

かなり古いバージョンから使用可能。


[an error occurred while processing this directive] [an error occurred while processing this directive]
2012/11/19Update