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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[参考文档] autoUpgrade Fails With UPG-1400#UPGRADE FAILED (Doc ID 2593418.1)

[复制链接]
跳转到指定楼层
楼主
发表于 2023-6-18 10:05:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
SYMPTOMS
Database upgrade using autoupgrade fails with error:UPG-1400#UPGRADE FAILED

Symptom 1:
upg> lsj
+----+-------+---------+---------+-------+--------------+--------+--------+------------+
|Job#|DB_NAME| STAGE|OPERATION| STATUS| START_TIME|END_TIME| UPDATED| MESSAGE|
+----+-------+---------+---------+-------+--------------+--------+--------+------------+
| 103| orcl|DBUPGRADE|EXECUTING|RUNNING|19/09/02 15:17| N/A|15:09:41|91%Upgraded |
+----+-------+---------+---------+-------+--------------+--------+----


autoupgrade_<timestamp>.log shows :

2019-09-03 15:12:31.654 INFO DbUpgrade returned error AutoUpgException [UPG-1400#UPGRADE FAILED [orcl]] - ExecuteDbUpgrade.executeStage
upg_summary.log shows :

Datapatch
Error: prereq checks failed!
$ORACLE_BASE/cfgtoollogs/sqlpatch/sqlpatch_<timestamp>/sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Bootstrapping registry and package to current versions...done
Error: prereq checks failed!
verify_queryable_inventory returned ORA-06502: PL/SQL: numeric or value error: string buffer too small
Prereq check failed, exiting without installing any patches.


Symptom 2:
autoupgrade_<timestamp>.log shows :

2021-02-15 11:12:05.158 ERROR Exception Error in Database Upgrade [ORCL] - DbUpgrade.upgradeStartUp
oracle.upgrade.autoupgrade.utils.errors.AutoUpgException: AutoUpgException [UPG-1400#UPGRADE FAILED [orcl]]
autoupgrade_err.log shows:

2021-02-15 11:11:55.360 ERROR
DATABASE NAME: orcl
CAUSE: ERROR at Line 7 in [\temp\upg_logs_orcl\orcl\103\dbupgrade\catupgrd20210215113712orcl0.log]
REASON: SP2-0556: Invalid file name.
ACTION: [MANUAL]
DETAILS: - CheckForErrors.checkForErrors
2021-02-15 13:11:58.767 ERROR
DATABASE NAME: orcl
CAUSE: ERROR at Line 771093 in [\temp\upg_logs_orcl\orcl\103\dbupgrade\catupgrd20210215113712orcl0.log]
REASON: SP2-0310: unable to open file "LOGIN.SQL"
ACTION: [MANUAL]
DETAILS: - CheckForErrors.checkForErrors

2021-02-15 13:12:00.752 ERROR Database Upgrade Error in File [C:\temp\upg_logs_orcl\orcl\108\dbupgrade\catupgrd20210215123712orcl3.log] on Database

2021-02-15 13:12:00.767 ERROR Exception Error in Database Upgrade [UPG-1400#UPGRADE FAILED [orcl]] - CallUpgrade.doUpgrade
2021-02-15 13:12:05.158 ERROR UPGRADE FAILED [orcl] - DbUpgrade.upgradeDriver
2021-02-15 13:12:05.158 ERROR Exception Error in Database Upgrade [orcl] - DbUpgrade.upgradeStartUp
oracle.upgrade.autoupgrade.utils.errors.AutoUpgException: AutoUpgException [UPG-1400#UPGRADE FAILED [orcl]]


CAUSE
Cause 1:
Target oracle_home was not registered in central inventory . opatch lsinventory failed

Cause 2:
login.sql do not exist.



SOLUTION
Solution 1:
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="<Oracle_Home_Location>" ORACLE_HOME_NAME="<Name_Of _Oracle_Home>"

Re-run the autoupgrade

Solution 2:
1) Copy login.sql file which is created by autoupgrade under $ORACLE_BASE/cfgtoollogs/upgrade/auto/sql to directory which is defined by SQLPATH Variable
echo $SQLPATH -- to find sqlpath directory
2) re-run autoupgrade

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 13:23 , Processed in 0.107039 second(s), 21 queries .

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

© 2001-2020

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