Troubleshooting
Problem
This technote identifies how you can improve the performance of your IBM® Rational® RequisitePro® (ReqPro) Projects when using Oracle as the Project database.
Resolving The Problem
In some situations analyzing the RequisitePro tables and indexes in an Oracle database will improve query performance. Analyzing tables and indexes will generate current statistics for the RequisitePro objects involved in SQL statements. Statistics are used by the Oracle Optimizer to determine the most efficient way to execute a query. The statistics generated by the analyze command are only used if the database parameter optimizer_mode is set to a value of Choose, First_Rows or All_Rows.
Note: If the database optimizer_mode parameter is set to "Rule" the following steps will have no impact on database performance.
The following instructions should be completed by the Database Administrator.
The steps below explain how to generate two scripts that can be used to analyze the tables and indexes respectively.
Script to analyze RequisitePro tables:
- Connect to SQL PLUS as the RequisitePro database user.
- Issue the following command to set the appropriate page size
Set pagesize 100
- Turn spooling on which will send write output from SQL PLUS to a file.
Spool <local path on the machine>\Table_analyze.sql
- Issue the following command and press enter.
select 'Analyze Table '||table_name||' compute statistics;' from user_tables;
- Turn spooling off.
Spool off
- Browse to the location of the Table_analyze.sql file specified in step 3. Open the file with a text editor such as Notepad and remove the lines at the top and bottom of the file that do NOT begin with the text:
Analyze table RQ…
Save the file.
- Return to SQL Plus and run the script as follows:
@ <local_path>\Table_analyze.sql
For a large database it may take a few minutes for the script to execute. Once the script completes the RequisitePro tables have been analyzed.
Script to analyze indexes:
- Connect to SQL PLUS as the RequisitePro database user.
- Issue the following command to set the appropriate page size
Set pagesize 100
- Turn spooling on which will send write output from SQL PLUS to a file.
Spool <local path on the machine>\Index_analyze.sql
- Issue the following command and press enter.
select 'Analyze Index '||index_name||' compute statistics;' from user_indexes
- Turn spooling off.
Spool off
- Browse to the location of the Index_analyze.sql file specified in step 3. Open the file with a text editor such as Notepad and remove the lines at the top and bottom of the file that do NOT begin with the text:
Analyze Index RQ…
Save the file.
- Return to SQL Plus and run the script as follows:
@ <local_path>\Index_analyze.sql
For a large database it may take a few minutes for the script to execute. Once the script completes the RequisitePro indexes have been analyzed.
Historical Number
145942116
133287006
Was this topic helpful?
Document Information
More support for:
Rational RequisitePro
Software version:
2002.05.00, 2002.05.20, 2003.06.00, 2003.06.01, 2003.06.10, 2003.06.12, 2003.06.13, 2003.06.14, 2003.06.15, 2003.06.16, 7.0, 7.0.0.1
Operating system(s):
Windows
Document number:
328337
Modified date:
16 June 2018
UID
swg21131361