473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 1689
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.