Oracle8 Error Messages Release 8.0.4 A58312-01 |
|
This section lists messages generated when commands are used that affect constraints on a table.
Cause: The named constraint does not exist for this table.
Action: Check that a constraint exists before trying to enable it.
Cause: The named constraint does not exist for this table.
Action: Check that a constraint exists before trying to disable it.
Cause: An attempt was made to enable a primary key that is not defined for the table.
Action: Add a primary key definition for the table.
Cause: An attempt was made to disable a primary key that is not defined for the table.
Action: Check that a primary key exists before trying to disable it.
Cause: An attempt was made to enable a unique key that is not defined for the table.
Action: Check that a unique key exists before trying to enable it.
Cause: An attempt was made to disable a unique key that is not defined for the table.
Action: Check that a unique key exists before trying to disable it.
Cause: An attempt was made to use a date constant or system variable, such as USER, in a check constraint that was not completely specified in a CREATE TABLE or ALTER TABLE statement. For example, a date was specified without the century.
Action: Completely specify the date constant or system variable.
Cause: An attempt was made to enable a primary key constraint on a column that contains either duplicate values or null.
Action: Remove the duplicate values or null before enabling the primary key constraint.
For more information about removing integrity constraints from columns, see the index entry on "integrity constraints, removing from columns" in Oracle8 Server SQL Reference.
Cause: An attempt was made to define a column check constraint that references another column.
Action: This is not permitted for column check constraints. Create this constraint as a table check constraint.
Cause: An attempt was made to enable a primary key or unique constraint on a column that has an existing non-unique index.
Action: Drop the non-unique index on the column or do not attempt to enable this constraint.
Cause: Integrity constraints on a table cannot be created when creating the table using the CREATE TABLE... AS SELECT... form.
Action: First, create the table, and then alter the table to add the desired integrity constraints.
Cause: An attempt was made to drop the primary key constraint on a table, but there is no primary key constraint on this table.
Action: Ensure the correct table name is entered in the statement. Otherwise, no action required.
Cause: An attempt was made to drop a unique key constraint for a column that does not have a unique key constraint.
Action: Make certain the correct column name was entered. Otherwise, no action required.
Cause: An attempt was made to drop a constraint that does not exist.
Action: Make certain the constraint and table name are correct and attempt the procedure again.
Cause: An attempt was made to define a foreign key with a reference to a schema object that cannot be resolved to a base table reference.
Action: Define referential constraints only with schema objects resolving to a base table.
Cause: The explicitly or implicitly declared exceptions table does not exist.
Action: If the correct exceptions table name was used, then create the table and retry the enable command.
Cause: An attempt was made to use a CREATE TABLE... AS SELECT statement when some rows violated one or more CHECK constraints.
Action: Do not select rows that violate constraints.
Cause: An attempt was made to defer a nondeferrable constraint.
Action: Drop the constraint and create a new one that is deferrable.
Cause: The named constraint does not exist.
Action: Stop trying to use a nonexistent constraint.
Cause: An attempt was made to drop a table with unique or primary keys referenced by foreign keys in another table.
Action: Before performing the above operations on the table, drop the foreign key constraints in other tables. You can see what constraints are referencing a table by issuing the following command: SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = "tabnam";