Operating System - HP-UX
1834185 Members
2483 Online
110064 Solutions
New Discussion

oracle user 's profile does not gets read by oracle

 
sharif naser_1
Frequent Advisor

oracle user 's profile does not gets read by oracle

Hello experts,

when oracle user logs on to the oracle server the variables inside the profile are defined but are not utilized let me say when i give
$svrmgrl i get /usr/bin/sh not found.
but when i log on as root & su - oracle everything is set & utilized.
i would be grateful if anyone could help me.

regrads,
S.N.
6 REPLIES 6
Mark Greene_1
Honored Contributor

Re: oracle user 's profile does not gets read by oracle

check to see if the path is getting changed by any other script or process that oracle runs or is called by the .profile.

HTH
mark
the future will be a lot like now, only later
Steve Steel
Honored Contributor

Re: oracle user 's profile does not gets read by oracle

Hi

What do you call logging in.

If it is via CDE you need to tell the machine to use a login shell to read the profiles.


After login before anything else do
set
or
echo $PATH

And make sure the values are ok.

To get a CDE login shell.

In $HOME make .Xdefaults with read for all
and value

*loginShell: true


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Printaporn_1
Esteemed Contributor

Re: oracle user 's profile does not gets read by oracle

if login with CDE
edit $HOME/.dtprofile
uncomment
DTSOURCEPROFILE=true

it will read variable from $HOME/.profile
enjoy any little thing in my life
Alex Glennie
Honored Contributor

Re: oracle user 's profile does not gets read by oracle

if within CDE I'd suggest trying this :

run ->dtterm -ls
since dtterm's don't source the users .profile by default ! see dtterm(1)
Dragan Krnic_2
Advisor

Re: oracle user 's profile does not gets read by oracle

It happens sometimes when you clone a .profile via FTP and forget to switch bin[ary] on on a system which defaults to ascii. Each line-feed gets complemented by a preceding carriage-return which is DOS-like but makes your interpreter (the command you put in the first line of your script after a leadin "#!") look like it were extended by an additional character 'carriage-return'. In your case the shell gets "/usr/bin/sh\r" instead of only "/usr/sbin/sh". Get rid of carriage-return characters by either executing "dos2ux" or by replacing "^M$" (meaning the character carriage-return at the end of the line) by "".
no quote
oiram
Regular Advisor

Re: oracle user 's profile does not gets read by oracle

Hi,

Have you checked your TERM settings when you make su - all the variables are changed to the value they have in the .profile file except TERM variable. If you make su - from the root account you will have the same TERM as root. I don??t know any other significant difference between su - and login.

Best regards.