Operating System - HP-UX
1834349 Members
1926 Online
110066 Solutions
New Discussion

Re: Cannot find Oracle .login script

 
SOLVED
Go to solution
Robin Geary
Advisor

Cannot find Oracle .login script

Hi

I am having trouble finding the start up shell script for the oracle user. I can login as the user but cannot find the .login anywhere.

Thanks in advance for any help.

HP-UX 11.11
Oracle 10g release 2
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: Cannot find Oracle .login script

You can create a .login file. It is not a default file. Create and maintain with oracle:oracle group permission with 644.

$ touch .login
$ chmod 644 .login

--
Muthu
Easy to suggest when don't know about the problem!
Steven E. Protter
Exalted Contributor
Solution

Re: Cannot find Oracle .login script

Shalom Robin,

You have to build the file yourself.

I recommend against using c shell for oracle user. You are better off with posix or korn shell, which use .profile

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: Cannot find Oracle .login script

Hi Robin,

You can create your own .login for Oracle user.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Robin Geary
Advisor

Re: Cannot find Oracle .login script

Thanks,

I shall create my own .profile for the Oracle user.

May I be cheeky and ask where I will put the file?
Arunvijai_4
Honored Contributor

Re: Cannot find Oracle .login script

Hi Robin,

Usually, .login file will be under $HOME
For Oracle, It should be under home directory of oracle user.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Cannot find Oracle .login script

Login related files have to be put under the user's $HOME directory.

$ touch $HOME/.login

Generally, /home/oracle then /home/oracle/.login is correct location. See csh man page more.

--
Muthu
Easy to suggest when don't know about the problem!
john korterman
Honored Contributor

Re: Cannot find Oracle .login script

Hi,

check first how the startup shell of the oracle user is defined in /etc/passwd

# grep oracle /etc/passwd

If the last field ends in "csh" the startup shell is of type "c" and it will make use of .login
If the last field ends in "sh" or "ksh", .login is ignored and .profile used instead.


regards,
John K.
it would be nice if you always got a second chance
Robin Geary
Advisor

Re: Cannot find Oracle .login script

Thanks for all the help,

It turned out that the home directory for the oracle user wes /u/oracle, so i dumped in a default .profile file, as it was ksh in the passwd file, and now I can continue working.