- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with spool command in svrmgrl
Operating System - HP-UX
1753756
Members
4870
Online
108799
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
тАО06-02-2004 02:07 AM
тАО06-02-2004 02:07 AM
I have just recently migrated from a HPUX 10.20 to a HPUX 11.11 box and my backup script is giving a problem. I execute the command from a backup script running out of root scheduled in cron:
su oracle -c /home/root/cold3.sh
this script in turns runs (from the oracle user)
.
. (other commands)
.
export ORACLE_HOME=/usr/oracle/product/8.0.6
$ORACLE_HOME/bin/svrmgrl << EOF
spool shutdown_PILOT.log;
connect internal
desc partmaster
spool off;
EOF
The system is not creating the log file though. Here is the message that I get:
Oracle8 Enterprise Edition Release 8.0.6.0.0 - Production
PL/SQL Release 8.0.6.0.0 - Production
SVRMGR> MGR-01507: unable to open file "shutdown_PROD.log"
SVRMGR> Connected.
SVRMGR> Database closed.
Database dismounted.
ORACLE instance shut down.
SVRMGR> MGR-00308: no spool file opened
SVRMGR>
The OS is not letting me create the file. I have checked the persions on /home and and on /home/root where I am creating the file and they are 777. When I run this on-line from a session it works fine. I have looked at the umask but it doesn't seem to matter what it is set to. This used to work fine on my old HPUX machine. Any help would be appreciated.
Thanks, dw
su oracle -c /home/root/cold3.sh
this script in turns runs (from the oracle user)
.
. (other commands)
.
export ORACLE_HOME=/usr/oracle/product/8.0.6
$ORACLE_HOME/bin/svrmgrl << EOF
spool shutdown_PILOT.log;
connect internal
desc partmaster
spool off;
EOF
The system is not creating the log file though. Here is the message that I get:
Oracle8 Enterprise Edition Release 8.0.6.0.0 - Production
PL/SQL Release 8.0.6.0.0 - Production
SVRMGR> MGR-01507: unable to open file "shutdown_PROD.log"
SVRMGR> Connected.
SVRMGR> Database closed.
Database dismounted.
ORACLE instance shut down.
SVRMGR> MGR-00308: no spool file opened
SVRMGR>
The OS is not letting me create the file. I have checked the persions on /home and and on /home/root where I am creating the file and they are 777. When I run this on-line from a session it works fine. I have looked at the umask but it doesn't seem to matter what it is set to. This used to work fine on my old HPUX machine. Any help would be appreciated.
Thanks, dw
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 02:16 AM
тАО06-02-2004 02:16 AM
Solution
I think since you haven't used the explicit path to the spool fiel that you wanted to create, the script is trying to create the spool file on the root direcotry.
Try using the full directory path name with the spool output file as follows and see if it works.
spool /home/root/shutdown_PILOT.log;
HTH,
Abdul.
Try using the full directory path name with the spool output file as follows and see if it works.
spool /home/root/shutdown_PILOT.log;
HTH,
Abdul.
No unix, no fun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 02:22 AM
тАО06-02-2004 02:22 AM
Re: Problem with spool command in svrmgrl
It may be because of permission problem, try to spool the logfile in /tmp:
spool /tmp/shutdown_PILOT.log;
spool /tmp/shutdown_PILOT.log;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 02:30 AM
тАО06-02-2004 02:30 AM
Re: Problem with spool command in svrmgrl
Abdul you were correct. When I fully qualified the directory it worked and I didn't have permissions for the root.
Thank You so much I spent way too much time on that.
Thank You so much I spent way too much time on that.
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