Can't Run ASMCMD As Non-Product Owning User (Doc ID 1668244.1)

Last updated on FEBRUARY 26, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Linux OS - Version Oracle Linux 5.5 and later
Information in this document applies to any platform.

Goal

ASMCMD command will not allow any user other than the actual Grid Home Owner to run it.

Per the Oracle Documentation: Oracle® Automatic Storage Management Administrator's Guide11g Release 2 (11.2)  it is allowed to run asmcmd from other than the grid owner.

However, there is an existing bug, Bug 11907186 - ASMCMD UTILITY CANNOT BE RUN FROM DBA USERS OTHER THAN PRODUCT OWNER  that this functionality does not work.

 

If you see this error, then this may be the bug.

$asmcmd
Can't locate strict.pm in @INC (@INC contains: /u01/app/11.2.0.4/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/11.2.0.4/grid/perl/lib/5.10.0 /u01/app/11.2.0.4/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/11.2.0.4/grid/perl/lib/site_perl/5.10.0 /u01/app/11.2.0.4/grid/lib /u01/app/11.2.0.4/grid/lib/asmcmd /u01/app/11.2.0.4/grid/rdbms/lib/asmcmd /u01/app/11.2.0.4/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/11.2.0.4/grid/perl/lib/5.10.0 /u01/app/11.2.0.4/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/11.2.0.4/grid/perl/lib/site_perl/5.10.0 /u01/app/11.2.0.4/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/11.2.0.4/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/11.2.0.4/grid/perl/lib/5.10.0 /u01/app/11.2.0.4/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/11.2.0.4/grid/perl/lib/site_perl/5.10.0 /u01/app/11.2.0.4/grid/perl/lib/site_perl .) at /u01/app/11.2.0.4/grid/bin/asmcmdcore line 143.
BEGIN failed--compilation aborted at /u01/app/11.2.0.4/grid/bin/asmcmdcore line 143.
 

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms