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

标题: 升级opatch版本报Java (1.7) could not be located. OPatch cannot proceed!OPatch... [打印本页]

作者: jiawang    时间: 2024-2-22 16:19
标题: 升级opatch版本报Java (1.7) could not be located. OPatch cannot proceed!OPatch...
[oracle@winexdb dbhome_1]$ cd OPatch/
[oracle@winexdb OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.17

OPatch succeeded.


[root@winexdb soft]# su - oracle
Last login: Wed Feb 21 22:36:40 EST 2024 on pts/0
[oracle@winexdb ~]$ cd /soft/
[oracle@winexdb soft]$ unzip p6880880_122010_LINUX.zip $ORACLE_HOME

[oracle@winexdb OPatch]$ ./opatch version
./opatch: line 839: [: syntax error: `-lt' unexpected
./opatch: line 839: [: syntax error: `-lt' unexpected
Java (1.7) could not be located. OPatch cannot proceed!
OPatch returns with error code = 1

报错原因:opatch版本位数不对导致

正确opatch包为p6880880_122010_Linux-x86-64.zip



sftp> cd /tmp
sftp> lcd C:\temp
p6880880_122010_Linux-x86-64.zip            p6880880_190000_LINUX.zip
sftp> put p6880880_122010_Linux-x86-64.zip
Uploading p6880880_122010_Linux-x86-64.zip to /tmp/p6880880_122010_Linux-x86-64.zip
  100% 124780KB 124780KB/s 00:00:01     
C:\temp\p6880880_122010_Linux-x86-64.zip: 127774864 bytes transferred in 1 seconds (124780 KB/s)
sftp>

[oracle@winexdb soft]$unzip p6880880_122010_Linux-x86-64.zip  $ORACLE_HOME


[oracle@winexdb dbhome_1]$ cd OPatch/
[oracle@winexdb OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.40

OPatch succeeded.






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2