My Oracle Support Banner

ODA multiple nocp flags in asmcmd causing repo start failures (Doc ID 2581019.1)

Last updated on JUNE 10, 2020

Applies to:

Oracle Database Appliance Software - Version 12.2.1.1.0 and later
Information in this document applies to any platform.

Goal

ODA Software Version 12.2.x to All

ODA Repo are offline and cannot be started.

From the Log odabaseagent.log we can see 

2019-06-02 05:39:52,641 [SYS_DISC_1385574_SharedRepoType] [Thread-114] [odabaseutils] [DEBUG] [58] Executing shared repo command su - grid -c "export ORACLE_SID=+ASM2; export ORACLE_HOME=/u01/app/12.2.0.1/grid; /u01/app/12.2.0.1/grid/bin/asmcmd --nocp --nocp volinfo --all | grep -w -i -A 3 'datastore' | grep 'Size'"
2019-06-02 05:39:52,877 [SYS_DISC_1385574_SharedRepoType] [Thread-114] [sharedrepoactions] [ERROR] [183] OAKERR:5003 Command execution unsuccessful for Command=su - grid -c "export ORACLE_SID=+ASM2; export ORACLE_HOME=/u01/app/12.2.0.1/grid; /u01/app/12.2.0.1/grid/bin/asmcmd --nocp --nocp volinfo --all | grep -w -i -A 3 'datastore' | grep 'Size'" Error=usage: asmcmd [-V] [--nocp] [-v {errors | warnings | normal | info | debug} ] [--privilege {sysasm | sysdba} ] [-p] [--inst <instance_name>] [--discover][]
help: help

2019-06-02 05:39:52,878 [SYS_DISC_1385574_SharedRepoType] [Thread-114] [odabaseutils] [DEBUG] [53] Created xml string 0OAKERR:5003 Command execution unsuccessful for Command=su - grid -c "export ORACLE_SID=+ASM2; export ORACLE_HOME=/u01/app/12.2.0.1/grid; /u01/app/12.2.0.1/grid/bin/asmcmd --nocp --nocp volinfo --all | grep -w -i -A 3 'datastore' | grep 'Size'" Error=usage: asmcmd [-V] [--nocp] [-v {errors | warnings | normal | info | debug} ] [--privilege {sysasm | sysdba} ] [-p] [--inst <instance_name>] [--discover][<command>]
help: help

The command "/u01/app/12.2.0.1/grid/bin/asmcmd --nocp --nocp volinfo --all | grep -w -i -A 3 'datastore' | grep 'Size'" was passing ' --nocp --nocp '. So --nocp was passed twice.

This came from the odabaseConstants.py.

[root@oda1]# grep nocp /opt/oracle/oak/adapters/odabaseConstants.py
ASMCMD=os.path.join(gi_home,'bin','asmcmd --nocp --nocp')


 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.