Operating System - Linux
1752603
Members
4653
Online
108788
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
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
тАО08-22-2007 08:32 PM
тАО08-22-2007 08:32 PM
CRON
Hi to all...
i want to clarify one doubt.
am exporting the my oracle databse table by using the following command in the linux prompt.
$ exp username/password file=username_DDMMYYYY.dmp owner=username
I waant to run this coammnd daily 8 o clock night and i want to change the date in the file field and want to delete the previous day *.dmp file too.
Is this is possible with cron job.
if yes please explain me how to do?
thanx in advance.
Prasanth
i want to clarify one doubt.
am exporting the my oracle databse table by using the following command in the linux prompt.
$ exp username/password file=username_DDMMYYYY.dmp owner=username
I waant to run this coammnd daily 8 o clock night and i want to change the date in the file field and want to delete the previous day *.dmp file too.
Is this is possible with cron job.
if yes please explain me how to do?
thanx in advance.
Prasanth
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 09:21 PM
тАО08-22-2007 09:21 PM
Re: CRON
Hey
create (or generate through a shell script) a parameter file for the export:
$cat export.par
userid=username/password
file=username_DDMMYYYY.dmp
owner=username
then execute it from cron "exp parfile=/path/to/export.par"
Regards
create (or generate through a shell script) a parameter file for the export:
$cat export.par
userid=username/password
file=username_DDMMYYYY.dmp
owner=username
then execute it from cron "exp parfile=/path/to/export.par"
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2007 09:24 PM
тАО08-22-2007 09:24 PM
Re: CRON
You can do it with something like this:
EXPDIR=/export
exp username/password file=$EXPDIR/$USERNAME_$(date +%d%m%Y).dmp owner=$USERNAME
if [ $? -eq 0 ]
then
find $EXPDIR -name $USERNAME*.dmp -mtime +1 -exec rm {}\;
fi
EXPDIR=/export
exp username/password file=$EXPDIR/$USERNAME_$(date +%d%m%Y).dmp owner=$USERNAME
if [ $? -eq 0 ]
then
find $EXPDIR -name $USERNAME*.dmp -mtime +1 -exec rm {}\;
fi
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
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