IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

when does REBIND process come in


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prabhucs01
Warnings : 1

New User


Joined: 07 Mar 2005
Posts: 43

PostPosted: Tue Jan 17, 2006 6:54 pm
Reply with quote

when does REBIND process come in

In which situation REBIND scenario occurs

how it is done.


thanks in advance...
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 18, 2006 12:53 am
Reply with quote

A general explanation in the manual:
Quote:
The creation of a new application plan for an application program that has been bound previously. If, for example, you have added an index for a table that your application accesses, you must rebind the application in order to take advantage of that index.


And as always, you can read more about it in the fine manual.

O.
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Fri Jan 20, 2006 11:09 am
Reply with quote

Hi,
Adding further to the above info, rebind is also done whenever Runstats is performed.

Thanks & Regards
Prabs
Back to top
View user's profile Send private message
futuredba

New User


Joined: 08 Jan 2006
Posts: 22
Location: Delhi

PostPosted: Fri Jan 20, 2006 8:10 pm
Reply with quote

Hi,
I would like to add sth to it. REBIND is always done when u think that the access path choosen by the optimizer is not appropiate.
the reason for this can be a better existing path which is not in optimizer's knowledge(coz u have added an index or performed RUnstats utility) or the path is not valid anymore(coz the index has been dropded which the optimizer was using).
in the first case, ur program will work though it isnt using the best avaliable method but in 2nd case u have to rebind it. coz when u bind ur package/plan, it will choose the most efficient method. but it doesnt keep itself updated with the changes done by u after the binding process is over.
Back to top
View user's profile Send private message
jackal
Currently Banned

New User


Joined: 21 Jan 2006
Posts: 48
Location: india

PostPosted: Sat Jan 21, 2006 9:27 am
Reply with quote

i want to insert 1000 records in a table each time i have to give insert query?any alternate method is there?

thanx in advance..
regard..
manjinder
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Mon Jan 23, 2006 9:59 am
Reply with quote

Hi

Put the recs in a flat file and load it using the DB2 load utility

Thanks & Regards
Prabs
Back to top
View user's profile Send private message
saranya_sn

New User


Joined: 03 Jul 2005
Posts: 12
Location: India

PostPosted: Tue Jan 24, 2006 4:57 am
Reply with quote

If the records are in the correct order and type to load, you can use the file aid option too
Back to top
View user's profile Send private message
kaurav

New User


Joined: 19 Oct 2005
Posts: 7

PostPosted: Tue Jan 24, 2006 10:13 am
Reply with quote

Saranya,

Could you pls throw some light on the file aid option?

TIA
Regards,
Kaushik
Back to top
View user's profile Send private message
saranya_sn

New User


Joined: 03 Jul 2005
Posts: 12
Location: India

PostPosted: Tue Jan 24, 2006 10:46 pm
Reply with quote

Select the FileAid for DB2, then
Select Extract and Load Tables, then
Select Load from a dataset to a Table


Give your DB2 table name or the databse/tablespace and give your dataset names.

Hope this helps.

I cannot provide any screen shots since its against company policies.

I apologise.

Regards,
Saranya
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts Rebind issue - Package DB2 2
No new posts How to process dependent file based o... JCL & VSAM 8
No new posts Bind process DB2 4
This topic is locked: you cannot edit posts or make replies. How to process gdg in rexx program wh... CLIST & REXX 12
Search our Forums:

Back to Top