Oraenv Does Not set ORACLE_HOME For +ASM Instance

(Doc ID 1424326.1)

Last updated on FEBRUARY 29, 2012

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.4 and later   [Release: 10.2 and later ]
IBM AIX on POWER Systems (64-bit)

Symptoms

Here you have some output:

oracle@stha2a099:ASM1(/home/oracle) $ . oraenv
ORACLE_SID = [ASM1] ? +ASM1
ORACLE_HOME = [/home/oracle] ?
oracle@stha2a099:+ASM1(/home/oracle) $ echo $ORACLE_SID
+ASM1
oracle@stha2a099:+ASM1(/home/oracle) $ echo $ORACLE_HOME
/home/oracle

Changes

truss -aefo strace_oraenv.txt oraenv

19792102: 45088861: RES_RETRY=2
19792102: 45088861: PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/bin:/usr/java5/jre/bin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:.:/su01/app/oracle/product/10205/crs/bin:/home/oracle/bin:/su01/app/oracle/product/10205/asm/bin
19792102: 45088861: ORACLE_BASE=/su01/app/oracle LC__FASTMSG=true EDITOR=/usr/bin/vi
19792102: 45088861: HISTFILE=/home/oracle/.sh_history.mzaarour
19792102: 45088861: CLASSPATH=/su01/app/oracle/product/10205/db/JRE:/su01/app/oracle/product/10205/db/jlib:/su01/app/oracle/product/10205/db/network/jlib
19792102: 45088861: LOGNAME=oracle RES_TIMEOUT=2 MISSINGPV_VARYON=TRUE
19792102: 45088861: ORACLE_CRS_HOME=/su01/app/oracle/product/10205/crs
19792102: 45088861: MAIL=/usr/spool/mail/oracle ORACLE_SID=+ASM1 LOCPATH=/usr/lib/nls/loc
19792102: 45088861: PS1=oracle@stha2a099:$ORACLE_SID($PWD) $
19792102: 45088861: AGENT_HOME=/su01/app/oracle/product/oms/agent10g USER=oracle
19792102: 45088861: AUTHSTATE=files ORACLE_DOC=/su01/app/oracle/doc
19792102: 45088861: CRS_HOME=/su01/app/oracle/product/10205/crs
19792102: 45088861: TNS_ADMIN=/su01/app/oracle/product/10205/asm/network/admin
19792102: 45088861: SHELL=/usr/bin/ksh ODMDIR=/etc/objrepos
19792102: 45088861: ASM_HOME=/su01/app/oracle/product/10205/asm TIMEOUT=3600 TMOUT=3600
19792102: 45088861: ORA_NLS33=/su01/app/oracle/product/10205/db/ocommon/nls/admin/data
19792102: 45088861: HOME=/home/oracle TERM=vt220 MAILMSG=[YOU HAVE NEW MAIL]
19792102: 45088861: ORACLE_HOME=/home/oracle PWD=/home/oracle TZ=EST5EDT ENV=/etc/kshrc
19792102: 45088861: AIXTHREAD_SCOPE=S A__z=! LOGNAME=! TIMEOUT="*TMOUT
19792102: 45088861: NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
19792102: 45088861: LIBPATH=/su01/app/oracle/product/10205/db/lib32:/su01/app/oracle/product/10205/db/lib
19792102: 45088861: LD_LIBRARY_PATH=/su01/app/oracle/product/10205/db/lib:/su01/app/oracle/product/10205/asm/lib:/su01/app/oracle/product/10205/crs/lib:/su01/app/oracle/product/10205/db/lib32:/su01/app/oracle/product/10205/asm/lib32:

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms