Re: Trigger & Sequence ++ show errors for triggers
- From: DA Morgan <damorgan@xxxxxxxxx>
- Date: Tue, 14 Feb 2006 13:46:31 -0800
Mark C. Stock wrote:
"DA Morgan" <damorgan@xxxxxxxxx> wrote in message news:1139942523.850946@xxxxxxxxxxxxxxxxxxxxxx
: Mark C. Stock wrote:
:
: > daniel's suggestion is good, except SQL*Plus has it's own little quirk in
: > that SHOW ERRORS does not work on trigger compilation errors
: > to follow his advice and see the errors, you'll need to do a SELECT from the
: > USER_ERRORS data dictionary view
:
: Excuse me ...
:
: SQL> CREATE TABLE orders (
: 2 somecolumn VARCHAR2(20),
: 3 numbercol NUMBER(10),
: 4 datecol DATE);
:
: Table created.
:
: SQL> CREATE OR REPLACE TRIGGER statement_level
: 2 BEFORE UPDATE
: 3 ON orders
: 4
: 5 DECLARE
: 6 vMsg VARCHAR2(30) := 'Statement Level Trigger Fired';
: 7 BEGIN
: 8 dbms_output.put_linZe(vMsg);
: 9 END statement_level;
: 10 /
:
: Warning: Trigger created with compilation errors.
:
: SQL> sho err
: Errors for TRIGGER STATEMENT_LEVEL:
:
: LINE/COL ERROR
: -------- ---------------------------------------------------
: 4/3 PL/SQL: Statement ignored
: 4/15 PLS-00302: component 'PUT_LINZE' must be declared
: SQL>
:
: It doesn't? Now you tell me. ;-)
: -- : Daniel A. Morgan
: http://www.psoug.org
: damorgan@xxxxxxxxxxxxxxxx
: (replace x with u to respond)
Not without a database version and OS!
ok, i've had problems with this in the past, and tested it on 10.1.0.2.0 before i posted, and it appeared not to work
tried your example, and it worked
didn't save my test
so, we know it works in 10.1.0.2.0 and whatever version you're running but refused to disclose ;-)
i do recall having issues with this in the past, though. anyone else remember any problems with this?
++ mcs
I ran it on the only version I had handy: 10.2.0.1 but I've seen this
behaviour on earlier versions too.
--
Daniel A. Morgan
http://www.psoug.org
damorgan@xxxxxxxxxxxxxxxx
(replace x with u to respond)
.
- References:
- Trigger & Sequence
- From: Oliver Neumann
- Re: Trigger & Sequence
- From: Mark C. Stock
- Re: Trigger & Sequence
- From: DA Morgan
- Re: Trigger & Sequence ++ show errors for triggers
- From: Mark C. Stock
- Trigger & Sequence
- Prev by Date: Re: Oracle RAC for scalability or High Availability only
- Next by Date: Another one bites the dust: Oracle buys Sleepycat Database
- Previous by thread: Re: Trigger & Sequence ++ show errors for triggers
- Next by thread: QCOM is hiring Oracle Professionals
- Index(es):
Relevant Pages
|