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

For a specific tablespace generate all the rebind commands for relevant pkgs & plans

This should be a rather ROUTINE procedure for you DBAs.

I keep hearing at technical conferences and user groups the phrase
"then rebind all your plans and packages" (after reorg, load, &
runstats, etc). Obviously those plans and packages that need
rebinding are only those packages & plans relevant to the tablespace
just processed. How do I find out? (I'm on DB2 v7, MVS)

I've read five (5) 6-pound books on DB2 (cover-to-cover) written by
prominent DB2 experts in the field and NONE of them cover something
this ROUTINE. I've spent hours in the ADMIN guide and can't find
anything about how to identify and generate the necessary commands to
rebind plans and packages for SPECIFIC tables in a SPECIFIC
tablespace.

Without using 3rd party tools, where is this documented in the IBM
manuals There are some examples about finding specific plans &
packages (for certain dates, etc) but none for this routine procedure.

Many thanks!
Nov 12 '05 #1
1 2227
"Dale Franklin" <da********@yahoo.com> wrote in message
news:a7**************************@posting.google.c om...
This should be a rather ROUTINE procedure for you DBAs.

I keep hearing at technical conferences and user groups the phrase
"then rebind all your plans and packages" (after reorg, load, &
runstats, etc). Obviously those plans and packages that need
rebinding are only those packages & plans relevant to the tablespace
just processed. How do I find out? (I'm on DB2 v7, MVS)

I've read five (5) 6-pound books on DB2 (cover-to-cover) written by
prominent DB2 experts in the field and NONE of them cover something
this ROUTINE. I've spent hours in the ADMIN guide and can't find
anything about how to identify and generate the necessary commands to
rebind plans and packages for SPECIFIC tables in a SPECIFIC
tablespace.

Without using 3rd party tools, where is this documented in the IBM
manuals There are some examples about finding specific plans &
packages (for certain dates, etc) but none for this routine procedure.

Many thanks!


You can check the following catalog tables documented in SQL Reference (and
other manuals):

SYSIBM.SYSPLANDEP
SYSIBM.SYSPACKDEP

However, keep in mind that frequent rebinds are usually not necessary unless
the data has significantly changed (or and index is added). Even with a load
resume, if you are adding 25% more data to the table, and the table already
has a lot of rows, and the distribution of the new data is similar to the
existing data, it is unlikely that a rebind will make any difference after a
new runstats.

With a reorg, the you usually can do a runstats and rebind one time after
the reorg, and not repeat the runstats/rebind after every reorg (unless the
data has significantly changed).

Some people prefer to do a runstats a little after a reorg. For example, if
you reorg a table once per week, then a runstats 2 days after the reorg may
be more representative of the average condition of the data during the week
in between reorgs.
Nov 12 '05 #2

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

Similar topics

7
by: Scott M. Lyon | last post by:
Quick (hopefully easy) question for you guys. What is going to be the quickest/easiest way to generate XML from VB.NET? Note: I don't mean an XML file, but XML in memory somehow (an...
2
by: Stanley Sinclair | last post by:
About to create a table which will "include" a BLOB. Am not sure how large to make the container and the tablespace. What I see says that BLOB is stored "separately." However, I don't know...
13
by: Jean-Marc Blaise | last post by:
Hi there, I would like to know the meaning of direct_writes in a tablespace snapshot on a tablespace that is: * SMS (db2empfa ON) * Only 1 table is accessed in INSERT - Z locked (Not logged...
7
by: CCC via DBMonster.com | last post by:
We use redirected restore to refresh test from prod on different AIX 5.2 servers. The databases have the same number, size and names of cooked containers. The only difference is the fully qualified...
9
by: Mikael | last post by:
Must admit, I am new to DB2: Seems I can not issue command REORG TABLESPACE: Commands Entered: REORG TABLESPACE SBO_DB.TS_SBO_SAFE; SQL0104N An unexpected token "TABLESPACE" was found...
6
by: morch | last post by:
Hello, I have an oddity on a production database. I get the following from the DB CFG : Backup pending = NO Database is consistent ...
1
by: Sam Durai | last post by:
Env: DB2 v9.1 Server / Win XP. DB is enabled for Archival Logging. Was playing around with rebuild tablespace feature. My database 'CARD' has tablespace named t1,t2,t3. Taken couple of...
1
by: sajithamol | last post by:
What is the difference between BIND REPLACE and REBIND commands?
5
by: Mark A | last post by:
I have an OLTP database that has a tablespace that will start out at about 1 TB, but may grow to 75 TB's in size over the next 5 years. When I add new containers (on a new mount point), I want to...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.