472,958 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

check_backup script required

hey guys
i would be really appriciate if any of u guys can share a script with me
which check each database wether they take backups.since we dont need to
check the intigrity of the backps,script dont have to be tightly scripted.i
would realy appricite for any kinds help on this
Nov 12 '05 #1
7 1674
There's a simple command that you can use:
-LIST HISTORY--+-------------------+-------------------------->
+-BACKUP------------+
+-ROLLFORWARD-------+
+-DROPPED TABLE-----+
+-LOAD--------------+
+-CREATE TABLESPACE-+
+-ALTER TABLESPACE--+
+-RENAME TABLESPACE-+
+-REORG-------------+
'-ARCHIVE LOG-------'
--+-ALL--------------------------------+-----------------------> +-SINCE--timestamp-------------------+
'-CONTAINING--+-schema.object_name-+-'
'-object_name--------'
--FOR--+----------+--database-alias--------------------------->< +-DATABASE-+
'-DB-------'

--
The BACKUP and SINCE are what interests you.

You could create this command as a task in the task center and have it
scheduled to run whenever you'd feel like.
HTH, Pierre.
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"wishkid via DBMonster.com" <fo***@DBMonster.com> a écrit dans le message de
news: 54***********@DBMonster.com... hey guys
i would be really appriciate if any of u guys can share a script with me
which check each database wether they take backups.since we dont need to
check the intigrity of the backps,script dont have to be tightly
scripted.i
would realy appricite for any kinds help on this


Nov 12 '05 #2
Pierre Saint-Jacques wrote:
There's a simple command that you can use:
-LIST HISTORY--+-------------------+-------------------------->

+-BACKUP------------+
+-ROLLFORWARD-------+
+-DROPPED TABLE-----+
+-LOAD--------------+
+-CREATE TABLESPACE-+
+-ALTER TABLESPACE--+
+-RENAME TABLESPACE-+
+-REORG-------------+
'-ARCHIVE LOG-------'
--+-ALL--------------------------------+----------------------->

+-SINCE--timestamp-------------------+
'-CONTAINING--+-schema.object_name-+-'
'-object_name--------'
--FOR--+----------+--database-alias---------------------------><

+-DATABASE-+
'-DB-------'
hey guys
i would be really appriciate if any of u guys can share a script with me
which check each database wether they take backups.since we dont need to
check the intigrity of the backps,script dont have to be tightly
scripted.i
would realy appricite for any kinds help on this


hey peierr
thankyou for the quick responce but i will not be able to run this command
against a mass list of servers i got to have a script to run it.
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums....m-db2/200509/1
Nov 12 '05 #3
Not sure if you will be able to configure or not, the easy way to
manage with the "checking tasks" is to get notified.
DB2 solves the purpose by haivng a task center!

Nov 12 '05 #4
Hi,

wishkid via DBMonster.com wrote:
Pierre Saint-Jacques wrote:
There's a simple command that you can use:
-LIST HISTORY--+-------------------+-------------------------->
hey peierr
thankyou for the quick responce but i will not be able to run this command
against a mass list of servers i got to have a script to run it.


Well, possible, isn't it? Could run on a single machine, connecting to
the servers subsequently.

My backup-scripts are reporting location, size, timestamp, backup-host
and other stuff to a central database or stores it locally if the
central catalog is not available so I can just do a simple select
against one database to get the full information, but that's just one
approach.

If you don't want to put much effort into this you would probably better
of with task center..

regards,

Norbert

Nov 12 '05 #5
Norbert Munkel wrote:
Hi,
There's a simple command that you can use:

>-LIST HISTORY--+-------------------+-------------------------->

hey peierr
thankyou for the quick responce but i will not be able to run this command
against a mass list of servers i got to have a script to run it.


Well, possible, isn't it? Could run on a single machine, connecting to
the servers subsequently.

My backup-scripts are reporting location, size, timestamp, backup-host
and other stuff to a central database or stores it locally if the
central catalog is not available so I can just do a simple select
against one database to get the full information, but that's just one
approach.

If you don't want to put much effort into this you would probably better
of with task center..

regards,

Norbert


hey guys
thats what i was thinking to to run the script from one mechine against other
boxers,norbet would u mind posting a sample script for me
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums....m-db2/200509/1
Nov 12 '05 #6
Hi,

wishkid via DBMonster.com schrieb:
hey guys
thats what i was thinking to to run the script from one mechine against other
boxers,norbet would u mind posting a sample script for me


Sorry, I am not allowed to post my scripts here. I finally would not
have something ready. This is monitored by nagios at my place and you
would not want to have the perl-plugin I wrote.

You would either have to code that yourself or rely on task center.
Would not be _my_ choice but seems to be the easiest approach for you.

I can't tell you what fits your environment best as I don't know
anything about it. My scripts are designed to run in my special unix
environment.

sorry,

Norbert
Nov 12 '05 #7
WishKid, if you look at the various possibilities to install the scheduling
facility, you'll find that you can set your admin servers (DAS) on each
server to point to a central TOOLSDB residing on a single server.
This provides you a single point of control to run tasks scheduled at
different times and/or different servers.
Look at, amongst other things, in admin cfg:
Scheduler Mode (SCHED_ENABLE) = ON
SMTP Server (SMTP_SERVER) = localhost
Tools Catalog Database (TOOLSCAT_DB) = TOOLSDB
Tools Catalog Database Instance (TOOLSCAT_INST) = SES
Tools Catalog Database Schema (TOOLSCAT_SCHEMA) = TOOLSDB

On that server, you can then specify the backup task for each server. Also,
the journal on that server will display for each server you select which
task ran when and how.

HTH, pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"wishkid via DBMonster.com" <fo***@DBMonster.com> a écrit dans le message de
news: 54***********@DBMonster.com...
Norbert Munkel wrote:
Hi,
There's a simple command that you can use:

>>-LIST HISTORY--+-------------------+-------------------------->

hey peierr
thankyou for the quick responce but i will not be able to run this
command
against a mass list of servers i got to have a script to run it.


Well, possible, isn't it? Could run on a single machine, connecting to
the servers subsequently.

My backup-scripts are reporting location, size, timestamp, backup-host
and other stuff to a central database or stores it locally if the
central catalog is not available so I can just do a simple select
against one database to get the full information, but that's just one
approach.

If you don't want to put much effort into this you would probably better
of with task center..

regards,

Norbert


hey guys
thats what i was thinking to to run the script from one mechine against
other
boxers,norbet would u mind posting a sample script for me
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums....m-db2/200509/1


Nov 12 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Web Master | last post by:
Hi, I am having a little issue with Jacks Form mail php script. I have installed it and configured the form to get it to work, but for some bizarre reason I have 2 issues I can't seem to debug....
4
by: John Ramsden | last post by:
I have a PHP script that is run via a 'wget' command within an MS SQL trigger, and relies on accessing the database record updated by the SQL statement that triggered the script in the first...
2
by: Raphael Gluck | last post by:
HI I am wondering if anyone can help me I added a little script to a form page, so that a couple of fields have to filled in. One contains an obligatory field for number data, one for regular...
6
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of...
13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
2
by: livin | last post by:
I'm hoping someone knows of an example script I can see to help me build mine. I'm looking for an easy way to automate the below web site browsing and pull the data I'm searching for. Here's...
9
by: mike | last post by:
I have this script executing <script> function mike_test(event) { x = window.event.clientX; alert(x); } </script> <iframe src="blank.html" id="my_iframe1"> </iframe>
11
by: Naeem | last post by:
I have a Javascript function, which changes a text field of a form into a select field. Following is the function function changeStateField() { var myForm =...
37
by: viki1967 | last post by:
Hi all. I have this simple form. I need if checkbox C_1 is selected: 1) field name="n_1" is required and accept only numbers; 2) field name="n_2" is required and accept only numbers; I...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.