If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Query Performance Issue - ArcSDE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-13-12, 01:15
edwin_fredrick edwin_fredrick is offline
Registered User
 
Join Date: Oct 2004
Posts: 44
Query Performance Issue - ArcSDE

Hi

We are using ArcSDE views for some of our tables, and most of our queries are using views having joins more than 5 views and/or some normal tables. Each ArcSDE Multi-versioned uses 3 tables Base Table, A & D tables. (Native SQL Access)


On Test server for which we have full access, the queries are running ok and sometimes the sames queries are taking ages (sometimes more that 30 mins) to execute. We usually check the top queries and update stats and run SQL Tunning Advisor and implement the new plan. After that the query runs ok (Most of the times).

But on Production server, ever after updating stats the performance of the queries are too bad. We feel that oracle is not choosing the right execution plan for the queries in question.

We planning to increase the hidden parameter optimizer_search_limit to 8 or 10.

I refered the following URL.
Oracle optimizer search limit & permutations tips

Any suggestion from the Oracle gurus on this will be very helpfull.

Regards
Reply With Quote
  #2 (permalink)  
Old 01-13-12, 06:24
dayneo dayneo is offline
Registered User
 
Join Date: Oct 2002
Location: Cape Town, South Africa
Posts: 161
#1: I would say you should find out what the bottle neck is before changing anything.
Enable SQL trace and use TKPROF to analyze the results.

Also consult your AWR reports to check the waits and top SQL.
Reply With Quote
  #3 (permalink)  
Old 01-13-12, 09:54
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,416
do the SQL statements utilize bind variables
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #4 (permalink)  
Old 01-18-12, 07:41
edwin_fredrick edwin_fredrick is offline
Registered User
 
Join Date: Oct 2004
Posts: 44
Yes we are using bind variables.
Reply With Quote
  #5 (permalink)  
Old 01-18-12, 09:43
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,416
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #6 (permalink)  
Old 01-19-12, 06:14
edwin_fredrick edwin_fredrick is offline
Registered User
 
Join Date: Oct 2004
Posts: 44
Thanks for the link.

I am planning to set _optim_peek_user_binds to false and do a test run for a week or so on the test server to see the consistency in execution of queries.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On