[grid@exa1~]$ asmcmd
kgfnGetConnDetails requires 4 parameters at /u01/app/18.0.0.0/grid/lib/asmcmdbase.pm line 6096.
[grid@exa1 ~]$ /u01/app/18.0.0.0/grid/bin/crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [18.0.0.0.0]
[grid@exa1~]$ /u01/app/18.0.0.0/grid/bin/crsctl query crs softwarepatch
Oracle Clusterware patch level on node exa1is [1180628535].
[root@exa1~]# export GRID_HOME=/u01/app/18.0.0.0/grid/
[root@exa1~]# cp $GRID_HOME/lib/asmcmdbase.pm $GRID_HOME/lib/asmcmdbase.pm.bckp
[root@exa1~]# vi $GRID_HOME/lib/asmcmdbase.pm
— zmieniamy:
# Get connection string and credentials from kgfnGetConnDetails using
# z:
6093 # PerlToC API
6094 # ($rc, $str, $creds) = ASMCMDGetConnDetails(0,
6095 # $asmcmdglobal_hash{’service’},
6096 # $asmcmdglobal_hash{’inst’},
6097 # '_asmcmd’, $listener);
# na:
6098 ($rc, $str, $creds) = ASMCMDGetConnDetails(0,
6099 $asmcmdglobal_hash{’service’},
6100 $asmcmdglobal_hash{’inst’},
6101 '_asmcmd’);
[root@exa1~]# su – grid
[grid@exa1~]$ asmcmd
ASMCMD>