キャッシュ・エージェントの停止(dbCacheStop)
dbCacheStop
コマンドは、キャッシュ・エージェントを停止します。
ttGridAdmin dbCacheStop name [-instance hostname[.instancename]] [-nowait | -wait [timeout]]
オプション
dbCacheStop
コマンドには、次のオプションがあります。
オプション | 説明 |
---|---|
|
データベースの名前。 |
|
指定した場合、キャッシュ・エージェントは、グリッドのすべてのインスタンスではなく、指定したインスタンスでのみ停止されます。
|
|
このコマンドは状態の変更を開始し、それはグリッドのアクティブ管理インスタンスに記録されます。
大規模なグリッドでは、一般的に、 |
例
管理インスタンスから、ttGridAdmin dbCacheStop
コマンドを使用して、database1データベース内のすべてのデータ・インスタンスでキャッシュ・エージェントを停止します。
% ttGridAdmin dbCacheStop database1 Database database1 : Stopping cache agents. % ttGridadmin dbStatus database1 -element Database database1 element level status as of Mon Dec 7 15:35:13 PST 2020 Host Instance Elem Status CA Status Date/Time of Event Message ----- --------- ---- ------ --------- ------------------- ------- host3 instance1 1 opened stopped 2020-12-07 15:35:13 host4 instance1 2 opened stopped 2020-12-07 15:35:13 host5 instance1 3 opened stopped 2020-12-07 15:35:13 host6 instance1 4 opened stopped 2020-12-07 15:35:13 host7 instance1 5 opened stopped 2020-12-07 15:35:13 host8 instance1 6 opened stopped 2020-12-07 15:35:13
-instance
オプションを使用して、特定のデータ・インスタンスのキャッシュ・エージェントを停止できます。
% ttGridAdmin dbCacheStop database1 -instance host4.instance1 Database database1 : Stopping cache agents. % ttGridadmin dbStatus database1 -element Database database1 element level status as of Mon Dec 7 15:20:48 PST 2020 Host Instance Elem Status CA Status Date/Time of Event Message ----- --------- ---- ------ --------- ------------------- ------- host3 instance1 1 opened started 2020-11-23 08:37:35 host4 instance1 2 opened stopped 2020-12-07 15:20:48 host5 instance1 3 opened started 2020-11-23 08:37:35 host6 instance1 4 opened started 2020-11-23 08:37:35 host7 instance1 5 opened started 2020-11-23 08:37:35 host8 instance1 6 opened started 2020-11-23 08:37:35
ノート:
実行中のキャッシュ・エージェントが1つのみの場合は、自動リフレッシュを使用してキャッシュ・グループを削除または変更した直後に最後のキャッシュ・エージェントを停止しないでください。かわりに、キャッシュ・グループを管理するために作成および使用されたOracle Databaseオブジェクト(変更ログ表やトリガーなど)をキャッシュ・エージェントがクリーンアップできるように、最低でも2分は待機してください。複数のキャッシュ・エージェントが実行されている場合、これは問題ではありません。