SCO fails Discovery in 4.8+ with error that user oracle does not exist
Applies to
- SnapCenter Plug-in for Oracle (SCO) 4.8
- SnapCenter Plug-in for Oracle 4.9
- SnapCenter Plug-in for Oracle 5.x
- SnapCenter Plug-in for Oracle 6.x
Issue
Oracle Database Discovery, when checking the JobD etails shows:
Discovery failed for object <object_name> with error PL-SCO-20006: Discovery of database files failed for database <database_name> on host <host_name> with error Operation Exception occured during oracle databaseconnection, reason: Unexpected Operation occuredWhen the user "oracle" does not exist, the new code from 4.8 trying to find the owner and group for the sqlplus executable is attempted through user "oracle",
and fails, blocking the use of SQLPlus to check the database found in
and fails, blocking the use of SQLPlus to check the database found in
/etc/oratab:DEBUG Execution Monitor Thread [sudo /opt/NetApp/snapcenter/spl/bin/sc_command_executor oracle "ls -ld '/oracle/<SID>/19/bin/sqlplus' | sed 's/[ ][ ]*/ /g' | cut -d' ' -f3"] c.n.c.e.ShellResult - EXE-00001: Shell result [0:00:00.169] (Exit Value: 1):
su: user oracle does not existThe same can happen for RAC systems with the default on grid user:
ORACLE-40100: Error executing olsnodes command "sudo /opt/NetApp/snapcenter/spl/bin/sc_command_executor grid export LC_ALL=C\; /u01/app/grid/product/19.3.0/bin/olsnodes -l".
The command returned: [su: user grid does not exist].
