| | Database Administration Database installation, creation, administration and related topics. |  | | 
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 | | | 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! | 
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 | | | 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  | 
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 | | | Re: Purging and Archiving Thanks for the info. Gary. Do you happen to know where the timeout setting is? I'll start there first. | 
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 | | | 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  | 
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 | | | 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 | 
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 | | | 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. | 
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 | | | 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 | 
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 | | | 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. | 
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 | | | 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.
CREATEORREPLACETRIGGER 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. | 
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 | | | 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? |  | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |