私のスクリプトでは、SQL*Plus エラー ログを使用して、インストール中のエラーを追跡します。スクリプトは次のように開始します。エラー ログを有効にし、既存のエントリを切り捨てます。
SQL> set errorlogging on truncate
SQL> select * from table_does_not_exist;
select * from table_does_not_exist
*
ERROR at line 1:
ORA-00942: table or view does not exist
次に、最後にクエリを実行sperrorlog
して、何が問題なのかを確認します。
SQL> select statement from sperrorlog;
STATEMENT
--------------------------------------------------------------------------------
select * from table_does_not_exist
しかし、ときどき がtruncate
機能せず、以前のインストールでエラーが発生します。なぜ機能しないtruncate
のですか?