104/13 PLS-00201: identifier 'DBMS_LOCK' must be declared

while working on autonomous database after import of soe schema, I got following error while doing compilations of package owned by soe schema:


 Copyright (c) 1982, 2019, Oracle.  All rights reserved.


Last Successful login time: Wed Feb 10 2021 20:56:22 +05:30


Connected to:

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.5.0.0.0


SQL> ALTER PACKAGE SOE.ORDERENTRY COMPILE BODY;


Warning: Package Body altered with compilation errors.


SQL> sho error

Errors for PACKAGE BODY SOE.ORDERENTRY:


LINE/COL ERROR

-------- -----------------------------------------------------------------

104/13   PL/SQL: Statement ignored

104/13   PLS-00201: identifier 'DBMS_LOCK' must be declared

107/13   PL/SQL: Statement ignored

107/13   PLS-00201: identifier 'DBMS_LOCK' must be declared

SQL> GRANT execute ON DBMS_LOCK TO soe;


Grant succeeded.


SQL> ALTER PACKAGE SOE.ORDERENTRY COMPILE BODY;


Package body altered.


SQL>

Comments

Popular posts from this blog

ORA-46697: Keystore password required - create pluggable database pdb1clone from pdb1

OAM 11.1.2.3 - Bad Oracle Access Manager Request Error After Applying OAM Patch 27373151 + Webgate Patch 27393427 BP 11.1.2.3.180717