Error description-Oracle

Dúvidas, dicas e truques de PL/SQL. Aqui também vão assuntos relacionados a pacotes, triggers, funções, Java-Stored Procedures, etc
  

Poston Thu, 15 Jul 2004 8:28 am

Know the description of a particular error?
tfg
Location: Novo Hamburgo - RS

Poston Thu, 15 Jul 2004 8:30 am

YES. You can create this procedure:
Code: Select all
Create Or Replace Function OraError(ErrCode In Varchar2) Return Varchar2 Is
   ErrDesc Varchar2(1000);
Begin
   ErrDesc:=Sqlerrm(ErrCode);
   Return ErrDesc;
End;
/
now you can consult any mistake, thus:
Code: Select all
SQL> Select Oraerror(-02402) From Dual;

ORAERROR(-02402)
-------------------------------------------
ORA-02402: PLAN_TABLE not found

SQL>
dr_gori
Location: Portland, OR USA

Thomas F. G

Você já respondeu a dúvida de alguém hoje?
http://glufke.net/oracle/search.php?search_id=unanswered



Return to PL/SQL

Who is online

Users browsing this forum: No registered users and 5 guests