HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sudo/Oracle9i
Operating System - HP-UX
1839413
Members
3478
Online
110145
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
06-22-2004 09:32 PM
06-22-2004 09:32 PM
sudo/Oracle9i
Hi
I am trying to shutdown/startup Oracle database with sudo command, I am getting the following massage:
[cmsprod,cmsoper,ORCL,/home/cmsoper]>/usr/local/bin/sudo shutdown.sql
SQL*Plus: Release 9.2.0.4.0 - Production on Wed Jun 23 13:17:28 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> SQL> ERROR:
ORA-01031: insufficient privileges
SQL> SQL> ORA-01012: not logged on
SQL> SQL> [cmsprod,cmsoper,ORCL,/home/cmsoper]>
The script is :
ORACLE_SID=T002
sqlplus /nolog <
connect /as sysdba
shutdown
EOF
What parameters I ahould defined in [sudoers]
Thanks
I am trying to shutdown/startup Oracle database with sudo command, I am getting the following massage:
[cmsprod,cmsoper,ORCL,/home/cmsoper]>/usr/local/bin/sudo shutdown.sql
SQL*Plus: Release 9.2.0.4.0 - Production on Wed Jun 23 13:17:28 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> SQL> ERROR:
ORA-01031: insufficient privileges
SQL> SQL> ORA-01012: not logged on
SQL> SQL> [cmsprod,cmsoper,ORCL,/home/cmsoper]>
The script is :
ORACLE_SID=T002
sqlplus /nolog <
connect /as sysdba
shutdown
EOF
What parameters I ahould defined in [sudoers]
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 10:45 PM
06-22-2004 10:45 PM
Re: sudo/Oracle9i
Check if the following links helps:
http://www.hmug.org/man/5/sudoers.html
sks
http://www.hmug.org/man/5/sudoers.html
sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:39 PM
06-23-2004 06:39 PM
Re: sudo/Oracle9i
Hi,
you might need to set some additional environment.
If you have a script that sets the environment, you should source it in the beginning of your script.
If not, you might need to set:
LIBPATH
ORACLE_HOME
ORA_NLS33
NLS_*
...
As this one is executed as root, root needs to be member of you dba-group, the one you specified upon installation (usually "dba").
Or execute this script as the oracle user (which makes more sense to me) and not as root:
sudo -u oracle ......
Hope this helps
Volker
you might need to set some additional environment.
If you have a script that sets the environment, you should source it in the beginning of your script.
If not, you might need to set:
LIBPATH
ORACLE_HOME
ORA_NLS33
NLS_*
...
As this one is executed as root, root needs to be member of you dba-group, the one you specified upon installation (usually "dba").
Or execute this script as the oracle user (which makes more sense to me) and not as root:
sudo -u oracle ......
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 06:46 PM
06-23-2004 06:46 PM
Re: sudo/Oracle9i
Hi Volker
Thanks it is working sudo -u oracle9
Thanks and regards
Thanks it is working sudo -u oracle9
Thanks and regards
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP