| Oracle Transparent Gateway for DB2/400 Installation and User's Guide Release 9.2.0.1.0 for IBM AS/400 Part Number A97615-01 |
|
This chapter discusses error messages generated by Oracle Transparent Gateway for DB2/400, the diagnosis of suspected Oracle errors, and the requirements for documenting these errors to Oracle Support Services.
This chapter contains the following sections:
The gateway architecture includes a number of separate components. Any of these components can detect and report an error condition while processing a SQL statement that refers to one or more DB2/400 database tables. An error condition can be complex, involving error codes and supporting data from multiple components. In all cases, the application receives a single Oracle error code upon which to act.
When possible, an error code from DB2/400 is converted to the Oracle error code associated with the same logical condition.
Error code mapping is provided to support application designs that test for and act upon specific error conditions. The set of mapped errors is limited to those associated with conditions that are common to most relational databases.
DB2/400 error messages, that is, SQLSTATE codes, are mapped to Oracle9i database server error codes. Notice that multiple DB2/400 SQLSTATE codes can refer to the same single Oracle database server error code.
Error messages are generally accompanied by additional message text, beyond the text associated with the Oracle message number. The additional text includes details about the error.
Most gateway messages exceed the 70 character message area in the Oracle SQLCA. Use SQLGLM or OCIErrorGet in the programmatic and Oracle Call Interfaces you use with the gateway to view the entire message. Refer to the PL/SQL User's Guide and Reference for information about SQLGLM and the Oracle Call Interface Programmer's Guide for information about OCIErrorGet.
Gateway messages use this format:
ORA-nnnn error_message_text DB2/400_error_messages ORA-2063: preceding n lines from dblink
for example:
select * from scott.dummy@DB2link ERROR at line 1: ORA-00942 = table or view does not exist SQL0204: DUMMY in SCOTT type * FILE not found ORA-02063 preceding 2 lines from dblink
where:
If an error is detected by the Oracle9i database server, the DB2/400 error messages do not occur. For example, if the gateway cannot be accessed because of a Oracle Net or gateway installation problem, the DB2/400 error message is not present in the error message.
Another example of error messages without DB2/400 error messages occurs when an INSERT statement attempts to insert data into a table, but does not include values for all of the columns in the table. This SQL statement causes an error message:
SQL> INSERT INTO EMP@AS400 VALUES(9999); ERROR at line 1: ORA-00947: NOT ENOUGH VALUES
The ORA-00947 message is not accompanied by DB2/400 error messages because the error is detected by the Oracle9i database server. The server obtains a description of the DB2/400 table before sending the INSERT statement to the gateway for processing. This allows the server to detect when the INSERT statement is invalid.
To maximize the effectiveness of your inquiries, gather the following information before contacting Oracle Support Services:
Use the following error categories to describe the error:
When reporting documentation errors, you are asked to provide the following information:
Describe the error in detail. Documentation errors can include erroneous documentation and omission of required information.
In general, an incorrect output error exists whenever an Oracle utility produces a result that differs from written Oracle documentation. When describing errors of incorrect output, you need to describe, in detail, the operation of the function in error. Be prepared to describe your understanding of the proper function, the specific Oracle documentation that describes the proper operation of the function, and a detailed description of the incorrect operation.
If you think you have found a software bug, be prepared to answer the following questions:
Oracle error messages are produced whenever an Oracle gateway, server, tool, or DB2/400 system detects an error condition. Depending on the circumstances, error messages might be fatal or nonfatal to the utility or server.
Be prepared to identify the exact error message and message number received and the complete circumstances surrounding the error.
AS/400 system performance is determined by many factors, most of which are not within the control of Oracle Corporation. Considerations such as system load, I/O topology, network topology utilization, and DB2/400 resource availability and utilization, make the documentation of performance errors difficult.
Provide detailed information about the state of your environment when reporting an error. Specific documentation might include:
Enhancement requests can be opened with Oracle Support Services to request the inclusion of functions and features not currently available with Oracle products. When opening an enhancement request, describe the specific feature or function to be added to the product, and provide a business case to justify the enhancement.
|
|
![]() Copyright © 2002 Oracle Corporation. All Rights Reserved. |
|