HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to Create Script that Can rcp Oracle Archive f...
Operating System - HP-UX
1836882
Members
1901
Online
110111
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
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-09-2005 12:56 PM
05-09-2005 12:56 PM
Hi Unix gurus, I am newbie on HPUX.
I have Oracle Archive files on Server X at /u01/adm/arch/prd with file format as arch1_[counter].arc.And I have another server is called Server Y that as a disaster server.How to make rcp script so it can rcp newer archive files from Server X to Server Y every 15 minutes?I appreciate any replaies.Thanks in advanced.
I have Oracle Archive files on Server X at /u01/adm/arch/prd with file format as arch1_[counter].arc.And I have another server is called Server Y that as a disaster server.How to make rcp script so it can rcp newer archive files from Server X to Server Y every 15 minutes?I appreciate any replaies.Thanks in advanced.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 01:36 PM
05-09-2005 01:36 PM
Solution
Hi zap,
We copy the archive logs of the various databases that are on archive log mode to the DR server every 20 minutes. This is how we do.
We use the find with â newer parameter to find all the files newer than a touched file and rcp them to the DR server. The find will list all the file newer and output the file name into a text file. Then the script read this file name and replaces with the rcp syntax
Eg:-
find /path -name *archog* -newer filename
rcp -p file_name dr_server:\path\
Once the rcp has completed successfully, at the end we touch the file. So that next time all the archive logs newer than this touched file are coped to the DR server.
I attached the script to do the remote copy of the archive logs to DR Server. We schedule this script through cron to be run every 30 minutes. (for example 09:10, 09:30, 09:50, 10:10..... one database then 09:20,09:40,10:10, 10:30...â ¦. other database and so on).
In you case you can schedule it every 15 minutes. This script will send an e-mail to you if the rcp was not successful.
Note: The copy will be faster if the archive logs are compressed. We have an incremental archive logs backup script which will wait for the archiving, and issue a log switch and then compress the archive logs after backup.
Ind
We copy the archive logs of the various databases that are on archive log mode to the DR server every 20 minutes. This is how we do.
We use the find with â newer parameter to find all the files newer than a touched file and rcp them to the DR server. The find will list all the file newer and output the file name into a text file. Then the script read this file name and replaces with the rcp syntax
Eg:-
find /path -name *archog* -newer filename
rcp -p file_name dr_server:\path\
Once the rcp has completed successfully, at the end we touch the file. So that next time all the archive logs newer than this touched file are coped to the DR server.
I attached the script to do the remote copy of the archive logs to DR Server. We schedule this script through cron to be run every 30 minutes. (for example 09:10, 09:30, 09:50, 10:10..... one database then 09:20,09:40,10:10, 10:30...â ¦. other database and so on).
In you case you can schedule it every 15 minutes. This script will send an e-mail to you if the rcp was not successful.
Note: The copy will be faster if the archive logs are compressed. We have an incremental archive logs backup script which will wait for the archiving, and issue a log switch and then compress the archive logs after backup.
Ind
Never give up, Keep Trying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 05:20 AM
05-11-2005 05:20 AM
Re: How to Create Script that Can rcp Oracle Archive from Server X to Server Y
imho you need rsync instead of rcp. Just schedule the following command in your crontab file to run every 15 minutes.
# rsync -avz serverX:/u01/adm/arch/prd/ serverY:
rsync is best for doing incremental copies...rcp would copy the entire dir everytime its executed burdening the network
# rsync -avz serverX:/u01/adm/arch/prd/ serverY:
rsync is best for doing incremental copies...rcp would copy the entire dir everytime its executed burdening the network
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