• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Different Execution Plans for 2 instances of the same database.. Why??.. Help me out

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I have a problem with Execution Plan
Here I have a SQL query, which I am running on 2 databases. The 2 databases are same snapshots but at different locations. The local database
( database which is on local server ) is giving different SQL Execution planand the remote database is giving different execution plan.
All the init.ora parameters are same. Both the databases have same tables and same number of records every thing is same. Even then, why it is giving different Execution plans.
The only major difference it showing is, at local database, at one point/level the execution plan is using the "HASH JOIN", whereas in remote database at the same point/level, the execution plan it is using "NESTED LOOPS". Why it so ?
Please Help me out.
Regards,
Saj
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
table has not been analysed i guess?
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
different indexes
instances were analyzed at different times (or one not at all)
different Oracle versions
 
reply
    Bookmark Topic Watch Topic
  • New Topic