Yes:
The tables have the same data and I get the same results back. The production database returns data faster because it is using all indexes. The replication database is slower because it is not using indexes. However the indexes are all there. All tables have been analyzed also.
--
Paul S. LaBarbera
University of Phoenix On Line Faculty
pa*****@email.uophx.edu
"Laconic2" <la******@comcast.net> wrote in message news:MO********************@comcast.com...
And do you get the same results from the query in both databases? Are they loaded with the same data?
"Paul" <pa*****@yahoo.com> wrote in message news:CR*********************@news4.srv.hcvlny.cv.n et...
Yes, I forgot to mention that both databases are using the cost based optimizer.
--
Paul S. LaBarbera
University of Phoenix On Line Faculty
pa*****@email.uophx.edu
"Laconic2" <la******@comcast.net> wrote in message news:0a********************@comcast.com...
Is Oracle using the same optimizer in both instances?
"Paul" <pa*****@yahoo.com> wrote in message news:CL*********************@news4.srv.hcvlny.cv.n et...
I have two databases (8.1.7), one master and one replicated. I'm getting different results in my explain plan from the same query. Both dbs have the same indexes and all tables have been analyzed.
I'm using all the indexes I should on the master db but not on the replicated db. Does anyone have any ideas why the optimizer is behaving differently in the two databases?
Thank you.
--
Paul