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

环境变量导致的,登录asmcmd控制台,会显示连接到 一个空闲的实例

[grid@yxdb81~]$ asmcmd
Connected to an idle instance. ASMCMD
> ls ASMCMD-8102: no connection to ASM; command requires ASM to run Solution: [grid@yxdb81 ~]$ export ORACLE_HOME=/opt/grid/product/11.2.0.3/ [grid@fgyxdb81~]$ export PATH=/opt/grid/product/11.2.0.3/bin/ [grid@yxdb81~]$ export ORACLE_SID=+ASM [grid@yxdb81~]$ asmcmd ASMCMD> ls DATA/ INDX/