Mark,
Yes what you said worked like a charm. Creating a unique index, running
runstats and altering table to volatile helped.
Some clarifications below. Thanks again.
Mark A wrote:[color=blue]
> "chessplayer" <suchak@gmail.com> wrote in message[color=green]
> > Hi Mark,
> >
> > Thank you very much for your detailed and quick reply. I am very
> > familiar with Oracle so my followup questions are based on that:
> >
> > -If the tablespace was locked any ideas why the lock trace would[/color][/color]
show[color=blue][color=green]
> > row (X) and table (IX) lock?
> >[/color]
> I don't understand the question, but even if I did, I am not sure I[/color]
know the[color=blue]
> answer.[/color]
I meant why is it that in the lock trace, db2 showed row locks when it
was really locking on the tablespace level?
[color=blue]
>[color=green]
> > -Can I use hints (like in Oracle) to force the optimizer to use[/color][/color]
certain[color=blue][color=green]
> > indexes?
> >[/color]
> No, not specific indexes. Setting a table to volatile will encourage[/color]
the[color=blue]
> "best" index to be used. The DB2 optimizer does a very good job of[/color]
choosing[color=blue]
> the best access path, a bit better than most other databases, if you[/color]
perform[color=blue]
> runstats with the right options.
>[color=green]
> > -Is there a definative site for DB2 where clear examples/scripts[/color][/color]
are[color=blue][color=green]
> > given to show the concepts like there is for Oracle
> > (asktom.oracle.com)?
> >[/color]
> I don't know what mean by "definitive site." There are other DB2[/color]
forums such[color=blue]
> as
www.dbforums.com (which has sections for all databases). Also
>
www.db2click.com[/color]
What I meant by definitive site was a really great site with a wealth
of info and lots of examples. I have seen the very useful DB2 cookbooks
on:
http://ourworld.compuserve.com/homep...l/HTM_COOK.HTM
but was wondering what DB2 professionals use to ask questions.[color=blue]
>[color=green]
> > Thanks once again
> >[/color]
>
> Did you try my suggestion? Did it resolve the concurrency problem?[/color]
Yes your suggestion worked! Thanks.