otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


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

OTM SIG
MavenWire


Database Administration Database installation, creation, administration and related topics.

Tags: , , , , ,

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old November 19th, 2007, 14:52
Junior Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
chad is on a distinguished road
Purging and Archiving

I am looking for help in the area of custom purges and/or archiving. We have been live for 4 months now and we are seeing really poor performance. The Business Monitor, Saved Queries, and custom reports are timing out on a regular basis. I'm looking for anyone willing to share what they do for purging or additional indexing if relief can be found there. I really need a table structure so we can write a custom PL/SQL script. I want to make sure we don't miss anything.

Here are some of our common tables with counts.
449,172 OR records
3,319,474 OR_refnum records
5,036,227 OR_line records
150,574 shipment records
311,932 Shipment_stop records

Let me know if anyone can help point me in the right direction.
Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old November 20th, 2007, 09:05
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 45
Thanks: 3
Thanked 9 Times in 8 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
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: Purging and Archiving

Chad

These numbers you quote are not excessive.

Without answering your original question - you should look to the performance of your Queries, ensuring they access indexes where ever possible.

Also - it's quite common that your Customers Browser timeout policy is set quite low - so the timeouts you see may be being caused by this.

Cheers
Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old November 20th, 2007, 11:50
Junior Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
chad is on a distinguished road
Re: Purging and Archiving

Thanks for the info. Gary. Do you happen to know where the timeout setting is? I'll start there first.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old November 20th, 2007, 12:26
Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 45
Thanks: 3
Thanked 9 Times in 8 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
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: Purging and Archiving

Hi Chad

Unfortunately no.

This I would imagine to be a Network configuration - I would suggest talking to your customers Network Support for more info.

Cheers
Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old November 25th, 2007, 22:34
Junior Member
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
prabhakar is on a distinguished road
Re: Purging and Archiving

Hi Chad,
Please check the following
1. The last time your 'glogowner' database schema was analyzed. If not recently, I would advise you doing one asap and checking the performance
2. Secondly, check the query performance directly on the database. if the response is good, check for VPD's

Please post your reply for further assistance.

Cheers
Prabhakar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old November 28th, 2007, 14:32
Junior Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
chad is on a distinguished road
Re: Purging and Archiving

We analyze the db every weekend. We do have an open SR with Oracle though on report performance that seems to keep pointing back to the VPD. Our reports run in 10 seconds when logged in as dba.admin but take around 7-10 minutes when logged in as a normal user. Oracle has not found a resolution at this time. I have been getting some relief when using vpd.add_active_table in the reports.

Have you added indexes to the db or done any purging?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old November 28th, 2007, 15:28
Junior Member
 
Join Date: May 2007
Posts: 18
Thanks: 1
Thanked 2 Times in 2 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
miks is on a distinguished road
Re: Purging and Archiving

Four months is about the time it takes for the order release refnum table to become the performance culprit. More than likely, if you take your saved queries and analyze them separately, you'll probably see full table scans. If you have already taken the normal steps of pinning all the big packages
(i.e. run: sys.dbms_shared_pool.keep'GLOGOWNER.VPD');
And, have a job that rebuilds all the otm indexes on an occasional basis.
And run analyze on a weekly basis.

Then try altering your saved queries. A good "trick" is, when quering reference data, instead of using "Begins With" "A", try using "Contains" and then providing more info to the code, like "ABC CORP". You'll notice a huge performance gain in the saved query, which, in turn will improve the business monitor. In general, if the business monitor takes more than 5 seconds to bring up, you definitely have a poorly performing query within it.

As you have also found out, tuning should be done within a domain user, not DBA.ADMIN.

Hope this helps.

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old November 28th, 2007, 16:10
Junior Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
chad is on a distinguished road
Re: Purging and Archiving

Can you explain more about (i.e. run: sys.dbms_shared_pool.keep'GLOGOWNER.VPD');

We have 9 queries in our BM and it takes an average of 9 minutes to return.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old November 28th, 2007, 16:21
Junior Member
 
Join Date: May 2007
Posts: 18
Thanks: 1
Thanked 2 Times in 2 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
miks is on a distinguished road
Re: Purging and Archiving

You should create a trigger in the database to Pin all the most commonly executed or large packages. This is in the OTM Administration Guide.

CREATE
ORREPLACETRIGGER glogowner.db_startup_pin_packages
afterstartupondatabase
begin
sys.dbms_shared_pool.keep('GLOGOWNER.VPD');
sys.dbms_shared_pool.keep('GLOGOWNER.VPDLOG');
sys.dbms_shared_pool.keep('GLOGOWNER.XVALIDATE');
sys.dbms_shared_pool.keep('GLOGOWNER.GLOG_UTIL');
sys.dbms_shared_pool.keep('GLOGOWNER.PKG_PURGE');
sys.dbms_shared_pool.keep('GLOGOWNER.PARTIT');
end;
/

Additionally, what are the queries in your BM going after? Order Release? Shipments?

I would copy someone's BM who is having the issue, and then go and add them back one by one to see which query is giving you the issue. Once you find the bad performing query, and a fix for it, you'll have to make the same fix for all the other queries in the BM going after the same subject. Order release, in my experience is a common cause of BM performance. I have had the same issues as well. We have 15+ in the BM. We were seeing 3-5 minutes to bring it up. After tuning, we are down to 5 seconds.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old November 28th, 2007, 16:53
Junior Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
chad is on a distinguished road
Re: Purging and Archiving

I have our dba checking into pinning those packages.

We have just over 3.5M records in the OR_refnum table. Most of our BM queries are SQL queries that take about 30 sec. just to run against the db.

Do you use the app. purge process?
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
Archive Schema is not populated during Purging prasad Database Administration 3 February 26th, 2008 15:44



All times are GMT. The time now is 22:59.
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