Tengo problemas al ejecutar una función en SQL
Tengo un problemón pues cuando ejecuto una función que he hecho en PL/SQL me sale el error siguiente:
SQL> select baan.alm_add_etod(1,10,100,101,'Ref.Interna','Ref.Cliente',10,5,1) valor from dual;
select baan.alm_add_etod(1,10,100,101,'Ref.Interna','Ref.Cliente',10,5,1) valor from dual
*
ERROR at line 1:
ORA-06571: Function ALM_ADD_ETOD does not guarantee not to update database
SQL> !oerr ora 6571
06571, 00000, "Function %s does not guarantee not to update database"
// *Cause: There are two possible causes for this message:
// * A SQL statement references a packaged, PL/SQL function
// that does not contain a pragma that prevents the database
// from being updated.
// * A SQL statement references a stand-alone, PL/SQL function
// that contains an instruction to update the database.
// *Action: If the referenced function is a packaged, PL/SQL function:
// Recreate the PL/SQL function with the required pragma; be
// certain to include the 'Write No Database State' (WNDS)
// argument in the argument list of the pragma.
// If the referenced function is a stand-alone, PL/SQL function:
// Do not use the function.
¿Sabrías decirme cuál es la razón?
SQL> select baan.alm_add_etod(1,10,100,101,'Ref.Interna','Ref.Cliente',10,5,1) valor from dual;
select baan.alm_add_etod(1,10,100,101,'Ref.Interna','Ref.Cliente',10,5,1) valor from dual
*
ERROR at line 1:
ORA-06571: Function ALM_ADD_ETOD does not guarantee not to update database
SQL> !oerr ora 6571
06571, 00000, "Function %s does not guarantee not to update database"
// *Cause: There are two possible causes for this message:
// * A SQL statement references a packaged, PL/SQL function
// that does not contain a pragma that prevents the database
// from being updated.
// * A SQL statement references a stand-alone, PL/SQL function
// that contains an instruction to update the database.
// *Action: If the referenced function is a packaged, PL/SQL function:
// Recreate the PL/SQL function with the required pragma; be
// certain to include the 'Write No Database State' (WNDS)
// argument in the argument list of the pragma.
// If the referenced function is a stand-alone, PL/SQL function:
// Do not use the function.
¿Sabrías decirme cuál es la razón?
1 Respuesta
Respuesta de damen68
1