I still remembered the cliche a manager used to tell me, “Slow and steady win the race.”
Looks like it is true with Oracle software as you never know what’s going to get.
I am trying to install 19.3 database software and apply Patch 31305339 – GI Release Update 19.8.0.0.200714 which failed misserably.
There is little to no information for the failure (at least from what I was able to ascertain).
Resolving the issue requires starting over from the beginning.
Here are the steps taken:
[oracle@ol7-112-dg1 ~]$ cat /etc/system-release Oracle Linux Server release 7.7 [oracle@ol7-112-dg1 ~]$ ll /etc/ora* -rw-r--r--. 1 root root 32 Aug 8 2019 /etc/oracle-release -rw-rw-r--. 1 oracle oinstall 790 Oct 14 19:13 /etc/oratab [oracle@ol7-112-dg1 ~]$ echo $new_db_home /u01/app/oracle/product/19.3.0.0/db_1 [oracle@ol7-112-dg1 ~]$ rm -rf $new_db_home [oracle@ol7-112-dg1 ~]$ ls $new_db_home ls: cannot access /u01/app/oracle/product/19.3.0.0/db_1: No such file or directory [oracle@ol7-112-dg1 ~]$ echo $zip_loc /vagrant_software [oracle@ol7-112-dg1 ~]$ ls -l $zip_loc/LINUX.X64_193000_db_home.zip -rwxrwxrwx. 1 vagrant vagrant 3059705302 Sep 5 2019 /vagrant_software/LINUX.X64_193000_db_home.zip [oracle@ol7-112-dg1 ~]$ unzip -qo $zip_loc/LINUX.X64_193000_db_home.zip -d $new_db_home; echo $?; ls $new_db_home 0 addnode crs dbjava dmu hs jdbc md olap ords plsql rdbms runInstaller sqlj ucp apex css dbs drdaas install jdk mgw OPatch oss precomp relnotes schagent.conf sqlpatch usm assistants ctx deinstall dv instantclient jlib network opmn oui QOpatch root.sh sdk sqlplus utl bin cv demo env.ora inventory ldap nls oracore owm R root.sh.old slax srvm wwg clone data diagnostics has javavm lib odbc ord perl racg root.sh.old.1 sqldeveloper suptools xdk [oracle@ol7-112-dg1 ~]$ $new_db_home/OPatch/opatch version OPatch Version: 12.2.0.1.17 OPatch succeeded. [oracle@ol7-112-dg1 ~]$ unzip -qo $zip_loc/p6880880_190000_LINUX.zip -d $new_db_home; echo $? 0 [oracle@ol7-112-dg1 ~]$ $new_db_home/OPatch/opatch version /u01/app/oracle/product/19.3.0.0/db_1/OPatch/opatch: line 839: [: too many arguments /u01/app/oracle/product/19.3.0.0/db_1/OPatch/opatch: line 839: [: too many arguments Java (1.7) could not be located. OPatch cannot proceed! OPatch returns with error code = 1 [oracle@ol7-112-dg1 ~]$ $new_db_home/OPatch/opatch version -jdk $new_db_home/jdk OPatch Version: 12.2.0.1.21 OPatch succeeded. [oracle@ol7-112-dg1 ~]$ cd $new_db_home [oracle@ol7-112-dg1 db_1]$ ls -l /home/oracle/patch/31305339 total 132 drwxr-x---. 5 oracle oinstall 81 Jul 10 05:20 31281355 drwxr-x---. 5 oracle oinstall 62 Jul 10 05:17 31304218 drwxr-x---. 5 oracle oinstall 62 Jul 10 05:18 31305087 drwxr-x---. 4 oracle oinstall 48 Jul 10 05:20 31335188 drwxr-x---. 2 oracle oinstall 4096 Jul 10 05:18 automation -rw-rw-r--. 1 oracle oinstall 5054 Jul 10 05:46 bundle.xml -rw-rw-r--. 1 oracle oinstall 120878 Jul 20 19:04 README.html -rw-r--r--. 1 oracle oinstall 0 Jul 10 05:17 README.txt [oracle@ol7-112-dg1 db_1]$ pwd /u01/app/oracle/product/19.3.0.0/db_1 [oracle@ol7-112-dg1 db_1]$ ./runInstaller -debug -applyRU /home/oracle/patch/31305339 Preparing the home to patch… Applying the patch /home/oracle/patch/31305339… OPatch command failed while applying the patch. For details look at the logs from /u01/app/oracle/product/19.3.0.0/db_1/cfgtoollogs/opatchauto/. [oracle@ol7-112-dg1 db_1]$ cd /u01/app/oracle/product/19.3.0.0/db_1/cfgtoollogs/opatchauto -bash: cd: /u01/app/oracle/product/19.3.0.0/db_1/cfgtoollogs/opatchauto: No such file or directory [oracle@ol7-112-dg1 db_1]$ cd /u01/app/oracle/product/19.3.0.0/db_1/cfgtoollogs/ [oracle@ol7-112-dg1 cfgtoollogs]$ ll total 4 drwxrwx---. 2 oracle oinstall 4096 Oct 17 16:44 oui [oracle@ol7-112-dg1 cfgtoollogs]$ [oracle@ol7-112-dg1 db_1]$ ./runInstaller -debug -applyRU /home/oracle/patch/31305339 ERROR: The home is not clean. This home cannot be used since there was a failed OPatch execution in this home. Use a different home to proceed. [oracle@ol7-112-dg1 db_1]$ Executing "gridSetup.sh" Fails with "ERROR: The home is not clean"(Doc ID 2279633.1) Fails with "ERROR: The home is not clean" . [root]# rm-Rf [oracle]$ unzip linuxx64_12201_grid_home.zip -d