Advertisement

02.25.2008 at 05:26PM PST, ID: 23192290 | Points: 500
[x]
Attachment Details

QueryTaking Much Longer on Identical Database

Asked by marksmithy69 in Oracle Database, Databases Miscellaneous

Tags: Oracle Database Problem

Hello everyone.  I am really hoping that someone can help me with this
issue.  I have two identical databases (one is a replication of the
other), where when I run an identical query on each, one returns the
results in .5 seconds, while the other takes 18 seconds to return the
same result.  The indexes etc. are all identical on each database.
When we ran a trace, we noticed that the disk gets hit only once on
the 'quick' database, but get hit over 10000 times on the 'slow'
database to return the same number of rows.  Does anyone have any idea
what could be the issue.  I am attaching the query below.  Thank you
very much.

SELECT this_.*,
             bcprsndcmn1_.*,
             bctrnsprtc3_.*,
             bctrnsprt4_.*,
             bcprsn2_.*,
             bcprsnlndn5_.*
      FROM dbowner.bc_prsn_crsng this_
      INNER JOIN dbowner.bc_prsn_dcmnt bcprsndcmn1_ ON
this_.dcmnt_guid = bcprsndcmn1_.dcmnt_guid
      INNER JOIN dbowner.bc_trnsprt_crsng bctrnsprtc3_ ON
this_.trnsprt_crsng_guid = bctrnsprtc3_.trnsprt_crsng_guid
      INNER JOIN dbowner.bc_trnsprt bctrnsprt4_ ON
bctrnsprtc3_.trnsprt_guid = bctrnsprt4_.trnsprt_guid
      INNER JOIN dbowner.bc_prsn bcprsn2_ ON this_.prsn_guid =
bcprsn2_.prsn_guid
      FULL OUTER JOIN dbowner.bc_prsn_lndng_prmsn bcprsnlndn5_ ON
this_.prsn_crsng_guid = bcprsnlndn5_.prsn_crsng_guid
      WHERE ((bcprsndcmn1_.dcmnt_nmbr = 456900061 AND
             bcprsndcmn1_.dcmnt_type_code = 1 AND
             bcprsndcmn1_.dcmnt_expry_date = to_date('24-FEB-2016','DD-
MON-YYYY') AND
             (bcprsndcmn1_.dcmnt_isd_cntry_code = 234 OR
             bcprsndcmn1_.dcmnt_isd_cntry_code IS NULL) AND
             (bcprsndcmn1_.dcmnt_sub_type_code = 1 OR
             bcprsndcmn1_.dcmnt_sub_type_code IS NULL) AND
             (bcprsndcmn1_.ntnlty_code IS NULL) AND
             (bcprsndcmn1_.dcmnt_isd_date IS NULL)) OR
             (bcprsn2_.gvn_name = 'YASMIN' AND bcprsn2_.srnm =
'WARLAND' AND
             bcprsn2_.gndr_code = 2 AND bcprsn2_.brth_date =
'19570805'))
      ORDER BY this_.date_crtd DESCStart Free Trial
[+][-]02.25.2008 at 05:51PM PST, ID: 20981066

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 06:19PM PST, ID: 20981171

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 07:13PM PST, ID: 20981317

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 07:40PM PST, ID: 20981425

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 08:43PM PST, ID: 20981669

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 07:37AM PST, ID: 20985206

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 07:42AM PST, ID: 20985251

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 08:33AM PST, ID: 20985885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 09:28AM PST, ID: 20986515

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 02:45PM PST, ID: 20989797

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2008 at 06:24PM PST, ID: 20990817

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 08:36AM PST, ID: 20995446

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 03:12PM PDT, ID: 21550915

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 04:08PM PDT, ID: 21737016

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628