Question: How does the PL/SQL show errors
command work?
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
error code.
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
2 (n_1
in number := 5,
3 n_2 in number :=
6,
4 n_3 in number := 7)
5 as
6 begin
7 n_1
:= n_2 + n_3;
8 end;
9 /
Warning: Procedure
created with compilation errors.
SQL> show errors
Errors for
PROCEDURE EXAMPLE_DEFAULTS:
LINE/COL ERROR
-------- ------------------------------------------------
PLS-00363: expression 'N_1' cannot be used as an assignment target
For complete details on using the show errors command, see the
Easy Oracle books.
|
|
|
|
Guarantee your Success!
Oracle is the
world's most complex, robust and flexible database, considered
impossible to master without a mentor.
That's why all BC
Oracle trainers are working professionals, experts in Oracle who
share their tips and secrets. |
|
| |
|
Burleson is the American Team

Note:
This Oracle
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
Oracle forum.
Verify
experience!
Anyone
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
publish
their Oracle
qualifications.
Errata?
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
feedback. Just
e-mail:
and include the URL for the page.
Copyright ? 1996 - 2012
All rights reserved.
Oracle ?
is the registered trademark of Oracle Corporation.
|
|