[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

Scheduling in UNIX

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
armands
Asked:
armands
  • 3
  • 2
1 Solution
 
ahoffmannCommented:
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
 
armandsAuthor Commented:
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
 
ahoffmannCommented:
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
 
armandsAuthor Commented:
This is the Oracle password which UNIX display as utility parameter.
0
 
ahoffmannCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now