Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oracle sql tuning

Status
Not open for further replies.

nalcoboy

Technical User
Jan 22, 2003
1
SE
Need to know if the order of the tables in a join is important as far as tuning is concerned ? How to find out the Driver table & how to determine that a table in a join is really being used as a driver table.
 
I would have thought that an oracle forum would have got better responses, but here you are.

Oracle uses either of two optimizers, rule based and cost based.

The old rule based was common before Oracle 8, and tries to use the last table mentioned as the driver table.

The cost based Optimizer avilable in oracle 7 on, may prefer the first table to be the driving table but not very strongly.

Using explain plan with either optimizer can show you the choices the optimizer made in your code. you can try to enfluence those choices with hints. I tried to remain child-like, all I acheived was childish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top