View previous topic :: View next topic
|
Author |
Message |
prabhucs01 Warnings : 1 New User
Joined: 07 Mar 2005 Posts: 43
|
|
|
|
when does REBIND process come in
In which situation REBIND scenario occurs
how it is done.
thanks in advance... |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
prabs2006
Active User
Joined: 12 Jan 2006 Posts: 103
|
|
|
|
Hi,
Adding further to the above info, rebind is also done whenever Runstats is performed.
Thanks & Regards
Prabs |
|
Back to top |
|
|
futuredba
New User
Joined: 08 Jan 2006 Posts: 22 Location: Delhi
|
|
|
|
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 |
|
|
jackal Currently Banned New User
Joined: 21 Jan 2006 Posts: 48 Location: india
|
|
|
|
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 |
|
|
prabs2006
Active User
Joined: 12 Jan 2006 Posts: 103
|
|
|
|
Hi
Put the recs in a flat file and load it using the DB2 load utility
Thanks & Regards
Prabs |
|
Back to top |
|
|
saranya_sn
New User
Joined: 03 Jul 2005 Posts: 12 Location: India
|
|
|
|
If the records are in the correct order and type to load, you can use the file aid option too |
|
Back to top |
|
|
kaurav
New User
Joined: 19 Oct 2005 Posts: 7
|
|
|
|
Saranya,
Could you pls throw some light on the file aid option?
TIA
Regards,
Kaushik |
|
Back to top |
|
|
saranya_sn
New User
Joined: 03 Jul 2005 Posts: 12 Location: India
|
|
|
|
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 |
|
|
|