ttCacheADGStandbyStateGet
ttCacheADGStandbyStateSet組込みプロシージャで指定されたスタンバイOracleデータベースの状態を返します。
必要な権限
このプロシージャには、権限は必要ありません。
TimesTen ScaleoutおよびTimesTen Classicでの使用
このプロシージャはTimesTen Classicでサポートされていますが、TimesTen Scaleoutではサポートされません。関連ビュー
このプロシージャには関連ビューはありません。
構文
ttCacheADGStandbyStateGet()
パラメータ
ttCacheADGStandbyStateGetにパラメータはありません。
結果セット
ttCacheADGStandbyStateGetはスタンバイOracleデータベースの状態を返します。
| 列 | 型 | 説明 |
|---|---|---|
|
|
|
|
例
次の例では、ttCacheADGStandbyStateSet組込みプロシージャをコールして、Active Data Guard環境内のスタンバイOracleデータベースの状態を最初にOKに設定し、次にFAILEDに設定する方法を示します。ttCacheADGStandbyStateGet組込みプロシージャは、スタンバイOracleデータベースの現在の状態の値を取得します。
Command> call ttCacheADGStandbyStateSet('OK');
Command> call ttCacheADGStandbyStateGet();
< OK >
1 row found.
Command> call ttCacheADGStandbyStateSet('FAILED');
Command> call ttCacheADGStandbyStateGet();
< FAILED >
1 row found.