标题: ORA-06573: Function string modifies package state, cannot be used here [打印本页] 作者: admin 时间: 2016-7-27 15:37 标题: ORA-06573: Function string modifies package state, cannot be used here ORA-06573: Function string modifiespackage state, cannot be used here Cause: There are two possible causes for this message:
ORA-04930to ORA-07499 6-25
* A SQL statement references a packaged, PL/SQLfunction 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. Action: Ifthe function is a packaged, PL/SQL function: Recreate the function and
include a pragma containing the 'Write no Package State' (WNPS). If thefunction
is a stand-alone, PL/SQL function: Delete the function from the SQL statement.