Posts

Error Handling and Cursor

  Error Handling  Compile-Time Warnings While compiling stored PL/SQL units, the PL/SQL compiler generates warnings for conditions that are not serious enough to cause errors and prevent compilation. To see warnings (and errors) generated during compilation, either query the static data dictionary view  *_ERRORS    In the SQL*Plus environment, use the command  SHOW   ERRORS .  Compile-Time Warning Categories Category Description Example SEVERE Condition might cause unexpected action or wrong results. Aliasing problems with parameters PERFORMANCE Condition might cause performance problems. Passing a  VARCHAR2  value to a  NUMBER  column in an  INSERT  statement INFORMATIONAL Condition does not affect performance or correctness, but you might want to change it to make the code more maintainable. Code that can never run By setting the compilation parameter  PLSQL_WARNINGS , you can: Enable and disable all warnings, ...