Question: How does the PL/SQL show errors
Answer: When you run
PL/SQL the code is interpreted at runtime, and you may see these
types of errors:
- Syntax errors: These are indicated
by the "Warning: Procedure created with compilation errors" message.
You can display the error with the "show errors" SQL*Plus command).
- Semantic errors: These are invalid table or column names.
- Run time errors: This is a a non-zero Oracle database
For more details, see my notes on
PL/SQL debugging techniques.
Show errors command
To see PL/SQL interpreter errors, you can use the SQL*Plus "show
errors" command: as seen in the "show errors" example
SQL> create or
replace procedure example_defaults
in number := 5,
3 n_2 in number :=
4 n_3 in number := 7)
:= n_2 + n_3;
created with compilation errors.
SQL> show errors
PLS-00363: expression 'N_1' cannot be used as an assignment target
For enhanced show errors command feedback, you can join into
dba_errors and dba_source and see the feedback lines
in the PL/SQL source code:
set lines 100
text format a100
with err as (
')||text text from (
',position-1,' ')||'^'||text text
type||' '||owner||'.'||name||' line '||line
Oracle Training from Don Burleson
The best on site
training classes" are just a phone call away! You can get personalized Oracle training by Donald Burleson, right at your shop!
Burleson is the American Team
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
and include the URL for the page.
Copyright © 1996 - 2017
All rights reserved by
is the registered trademark of Oracle Corporation.
Remote Emergency Support provided by