My Oracle Support Banner

ORA-06512: OIM Database Schema Upgrade Failure (Doc ID 2264098.1)

Last updated on OCTOBER 15, 2018

Applies to:

Identity Manager - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Symptoms

During the process of upgrading OIM from 11.1.2.1.0 - 11.1.2.3.0 and during the PSA part for Oracle_IDM1 an error occurs for *_OIM account.

 

[2014-03-12T17:11:29.666-03:00] [OIM] [NOTIFICATION] [] [upgrade.OIM.OIM1]
[tid: 13] [ecid: 0000KIrNv3oAHRw_wD1FiW1J89Yt000004,0] Executing sqlCommand :
[[
/*
DESCRIPTION: usr_data_level values for OOTB users are set as per they were
being used in thor code ("tcTableDataObject.java") and accordingly checks are
introduced in DeleteUserValidationHandler, DisableUserValidationHandler,
UserValidationHandler and ChangePasswordValidationHandler.
*/

DECLARE weblogicKey int;
oiminternalKey int;
xeloperatorKey int;

BEGIN

SELECT usr_key into weblogicKey from USR where usr_login='WEBLOGIC';
SELECT usr_key into oiminternalKey from USR where usr_login='OIMINTERNAL';
SELECT usr_key into xeloperatorKey from USR where usr_login='XELOPERATOR';
UPDATE USR SET USR_DATA_LEVEL='1' WHERE USR_KEY = weblogicKey or USR_KEY =
oiminternalKey or USR_KEY = xeloperatorKey;
COMMIT;

END;
]]
[2014-03-12T17:11:29.691-03:00] [OIM] [INCIDENT_ERROR] [UPGCMP-00925]
[upgrade.OIM.OIM1] [tid: 13] [ecid: 0000KIrNv3oAHRw_wD1FiW1J89Yt000004,0] An
unknown error occured [{0}]
[2014-03-12T17:11:29.691-03:00] [OIM] [INCIDENT_ERROR] [] [upgrade.OIM.OIM1]
[tid: 13] [ecid: 0000KIrNv3oAHRw_wD1FiW1J89Yt000004,0] Cause: Unknown
[2014-03-12T17:11:29.692-03:00] [OIM] [INCIDENT_ERROR] [] [upgrade.OIM.OIM1]
[tid: 13] [ecid: 0000KIrNv3oAHRw_wD1FiW1J89Yt000004,0] Action: See the
secondary error message in the log file for the cause of the failure.
[2014-03-12T17:11:29.692-03:00] [OIM] [INCIDENT_ERROR] [] [upgrade.OIM.OIM1]
[tid: 13] [ecid: 0000KIrNv3oAHRw_wD1FiW1J89Yt000004,0] [[
oracle.iam.oimupgrade.exceptions.OIMUpgradeException: SQL Exception in
running Upgrade Scripts
at
oracle.iam.oimupgrade.onehop.SchemaUpgradeManager.upgrade(SchemaUpgradeManager
.java:261)
at
oracle.iam.update.plugin.oim.OIMSchemaUpgradePlugin.upgrade(OIMSchemaUpgradePl
ugin.java:214)
at oracle.ias.update.plugin.Plugin.upgrade(Plugin.java:353)
at oracle.ias.update.plan.PlanStep.upgrade(PlanStep.java:295)
at oracle.ias.update.UpgradeDriver.doUpgrades(UpgradeDriver.java:474)
at oracle.ias.update.gui.UAUpgradeThread.run(UAUpgradeThread.java:41)
Caused by: java.sql.SQLException: ORA-01403: no data found
ORA-06512: at line 12
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1110)
at


STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1.Open sqlplus using sys

2. Run the below command

SELECT owner, object_name FROM all_objects WHERE status='INVALID';

3. Check any INVALID objects appeared or not. If appeared then run the below command from the same sql prompt to recompile all the INVALID objects.

Sql>@ /rdbms/admin/utlrp.sql

4. Again repeat the step III to check for the INVALID objects. Now all the INVALID objects should be gone.

5. From command shell move to <MW_HOME>/oracle_common/bin

6. Run ./psa

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
Cause
Solution
References


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