Flavio Casetta
![Subscribe to Flavio Casetta feed](http://www.orafaq.com/misc/feed.png)
Welcome to Flavio Casetta's official Oracle database application development related blog.
No Mysql supporters were hurt in the making of this blog.
Updated: 17 hours 34 min ago
DBA_ERRORS and error lines reported for TRIGGERS
As you probably know, the lines shown in views DBA_ERRORS/ALL_ERRORS/USER_ERRORS in the case of triggers are wrong.
But they are not totally wrong, they are just shifted by the amount of lines between the line containing the keyword TRIGGER and either DECLARE or BEGIN, whichever occurs first.
See the example below for an error reported by the dba_errors view on line 2 caused by missing grants on the table used in the variable declaration:
TRIGGER GAGREA2.TR_ASSEGNAZIONE_AI
AFTER INSERT ON ASSEGNAZIONE
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW
DECLARE
LI_ID_ASSEGNAZIONE_DOM_RICGEN GAGREA2.DOMANDA_ASG_SPECIFICHE.ID_ASSEGNAZIONE_DOM_RICGEN%TYPE;
BEGIN
GAGREA2.PKG_TRIGGER.SET_ID_ASSEGNAZIONE_DOM_RICGEN ( :NEW.ID_DOMANDA, LI_ID_ASSEGNAZIONE_DOM_RICGEN );
END TR_ASSEGNAZIONE_AI;
So, the real line number can be obtained adding the number of the line containing DECLARE (or BEGIN if DECLARE is missing) minus 1, that is 2 + 5 - 1 = 6.
Categories: DBA Blogs
When #OWNER# is not the OWNER you expected
Categories: DBA Blogs
APEX Master Detail side-by-side form ICON_CLASS and ICON_COLOR_CLASS explained
Categories: DBA Blogs
APEX feature request, support needed!
Categories: DBA Blogs
ORA-14148: DML and DDL operations are not directly allowed on the guard-column.
Categories: DBA Blogs
Getting all the simple combinations of n elements with a query (and what to do next)
Categories: DBA Blogs
ORA-00942: table or view does not exist on inserting rows with a user other than the table owner
Categories: DBA Blogs
In a single-byte character set database non-ASCII characters may cause JSON parse to fail
Categories: DBA Blogs
Yet another curious syntax with little documentation: SELECT FROM RELATIONAL("schema"."table")
Categories: DBA Blogs
The strange case of the REVERSE function
Categories: DBA Blogs