Errors in Ingres can be classified into Fatal and Non-Fatal errors. Ingres displays error messages in a particular format. This format helps you find the specific problem that Ingres has encountered. Error messages and their formats are explained in the following sections.
Error messages in Ingres consist of a three-part error code and accompanying message text. The code segment has the format:
E_FCxxxx_msg message text
The message codes are as follows:
E_ (error message), I_(informational message), or W_ (warning message).
Two-letter Facility Code.
4-digit hexadecimal number that represents the value returned to the application for use in error handling. The 2-letter facility code combined with the 4-digit hexadecimal number uniquely identifies this error code.
"msg" is an abbreviated message text or decimal number. As a decimal, it is always equivalent in value to the preceding hexadecimal number.
Help is available online to aid in reading error messages. The error messages are stored in a single file messages.txt in the directory $II_SYSTEM/ingres/files/english/messages/.
Fatal errors are those errors that require correction before Ingres can proceed with the program. All errors, including fatal errors, are recoverable.
Fatal errors occur in the following categories:
To remove the cause of a fatal error, use the troubleshooting techniques in the chapter Troubleshooting Ingres.
Non-fatal errors are diagnostic indications of user errors, usually in application development. For example, a non-fatal error code is returned when a user attempts to destroy a non-existent table. These errors are not severe and do not halt the user program or Ingres. User applications can choose to print or suppress these errors.
Ingres facility codes consist of a two-character code that is generated by a particular facility. For example, the Abstract Data Type Facility has a facility code of AD so error messages generated by this facility have an error message format of:
E_ADxxxx_msg
Error messages often include an explicit reference to which internal Ingres function returned the error. A list of these modules and their functions can help you identify the source of errors requiring troubleshooting.
The facility codes for the primary Ingres components, such as the DBMS Server and General Communications Facility, are shown in the following table:
Facility Code |
Facility |
---|---|
AD |
Abstract Data Type Facility (ADF) |
DM |
Data Manipulation Facility (DMF) |
DU |
Database Utility Facility (DUF) |
GC |
All GCF General Communication Facilities, including:
|
OP |
Optimizer Facility (OPF) |
PS |
Parser Facility (PSF) |
QE |
Query Execution Facility (QEF) |
QS |
Query Storage Facility (QSF) |
RD |
Relation Description Facility (RDF) |
SC |
System Control Facility (SCF) |
US |
User Errors |
The server-only components are mostly DMF routines. The facilities listed in the following table are all subcomponents for Compatibility Library (CL) and do not appear in the facility-code part of an error message. All messages involving these facilities start with E_CL, and usually contain the two-letter facility code in the abbreviated message part of the error text.
Facility Code |
Name |
Description |
Used By |
---|---|---|---|
CS |
Central System |
Control of server |
SCF, Utilities |
DI |
Database I/O |
Access to Database files (different from SI) |
DMF, Utilities |
JF |
Journal Files |
Access to Journal files (different from DI) |
DMF, Utilities |
LG |
Logging |
Server logging (transaction log) |
DMF |
LK |
Locking |
DBMS data locking |
DMF, Utilities |
SR |
Sorting |
Sorting for queries |
DMF |
TR |
Tracing |
DBMS event tracing |
Server components |
The Ingres Tools-only components are shown in the following table:
Facility Code |
Name |
Description |
Used By |
---|---|---|---|
AR |
ABF Runtime |
Application-By-Forms runtime component |
ABF |
DY |
Dynamic Utilities |
Dynamic linking |
ABF |
OL |
4GL Support |
Produce Ingres 4GL object code |
ABF |
PC |
Process Control |
Fork, sleep, exit, and so forth |
Tools components |
PE |
Permissions |
Object access authority |
Tools components |
TE |
Terminal Driver |
Terminal I/O |
Tools terminal driver |
UT |
Utility Invocation |
Compile, link, call, print, and so forth |
Tools components |
Ingres components for stream file management are shown in the following table. The facilities listed below are all subcomponents for Compatibility Library (CL ) and do not appear in the facility-code part of an error message. All messages involving these facilities start with E_CL, and usually contain the two-letter facility code in the abbreviated message part of the error text.
Facility Code |
Name |
Description |
Used By |
---|---|---|---|
CP |
Switch protections |
Special-purpose file permissions handling |
auditdb |
LO |
Locations |
Abstract file system support (hierarchical) |
Tools components |
SI |
Stream I/O |
Stream functions |
Tools components |
Ingres components for utility routines are shown in the following table:
Facility Code |
Name |
Description |
Used By |
---|---|---|---|
CI |
Authorization |
Authorization string interpretation |
Server and Tools components |
ER |
Error Messages |
Error Message Handling/supports international |
Server and Tools components |
EX |
Exception Handling |
Establish routine chaining |
All |
GC |
GCA CL |
GCA (IPC) support |
All |
GV |
Global Variables |
Global symbols (Release ID, date, and so forth) |
All |
ID |
Object IDs |
User identifications |
Usually Tools components |
ME |
Memory Allocation |
Memory management |
Usually Tools components |
NM |
Logical Symbols |
Logical symbol management |
All |
QU |
Queue Manipulation |
Management of queues |
All |
TM |
Timing |
Timing services |
All; some timing is server only |
Miscellaneous components are shown in the following table:
Facility Code |
Name |
Description |
Used By |
---|---|---|---|
BT |
Bit Manipulation |
Utility routines to test, set, clear bits |
All |
CM |
Character Manipulation |
Character handling and for Kanji support |
All |
CV |
Conversion |
Convert internal representations |
All |
MH |
Math |
Functions (tan, ln, log, exp, and so forth) |
All |
ST |
String Handling |
Utilities for string operations |
All |