PL/SQL (MOSC)

MOSC Banner

Error message ORA-00001 is missing constraint name ("unique constraint (.) violated")

edited Mar 26, 2014 9:29AM in PL/SQL (MOSC) 6 commentsAnswered

Hallo,

in my PL/SQL code is an EXCEPTION WHEN clause where I retrieve the error message via call to SQLERRM to subsequent storing it in a log table.

The log table shows entries like "ORA-00001: Unique Constraint (.) violated". While storing the error in the table I store the call stack in the same row, so I know the PL/SQL Package and line number where the error comes from.

So here is my question: In which cases is the constraint name missing and just a dot is showed as the constraint name?

Regards

Frank

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center