Oracle 19cでステータスを確認する方法

環境
Oracle 19c
sqlplus

1.Oracle ステータスを確認します
SQL構文

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SQL> select STATUS from v$instance;
SQL> select STATUS from v$instance;
SQL> select STATUS from v$instance;

実行結果
OPEN

2.シャットダウンコマンド

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SQL> shutdown
SQL> shutdown
SQL> shutdown

実行中トランザクション終了後にシャットダウンコマンドを実行します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SQL> shutdown transactional
SQL> shutdown transactional
SQL> shutdown transactional

実行中のトランザクションをロールバックしシャットダウンコマンドを実行します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SQL> shutdown immediate
SQL> shutdown immediate
SQL> shutdown immediate

即時の強制終了コマンドを実行します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SQL> shutdown abort
SQL> shutdown abort
SQL> shutdown abort

 

Oracle 19c

Posted by arkgame