Wednesday, March 7, 2012

SVR4 ERROR: 2 : No such file or directory (DBD ERROR: OCISessionBegin)

When I try to use asmcmd command I'm getting the following error
SVR4 ERROR: 2 : No such file or directory (DBD ERROR: OCISessionBegin)

Error
$ asmcmd
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist.
SVR4 ERROR: 2 : No such file or directory (DBD ERROR: OCISessionBegin)

Solution
you need to export the SID and Home for the ASM instance like this:
$ export ORACLE_SID=+ASM
$ export ORACLE_HOME=/devrac1/app/oracle/product/asm/10.2.0
$ asmcmd

No comments: