GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Peoplesoft  >  PS Admin
Go To First  |  Previous Question  |  Next Question 
 PS Admin  |  Question 50 of 87    Print  
Your Onsite DBA has called you up and told you that one of the tables PS_ABC_TAO has grown very big in size. Based on the standard naming convention, you have determined that the record is a temporary record since it ends with _TAO You look into the database and decide that that the data is not required any more. You ask the DBA to delete the data in the table.Next day you get a call from an irritated user who says that a daily process that took only 1 minute to run is taking about 2 hours today. You look into his process and find that it uses PS_ABC_TAO as a temporary table.What would you suggest the DBA to do ?
Update statistics on the table


  
Total Answers and Comments: 4 Last Update: September 29, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 06, 2005 13:20:28   #1  
wyangw        

RE: Your Onsite DBA has called you up and told you that one of the tables PS_ABC_TAO has grown very big ...
How can the update statistics method solve the size problem? If it is used as temp table the data should be refreshed each time the job runs. This question doesnot make sense.
 
Is this answer useful? Yes | No
January 23, 2006 05:43:09   #2  
AL        

RE: Your Onsite DBA has called you up and told you tha...
THere are 2 problems described here. 1) Table growth of the temp table. THat is temporarily solved by deleting the rows of the temp table. However the jobs that use this table should be looked into to determine why they do not delete what should be temporay data. **table data should also be backed up before deleting as a precaution.2) the second problem is the impact to performance likely caused from deleting data from temp. Updating the statistics MAY help this problem as long as you are not updating stats on an empty table those stats would be meaningless. If you are not able to simulate meaningful data for compiling stats it is likely better to delete the statistics.
 
Is this answer useful? Yes | No
February 25, 2006 14:09:56   #3  
Soujanya        

RE: Your Onsite DBA has called you up and told you tha...
Problem here is that the table has to be truncated not deleted. This makes sure that Oracle High water mark gets reset. Otherwise system thinks that the temp table is of the same huge size as before and tries to do table scans for that entire length. So the answer is call up the DBA and have the table truncated.
 
Is this answer useful? Yes | No
September 29, 2009 10:43:14   #4  
amgill Member Since: September 2009   Contribution: 1    

RE: Your Onsite DBA has called you up and told you that one of the tables PS_ABC_TAO has grown very big in size. Based on the standard naming convention, you have determined that the record is a temporary record since it ends with _TAO You look into the d

One way to handle such temp tables is to delete stats and then lock stats so that the scheduled update stats job does not update stats on them. One example I have is the PS HRMS (Oracle DB) "Pay confirm" process. The following statements fixed the perfromance issue.

EXEC DBMS_STATS.DELETE_TABLE_STATS('SYSADM' PS_WRK_SEQ_CHECK');
EXEC DBMS_STATS.LOCK_TABLE_STATS('SYSADM' PS_WRK_SEQ_CHECK');

This will force the oracle to take at look at teh table data before coming up with a plan.



 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape