Utlspadv.Sql Fails With 'Pls-00201: Identifier 'Dbms_lock' Must Be Declared' (Doc ID 945355.1)

Last updated on SEPTEMBER 08, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.0 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.

Symptoms

PLS-201 reported on 'DBMS_LOCK' when running ?/rdbms/admin/utlspadv.sql for a user that has been
granted the DBA role and the privileges associated with

BEGIN
DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE(
grantee => 'priv_test',
grant_privileges => FALSE,
file_name => 'grant_strms_privs.sql',
directory_name => 'admin_dir');
END;
/

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms