otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Share Oracle Issues and Bugs This forum is for sharing Oracle Issues and Bugs with other members of the OTM SIG Community to gain greater visibility and help push towards a timely resolution.

Tags: ,

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 17th, 2008, 22:23
Junior Member
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 5 Times in 4 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
andyp222 is on a distinguished road
Simple queries locking up DB Server CPU

Hi,

We are using version 4.5 of OTM and have 10 or so basic queries that populate users Business Monitors. Under normal circumstances each query takes 10-30 secs to execute but occasionally one of these queries will lock up the database server taking close to 100% CPU until the SQL session is killed (and the system becomes unusable until this happens). The client has a very short timeout on their HTTP proxy (2 minutes) and the problem seems to be related to when a timeout occurs during population of the BM (or during Finder set searches). Oracle suggest that the queries are too complex and should be simplified - one recent example query was 'select count(*) from ob_order_base'. I am still awaiting a response to exactly how this query can be simplified!

Has anyone seen anything similar or have any ideas as to what the issue might be.

Any thoughts greatly appreciated. Solutions or explanation even more welcome.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old July 18th, 2008, 06:49
Member
 
Join Date: May 2007
Posts: 37
Thanks: 3
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Srivathsana is on a distinguished road
Re: Simple queries locking up DB Server CPU

Hi Andy,

I would simplify the mentioned query as below :

select count(order_base_gid) from ob_order_base

I am also attaching a screenshot which shows the difference in elapsed time between count(*) and count(column_name).
This difference could become very significant in terms of sql performance when many number of queries are running in the system.It is also a possibility that the queries run for a long time and lock the DB,if run on unindexed tables at peak business hours where the application gets hit with lots of user queries.
A humble suggestion would be to analyse all the queries running in BMs and tune them down.
Attached Files
File Type: doc count_performance.doc (38.5 KB, 21 views)
__________________
Warm Regards,
Srivathsana
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old July 18th, 2008, 07:14
Junior Member
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 5 Times in 4 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
andyp222 is on a distinguished road
Re: Simple queries locking up DB Server CPU

Thanks for the input - interesting to see the improvement when you specify a column name. Unfortunately it is OTM that is generating queries similar to this when it is populating the BM numbers so we have no control over this. Its does seem to be when we have lots of user's running queries that causes a particular query to suddenly lock up the DB.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old July 18th, 2008, 09:17
Member
 
Join Date: May 2007
Posts: 37
Thanks: 3
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Srivathsana is on a distinguished road
Re: Simple queries locking up DB Server CPU

Hi Andy,

By BM i meant Business Monitors.Sorry had i made you confuse it with Business Numbers.I hope you could get a significant improvement by checking the queries running inside Business Monitors.
It's worth a try.
__________________
Warm Regards,
Srivathsana
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old July 18th, 2008, 10:42
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 58
Thanks: 3
Thanked 10 Times in 9 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: Simple queries locking up DB Server CPU

I believe Andy is also talking about Business Monitors..

When the BM is opened the sql in the specified query is converted by OTM into a 'Select count(*) ' query to populate the number of records.

We have also seen runaway queries - where the query is simple and would normally execute in miliseconds but seems to hog CPU until the process is killed.

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integration saved Queries njoyotm Execution 5 May 27th, 2008 06:31
Screen set doesn't show saved queries new_otm Branding, Screen Sets, XSL/CSS and Translations 1 May 5th, 2008 06:56
removing saved queries cmcintos Installation and Upgrades 4 April 30th, 2008 00:20
[SOLVED] Helpful DBA SQL Queries - Current Processes, Pig SQL chrisplough Database Administration 0 October 26th, 2007 00:51
[SOLVED] Simple Order Screen showing java errors peacefuleye Installation and Upgrades 3 August 2nd, 2007 13:50



All times are GMT. The time now is 17:47.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37