cancel
Showing results for 
Search instead for 
Did you mean: 

How to set environment variable ORACLE_HOME ?

Former Member
0 Kudos

Hi

I trying to install SAP Solution manager 4.0 SR3:

OS: Linux RHEL4u4

DB: Oracle

SAPinst now stops the installation.

To proceed with the installation, install the Oracle database as follows:

1.Log in as user orassm.

2.Set the DISPLAY variable.

3.Change to directory /oracle/stage/102_32/database/SAP.

4.Start './RUNINSTALLER'.

After you installed the Oracle database software, proceed with the database instance

installation by choosing 'OK' in this dialog box.

./RUNINSTALLER

oracle_stage is not set (OK)

oracle_base is not set (OK)

oracle_home is not set (OK)

oracle_sid is not set (OK)

oracle_home_name is not set (OK)

oracle_inst_group is not set (OK)

from_location is not set (OK)

tmp_netca_file is not set (OK)

tmp_dbca_file is not set (OK)

Working in /oracle/stage/102_32/database/SAP ...

The environment variable ORACLE_HOME is not set! abort ...

How to set environment variable ORACLE_HOME ?

Regards

Eric

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

Finaly find the issue, due to my JAVA environment setting for csh.

Corrected as following:

setenv JAVA_HOME /usr/java/j2sdk1.4.2_16

setenv PATH $:$/bin

Regards

Eric

Former Member
0 Kudos

Have you tried to log on ora<sid> directly?

If not, don't switch(su - ora<sid>) user from root but just try to logon with user ora<sid> in your screen of terminal directly.

Thanks,

Matt

Former Member
0 Kudos

Hello

Same error,

login as: orassm

orassm@172.16.200.74's password:

Last login: Wed Jan 23 16:23:49 2008 from 192.168.10.187

Bad : modifier in $ ($).

[orassm@csp-p-sm00 ~]$

thanks

Eric

markus_doehr2
Active Contributor
0 Kudos

Something is hosed...

Check

/etc/csh.cshrc

/etc/csh.login

for possible problems/syntax errors - it's difficult to help without seeing what's in those files...

However, you can switch to bash as shell and use that one - will work too.

Markus

Former Member
0 Kudos

i

Switch shell to bash:

orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/bash

[root@csp-p-sm00 ~]# su - orassm

[orassm@csp-p-sm00 ~]$

But when try to run ./RUNINSTALL

[orassm@csp-p-sm00 SAP]$ ./RUNINSTALLER

oracle_stage is not set (OK)

oracle_base is not set (OK)

oracle_home is not set (OK)

oracle_sid is not set (OK)

oracle_home_name is not set (OK)

oracle_inst_group is not set (OK)

from_location is not set (OK)

tmp_netca_file is not set (OK)

tmp_dbca_file is not set (OK)

Working in /oracle/stage/102_32/database/SAP ...

The environment variable ORACLE_HOME is not set! abort ...

Additionaly I've post csh.cshrc and csh.login

  1. /etc/cshrc

#

  1. csh configuration for all shell invocations.

  1. by default, we want this to get set.

  2. Even for non-interactive, non-login shells.

[ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]

if $status then

umask 022

else

umask 002

endif

if ($?prompt) then

if ($?tcsh) then

set prompt='[%n@%m %c]$ '

else

set prompt=\[`id -nu`@`hostname -s`\]\$\

endif

endif

if ( $?tcsh ) then

bindkey "^[[3~" delete-char

endif

setenv MAIL "/var/spool/mail/$USER"

limit coredumpsize 0

if ( -d /etc/profile.d ) then

set nonomatch

foreach i ( /etc/profile.d/*.csh )

if ( -r $i ) then

source $i

endif

end

unset i nonomatch

endif

-


  1. /etc/csh.login

  1. System wide environment and startup programs, for login setup

if ($?PATH) then

if ( "$" !~ /usr/X11R6/bin ) then

setenv PATH "$:/usr/X11R6/bin"

endif

else

if ( $uid == 0 ) then

setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"

else

setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"

endif

endif

setenv HOSTNAME `/bin/hostname`

set history=1000

if ( ! -f $HOME/.inputrc ) then

setenv INPUTRC /etc/inputrc

endif

Regards

Eric

Former Member
0 Kudos

Hello

I've proceed to a new installation with RHEL 5 instead of RHEL 4

OS: RHEL 5 (32bits)

DB: Oracle

Met the same error on Phase 8 of 44 / Install database server software

[root@csppsm00 ~]# su - orassm

Bad : modifier in $ ($).

[orassm@csppsm00 ~]$

can it be due to the java setting or version ?

Any ideas or support to help me ?

Regards

Eric

markus_doehr2
Active Contributor
0 Kudos

What shell did you select for the user during installation? Did you create the user before or did sapinst create the user?

Markus

Former Member
0 Kudos

Hi

I've never created Users and Groups by myself, i've only use SAPINST and nothing to do or using Additional Preparation Users and Groups / Operation System Users and Groups.

Shell used in csh

Regards

Eric

Former Member
0 Kudos

Hello

Error message solved when shell /bin/bash configured for ora<sid> but Oracle environnement variable not set

[root@csppsm00 ~]# su - orassm

[orassm@csppsm00 ~]$

[orassm@csppsm00 SAP]$ ./RUNINSTALLER

oracle_stage is not set (OK)

oracle_base is not set (OK)

oracle_home is not set (OK)

oracle_sid is not set (OK)

oracle_home_name is not set (OK)

oracle_inst_group is not set (OK)

from_location is not set (OK)

tmp_netca_file is not set (OK)

tmp_dbca_file is not set (OK)

Working in /oracle/stage/102_32/database/SAP ...

The environment variable ORACLE_HOME is not set! abort ...

Regards

Eric

Eric

markus_doehr2
Active Contributor
0 Kudos

do not install as ROOT but as given user ora<SID>.

- Open a new shell

- su - ora<SID>

- setenv DISPLAY <IP>

then step to /oracle/stage/102_64/database/Disk1/SAP and execute

./RUNINSTALLER

Markus

Former Member
0 Kudos

Hi

I logon with ora<SID>but witch file must be set with the environment variable ORACLE_HOME ?

$HOME\.sapenv_<HOSTNAME>.csh

$HOME\.sapenv_<HOSTNAME>.sh

$HOME\.profile

???

Thx

Eric

markus_doehr2
Active Contributor
0 Kudos

Usually it´s not necessary to modify this files. If you follow the installation guide, the user ora will have all the necessary environment set after sapinst prompts you to install the database.

If you logged on earlier with this user (before the environment was set) - logout and login again and then execute ./RUNINSTALLER in the SAP subdirectory.

Markus

Former Member
0 Kudos

When I connect as ora<SID> I've the following error ? Bad : modifier in $ ($).

[root@csppsm02 ~]# su - orassm

Bad : modifier in $ ($).

[orassm@csppsm02 ~]$

I start ./RUNINSTALL from . /oracle/stage/102_32/database/SAP but same error

[orassm@csppsm02 SAP]$ ./RUNINSTALLER

oracle_stage is not set (OK)

oracle_base is not set (OK)

oracle_home is not set (OK)

oracle_sid is not set (OK)

oracle_home_name is not set (OK)

oracle_inst_group is not set (OK)

from_location is not set (OK)

tmp_netca_file is not set (OK)

tmp_dbca_file is not set (OK)

Working in /oracle/stage/102_32/database/SAP ...

The environment variable ORACLE_HOME is not set! abort ...

Regards

Eric

markus_doehr2
Active Contributor
0 Kudos

Something went wrong during installation - you get an error message from your .profile/.cshrc....

What shell does this user have in /etc/passwd?

Markus

Former Member
0 Kudos

Hi

/etc/passwd for ora<SID>

orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/csh

I've created users ans groups via SAPINST : Additional Preparation Users and Groups / Operation System Users and Groups

Regards

Eric

Former Member
0 Kudos

Hello

I've completely restart OS + SAP installation :

- following "install guide inst_solman_40_sr3_lnx_ora" and sap note 722273

- phase 8 of 44 " install database server software"

SAPinst now stops the installation.

To proceed with the installation, install the Oracle database as follows:

Log in as user orassm.

Set the DISPLAY variable.

Change to directory /oracle/stage/102_32/database/SAP.

Start './RUNINSTALLER'.

After you installed the Oracle database software, proceed with the database instance installation by choosing 'OK' in this dialog box.

Same issue when login with ora<SID>

su - orassm

Bad : modifier in $ ($)

/etc/passwd

ssmadm:x:501:502:SAP System Administrator:/home/ssmadm:/bin/csh

orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/csh

Regards

Eric

markus_doehr2
Active Contributor
0 Kudos

Try the following to find out the statement that seems to be wrong:

su - orassm

csh -x .cshrc

Markus

Former Member
0 Kudos

Hi

su - orassm

Bad : modifier in $ ($).

[orassm@csp-p-sm00 ~]$ csh -x .cshrc

Bad : modifier in $ ($).

[orassm@csp-p-sm00 ~]$

Same issue with <SID>adm

Eric

markus_doehr2
Active Contributor
0 Kudos

What happens if you change your default shell to Tenex C-Shell? change the shell to /bin/tcsh in /etc/passwd and try again.

Never seen that problem before...

Markus

Former Member
0 Kudos

Same error with shell /bin/tcsh

ssmadm:x:501:505:SAP System Administrator:/home/ssmadm:/bin/csh

orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/tcsh

[root@csp-p-sm00 ~]# su - orassm

Bad : modifier in $ ($).

[orassm@csp-p-sm00 ~]$

Work for /bin/bash

ssmadm:x:501:505:SAP System Administrator:/home/ssmadm:/bin/csh

orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/bash

[orassm@csp-p-sm00 ~]$ su - orassm

Password:

[orassm@csp-p-sm00 ~]$

former_member196353
Active Participant
0 Kudos

Hi,

Please use set env ORACLE_HOME= PATH.

Regards,

iqbal

former_member558460
Participant
0 Kudos

HI SIR,

Can you explain what is the difference between SAP-EP and SAP-NETWEAVER.?

Regards.

Asim.