failed to detect Grid Infrastructure setup due to null during Opatchauto apply

I got ” failed to detect Grid Infrastructure setup due to null ” error in the Oracle during Opatchauto apply.

 

failed to detect Grid Infrastructure setup due to null

Details of error are as follows.

[root@msdbadm08 patch]# /u01/app/oracle/product/19.0/dbhome_1/OPatch/opatchauto apply /zfssa/msdb/msdb_scripts_c07/patch/33509923 -oh /u01/app/oracle/product/19.0/dbhome_1

OPatchauto session is initiated at Thu Feb 3 21:59:32 2022

System initialization log file is /u01/app/oracle/product/19.0/dbhome_1/cfgtoollogs/opatchautodb/systemconfig2022-02-03_09-59-37PM.log.

Remote command execution failed due to Exception in thread "main" oracle.dbsysmodel.driver.sdk.productdriver.ProductDriverException: failed to detect Grid Infrastructure setup due to null
at oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader.detectCrsHome(ClusterInformationLoader.java:328)
at oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader.loadInventory(ClusterInformationLoader.java:81)
at oracle.dbsysmodel.driver.sdk.productdriver.ClusterInformationLoader.getInstance(ClusterInformationLoader.java:70)
at oracle.dbsysmodel.driver.sdk.productdriver.remote.HomeListCollector.executeAction(HomeListCollector.java:31)
at oracle.dbsysmodel.driver.sdk.productdriver.remote.RemoteOperationHelper.main(RemoteOperationHelper.java:26)
Command output: 
OPATCHAUTO-72050: System instance creation failed.
OPATCHAUTO-72050: Failed while retrieving system information.
OPATCHAUTO-72050: Please check log file for more details.

OPatchauto session completed at Thu Feb 3 22:00:03 2022
Time taken to complete the session 0 minute, 31 seconds

Topology creation failed.
[root@msdbadm08 patch]# 
[root@msdbadm08 patch]#

 

 

This error is related with the oraInventory permission and ownership. If you apply the GI patches , then change ownership of oraInventory as grid:oinstall, If you apply the RAC home patches, then change ownership of oraInventory as oracle:oinstall as follows.

 

$  chown -R oracle:oinstall /u01/app/oraInventory

$  chmod -R 755  /u01/app/oraInventory

 

 

If your error is not solved by changing the permission and ownership of oraInventory, then use the Manual patch method instead of OPATCHAUTO as follows.

Run prepatch.sh , then apply the local patches, after that run the postpatch.sh as follows.

 

/u01/patch/33509923/33529556/custom/scripts/prepatch.sh -dbhome /u01/app/oracle/product/19.0/dbhome_1

/u01/app/oracle/product/19.0/dbhome_1/OPatch/opatch apply -oh /u01/app/oracle/product/19.0/dbhome_1 -local /u01/patch/33509923/33529556

/u01/app/oracle/product/19.0/dbhome_1/OPatch/opatch apply -oh /u01/app/oracle/product/19.0/dbhome_1 -local /u01/patch/33509923/33515361


/u01/patch/33509923/33529556/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/product/19.0/dbhome_1

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *