分析儲存程序疑難排解
此資訊可協助您診斷、回復及解決您在使用分析儲存程序時遇到的問題。
如果分析儲存程序發生錯誤,則會顯示 SQL 錯誤訊息。
有些錯誤訊息包含分析訊息 ID CDFAAxxxx,其中 xxxx 是 0000 - 9999 範圍內且具有特定說明的數字。不過,通常會截斷此說明的訊息文字。
為了擷取完整訊息文字,最新的分析錯誤訊息會儲存在 SQL 變數中。
下列清單顯示這些變數。
- IDAX.LAST_MESSAGE
- 包含儲存程序之 SQL 錯誤訊息中 CDFAAxxxx ID 的訊息。
- IDAX.LAST_MESSAGE_CODE
- 包含 CDFAAxxxx 訊息 ID 的數字,即值 xxxx。
範例
SQL> CALL IDAX.LIST_MODELS('schem');
SQL20562N The analytics operation could not be performed because the specified
options are not valid. Routine name: "LIST_MODELS". Analytics message
identifier: "CDFAA0052N". Diagnostic details: "schem".
SQL> VALUES IDAX.LAST_MESSAGE;
1
--------------------------------------------------
CDFAA0052N The analytics routine was not run beca
use an unsupported parameter name was specified. U
nsupported parameter name specified: "schem".
DB250000I: The command completed successfully.
SQL> VALUES IDAX.LAST_MESSAGE_CODE;
1
-----------
52
DB250000I: The command completed successfully.