473,395 Members | 1,797 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,395 software developers and data experts.

db2 first admins

what's the main scripts and ritual actions besides checking backup,
and db2diag.log you do everyday to manage your DB2 environment on
Solaris or AIX ?
How can check connections, load, tablespaces, catalogs, hit ratios?
Nov 12 '05 #1
3 1940
On 18 Jul 2004 20:55:06 -0700, so**********@yahoo.com (David McGeorge) wrote:

:what's the main scripts and ritual actions besides checking backup,
:and db2diag.log you do everyday to manage your DB2 environment on
:Solaris or AIX ?
:How can check connections, load, tablespaces, catalogs, hit ratios?

I'd also suggest you subscribe to DB2EUG mailing list
(db****@herethey.com) where you'll get additional help on other folks admin
experiences.
..
More info is at
http://www2.herethey.com:8888/mailman/listinfo/db2eug
Nov 12 '05 #2
so**********@yahoo.com (David McGeorge) wrote in message news:<bc**************************@posting.google. com>...
what's the main scripts and ritual actions besides checking backup,
and db2diag.log you do everyday to manage your DB2 environment on
Solaris or AIX ?
How can check connections, load, tablespaces, catalogs, hit ratios?


The answer depends on whether or not you are running DB2 UDB V8. The
V8 release featured several SQL table functions that report on all
manner of database activity. Those V8 functions, called snapshot UDFs,
are documented here:
http://publib.boulder.ibm.com/infoce...n/r0006117.htm

Because of those snapshot UDFs, many of my scripts simply run a single
SQL statement (against the catalog or some snapshot UDFs) to provide
the desired information.

Here's what some of them do:
- Calculate the amount of remaining space in each DMS tablespace
- Sort the list of currently connected applications by ascending idle
time
- Output all of the files, directories, and raw device handles used by
tablespaces in a specific database
- Calculate the estimated completion time of an inplace reorg or a DMS
rebalance
- Calculate bufferpool hit ratios
- Identify SQL procedures whose bound access plans are more than X
days older than the newest statistics for any of the involved tables

Other scripts have been written in UNIX shell or Perl:
- Delete all log files more than X days older than the first active
log file
- Take an online backup and only delete previous backup if new backup
was successful
- Generate a script to perform RUNSTATS on every table in a database
- Create a database, convert it to retain logs, and set several common
configuration parameters

There are others I am forgetting, but I hope that gives you an idea.

Good Luck,

Fred
Nov 12 '05 #3
Thanks Guys for useful info. Fred we still old fashion and use 7.2 so
we don't have a luxury of using that snapshot monitor. Any idea for
7.2 best practice?

Also are you guys aware of any cheat sheet or Oracle/DB2 cross
reference sheet that gives me a good feeling of DB2 internal and how
to manage/daily admin this giant player:)
he***@teleport.com (Fred) wrote in message news:<bf**************************@posting.google. com>...
so**********@yahoo.com (David McGeorge) wrote in message news:<bc**************************@posting.google. com>...
what's the main scripts and ritual actions besides checking backup,
and db2diag.log you do everyday to manage your DB2 environment on
Solaris or AIX ?
How can check connections, load, tablespaces, catalogs, hit ratios?


The answer depends on whether or not you are running DB2 UDB V8. The
V8 release featured several SQL table functions that report on all
manner of database activity. Those V8 functions, called snapshot UDFs,
are documented here:
http://publib.boulder.ibm.com/infoce...n/r0006117.htm

Because of those snapshot UDFs, many of my scripts simply run a single
SQL statement (against the catalog or some snapshot UDFs) to provide
the desired information.

Here's what some of them do:
- Calculate the amount of remaining space in each DMS tablespace
- Sort the list of currently connected applications by ascending idle
time
- Output all of the files, directories, and raw device handles used by
tablespaces in a specific database
- Calculate the estimated completion time of an inplace reorg or a DMS
rebalance
- Calculate bufferpool hit ratios
- Identify SQL procedures whose bound access plans are more than X
days older than the newest statistics for any of the involved tables

Other scripts have been written in UNIX shell or Perl:
- Delete all log files more than X days older than the first active
log file
- Take an online backup and only delete previous backup if new backup
was successful
- Generate a script to perform RUNSTATS on every table in a database
- Create a database, convert it to retain logs, and set several common
configuration parameters

There are others I am forgetting, but I hope that gives you an idea.

Good Luck,

Fred

Nov 12 '05 #4

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

Similar topics

2
by: Don | last post by:
I need to make a tigger on some tables that diffrent ppl have Admin access to them using Ent-Manger. is there a way to store the current windows login user-name in to a log Table ?? the...
2
by: Brad D. | last post by:
In my secure database, I have the admins group and a DeptUser group. I am trying to set up a new user in the admins group and the DeptUser group. However, this new administrator receives the error...
2
by: Richard Sherratt | last post by:
I create a new user and make them a member of Admins. I then log on as that user and try to modify an existing query. I'm told that I don't have the necessary permissions. The Admins group has full...
3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
10
by: Fabrizio | last post by:
(Sorry for the crosspost, but I really don't know which is the right newsgroup!) Hi all, I try to change the password to a user that as to change the password at first logon: try {
8
by: yawnmoth | last post by:
A webpage can include any number of images, cascading stylesheets, frame's, etc. How might I go about making it so a particular image loads before any of these others? Ideally, the image would...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.