Oracle 26aiで変わったエラーメッセージ — 実際の出力と19cマニュアルの比較
Oracle AI Database 26ai(23.26)では、おなじみのエラーが19cとは違う形で表示されます。原因になったオブジェクト・列・値を直接示すようになったメッセージもあれば、文章そのものが書き換えられたものもあります。以前の文言で検索したり、ログをメッセージ文字列で絞り込んだりしている場合は、ここで結果がずれます。
下の「26ai」のメッセージはすべて、当サイトの検証環境で実際に実行した出力で、各エラーページに載っているものと同じです。「19c」の文言はOracle Database 19c Error Messagesの公式マニュアルからそのまま引用し、参照したページへのリンクを付けています。
オブジェクト名・列名・値が表示されるようになったもの 12件
ORA-00942
19cマニュアル
table or view does not exist出典ORA-00942: table or view "LAB_A"."CUSTOMER" does not existORA-00942: 表またはビュー "LAB_A"."CUSTOMER"は存在しませんORA-00001
19cマニュアル
unique constraint (string.string) violated出典ORA-00001: unique constraint (LAB_A.PRODUCTS_PK) violated on table LAB_A.PRODUCTS columns (PRODUCT_ID)ORA-00001: 一意制約(LAB_A.PRODUCTS_PK)に表LAB_A.PRODUCTSの列(PRODUCT_ID)が違反しましたORA-01722
19cマニュアル
invalid number出典ORA-01722: unable to convert string value containing 'A' to a number: CODEORA-01722: 'A'を含む文字列値を数値に変換できません: CODEORA-01438
19cマニュアル
value larger than specified precision allowed for this column出典ORA-01438: value 1000 greater than specified precision (5, 2) for columnORA-01438: 値1000が、指定された精度(5, 2) (列)より大きくなっています。ORA-00932
19cマニュアル
inconsistent datatypes: expected string got string出典ORA-00932: expression (20240101) is of data type NUMBER, which is incompatible with expected data type DATEORA-00932: 式 (20240101)のデータ型はNUMBERですが、これは予期されたデータ型DATEと互換性がありませんORA-00979
19cマニュアル
not a GROUP BY expression出典ORA-00979: "JOB": must appear in the GROUP BY clause or be used in an aggregate functionORA-00979: "JOB": GROUP BY句に出現するか、集計関数で使用される必要がありますORA-00918
19cマニュアル
column ambiguously defined出典ORA-00918: DEPT_ID: column ambiguously specified - appears in andORA-00918: DEPT_ID: 列があいまいに指定されています - とに出現しますORA-01008
19cマニュアル
not all variables bound出典ORA-01008: value for bind variable placeholder 2 was not providedORA-01008: バインド変数のプレースホルダ2の値が指定されませんでしたORA-01045
19cマニュアル
user string lacks CREATE SESSION privilege; logon denied出典ORA-01045: Login denied. User APP_USER does not have CREATE SESSION privilege.ORA-00972
19cマニュアル
identifier is too long出典ORA-00972: The identifier The system...rk before ... exceeds the maximum length of 128 bytes.ORA-00972: 識別子The system...rk before ...は最大長の128バイトを超えています。ORA-01000
19cマニュアル
maximum open cursors exceeded出典ORA-01000: maximum open cursors for session exceeded Potential Leaked SQL_ID: buav8k4m4d5fyORA-01000: セッションの最大オープン・カーソル数がPotential Leaked SQL_ID: buav8k4m4d5fyを超えましたORA-01652
19cマニュアル
unable to extend temp segment by string in tablespace string出典ORA-01652: unable to grow temp segment in tablespace LAB_TMP by 1MB during operation with SQL ID : 105yw6uy4n3gd, temp space used by session : 1 (MB)ORA-01652: 操作中にtemp segment (表領域LAB_TMP)を1MBで増加できません。SQL ID: 105yw6uy4n3gd、セッションで使用される一時領域: 1 (MB)
文言が書き換えられたもの 8件
ORA-01017
19cマニュアル
invalid username/password; logon denied出典ORA-01017: invalid credential or not authorized; logon deniedORA-00054
19cマニュアル
resource busy and acquire with NOWAIT specified or timeout expired出典ORA-00054: Failed to acquire a lock (Type: "TM", Name: "DML", Description: "Synchronizes accesses to an object") because it is currently held by another session. The resource being locked can be identified by 80420 ("Table") and 0 ("operation")ORA-00054: ロックは現在別のセッションによって保持されているため、ロックの取得に失敗しました(タイプ: "TM"、名前: "DML"、説明: "Synchronizes accesses to an object")。ロックされているリソースは、80420 ("Table")および0 ("operation")によって識別できますORA-01422
19cマニュアル
exact fetch returns more than requested number of rows出典ORA-01422: exact fetch returned more than the requested number of rows (1)ORA-01843
19cマニュアル
not a valid month出典ORA-01843: An invalid month was specified.ORA-01843: 無効な月が指定されました。ORA-01858
19cマニュアル
a non-numeric character was found where a numeric was expected出典ORA-01858: A non-numeric character was found instead of a numeric character.ORA-01858: 数値文字ではなく、数値以外の文字が見つかりました。ORA-01653
19cマニュアル
unable to extend table string.string by string in tablespace string出典ORA-01653: unable to increase tablespace LAB_DATA by 1MB during insert or update on table LAB_A.SALES_HISTORA-01653: 挿入または更新中に表領域LAB_DATAを1MBで増加できません(表LAB_A.SALES_HIST)ORA-01950
19cマニュアル
no privileges on tablespace 'string'出典ORA-01950: The user LAB_A has insufficient quota on tablespace LAB_DATA.ORA-01950: ユーザーLAB_Aの表領域LAB_DATAに対する割当て制限が不十分です。ORA-02261
19cマニュアル
such unique or primary key already exists in the table出典ORA-02261: The unique or primary key already exists in the table.ORA-02261: 表に一意キーまたは主キーがすでに存在しています。
すべてのエラーの下に付く Help: 行
26aiのSQL*Plusは、エラーのすぐ下にオンラインのエラーヘルプへのリンクを表示します。当サイトのOracleエラー157件すべてで、実行結果にこの行がありました。たとえばORA-00942:
ORA-00942: table or view "LAB_A"."CUSTOMER" does not exist
Help: https://docs.oracle.com/error-help/db/ora-00942/自分のコードや監視で確認すること
エラーはメッセージの文章ではなく、コード(例:ORA-00942、ドライバが返すエラー番号)で判定してください。メッセージ全体を比較しているログフィルタ・アラート条件・アプリケーションのコードは、26aiの文言を取りこぼします。
新しく付いた情報は役に立ちます。ORA-00942はどのスキーマのどの表を探したか、ORA-00001は表と列を、ORA-01722は変換に失敗した値を示します。読み方は各エラーページで説明しています。
作成方法:各エラーをコンテナ上のOracle AI Database 26ai Freeで実際に実行し(イメージと日時は各ページに表示)、エラーの1行目を19cのマニュアルと比較しました。当サイトにページがあるエラーだけを載せています。