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



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

Answer / 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

More Oracle Errors Interview Questions

ORA-01877: string is too long for internal buffer

1 Answers  


ORA-31015: Attempted to insert entry without name

1 Answers  


ORA-12702: invalid NLS parameter string used in SQL function

1 Answers  


LPX-00219: invalid digit '~c' in character reference

1 Answers  


ORA-01611: thread number string is invalid - must be between 1 and string

1 Answers  






LSX-00204: extra data at end of complex element

1 Answers  


ORA-19753: error writing to change tracking file

1 Answers  


ORA-16536: unknown object type

1 Answers  


ORA-08114: can not alter a fake index

1 Answers  


RMAN-06167: already connected

1 Answers  


LSX-00234: invalid decimal "~S"

1 Answers  


ORA-09820: Conversion of class string to numeric representation failed.

1 Answers  


Categories