Oracle8 Error Messages Release 8.0.4 A58312-01 |
|
This section lists messages generated when triggers are accessed. For more trigger messages, see 25000-25099: Trigger Messages on page -358.
Cause: An invalid trigger name was specified.
Action: Check that the trigger name is not a reserved keyword.
Cause: The trigger statement is missing the BEFORE/AFTER clause.
Action: Specify either BEFORE or AFTER.
Cause: An invalid trigger type was given.
Action: Specify either INSERT, UPDATE, or DELETE as the trigger type.
Cause: A column list was specified for a trigger type other than UPDATE.
Action: Remove the column list from the trigger.
Cause: An invalid name was given in the REFERENCING clause.
Action: Check that the REFERENCING name is not a reserved word.
Cause: A statement was given for the trigger action.
Action: Specify another trigger action that is not a statement.
Cause: An invalid NEW or OLD specification was given for a column.
Action: Respecify the column using a correct NEW or OLD specification.
Cause: The WHEN clause can only be specified for row-level triggers.
Action: Remove the WHEN clause or specify it for each row.
Cause: The REFERENCING clause specifies identical values for NEW and OLD.
Action: Specify the REFERENCING clause again with a different value for either NEW or OLD.
Cause: The CREATE TRIGGER statement is invalid.
Action: Refer to Oracle8 Server SQL Reference for the correct syntax of the CREATE TRIGGER statement.
Cause: The trigger name specified is invalid, or the trigger does not exist.
Action: Check the trigger name.
Cause: The trigger name or type already exists.
Action: Use a different trigger name or drop the trigger that is of the same type.
Cause: The trigger is accessing NEW or OLD values in a table trigger.
Action: Remove any new or old references.
Cause: The variable referenced in the trigger body is invalid.
Action: See Oracle8 Server SQL Reference for valid trigger variable types.
Cause: New trigger variables can only be changed in before-row triggers.
Action: Change trigger type or remove the variable reference.
Cause: OLD values can only be read and not changed.
Action: Do not attempt to change an OLD variable.
Cause: The trigger description is limited to 2000 characters, for dictionary storage reasons. The description does not include the text of the "when" clause or the text of the PL/SQL code executed for the trigger.
Action: If the trigger description contains a large Comment, move that Comment into the PL/SQL code for the trigger.
Cause: ROWIDs can only be read and not changed.
Action: Do not attempt to change a ROWID value.
Cause: A runtime error occurred during execution of a trigger.
Action: Check the triggers that were involved in the operation.
Cause: An attempt was made to create a trigger on an object owned by SYS.
Action: Do not create triggers on objects owned by SYS.
Cause: The named trigger has a duplicate event and trigger time as another trigger.
Action: Combine both triggers into one trigger.
Cause: A trigger or a user-defined PL/SQL function that is referenced in the statement attempted to query or modify a table that was in the middle of being modified by the statement that fired the trigger.
Action: Rewrite the trigger or function so it does not read the table.
Cause: A trigger attempted to COMMIT or ROLLBACK. This is not permitted.
Action: Rewrite the trigger so that COMMIT or ROLLBACK statements are not used.
Cause: A trigger attempted to reference a LONG column in the triggering table.
Action: Do not reference the LONG column.
Cause: A trigger attempted to modify a table that was constraining for some referential constraint of a parent SQL statement.
Action: Rewrite the trigger so that it does not modify that table.
Cause: An attempt was made to replace a trigger that exists on another table.
Action: Re-create the trigger on the other table using the CREATE OR REPLACE TRIGGER statement.
Cause: A trigger's WHEN clause is limited to 2K for dictionary storage reasons.
Action: Use a smaller WHEN clause. Note, the trigger body could perform the same limiting action as the WHEN clause.
Cause: An attempt was made to concurrently perform two DDL operations on a trigger or trigger table.
Action: Investigate the new state of the trigger and retry the DDL operation, if still appropriate.
Cause: A trigger was attempted to be retrieved for execution and was found to be invalid. This also means that compilation/authorization failed for the trigger.
Action: The options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger.
For more information about enabling and disabling triggers, see the index entries on "enabling, triggers," "disabling, triggers," and "DROP TRIGGER command" in Oracle8 Server SQL Reference.
Cause: A trigger was attempted to be retrieved for execution and was found to be valid, but not stored. This may mean the an upgrade was done improperly from a non-stored trigger release.
Action: Execute the ALTER <triggername> COMPILE command to compile the trigger. The trigger will then be in stored form. Also, you may want to review that a proper upgrade was done.
For more information about ALTER TRIGGER, see the index entry on "ALTER TRIGGER" in Oracle8 Server SQL Reference.