SYS.DBMS_OPTIM_BUNDLE Invalid After Downgrading From 12.2.0.1 To 12.1.0.2

(Doc ID 2398897.1)

Last updated on MAY 17, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 to 12.2.0.1 [Release 12.1 to 12.2]
Information in this document applies to any platform.

Symptoms

ERROR
-----------------------
alter package sys.DBMS_OPTIM_BUNDLE compile body;

Warning: Package Body altered with compilation errors.

Changes

DB esd  downgraded from 12.2.0.1 to 12.1.0.2, following the below steps:

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