473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RELICATION QUESTIONS

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
Jul 19 '05 #1
6 2903
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
Jul 19 '05 #2
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
Jul 19 '05 #3
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
Jul 19 '05 #4
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
Jul 19 '05 #5
"Laconic2" <la******@comcast.net> wrote in message news:<0a********************@comcast.com>...
Is Oracle using the same optimizer in both instances?
If they are both using the cost-based optimizer, are the cost-based
optimizer parameters (i.e. optimizer_index_cost_adjustment) identical?
What about things like multi-block read count?

When you analyze the tables on the two databases, are you using the
same process to gather statistics? Or are you doing things
differently-- different histograms, for example?

Justin Cave <jc***@ddbcinc.com>
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
"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
--

Jul 19 '05 #6
Justin:

I don't know but you just gave me some good things to look at.

Thanks.

--
Paul
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.