Sybase Adaptive Server Configuration Manual page 62

Table of Contents

Advertisement

A sample C shell maintenance script
46
Next, the script invokes an
2500-level errors occurred and adds the "Backing up database_name" line to
dbcc_mail.out. For example, the script
database:
use master
go
dump database master to master_dump
go
You may want to add appropriate
If there are 2500-level error messages, the script does not back up the database.
At the end of the script, dbcc_mail.out is mailed to the System Administrator
"jjones," who then has a record of fatal
You can tailor the sample shell and
installation.
To have the scripts execute automatically, edit the crontab file, and add an entry
similar to this:
00 02 * * * /usr/u/sybase/dbcc_ck 2>&1
This example executes a C shell script called
a.m.
backup script for each database for which no
isql
master.backup
dump transaction
errors and successful backups.
dbcc
scripts to suit the needs of your
isql
dbcc_ck
backs up the
master
commands to your scripts.
every morning at 2:00
Adaptive Server Enterprise

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server and is the answer not in the manual?

This manual is also suitable for:

Adaptive server enterprise 15.0

Table of Contents