My Oracle Support Banner

PLS-00201: identifier 'DBMS_RANDOM' must be declared When Compiling Invalid Data Mining Objects (Doc ID 727867.1)

Last updated on OCTOBER 31, 2019

Applies to:

Oracle Data Mining - Version 10.2.0.1 to 10.2.0.5 [Release 10.2]
Information in this document applies to any platform.

Symptoms

NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the Oracle sample or bulit-in schema(s), Public Documentation delivered with an Oracle database product or other training material.  Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.

The Following DMSYS objects are invalid:

ODM_MODEL_UTIL
DMP_SYS
DBMS_PREDICTIVE_ANALYTICS
DBMS_JDM_INTERNAL

Recompiling those package body return the following:

SQL> alter PACKAGE DMSYS.DBMS_PREDICTIVE_ANALYTICS compile body;

Warning: Package Body altered with compilation errors.

SQL> show errors
Errors for PACKAGE BODY DMSYS.DBMS_PREDICTIVE_ANALYTICS:

LINE/COL ERROR
-------- -----------------------------------------------------------------
81/5 PL/SQL: Statement ignored
81/31 PLS-00201: identifier 'DBMS_RANDOM' must be declared

 

Changes

The grant execute on DBMS_RANDOM to public have been revoked

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.