069 / 58 80 436 10 info@dbaservices.de
ORA-06512 – ORA-06512 at %sline %s

1.) Texte aus oerr unter Linux

06512, 00000, „at %sline %s“

// *Cause:   Backtrace message as the stack is unwound by unhandled

//           exceptions.

// *Action: Fix the problem causing the exception or write an exception

//           handler for this condition. Or you may need to contact your

//           application administrator or DBA.

2.) Erklärung

Dieser Fehler tritt mit ORA-06502 auf, wenn in PL/SQL ein Feld mit einem Wert gefüllt werden soll, für den das Feld zu klein ist (Anzahl Stellen) und die Ausnahme (Exception) nicht abgefangen wird.

3.) Lösungsvorschläge

Beispiel:

Falsch:

CREATE OR REPLACE PROCEDURE test1

AS

v_number number(3);

BEGIN

v_number := 1000;

END;

/

SQL> execute test1();

BEGIN test1(); END;

*

ERROR at line 1:

ORA-06502: PL/SQL: numerischer oder Wertefehler: number precision too large

ORA-06512: in „SYS.TEST1“, Zeile 5

ORA-06512: in Zeile 1

Richtig:

SQL> CREATE OR REPLACE PROCEDURE test1

AS

v_number number(3);

BEGIN

v_number := 1000;

EXCEPTION

WHEN OTHERS THEN

v_number := 999;

END;

/

SQL> execute test1();

PL/SQL procedure successfully completed.

Haben Sie Fragen?

(erforderlich)
Dieses Feld dient zur Validierung und sollte nicht verändert werden.

NEUSTE BEITRÄGE

ORA-06502 – PL/SQL: numeric or value error%s

1.) Texte aus oerr unter Linux 06502, 00000, „PL/SQL: numeric or value error%s“ // *Cause: An arithmetic, numeric, string, conversion, or constraint error //        occurred. For example, this error occurs if an attempt is made to //         assign the value NULL to a...

ORA-01843 – not a valid mont

01843, 00000, „not a valid month“ // *Cause: A date specified an invalid month.//      Valid months are: January-December, for format code MONTH, and Jan-Dec, for format code MON. // *Action: A date specified an invalid month.// Valid months are: January-December, for...

ORA-12154 – TNS:could not resolve the connect identifier specified

1.) Texte aus oerr unter Linux 12154, 00000, „TNS:could not resolve the connect identifier specified“ // *Cause: A connection to a database or other service was requested using // a connect identifier, and the connect identifier specified could not // be resolved into...

Hochverfügbare Datenbanksysteme? dbaservices!

Neu Isenburg 14. Februar 2014, dbaservices bietet mit “DB 24/7″ einen Premiumdienst für echte Hochverfügbarkeit Ihrer Datenbanken: Daten und deren Verfügbarkeit genießen maximale Priorität. Hochverfügbare Datenbanksysteme? dbaservices! Sie erreichen die dbaservices...