Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to avoid this ORA-14551 error?

814030Nov 18 2010 — edited Jul 1 2011
I would want to log in a table called T_LOG ( a number, b varchar2(1000)) the values of the parameters of a function f(x number, y varchar2) each time this function is executed. So, I went in the source of the function and made an insert of one row :
<h3>Insert into T_LOG(a,b) VALUES(x,y);</h3>

but I also have a select statement where the function f is used, and now, when I run the select statement, I get the error ORA-14551 : cannot perform a dml operation inside a query. Please, how could I log the parameters of the function each time it is used and be able to do a select statement using this function?
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2011
Added on Nov 18 2010
9 comments
22,969 views