- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script with Pipe breaks in between
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
10-09-2003 06:15 AM
10-09-2003 06:15 AM
alter tablespace SYSTEM begin backup;
!/usr/bin/cat /ptwb_hot_pipe | /usr/bin/compress
> /u60/backup/HBKP$TODAY/system_ptwb01.dbf.Z &
!/bin/cp /u04/oradata/PTWB/data/system_ptwb01.dbf /ptwb_hot_pipe
alter tablespace SYSTEM end backup;
Similar for another 60 tablespaces. In Oracle 8 and HP-UX 10.20, I never had a
problem. The process used to take 1.5 hours. Recently I migrated to Oracle 9i
on HP-UX 11i. This process is real fast. Gets over in approximately 20 minutes.
But the problem is that in between, it comes out of the backup script and gives
an error on /bin/cp. /ptwb_hot_pipe not found
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 06:41 AM
10-09-2003 06:41 AM
Re: Script with Pipe breaks in between
The only obvious thing I see is that I doubt
/ptwb_hot_pipe exists.
Did you mean to say /some_directory_path/ptwb_hot_pipe ?
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 07:45 AM
10-09-2003 07:45 AM
Re: Script with Pipe breaks in between
The pipe exists. It is in /. Out of 60 tablespaces, I am able to backup 30. Then it breaks up. It throws /bin/cp error saying that it is not able to locate pipe. So I broke this script into 3 identical parts. It runs O.K. I want to run it in a single stretch. I used to run in single stretch in Oracle 8/ HP-UX 10.20. I am going to run it tonight and post the exact error. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 07:36 PM
10-09-2003 07:36 PM
SolutionForgive me, but I do not understand the need for the named pipe. Would it be easier to directly compress the tablespaces to the backup files?
ALTER TABLESPACE table BEGIN BACKUP;
!compress < /u04/...dbf > /u60/...dbf.Z
ALTER TABLESPACE table END BACKUP;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 07:50 PM
10-09-2003 07:50 PM
Re: Script with Pipe breaks in between
You can replace your 2 shell commands with 1:
--
!/usr/bin/compress -c /u04/oradata/PTWB/data/system_ptwb01.dbf > /u60/backup/HBKP$TODAY/system_ptwb01.dbf.Z
--
BTW, these days I think gzip is regarded as superior to compress. See
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x0d651012aa92d5118ff10090279cd0f9%2C00.html
--
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 12:14 AM
10-10-2003 12:14 AM