重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 648|回复: 0
打印 上一主题 下一主题

[参考文档] ORA-1400 On WMSYS.OWM_VSCRIPT_PKG During Upgrade to 12.1 (Doc ID 1933789.1)

[复制链接]
跳转到指定楼层
楼主
发表于 2024-5-22 19:09:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
ORA-1400 On WMSYS.OWM_VSCRIPT_PKG During Upgrade to 12.1 (Doc ID 1933789.1)       

Symptoms
Cause
Solution
References

APPLIES TO:
Workspace Manager - Version 12.1.0.1 to 12.2.0.1 [Release 12.1 to 12.2]
Information in this document applies to any platform.
SYMPTOMS
During the upgrade from 11.2 to 12.1, the following error is reported in the upgrade log:

begin
  wmsys.owm_vscript_pkg.upgradeOWM(:old_owm_version_for_upgrade) ;
end;
/
begin
*
ERROR at line 1:
ORA-20001: Errors encountered during table migration. Query wmsys.wm$migration_error_table.
ORA-06512: at "WMSYS.OWM_VSCRIPT_PKG", line 3730
ORA-06512: at "WMSYS.OWM_VSCRIPT_PKG", line 3544
ORA-06512: at line 2

The wmsys.wm$migration_error_table contains the following error messages:

ERROR: ORA-01400: cannot insert NULL into ("WMSYS"."WM$WORKSPACES_TABLE$"."POST_VERSION")
ERROR: ORA-01400: cannot insert NULL into ("WMSYS"."WM$NEXTVER_TABLE$"."WORKSPACE#")
ERROR: ORA-01400: cannot insert NULL into ("WMSYS"."WM$VERSION_HIERARCHY_TABLE$"."WORKSPACE#")


CAUSE
This is caused by the following bug:

BUG 19652546 - WSM UPGRADE DOES NOT ACCOUNT FOR POSSIBLY NULL VALUES IN WM$WORKSPACES_TABLE

If an 11g database has a workspace where the post_version is NULL, upgrade to 12.1 will fail with the following error:

ORA-01400: cannot insert NULL into ("WMSYS"."WM$WORKSPACES_TABLE$"."POST_VERSION")


Run the following query to confirm Bug 19652546:

col workspace format a15
col parent_workspace for a15

select workspace, parent_workspace, post_version
from wmsys.wm$workspaces_table;


You should get output similar to the following:

SQL> select workspace, parent_workspace, post_version
   2 from wmsys.wm$workspaces_table;

WORKSPACE        PARENT_WORKSPAC POST_VERSION
---------------- --------------- ------------
LIVE


SOLUTION
Bug 19652546 is fixed in 12.2.

To avoid the error during the upgrade, deinstall and reinstall Workspace Manager before the upgrade.

connect / as sysdba
@?/rdbms/admin/owmuinst.plb
@?/rdbms/admin/owminst.plb

After the upgrade has already completed, deinstall and reinstall Workspace Manager on the target db, to avoid any future problems.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-25 03:48 , Processed in 0.118212 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表