You are here: Home // Oracle 11g // ORA-06573: Function string modifies package state, cannot be used here

ORA-06573: Function string modifies package state, cannot be used here

Cause: There are two possible causes for this message:
  • A SQL statement references a packaged, PL/SQL function that does not contain a pragma containing the 'Write no Package State' (WNPS).
  • A SQL statement references a stand-alone, PL/SQL function that modifies a package state. A stand-alone, PL/SQL function referenced by a SQL statement cannot modify a package state.
See the solution below.

Error solution: If the function is a packaged, PL/SQL function: Recreate the function and include a pragma containing the 'Write no Package State' (WNPS). If the function is a stand-alone, PL/SQL function: Delete the function from the SQL statement.

Database version: Oracle 11g Release 2 (11.2)

Tags: ,

Leave a Reply

Copyright © 2009 Oracle Error Codes Database. All rights reserved.
Powered by WordPress.
Promotes: Zabawki dla psów samochody używane Autyzm konferencja naukowa studentów Świeradów-Zdrój noclegi