Environment: Windows 2003, Oracle 10gR2, 2 node RAC with ASM and multiple databases

I am trying to connect to asmcmd after few days and I am getting this error on both the nodes.


D:\>set ORACLE_HOME=D:\oracle\product\10g\db_1

D:\>set ORACLE_SID=+ASM1

D:\>asmcmd
ORA-00604: error occurred at recursive SQL level 2
ORA-04031: unable to allocate 4108 bytes of shared memory ("shared pool","select
x.inst_id,x.indx+1,ks...","Typecheck","seg:kggfaAllocSeg") (DBD ERROR: error po
ssibly near <*> indicator at char 18 in 'select value from <*>v$parameter where
name='instance_type'')
Use of uninitialized value in string ne at D:\oracle\product\10g\db_1\bin\asmcmd
core line 3905.
Use of uninitialized value in string ne at D:\oracle\product\10g\db_1\bin\asmcmd
core line 3905.
asmcmd: command disallowed by current instance type
D:\>


SRVCTL shows everything fine. I can connect to asm1 and asm2 instance through sqlplus. All databases on RAC are fine and connecting.

Please advice.
Thanks