PLS-00452: Subprogram 'string' violates its associated pragma

Answer Posted / guest

Cause: A packaged function cannot be called from SQL
statements unless its purity level is asserted by coding a
RESTRICT_REFERENCES pragma in the package specification. The
pragma, which is used to control side effects, tells the
PL/SQL compiler to deny the packaged function read/write
access to database tables, public packaged variables, or
both. A SQL statement that violates the pragma will cause a
compilation error.

Action: Raise the purity level of the function, or relax the
pragma restrictions.

Please add more information about this Error

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

ORA-16626: failed to enable specified object

1776


Hi guys, I have four tables those are emp,dept,eliminate and uneliminate. i wrote small cursor..when i run, it display one error (ORA-01403 nodata found)... The query is: Declare cursor c1 is select e.ename emp_name from emp e,dept d where e.deptno=d.deptno group by deptno; r1 c1%rowtype; test_emp varchar2(200); begin for r1 in c1 loop begin select eliminate_emp into test_emp from eliminate t,uneliminate ut where t.number=ut.number and t.deptno=e.deptno and rownum<1; end; dbms_output.put_line(r1.emp_name); end loop; end; Thanks...

2257


RMAN-05017: no copy of datafile number found to recover

1888


IMP-00064: Definition of LOB was truncated by export

5890


IMP-00070: Lob definitions in dump file are inconsistent with database.

1290






IMP-00060: Warning: Skipping table "string"."string" because object type "string"."string" does not exist or has different identifier

2621


Hi guys, I have four tables those are emp,dept,eliminate and uneliminate. i wrote small cursor..when i run, it display one error (ORA-01403 nodata found)... The query is: Declare cursor c1 is select e.ename emp_name from emp e,dept d where e.deptno=d.deptno group by deptno; r1 c1%rowtype; test_emp varchar2(200); begin for r1 in c1 loop begin select eliminate_emp into test_emp from eliminate t,uneliminate ut where t.number=ut.number and t.deptno=e.deptno and rownum<1; end; dbms_output.put_line(r1.emp_name); end loop; end; Thanks...

2140


ORA-07497: sdpri: cannot create trace file 'string'; errno = string.

2317


NZE-28868: Peer certificate chain check failed.

2265


when i ran any workflow or session, getting below error: seesion task instance[s_xxx]: Execution terminated unexpecterdly

1754


ORA-16627: No standby databases support the overall protection mode.

3560


ORA-26032: index string.string loading aborted after string keys

1655


ORA-26082: load of overlapping segments on table string.string is not allowed

1378


IMG-02003: 2FF03 - incorrect color histogram feature specification

1203


ORA-26084: direct path context already finished

1484