Informix Error Messages and Error Codes From Error 308 to 311
Informix Error Code -308 Corresponding column types must be compatible for each UNION statement.
All rows produced in a UNION of SELECT statements must have the same format, so every column should have the same data type. In the current statement, a column in the second or subsequent SELECT does not agree with the same column in a preceding SELECT. Review and compare all the SELECT statements. Check each point at which one selects something that is not identical to the preceding SELECT statement. No automatic data conversion is supplied during a UNION; the data types must be identical as selected. If this proves impossible, consider setting up a temporary table and using a series of INSERT statements to fill it with the combination of rows desired. Automatic data conversion is applied during an INSERT, so differing but compatible data types can be coerced to the same type.
Informix Error Code -309 ORDER BY column column-name must be in SELECT list.
The indicated column appears in the ORDER BY clause of this SELECT, but it is not in the select list (the list of values that follows the word SELECT). This action is not supported. All sort keys must be present in the output rows in order to sort. Revise the statement to follow this rule. If you want to sort only on an expression that involves this column, not on the column itself, refer to the expression by the number of its position in the select list.
Informix Error Code -310 Table table-name already exists in database.
This statement tries to create a table with the name that is shown, but one with that name already exists. Only one table with a given name can exist in a single database. (In an ANSI-compliant database, the name of the user that created a table name qualifies it, so one table of a given name per user can exist.)
Check the spelling of the name; if it is as you intended, and you are sure it should not exist, check that you are using the right database. You can review the names of all tables in this database by querying systables as follows:
SELECT tabname FROM systables WHERE tabid > 99
This statement will display only names of permanent tables, not temporary tables. Temporary tables do not appear in systables. If the name does not appear, end your database session and start a new one. Temporary tables will be dropped.
Informix Error Code -311 Cannot open system catalog table-name.
The database server cannot access one of the tables in the system catalog. Check the accompanying ISAM error code for detailed information, and look for operating-system error messages that might give more information.
Above are list of Informix Error Messages and Errors Codes or Status Codes or Exit Codes along with Error and Warning messages received while performing certain operation against Informix applications or related products.
What are Informix Error Messages?
All Informix messages returned by the Informix server are assigned an error code.
In general, each Informix error contains the following information:
• The Informix Error Code or Informix Error status
• The message text. This text is usually returned with the Error code. Some messages employ word substitution, where the word substituted represents the system-replacement of a term more specific to the occurrence.
• An explanation of how the error may have occurred.
Hope this was helpful.
Information about Informix Error Codes or Status Codes or Exit Codes and Error Messages on Windows, Linux Operating Systems.