Falha ao aplicar o OJVM

Ao aplicar o  patch 27001733 (Oracle JavaVM Component Database PSU), ocorreu uma falha que não havia ocorrido ao aplicar o patch de outubro e tão pouco ocorreu ao aplicar o OJVM de JAN2018 da versão 12.2.

I got an error applying patch 27001733 (Oracle JavaVM Component Database PSU) which hasn’t happen on ojvm patch from oct/2017 neither on ojvm from jan/2018 on 12.2.

Você encontrará o log do opatch no diretório $ORACLE_HOME/cfgtoollogs/opatch.

You will find opatch logs at $ORACLE_HOME/cfgtoollogs/opatch.

O erro reportado no log foi:

The error reported on log was:

[Feb 8, 2018 2:56:00 PM] [WARNING] OUI-67200:Make failed to invoke "/usr/bin/make -f ins_rdbms.mk javavm_refresh patchset_opt_all ioracle ORACLE_HOME=/u01/app/oracle/product/"....'make: perl: Command not found
 make: *** [javavm_refresh] Error 127
[Feb 8, 2018 2:56:00 PM] [INFO] Re-link fails on target "javavm_refresh patchset_opt_all ioracle".
[Feb 8, 2018 2:56:00 PM] [INFO] --------------------------------------------------------------------------------
 Failed to run make commands. Please contact Oracle Support.
[Feb 8, 2018 2:56:00 PM] [SEVERE] OUI-67115:OPatch failed to restore OH '/u01/app/oracle/product/'. Consult OPatch document to restore the home manually before proceeding.
[Feb 8, 2018 2:56:00 PM] [WARNING] OUI-67124:
 NApply was not able to restore the home. Please invoke the following scripts:
 - restore.[sh,bat]
 - make.txt (Unix only)
 to restore the ORACLE_HOME. They are located under
[Feb 8, 2018 2:56:00 PM] [SEVERE] OUI-67073:UtilSession failed: Re-link fails on target "javavm_refresh patchset_opt_all ioracle".

A correção é simples, basta setar as variávies conforme abaixo:

To fix this issue you have to set those two variables below:

export PATH=$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB = $ORACLE_HOME/perl/lib

e rodar novamente o opatch que agora a atualização será bem sucedida 🙂

and then opatch will run successfully.


Author: reguchi

Oracle ACE, OCP 12c, OCE 12c MAA, OCE Exadata, RHCE, AWS CSAA, OCI CSAA. Technology geek, homebrewer, dad.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s