Solved

Scheduling in UNIX

Posted on 1997-07-29
5
278 Views
Last Modified: 2010-04-22
Hello!
I'm working with Windows NT and MS SQL, but some important data in our organization are on Oracle 7.3 which run on the UNIX box. After the last crash of Oracle server when we lost a whole day's work I have a quarrel with our administrator. He explained that on UNIX there isn't a way to schedule the command execution at later time, but during the working hours he doesn't have a time to run the log backup of database. Living all my life in Windows world I don't believe him.
So my question: is there a way to make schedule of running log backup automaticaly either by UNIX or Oracle means?
If yes then how, if no then why you're using them (UNIX and Oracle).
0
Comment
Question by:armands
  • 3
  • 2
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 2006599
There 2 traditional ways to schedule commands: at and cron.
While `at' starts a command at the specified time once, `cron' may do the same periodically (i.e. each sunday at 9pm), see corresponding man-pages.

I don't know if this is possible for your Oracle database, because of open files and such things.
0
 
LVL 2

Author Comment

by:armands
ID: 2006600
Thanks, but there is other problem. To run backup utility we must supply a pasword which is then seen in the process list as parameter. Can we prevent this?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006601
If you use cron (crond), each user has its on crontab (usually in /var/spool/cron/crontabs), and so there is no password needed.
0
 
LVL 2

Author Comment

by:armands
ID: 2006602
This is the Oracle password which UNIX display as utility parameter.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006603
I don't know how Oracle reads its passwords.
You can be lucky if it's poorly programmed, meaning that it reads from stdin and not from /dev/tty, then you can redirect it, like:

your_script_containing_oracle_call < oracle_passwd_file
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Linux performance issues with 100% swap usage, etc 15 86
cron job says it ran, no results 25 94
Oracle Finace 3 47
unix in java example 9 43
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now