Oracle ASM Command Line (ASMCMD) does not work from Database Home in RSA Identity Governance & Lifecycle
Originally Published: 2018-02-19
Article Number
Applies To
RSA Product/Service Type: Appliance
RSA Version/Condition: 6.9 and above
Issue
ASMCMD error: Connected to an idle instance.
sh: /d01/cluster_oraclebin/product/11.2.0/dbhome_1/bin/clsecho: No such file or directory
Can't exec "/d01/cluster_oraclebin/product/11.2.0/dbhome_1/bin/clsecho": No such file or directory at /d01/cluster_oraclebin/product/11.2.0/dbhome_1/lib/asmcmdshare.pm line 493.
Use of uninitialized value $buf in string ne at /d01/cluster_oraclebin/product/11.2.0/dbhome_1/lib/asmcmdshare.pm line 497.
Alternately, the Oracle ASM Command Line utility may return no results.
# asmcmd ASMCMD> ls ASMCMD> lsdg ASMCMD>
Cause
However, for Oracle database version 11.2, there is also a required step before the ASM Command line can be used from the Database Home. This is also a known Oracle bug, in that the clsecho file is not in the Database Home.
The following Oracle references are only available after logging into the Oracle Support portal.
- Base Bug 17433996 - WIN2K8_11204_ASMUTL:PERL ERROR RETURN WHEN CD TO NO EXIST DIR WITH SYSDBA (fixed in Oracle database version 12.1)
- Oracle Support Note 1665639.1 - ASMCMD does not work from Database Home.
Resolution
# asmcmd --privilege sysdba ASMCMD> ls DG01/ ASMCMD> lsdg State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name CONNECTED EXTERN N 512 4096 1048576 963256 953541 0 953541 0 N DG01/ ASMCMD>Customers may also find that this is necessary when using an Oracle version 12.1 Database Home, as implemented on an RSA Identity Governance & Lifecycle Appliance version 7.0.0 and above.
Workaround
- Login as the oracle user.
- Record the current settings for the ORACLE_HOME, ORACLE_SID and ORACLE_GRID_HOME. Note that the values below are those from a normal RSA Identity Governance & Lifecycle implementation.
# echo $ORACLE_HOME /u01/app/oracle/product/12.1.0/db_1 # echo $ORACLE_SID AVDB # echo $ORACLE_GRID_HOME /u01/app/12.1.0/grid
- Change the ORACLE_HOME and ORACLE_SID to suit the ASM Command Line utility.
# export ORACLE_SID=+ASM # export ORACLE_HOME=/u01/app/12.1.0/grid
- The ASM Command Line utility can now run without the --privilege sysdba option:
# asmcmd ASMCMD> ls DG01/ ASMCMD> lsdg State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N 512 4096 1048576 963256 953541 0 953541 0 N DG01/ ASMCMD>
- To return the environment back to normal, the /home/oracle/setDeployEnv.sh script can be used or the ORACLE_HOME and ORACLE_SID can be returned to their original values. Run one of the following options:
# . /home/oracle/setDeployEnv.sh
or
# export ORACLE_SID=AVDB # export ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_1
Attachments
If the attachment does not open when clicked, please refresh the page and try again. You must be logged into view the file(s).
Related Articles
Duplicate groups are shown for a user in RSA Identity Governance & Lifecycle 11Number of Views Single quote character ' in CN breaks JavaScript code when using RSA Certificate Manager 20Number of Views XudaInstanceOf failed to get xuda_cert_req object! result = 48 11Number of Views Obtain Trace Data for ACE/Server 5.x 20Number of Views How to Install a Third Party Certificate into RSA enVision 262Number of Views
Trending Articles
Artifacts to gather in RSA Identity Governance & Lifecycle Oracle 12c TEMP_UNDO_ENABLED parameter for managing GTT UNDO activity in RSA Identity Governance & Lifecycle RSA announces the availability of the RSA SecurID Hardware Appliance 230 based on the Dell PowerEdge R240 Server RSA Authentication Manager 8.9 Release Notes (January 2026) RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide
Don't see what you're looking for?