- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- root su - oracle prompts for password ??
Operating System - Linux
1753540
Members
5519
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 10:49 AM
тАО05-14-2009 10:49 AM
I have the Oracle startup/shudown script in /etc/init.d: -rwxr-x--- 1 oracle dba 930 May 14 12:57 /etc/init.d/dbora
But when the server is rebooted, it prompts for a password when trying to start up oracle:
ORACLE_HOME=/opt/oracle/product/10.2.0.4
ORA_OWNER=oracle
#
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
touch /var/lock/subsys/dbora
sleep 120
su - $ORA_OWNER -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
;;
when I try to su - oracle from command line I get right in as expected....
But when the server is rebooted, it prompts for a password when trying to start up oracle:
ORACLE_HOME=/opt/oracle/product/10.2.0.4
ORA_OWNER=oracle
#
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
touch /var/lock/subsys/dbora
sleep 120
su - $ORA_OWNER -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
;;
when I try to su - oracle from command line I get right in as expected....
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 11:52 AM
тАО05-14-2009 11:52 AM
Solution
I would try setting root:root as the owner of the script.
I don't know why you have a "sleep 120" after a touch command.
Please add the following command:
id > /tmp/dbora.$$
To check the user credentials that is running the init script.
I don't know why you have a "sleep 120" after a touch command.
Please add the following command:
id > /tmp/dbora.$$
To check the user credentials that is running the init script.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 07:09 PM
тАО05-14-2009 07:09 PM
Re: root su - oracle prompts for password ??
Shalom,
Could be the pam configuration is preventing su - logins.
SEP
Could be the pam configuration is preventing su - logins.
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2009 04:03 PM
тАО05-16-2009 04:03 PM
Re: root su - oracle prompts for password ??
Thanks for input, but in testing this was a false alarm.... DBA wasn't giving the entire store, and actually the su is working correctly..
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP