ASMCMD-8102: no connection to ASM; command requires ASM to run

[grid@fgyxdb81~]$ asmcmd

Connected to an idle instance.

ASMCMD> ls

ASMCMD-8102: no connection to ASM; command requires ASM to run

 

Solution:

[grid@fgyxdb81 ~]$ export ORACLE_HOME=/opt/grid/product/11.2.0.3/

[grid@fgyxdb81~]$ export PATH=/opt/grid/product/11.2.0.3/bin/

[grid@fgyxdb81~]$ export ORACLE_SID=+ASM

[grid@fgyxdb81~]$ asmcmd

ASMCMD> ls

DATA/

INDX/