[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.
|