- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Schedule Oracle Export
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-21-2004 05:53 AM
10-21-2004 05:53 AM
We are running Oracle 8.1.7.4 on HP-UX 11i. I would like to export the schema IRD to this location on the HP-UX box:
/var/export
I would like to do this every week on Saturday morning at about 3am.
How do I go about this under HP-UX?
Any help would be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 05:56 AM
10-21-2004 05:56 AM
Re: Schedule Oracle Export
do this through cron,
use oracle id (if you have one) to schedule this job through cron.
Do "man crontab" on more help on setting up cron jobs.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 05:56 AM
10-21-2004 05:56 AM
Re: Schedule Oracle Export
One way to do it would be to write a shell script for your Oracle user account to do the export, and then you can use cron to schedule that script to run on Saturday mornings at 3am.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 06:33 AM
10-21-2004 06:33 AM
Re: Schedule Oracle Export
0 3 * * 6 (cd $ORACLE_HOME/scripts; sh export.sh)
Does this look ok?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 06:49 AM
10-21-2004 06:49 AM
Solution0 3 * * 6 /oracle/app/oracle/scripts/export.sh
Assuming here that your ORACLE_HOME is /oracle/app/oracle. Also, cron runs with the POSIX shell and does not include the user environment, so your script should set any environment variables needed.
I also like to redirect the output of the script to a log file, so you could have something like this at the end after 'export.sh':
>/some/dir/export.logfile
Or you can redirect output inside your export.sh script.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 06:51 AM
10-21-2004 06:51 AM
Re: Schedule Oracle Export
0 3 * * 6 /home/oracle/export.sh >> /home/oracle/export.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 06:51 AM
10-21-2004 06:51 AM
Re: Schedule Oracle Export
cron will not give you $ORACLE_HOME. You will have to set it yourself. I would suggest giving cron the full path shell script then first thing in the shell get the oracle environment and then do the export.
0 3 * * 6 /oracle/app/oracle/products/920/scripts/sh export.sh
and inside
. /path/oracle.env.sh
export ....
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 07:01 AM
10-21-2004 07:01 AM
Re: Schedule Oracle Export
In cron I always use the root and then something like:
su -
Regards, MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 07:27 AM
10-21-2004 07:27 AM