<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[ORAERP.COM - The Knowledge Center for Oracle ERP Professionals - Looking Beyond the Possibilities - Oracle Database ]]></title>
		<link>http://www.oraerp.com/</link>
		<description><![CDATA[ORAERP.COM - The Knowledge Center for Oracle ERP Professionals - Looking Beyond the Possibilities - http://www.oraerp.com]]></description>
		<pubDate>Sat, 25 May 2013 13:57:06 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[ORACLE HOME issue with DBCA]]></title>
			<link>http://www.oraerp.com/Thread-ORACLE-HOME-issue-with-DBCA</link>
			<pubDate>Mon, 06 May 2013 03:26:52 -0500</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-ORACLE-HOME-issue-with-DBCA</guid>
			<description><![CDATA[Folks,<br />
I am trying to create a new database with 11.2.0.3 binaries, which is cloned from R12 PROD, But failed due to the dbca invoking wrong OH. I opened the dbca source code[file], the OH parameter value is wrongly defined. I corrected the parameter and i tried but its taking same path again [Wrong one]. <br />
<br />
If any one please, let me know what are all the files that dbca using while creating the database.]]></description>
			<content:encoded><![CDATA[Folks,<br />
I am trying to create a new database with 11.2.0.3 binaries, which is cloned from R12 PROD, But failed due to the dbca invoking wrong OH. I opened the dbca source code[file], the OH parameter value is wrongly defined. I corrected the parameter and i tried but its taking same path again [Wrong one]. <br />
<br />
If any one please, let me know what are all the files that dbca using while creating the database.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ORA-00439: feature not enabled: Managed Standby]]></title>
			<link>http://www.oraerp.com/Thread-ORA-00439-feature-not-enabled-Managed-Standby</link>
			<pubDate>Sat, 16 Feb 2013 09:50:58 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-ORA-00439-feature-not-enabled-Managed-Standby</guid>
			<description><![CDATA[Hello,<br />
I am configuring data guard. When I setting the parameter log_archive_dest_2 i got following error. <br />
I don't know why it is not allowing to set this parameter. <br />
<br />
ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=TURKDR NOAFFIRM ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=TURKDR'<br />
*<br />
ERROR at line 1:<br />
ORA-32017: failure in updating SPFILE<br />
ORA-00439: feature not enabled: Managed Standby<br />
<br />
Please someone help me to get rectify this issue.]]></description>
			<content:encoded><![CDATA[Hello,<br />
I am configuring data guard. When I setting the parameter log_archive_dest_2 i got following error. <br />
I don't know why it is not allowing to set this parameter. <br />
<br />
ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=TURKDR NOAFFIRM ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=TURKDR'<br />
*<br />
ERROR at line 1:<br />
ORA-32017: failure in updating SPFILE<br />
ORA-00439: feature not enabled: Managed Standby<br />
<br />
Please someone help me to get rectify this issue.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SQL Performance Analyzer in Oracle Database 11g]]></title>
			<link>http://www.oraerp.com/Thread-SQL-Performance-Analyzer-in-Oracle-Database-11g</link>
			<pubDate>Mon, 28 Mar 2011 02:31:06 -0500</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-SQL-Performance-Analyzer-in-Oracle-Database-11g</guid>
			<description><![CDATA[<span style="font-size: medium;">SQL Performance Analyzer in Oracle Database 11g</span> <br />
<br />
The concept of SQL tuning sets, along with the DBMS_SQLTUNE package to manipulate them, was introduced in Oracle 10g as part of the Automatic SQL Tuning functionality. Oracle 11g makes further use of SQL tuning sets with the SQL Performance Analyzer, which compares the performance of the statements in a tuning set before and after a database change. The database change can be as major or minor as you like, such as: <br />
<ul>
<li>Database, operating system, or hardware upgrades.</li>
<li>Database, operating system, or hardware configuration changes.</li>
<li>Database initialization parameter changes.</li>
<li>Schema changes, such as adding indexes or materialized views.</li>
<li>Refreshing optimizer statistics.</li>
<li>Creating or changing SQL profiles.</li></ul>
 <br />
Unlike Database Replay , the SQL Performance Analyzer does not try and replicate the workload on the system. It just plugs through each statement gathering performance statistics. <br />
<br />
The SQL Performance Analyzer can be run manually using the DBMS_SQLPA package or using Enterprise Manager. This article gives an overview of both methods. <br />
<ul>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#setting_up" target="_blank">Setting Up the Test</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#tuning_set_api" target="_blank">Creating SQL Tuning Sets using the DBMS_SQLTUNE Package</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#sql_performance_analyzer_api" target="_blank">Running the SQL Performance Analyzer using the DBMS_SQLPA Package</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#tuning_set_em" target="_blank">Creating SQL Tuning Sets using Enterprise Manager</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#sql_performance_analyzer_em" target="_blank">Running the SQL Performance Analyzer using Enterprise Manager</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#optimizer_upgrade_simulation" target="_blank">Optimizer Upgrade Simulation</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#parameter_change" target="_blank">Parameter Change</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#transferring_tuning_sets" target="_blank">Transferring SQL Tuning Sets</a></li></ul>
 <br />
<span style="font-size: medium;">Setting Up the Test</span> <br />
<br />
The SQL performance analyzer requires SQL tuning sets, and SQL tuning sets are pointless unless they contain SQL, so the first task should be to issue some SQL statements. We are only trying to demonstrate the technology, so the example can be really simple. The following code creates a test user called SPA_TEST_USER. <br />
<br />
<blockquote><cite>Quote:</cite>CONN / AS SYSDBA <br />
<br />
CREATE USER spa_test_user IDENTIFIED BY spa_test_user <br />
QUOTA UNLIMITED ON users; <br />
<br />
GRANT CONNECT, CREATE TABLE TO spa_test_user; </blockquote>
 <br />
Next, connect to the test user and create a test table called MY_OBJECTS using a query from the ALL_OBJECTS view. <br />
<br />
<blockquote><cite>Quote:</cite>CONN spa_test_user/spa_test_user <br />
<br />
CREATE TABLE my_objects AS <br />
SELECT * FROM all_objects; <br />
<br />
EXEC DBMS_STATS.gather_table_stats(USER, 'MY_OBJECTS', cascade => TRUE); </blockquote>
This schema represents our "before" state. Still logged in as the test user, issue the following statements.<blockquote><cite>Quote:</cite>SELECT COUNT(*) FROM my_objects WHERE object_id <= 100; <br />
SELECT object_name FROM my_objects WHERE object_id = 100; <br />
SELECT COUNT(*) FROM my_objects WHERE object_id <= 1000; <br />
SELECT object_name FROM my_objects WHERE object_id = 1000; <br />
SELECT COUNT(*) FROM my_objects WHERE object_id BETWEEN 100 AND 1000; </blockquote>
 <br />
Notice, all statements make reference to the currently unindexed OBJECT_ID column. Later we will be indexing this column to create our changed "after" state. <br />
<br />
The select statements are now in the shared pool, so we can start creating an SQL tuning set. <br />
<br />
<span style="font-size: medium;">Creating SQL Tuning Sets using the DBMS_SQLTUNE Package</span> <br />
<br />
The DBMS_SQLTUNE package contains procedures and functions that allow us to create, manipulate and drop SQL tuning sets. The first step is to create an SQL tuning set called spa_test_sqlset using the CREATE_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>CONN / AS SYSDBA <br />
<br />
EXEC DBMS_SQLTUNE.create_sqlset(sqlset_name => 'spa_test_sqlset'); </blockquote>
 <br />
Next, the SELECT_CURSOR_CACHE table function is used to retrieve a cursor containing all SQL statements that were parsed by the SPA_TEST_USER schema and contain the word "my_objects". The resulting cursor is loaded into the tuning set using the LOAD_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>DECLARE <br />
l_cursor DBMS_SQLTUNE.sqlset_cursor; <br />
BEGIN <br />
OPEN l_cursor FOR <br />
SELECT VALUE(a) <br />
FROM TABLE( <br />
DBMS_SQLTUNE.select_cursor_cache( <br />
basic_filter => 'sql_text LIKE ''%my_objects%'' and parsing_schema_name = ''SPA_TEST_USER''', <br />
attribute_list => 'ALL') <br />
) a; <br />
<br />
<br />
DBMS_SQLTUNE.load_sqlset(sqlset_name => 'spa_test_sqlset', <br />
populate_cursor => l_cursor); <br />
END; <br />
/ </blockquote>
 <br />
The DBA_SQLSET_STATEMENTS view allows us to see which statements have been associated with the tuning set. <br />
<br />
<blockquote><cite>Quote:</cite>SELECT sql_text <br />
FROM dba_sqlset_statements <br />
WHERE sqlset_name = 'spa_test_sqlset'; <br />
<br />
SQL_TEXT <br />
-------------------------------------------------------------------------------- <br />
SELECT object_name FROM my_objects WHERE object_id = 100 <br />
SELECT COUNT(*) FROM my_objects WHERE object_id <= 100 <br />
SELECT COUNT(*) FROM my_objects WHERE object_id BETWEEN 100 AND 1000 <br />
SELECT COUNT(*) FROM my_objects WHERE object_id <= 1000 <br />
SELECT object_name FROM my_objects WHERE object_id = 1000 <br />
<br />
5 rows selected. <br />
<br />
SQL> </blockquote>
 <br />
Now we have an SQL tuning set, we can start using the SQL performance analyzer. <br />
<br />
<span style="font-size: medium;">Running the SQL Performance Analyzer using the DBMS_SQLPA Package</span> <br />
<br />
The DBMS_SQLPA package is the PL/SQL API used to manage the SQL performance ananlyzer. The first step is to create an analysis task using the CREATE_ANALYSIS_TASK function, passing in the SQL tuning set name and making a note of the resulting task name. <br />
<br />
<blockquote><cite>Quote:</cite>CONN / AS SYSDBA <br />
<br />
VARIABLE v_task VARCHAR2(64); <br />
EXEC :v_task := DBMS_SQLPA.create_analysis_task(sqlset_name => 'spa_test_sqlset'); <br />
<br />
PL/SQL procedure successfully completed. <br />
<br />
SQL> PRINT :v_task <br />
<br />
V_TASK <br />
-------------------------------------------------------------------------------- <br />
TASK_122 <br />
<br />
SQL> </blockquote>
 <br />
Next, use the EXECUTE_ANALYSIS_TASK procedure to execute the contents of the SQL tuning set against the current state of the database to gather information about the performance before any modifications are made. This analysis run is named before_change. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLPA.execute_analysis_task( <br />
task_name => :v_task, <br />
execution_type => 'test execute', <br />
execution_name => 'before_change'); <br />
END; <br />
/ </blockquote>
 <br />
Now we have the "before" performance information, we need to make a change so we can test the "after" performance. For this example we will simply add an index to the test table on the OBJECT_ID column. In a new SQL*Plus session create the index using the following statements. <br />
<br />
<blockquote><cite>Quote:</cite>CONN spa_test_user/spa_test_user <br />
<br />
CREATE INDEX my_objects_index_01 ON my_objects(object_id); <br />
<br />
EXEC DBMS_STATS.gather_table_stats(USER, 'MY_OBJECTS', cascade => TRUE); </blockquote>
 <br />
Now, we can return to our original session and test the performance after the database change. Once again use the EXECUTE_ANALYSIS_TASK procedure, naming the analysis task "after_change". <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLPA.execute_analysis_task( <br />
task_name => :v_task, <br />
execution_type => 'test execute', <br />
execution_name => 'after_change'); <br />
END; <br />
/ </blockquote>
 <br />
Once the before and after analysis tasks are complete, we must run a comparison analysis task. The following code explicitly names the analysis tasks to compare using name-value pairs in the EXECUTION_PARAMS parameter. If this is ommited, the latest two analysis runs are compared. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLPA.execute_analysis_task( <br />
task_name => :v_task, <br />
execution_type => 'compare performance', <br />
execution_params => dbms_advisor.arglist( <br />
'execution_name1', <br />
'before_change', <br />
'execution_name2', <br />
'after_change') <br />
); <br />
END; <br />
/ </blockquote>
 <br />
With this final analysis run complete, we can check out the comparison report using the REPORT_ANALYSIS_TASK function. The function returns a CLOB containing the report in 'TEXT', 'XML' or 'HTML' format. Its usage is shown below. <br />
<br />
Note. Oracle 11gR2 also includes an 'ACTIVE' format that looks more like the Enterprise Manager output. <br />
<br />
<blockquote><cite>Quote:</cite>SET PAGESIZE 0 <br />
SET LINESIZE 1000 <br />
SET LONG 1000000 <br />
SET LONGCHUNKSIZE 1000000 <br />
SET TRIMSPOOL ON <br />
SET TRIM ON <br />
<br />
SPOOL /tmp/execute_comparison_report.htm <br />
<br />
SELECT DBMS_SQLPA.report_analysis_task(:v_task, 'HTML', 'ALL') <br />
FROM dual; <br />
<br />
SPOOL OFF </blockquote>
 <br />
An example of this file for each available type is shown below. <br />
<ul>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_text.txt" target="_blank">TEXT</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_html.htm" target="_blank">HTML</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_xml.xml" target="_blank">XML</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_active.htm" target="_blank">ACTIVE</a> - Active HTML available in 11gR2 requires a download of Javascript libraries from an Oracle website, so must be used on a PC connected to the internet.</li></ul>
 <br />
<span style="font-size: medium;">Creating SQL Tuning Sets using Enterprise Manager</span> <br />
<br />
Click on the "SQL Tuning Sets" link towards the bottom of the "Performance" tab. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/01-SqlTuningSetsLink.jpg" border="0" alt="[Image: 01-SqlTuningSetsLink.jpg]" /> <br />
<br />
On the "SQL Tuning Sets" screen, click the "Create" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/02-SqlTuningSets.jpg" border="0" alt="[Image: 02-SqlTuningSets.jpg]" /> <br />
<br />
Enter a name for the SQL tuning set and click the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/03-Options.jpg" border="0" alt="[Image: 03-Options.jpg]" /> <br />
<br />
Select the "Load SQL statements one time only" option, select the "Cursor Cache" as the data source, then click the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/04-LoadMethods.jpg" border="0" alt="[Image: 04-LoadMethods.jpg]" /> <br />
<br />
Set the appropriate values for the "Parsing Schema Name" and "SQL Text" filter attributes, remove any extra attributes by clicking their remove icons, then click the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/05-FilterOptions.jpg" border="0" alt="[Image: 05-FilterOptions.jpg]" /> <br />
<br />
Accept the immediate schedule by clicking the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/06-Schedule.jpg" border="0" alt="[Image: 06-Schedule.jpg]" /> <br />
<br />
Assuming the review information looks correct, click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/07-Review.jpg" border="0" alt="[Image: 07-Review.jpg]" /> <br />
<br />
The "SQL Tuning Sets" screen shows the confirmation of the tuning set creation and the scheduled job to populate it. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/08-Confirmation.jpg" border="0" alt="[Image: 08-Confirmation.jpg]" /> <br />
<br />
Once the population job completes, clicking on the SQL tuning set displays its contents. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/09-SqlTuningSetContents.jpg" border="0" alt="[Image: 09-SqlTuningSetContents.jpg]" /> <br />
<br />
Now we have an SQL tuning set, we can start using the SQL performance analyzer. <br />
<br />
<span style="font-size: medium;">Running the SQL Performance Analyzer using Enterprise Manager</span> <br />
<br />
Click the "SQL Performance Analayzer" link on the "Software and Support" tab. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/10-SqlPerformanceAnalyzerLink.jpg" border="0" alt="[Image: 10-SqlPerformanceAnalyzerLink.jpg]" /> <br />
<br />
Click the "Guided Workflow" link on the "SQL Performance Analayzer" screen. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/11-GuidedWorkflow.jpg" border="0" alt="[Image: 11-GuidedWorkflow.jpg]" /> <br />
<br />
Click the execute icon on the first step to create the SQL Performance Analyzer task. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/12-CreateSpaTaskIcon.jpg" border="0" alt="[Image: 12-CreateSpaTaskIcon.jpg]" /> <br />
<br />
Enter a name for the SPA task, select the SQL tuning set to associate with it, then click the "Create" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/13-CreateSpaTask.jpg" border="0" alt="[Image: 13-CreateSpaTask.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the second step to capture the SQL tuning set performance information of the "before" state. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/14-ReplayBeforeIcon.jpg" border="0" alt="[Image: 14-ReplayBeforeIcon.jpg]" /> <br />
<br />
Enter a "Replay Trial Name" of "before_change", check the "Trial environment established" checkbox, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/15-ReplayBefore.jpg" border="0" alt="[Image: 15-ReplayBefore.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the third step to capture the SQL tuning set performance information of the "after" state. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/16-ReplayAfterIcon.jpg" border="0" alt="[Image: 16-ReplayAfterIcon.jpg]" /> <br />
<br />
Alter the state of the database by creating an index on the OBJECT_ID column of the test table. <br />
<br />
<blockquote><cite>Quote:</cite>CONN spa_test_user/spa_test_user@prod <br />
<br />
CREATE INDEX my_objects_index_01 ON my_objects(object_id); <br />
<br />
EXEC DBMS_STATS.gather_table_stats(USER, 'MY_OBJECTS', cascade => TRUE); </blockquote>
 <br />
Enter a "Replay Trial Name" of "after_change", check the "Trial environment established" checkbox, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/17-ReplayAfter.jpg" border="0" alt="[Image: 17-ReplayAfter.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the forth step to run a comparison analysis task. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/18-CompareIcon.jpg" border="0" alt="[Image: 18-CompareIcon.jpg]" /> <br />
<br />
Accept the default "Trial 1 Name" and "Trial 2 Name" settings by clicking the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/19-Compare.jpg" border="0" alt="[Image: 19-Compare.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the fifth step to view the comparison report. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/20-ReportIcon.jpg" border="0" alt="[Image: 20-ReportIcon.jpg]" /> <br />
<br />
The resulting page contains the comparison report for the SQL Performance Analyzer task. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/21-Report.jpg" border="0" alt="[Image: 21-Report.jpg]" /> <br />
<br />
Clicking on a specific SQL ID displays the statement specific results, along with the before and after execution plans. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/22-SqlReport.jpg" border="0" alt="[Image: 22-SqlReport.jpg]" /> <br />
<br />
<span style="font-size: medium;">Optimizer Upgrade Simulation</span> <br />
<br />
The SQL Performance Analyzer allows you to test the affects of optimizer version changes on SQL tuning sets. Click the "Optimizer Upgrade Simulation" link on the "SQL Performance Analyzer" page. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/23-OptimizerUpgradeSimulationLink.jpg" border="0" alt="[Image: 23-OptimizerUpgradeSimulationLink.jpg]" /> <br />
<br />
Enter a task name, select the two optimizer versions to compare, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/24-OptimizerUpgradeSimulation.jpg" border="0" alt="[Image: 24-OptimizerUpgradeSimulation.jpg]" /> <br />
<br />
The task is listed in the "SQL Performance Analyzer Tasks" section. Refresh the page intermittently until the task status becomes a green tick, then click on the task name. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/25-TaskList.jpg" border="0" alt="[Image: 25-TaskList.jpg]" /> <br />
<br />
The resulting screen shows details of the selected task. Click on the "Comparison Report" classes icon allows you to view the comparison report. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/26-TaskDetails.jpg" border="0" alt="[Image: 26-TaskDetails.jpg]" /> <br />
<br />
<span style="font-size: medium;">Parameter Change</span> <br />
<br />
The SQL Performance Analyzer provides a shortcut for setting up tests of initialization parameter changes on SQL tuning sets. Click the "Parameter" link on the "SQL Performance Analyzer" page. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/27-ParameterChangeLink.jpg" border="0" alt="[Image: 27-ParameterChangeLink.jpg]" /> <br />
<br />
Enter a task name and the parameter you wish to test. Enter the base and changed value, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/28-ParameterChange.jpg" border="0" alt="[Image: 28-ParameterChange.jpg]" /> <br />
<br />
The task is listed in the "SQL Performance Analyzer Tasks" section. Refresh the page intermittently until the task status becomes a green tick, then click on the task name. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/29-TaskList.jpg" border="0" alt="[Image: 29-TaskList.jpg]" /> <br />
<br />
The resulting screen shows details of the selected task. Click on the "Comparison Report" classes icon allows you to view the comparison report. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/30-TaskDetails.jpg" border="0" alt="[Image: 30-TaskDetails.jpg]" /> <br />
<br />
<span style="font-size: medium;">Transferring SQL Tuning Sets</span> <br />
<br />
In the examples listed above, the tests have been performed on the same system. In reality you are more likely to want to create a tuning set on your production system, then run the SQL Performance Analyzer against it on a test system. Fortunately, the DBMS_SQLTUNE package allows you to transport SQL tuning sets by storing them in a staging table. <br />
<br />
First, create the staging table using the CREATE_STGTAB_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>CONN sys/password@prod AS SYSDBA <br />
<br />
BEGIN <br />
DBMS_SQLTUNE.create_stgtab_sqlset(table_name => 'SQLSET_TAB', <br />
schema_name => 'SPA_TEST_USER', <br />
tablespace_name => 'USERS'); <br />
END; <br />
/ </blockquote>
 <br />
Next, use the PACK_STGTAB_SQLSET procedure to export SQL tuning set into the staging table. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLTUNE.pack_stgtab_sqlset(sqlset_name => 'SPA_TEST_SQLSET', <br />
sqlset_owner => 'SYS', <br />
staging_table_name => 'SQLSET_TAB', <br />
staging_schema_owner => 'SPA_TEST_USER'); <br />
END; <br />
/ </blockquote>
 <br />
Once the SQL tuning set is packed into the staging table, the table can be transferred to the test system using Datapump, Export/Import or via a database link. Once on the test system, the SQL tuning set can be imported using the UNPACK_STGTAB_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLTUNE.unpack_stgtab_sqlset(sqlset_name => '%', <br />
sqlset_owner => 'SYS', <br />
replace => TRUE, <br />
staging_table_name => 'SQLSET_TAB', <br />
staging_schema_owner => 'SPA_TEST_USER'); <br />
END; <br />
/ </blockquote>
 <br />
The SQL tuning set can now be used with the SQL Performance Analyzer on the test system. <br />
<br />
More details you can find from attached Doc.<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/pdf.gif" border="0" alt=".pdf" />&nbsp;&nbsp;<a href="attachment.php?aid=21" target="_blank">Oracle SQL Performance Analyzer.pdf</a> (Size: 55 KB / Downloads: 29)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<span style="font-size: medium;">SQL Performance Analyzer in Oracle Database 11g</span> <br />
<br />
The concept of SQL tuning sets, along with the DBMS_SQLTUNE package to manipulate them, was introduced in Oracle 10g as part of the Automatic SQL Tuning functionality. Oracle 11g makes further use of SQL tuning sets with the SQL Performance Analyzer, which compares the performance of the statements in a tuning set before and after a database change. The database change can be as major or minor as you like, such as: <br />
<ul>
<li>Database, operating system, or hardware upgrades.</li>
<li>Database, operating system, or hardware configuration changes.</li>
<li>Database initialization parameter changes.</li>
<li>Schema changes, such as adding indexes or materialized views.</li>
<li>Refreshing optimizer statistics.</li>
<li>Creating or changing SQL profiles.</li></ul>
 <br />
Unlike Database Replay , the SQL Performance Analyzer does not try and replicate the workload on the system. It just plugs through each statement gathering performance statistics. <br />
<br />
The SQL Performance Analyzer can be run manually using the DBMS_SQLPA package or using Enterprise Manager. This article gives an overview of both methods. <br />
<ul>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#setting_up" target="_blank">Setting Up the Test</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#tuning_set_api" target="_blank">Creating SQL Tuning Sets using the DBMS_SQLTUNE Package</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#sql_performance_analyzer_api" target="_blank">Running the SQL Performance Analyzer using the DBMS_SQLPA Package</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#tuning_set_em" target="_blank">Creating SQL Tuning Sets using Enterprise Manager</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#sql_performance_analyzer_em" target="_blank">Running the SQL Performance Analyzer using Enterprise Manager</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#optimizer_upgrade_simulation" target="_blank">Optimizer Upgrade Simulation</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#parameter_change" target="_blank">Parameter Change</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/SqlPerformanceAnalyzer_11gR1.php#transferring_tuning_sets" target="_blank">Transferring SQL Tuning Sets</a></li></ul>
 <br />
<span style="font-size: medium;">Setting Up the Test</span> <br />
<br />
The SQL performance analyzer requires SQL tuning sets, and SQL tuning sets are pointless unless they contain SQL, so the first task should be to issue some SQL statements. We are only trying to demonstrate the technology, so the example can be really simple. The following code creates a test user called SPA_TEST_USER. <br />
<br />
<blockquote><cite>Quote:</cite>CONN / AS SYSDBA <br />
<br />
CREATE USER spa_test_user IDENTIFIED BY spa_test_user <br />
QUOTA UNLIMITED ON users; <br />
<br />
GRANT CONNECT, CREATE TABLE TO spa_test_user; </blockquote>
 <br />
Next, connect to the test user and create a test table called MY_OBJECTS using a query from the ALL_OBJECTS view. <br />
<br />
<blockquote><cite>Quote:</cite>CONN spa_test_user/spa_test_user <br />
<br />
CREATE TABLE my_objects AS <br />
SELECT * FROM all_objects; <br />
<br />
EXEC DBMS_STATS.gather_table_stats(USER, 'MY_OBJECTS', cascade => TRUE); </blockquote>
This schema represents our "before" state. Still logged in as the test user, issue the following statements.<blockquote><cite>Quote:</cite>SELECT COUNT(*) FROM my_objects WHERE object_id <= 100; <br />
SELECT object_name FROM my_objects WHERE object_id = 100; <br />
SELECT COUNT(*) FROM my_objects WHERE object_id <= 1000; <br />
SELECT object_name FROM my_objects WHERE object_id = 1000; <br />
SELECT COUNT(*) FROM my_objects WHERE object_id BETWEEN 100 AND 1000; </blockquote>
 <br />
Notice, all statements make reference to the currently unindexed OBJECT_ID column. Later we will be indexing this column to create our changed "after" state. <br />
<br />
The select statements are now in the shared pool, so we can start creating an SQL tuning set. <br />
<br />
<span style="font-size: medium;">Creating SQL Tuning Sets using the DBMS_SQLTUNE Package</span> <br />
<br />
The DBMS_SQLTUNE package contains procedures and functions that allow us to create, manipulate and drop SQL tuning sets. The first step is to create an SQL tuning set called spa_test_sqlset using the CREATE_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>CONN / AS SYSDBA <br />
<br />
EXEC DBMS_SQLTUNE.create_sqlset(sqlset_name => 'spa_test_sqlset'); </blockquote>
 <br />
Next, the SELECT_CURSOR_CACHE table function is used to retrieve a cursor containing all SQL statements that were parsed by the SPA_TEST_USER schema and contain the word "my_objects". The resulting cursor is loaded into the tuning set using the LOAD_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>DECLARE <br />
l_cursor DBMS_SQLTUNE.sqlset_cursor; <br />
BEGIN <br />
OPEN l_cursor FOR <br />
SELECT VALUE(a) <br />
FROM TABLE( <br />
DBMS_SQLTUNE.select_cursor_cache( <br />
basic_filter => 'sql_text LIKE ''%my_objects%'' and parsing_schema_name = ''SPA_TEST_USER''', <br />
attribute_list => 'ALL') <br />
) a; <br />
<br />
<br />
DBMS_SQLTUNE.load_sqlset(sqlset_name => 'spa_test_sqlset', <br />
populate_cursor => l_cursor); <br />
END; <br />
/ </blockquote>
 <br />
The DBA_SQLSET_STATEMENTS view allows us to see which statements have been associated with the tuning set. <br />
<br />
<blockquote><cite>Quote:</cite>SELECT sql_text <br />
FROM dba_sqlset_statements <br />
WHERE sqlset_name = 'spa_test_sqlset'; <br />
<br />
SQL_TEXT <br />
-------------------------------------------------------------------------------- <br />
SELECT object_name FROM my_objects WHERE object_id = 100 <br />
SELECT COUNT(*) FROM my_objects WHERE object_id <= 100 <br />
SELECT COUNT(*) FROM my_objects WHERE object_id BETWEEN 100 AND 1000 <br />
SELECT COUNT(*) FROM my_objects WHERE object_id <= 1000 <br />
SELECT object_name FROM my_objects WHERE object_id = 1000 <br />
<br />
5 rows selected. <br />
<br />
SQL> </blockquote>
 <br />
Now we have an SQL tuning set, we can start using the SQL performance analyzer. <br />
<br />
<span style="font-size: medium;">Running the SQL Performance Analyzer using the DBMS_SQLPA Package</span> <br />
<br />
The DBMS_SQLPA package is the PL/SQL API used to manage the SQL performance ananlyzer. The first step is to create an analysis task using the CREATE_ANALYSIS_TASK function, passing in the SQL tuning set name and making a note of the resulting task name. <br />
<br />
<blockquote><cite>Quote:</cite>CONN / AS SYSDBA <br />
<br />
VARIABLE v_task VARCHAR2(64); <br />
EXEC :v_task := DBMS_SQLPA.create_analysis_task(sqlset_name => 'spa_test_sqlset'); <br />
<br />
PL/SQL procedure successfully completed. <br />
<br />
SQL> PRINT :v_task <br />
<br />
V_TASK <br />
-------------------------------------------------------------------------------- <br />
TASK_122 <br />
<br />
SQL> </blockquote>
 <br />
Next, use the EXECUTE_ANALYSIS_TASK procedure to execute the contents of the SQL tuning set against the current state of the database to gather information about the performance before any modifications are made. This analysis run is named before_change. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLPA.execute_analysis_task( <br />
task_name => :v_task, <br />
execution_type => 'test execute', <br />
execution_name => 'before_change'); <br />
END; <br />
/ </blockquote>
 <br />
Now we have the "before" performance information, we need to make a change so we can test the "after" performance. For this example we will simply add an index to the test table on the OBJECT_ID column. In a new SQL*Plus session create the index using the following statements. <br />
<br />
<blockquote><cite>Quote:</cite>CONN spa_test_user/spa_test_user <br />
<br />
CREATE INDEX my_objects_index_01 ON my_objects(object_id); <br />
<br />
EXEC DBMS_STATS.gather_table_stats(USER, 'MY_OBJECTS', cascade => TRUE); </blockquote>
 <br />
Now, we can return to our original session and test the performance after the database change. Once again use the EXECUTE_ANALYSIS_TASK procedure, naming the analysis task "after_change". <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLPA.execute_analysis_task( <br />
task_name => :v_task, <br />
execution_type => 'test execute', <br />
execution_name => 'after_change'); <br />
END; <br />
/ </blockquote>
 <br />
Once the before and after analysis tasks are complete, we must run a comparison analysis task. The following code explicitly names the analysis tasks to compare using name-value pairs in the EXECUTION_PARAMS parameter. If this is ommited, the latest two analysis runs are compared. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLPA.execute_analysis_task( <br />
task_name => :v_task, <br />
execution_type => 'compare performance', <br />
execution_params => dbms_advisor.arglist( <br />
'execution_name1', <br />
'before_change', <br />
'execution_name2', <br />
'after_change') <br />
); <br />
END; <br />
/ </blockquote>
 <br />
With this final analysis run complete, we can check out the comparison report using the REPORT_ANALYSIS_TASK function. The function returns a CLOB containing the report in 'TEXT', 'XML' or 'HTML' format. Its usage is shown below. <br />
<br />
Note. Oracle 11gR2 also includes an 'ACTIVE' format that looks more like the Enterprise Manager output. <br />
<br />
<blockquote><cite>Quote:</cite>SET PAGESIZE 0 <br />
SET LINESIZE 1000 <br />
SET LONG 1000000 <br />
SET LONGCHUNKSIZE 1000000 <br />
SET TRIMSPOOL ON <br />
SET TRIM ON <br />
<br />
SPOOL /tmp/execute_comparison_report.htm <br />
<br />
SELECT DBMS_SQLPA.report_analysis_task(:v_task, 'HTML', 'ALL') <br />
FROM dual; <br />
<br />
SPOOL OFF </blockquote>
 <br />
An example of this file for each available type is shown below. <br />
<ul>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_text.txt" target="_blank">TEXT</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_html.htm" target="_blank">HTML</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_xml.xml" target="_blank">XML</a></li>
<li><a href="http://www.oracle-base.com/articles/11g/execute_comparison_report_active.htm" target="_blank">ACTIVE</a> - Active HTML available in 11gR2 requires a download of Javascript libraries from an Oracle website, so must be used on a PC connected to the internet.</li></ul>
 <br />
<span style="font-size: medium;">Creating SQL Tuning Sets using Enterprise Manager</span> <br />
<br />
Click on the "SQL Tuning Sets" link towards the bottom of the "Performance" tab. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/01-SqlTuningSetsLink.jpg" border="0" alt="[Image: 01-SqlTuningSetsLink.jpg]" /> <br />
<br />
On the "SQL Tuning Sets" screen, click the "Create" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/02-SqlTuningSets.jpg" border="0" alt="[Image: 02-SqlTuningSets.jpg]" /> <br />
<br />
Enter a name for the SQL tuning set and click the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/03-Options.jpg" border="0" alt="[Image: 03-Options.jpg]" /> <br />
<br />
Select the "Load SQL statements one time only" option, select the "Cursor Cache" as the data source, then click the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/04-LoadMethods.jpg" border="0" alt="[Image: 04-LoadMethods.jpg]" /> <br />
<br />
Set the appropriate values for the "Parsing Schema Name" and "SQL Text" filter attributes, remove any extra attributes by clicking their remove icons, then click the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/05-FilterOptions.jpg" border="0" alt="[Image: 05-FilterOptions.jpg]" /> <br />
<br />
Accept the immediate schedule by clicking the "Next" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/06-Schedule.jpg" border="0" alt="[Image: 06-Schedule.jpg]" /> <br />
<br />
Assuming the review information looks correct, click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/07-Review.jpg" border="0" alt="[Image: 07-Review.jpg]" /> <br />
<br />
The "SQL Tuning Sets" screen shows the confirmation of the tuning set creation and the scheduled job to populate it. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/08-Confirmation.jpg" border="0" alt="[Image: 08-Confirmation.jpg]" /> <br />
<br />
Once the population job completes, clicking on the SQL tuning set displays its contents. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/09-SqlTuningSetContents.jpg" border="0" alt="[Image: 09-SqlTuningSetContents.jpg]" /> <br />
<br />
Now we have an SQL tuning set, we can start using the SQL performance analyzer. <br />
<br />
<span style="font-size: medium;">Running the SQL Performance Analyzer using Enterprise Manager</span> <br />
<br />
Click the "SQL Performance Analayzer" link on the "Software and Support" tab. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/10-SqlPerformanceAnalyzerLink.jpg" border="0" alt="[Image: 10-SqlPerformanceAnalyzerLink.jpg]" /> <br />
<br />
Click the "Guided Workflow" link on the "SQL Performance Analayzer" screen. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/11-GuidedWorkflow.jpg" border="0" alt="[Image: 11-GuidedWorkflow.jpg]" /> <br />
<br />
Click the execute icon on the first step to create the SQL Performance Analyzer task. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/12-CreateSpaTaskIcon.jpg" border="0" alt="[Image: 12-CreateSpaTaskIcon.jpg]" /> <br />
<br />
Enter a name for the SPA task, select the SQL tuning set to associate with it, then click the "Create" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/13-CreateSpaTask.jpg" border="0" alt="[Image: 13-CreateSpaTask.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the second step to capture the SQL tuning set performance information of the "before" state. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/14-ReplayBeforeIcon.jpg" border="0" alt="[Image: 14-ReplayBeforeIcon.jpg]" /> <br />
<br />
Enter a "Replay Trial Name" of "before_change", check the "Trial environment established" checkbox, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/15-ReplayBefore.jpg" border="0" alt="[Image: 15-ReplayBefore.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the third step to capture the SQL tuning set performance information of the "after" state. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/16-ReplayAfterIcon.jpg" border="0" alt="[Image: 16-ReplayAfterIcon.jpg]" /> <br />
<br />
Alter the state of the database by creating an index on the OBJECT_ID column of the test table. <br />
<br />
<blockquote><cite>Quote:</cite>CONN spa_test_user/spa_test_user@prod <br />
<br />
CREATE INDEX my_objects_index_01 ON my_objects(object_id); <br />
<br />
EXEC DBMS_STATS.gather_table_stats(USER, 'MY_OBJECTS', cascade => TRUE); </blockquote>
 <br />
Enter a "Replay Trial Name" of "after_change", check the "Trial environment established" checkbox, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/17-ReplayAfter.jpg" border="0" alt="[Image: 17-ReplayAfter.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the forth step to run a comparison analysis task. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/18-CompareIcon.jpg" border="0" alt="[Image: 18-CompareIcon.jpg]" /> <br />
<br />
Accept the default "Trial 1 Name" and "Trial 2 Name" settings by clicking the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/19-Compare.jpg" border="0" alt="[Image: 19-Compare.jpg]" /> <br />
<br />
When the status of the previous step becomes a green tick, click the execute icon on the fifth step to view the comparison report. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/20-ReportIcon.jpg" border="0" alt="[Image: 20-ReportIcon.jpg]" /> <br />
<br />
The resulting page contains the comparison report for the SQL Performance Analyzer task. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/21-Report.jpg" border="0" alt="[Image: 21-Report.jpg]" /> <br />
<br />
Clicking on a specific SQL ID displays the statement specific results, along with the before and after execution plans. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/22-SqlReport.jpg" border="0" alt="[Image: 22-SqlReport.jpg]" /> <br />
<br />
<span style="font-size: medium;">Optimizer Upgrade Simulation</span> <br />
<br />
The SQL Performance Analyzer allows you to test the affects of optimizer version changes on SQL tuning sets. Click the "Optimizer Upgrade Simulation" link on the "SQL Performance Analyzer" page. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/23-OptimizerUpgradeSimulationLink.jpg" border="0" alt="[Image: 23-OptimizerUpgradeSimulationLink.jpg]" /> <br />
<br />
Enter a task name, select the two optimizer versions to compare, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/24-OptimizerUpgradeSimulation.jpg" border="0" alt="[Image: 24-OptimizerUpgradeSimulation.jpg]" /> <br />
<br />
The task is listed in the "SQL Performance Analyzer Tasks" section. Refresh the page intermittently until the task status becomes a green tick, then click on the task name. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/25-TaskList.jpg" border="0" alt="[Image: 25-TaskList.jpg]" /> <br />
<br />
The resulting screen shows details of the selected task. Click on the "Comparison Report" classes icon allows you to view the comparison report. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/26-TaskDetails.jpg" border="0" alt="[Image: 26-TaskDetails.jpg]" /> <br />
<br />
<span style="font-size: medium;">Parameter Change</span> <br />
<br />
The SQL Performance Analyzer provides a shortcut for setting up tests of initialization parameter changes on SQL tuning sets. Click the "Parameter" link on the "SQL Performance Analyzer" page. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/27-ParameterChangeLink.jpg" border="0" alt="[Image: 27-ParameterChangeLink.jpg]" /> <br />
<br />
Enter a task name and the parameter you wish to test. Enter the base and changed value, then click the "Submit" button. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/28-ParameterChange.jpg" border="0" alt="[Image: 28-ParameterChange.jpg]" /> <br />
<br />
The task is listed in the "SQL Performance Analyzer Tasks" section. Refresh the page intermittently until the task status becomes a green tick, then click on the task name. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/29-TaskList.jpg" border="0" alt="[Image: 29-TaskList.jpg]" /> <br />
<br />
The resulting screen shows details of the selected task. Click on the "Comparison Report" classes icon allows you to view the comparison report. <br />
<br />
<img src="http://www.oracle-base.com/articles/11g/images/sql_performance_analyzer/30-TaskDetails.jpg" border="0" alt="[Image: 30-TaskDetails.jpg]" /> <br />
<br />
<span style="font-size: medium;">Transferring SQL Tuning Sets</span> <br />
<br />
In the examples listed above, the tests have been performed on the same system. In reality you are more likely to want to create a tuning set on your production system, then run the SQL Performance Analyzer against it on a test system. Fortunately, the DBMS_SQLTUNE package allows you to transport SQL tuning sets by storing them in a staging table. <br />
<br />
First, create the staging table using the CREATE_STGTAB_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>CONN sys/password@prod AS SYSDBA <br />
<br />
BEGIN <br />
DBMS_SQLTUNE.create_stgtab_sqlset(table_name => 'SQLSET_TAB', <br />
schema_name => 'SPA_TEST_USER', <br />
tablespace_name => 'USERS'); <br />
END; <br />
/ </blockquote>
 <br />
Next, use the PACK_STGTAB_SQLSET procedure to export SQL tuning set into the staging table. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLTUNE.pack_stgtab_sqlset(sqlset_name => 'SPA_TEST_SQLSET', <br />
sqlset_owner => 'SYS', <br />
staging_table_name => 'SQLSET_TAB', <br />
staging_schema_owner => 'SPA_TEST_USER'); <br />
END; <br />
/ </blockquote>
 <br />
Once the SQL tuning set is packed into the staging table, the table can be transferred to the test system using Datapump, Export/Import or via a database link. Once on the test system, the SQL tuning set can be imported using the UNPACK_STGTAB_SQLSET procedure. <br />
<br />
<blockquote><cite>Quote:</cite>BEGIN <br />
DBMS_SQLTUNE.unpack_stgtab_sqlset(sqlset_name => '%', <br />
sqlset_owner => 'SYS', <br />
replace => TRUE, <br />
staging_table_name => 'SQLSET_TAB', <br />
staging_schema_owner => 'SPA_TEST_USER'); <br />
END; <br />
/ </blockquote>
 <br />
The SQL tuning set can now be used with the SQL Performance Analyzer on the test system. <br />
<br />
More details you can find from attached Doc.<br /><!-- start: postbit_attachments_attachment -->
<br /><img src="images/attachtypes/pdf.gif" border="0" alt=".pdf" />&nbsp;&nbsp;<a href="attachment.php?aid=21" target="_blank">Oracle SQL Performance Analyzer.pdf</a> (Size: 55 KB / Downloads: 29)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Script for Undo Information]]></title>
			<link>http://www.oraerp.com/Thread-Script-for-Undo-Information</link>
			<pubDate>Fri, 28 Jan 2011 08:35:29 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-Script-for-Undo-Information</guid>
			<description><![CDATA[REM:****************************************************************************&#8203;******************<br />
REM: Script : Undo Informations<br />
REM: Author: Kumar Menon<br />
REM: Date Submitted: 16-July-2009<br />
REM:FileName: Undoinfo.sql<br />
REM:<br />
REM: NOTE: PLEASE TEST THIS SCRIPT BEFORE USE.<br />
REM: Author will not be responsible for any damage that may be cause by this script.<br />
********************************************************************************&#8203;********************<br />
<br />
<br />
spool d:\undoinfo.txt<br />
SELECT (UR * (UPS * DBS)) + (DBS * 24) AS "Bytes" <br />
FROM (SELECT value AS UR FROM v&#36;parameter WHERE name = 'undo_retention'), <br />
(SELECT (SUM(undoblks)/SUM(((end_time - begin_time)*86400))) AS UPS FROM v&#36;undostat), <br />
(SELECT value AS DBS FROM v&#36;parameter WHERE name = 'db_block_size') ;<br />
<br />
SELECT r.name rbs, <br />
NVL(s.username, 'None') oracle_user, <br />
s.osuser client_user, <br />
p.username unix_user, <br />
TO_CHAR(s.sid)||','||TO_CHAR(s.serial#) as sid_serial, <br />
p.spid unix_pid, <br />
t.used_ublk * TO_NUMBER(x.value)/1024 as undo_kb <br />
FROM v&#36;process p, <br />
v&#36;rollname r, <br />
v&#36;session s, <br />
v&#36;transaction t, <br />
v&#36;parameter x <br />
WHERE s.taddr = t.addr <br />
AND s.paddr = p.addr(+) <br />
AND r.usn = t.xidusn(+) <br />
AND x.name = 'db_block_size' <br />
ORDER <br />
BY r.name ; <br />
<br />
select l.sid, s.segment_name from dba_rollback_segs s, v&#36;transaction t, v&#36;lock l <br />
where t.xidusn=s.segment_id and t.addr=l.addr ;<br />
select to_char(begin_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s'),to_char(end_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s') <br />
, maxquerylen,ssolderrcnt,nospaceerrcnt,undoblks,txncount from v&#36;undostat <br />
order by undoblks ;<br />
set lines 160 pages 40 <br />
col machine format A20 <br />
col username format A15 <br />
select xidusn, xidslot, trans.status, start_time, ses.sid, ses.username, ses.machine ,proc.spid, used_ublk <br />
from v&#36;transaction trans, v&#36;session ses , v&#36;process proc <br />
where trans.ses_addr =ses.saddr and ses.paddr=proc.addr <br />
order by start_time ;<br />
<br />
select to_char(begin_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s'),to_char(end_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s') <br />
, maxquerylen,ssolderrcnt,nospaceerrcnt,undoblks,txncount from v&#36;undostat <br />
order by undoblks ;<br />
Promot "following to show how much undo is being used:"<br />
<br />
set pagesize 24 <br />
set lin 132 <br />
set verify off <br />
col owner format a13 <br />
col segment_name format a25 heading 'Segment Name' <br />
col segment_type format a15 heading 'Segment Type' <br />
col tablespace_name format a15 heading 'Tablespace Name' <br />
col extents format 99999999 heading 'Extent' <br />
select <br />
owner, segment_name, segment_type, tablespace_name, <br />
(bytes / 1048576) "Mbytes", <br />
extents <br />
from sys.dba_segments <br />
where tablespace_name = '&amp;UNDO01' <br />
order by owner, segment_name ;<br />
<br />
spool off]]></description>
			<content:encoded><![CDATA[REM:****************************************************************************&#8203;******************<br />
REM: Script : Undo Informations<br />
REM: Author: Kumar Menon<br />
REM: Date Submitted: 16-July-2009<br />
REM:FileName: Undoinfo.sql<br />
REM:<br />
REM: NOTE: PLEASE TEST THIS SCRIPT BEFORE USE.<br />
REM: Author will not be responsible for any damage that may be cause by this script.<br />
********************************************************************************&#8203;********************<br />
<br />
<br />
spool d:\undoinfo.txt<br />
SELECT (UR * (UPS * DBS)) + (DBS * 24) AS "Bytes" <br />
FROM (SELECT value AS UR FROM v&#36;parameter WHERE name = 'undo_retention'), <br />
(SELECT (SUM(undoblks)/SUM(((end_time - begin_time)*86400))) AS UPS FROM v&#36;undostat), <br />
(SELECT value AS DBS FROM v&#36;parameter WHERE name = 'db_block_size') ;<br />
<br />
SELECT r.name rbs, <br />
NVL(s.username, 'None') oracle_user, <br />
s.osuser client_user, <br />
p.username unix_user, <br />
TO_CHAR(s.sid)||','||TO_CHAR(s.serial#) as sid_serial, <br />
p.spid unix_pid, <br />
t.used_ublk * TO_NUMBER(x.value)/1024 as undo_kb <br />
FROM v&#36;process p, <br />
v&#36;rollname r, <br />
v&#36;session s, <br />
v&#36;transaction t, <br />
v&#36;parameter x <br />
WHERE s.taddr = t.addr <br />
AND s.paddr = p.addr(+) <br />
AND r.usn = t.xidusn(+) <br />
AND x.name = 'db_block_size' <br />
ORDER <br />
BY r.name ; <br />
<br />
select l.sid, s.segment_name from dba_rollback_segs s, v&#36;transaction t, v&#36;lock l <br />
where t.xidusn=s.segment_id and t.addr=l.addr ;<br />
select to_char(begin_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s'),to_char(end_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s') <br />
, maxquerylen,ssolderrcnt,nospaceerrcnt,undoblks,txncount from v&#36;undostat <br />
order by undoblks ;<br />
set lines 160 pages 40 <br />
col machine format A20 <br />
col username format A15 <br />
select xidusn, xidslot, trans.status, start_time, ses.sid, ses.username, ses.machine ,proc.spid, used_ublk <br />
from v&#36;transaction trans, v&#36;session ses , v&#36;process proc <br />
where trans.ses_addr =ses.saddr and ses.paddr=proc.addr <br />
order by start_time ;<br />
<br />
select to_char(begin_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s'),to_char(end_time,'hh24:mi<img src="images/smilies/confused.gif" style="vertical-align: middle;" border="0" alt="Confused" title="Confused" />s') <br />
, maxquerylen,ssolderrcnt,nospaceerrcnt,undoblks,txncount from v&#36;undostat <br />
order by undoblks ;<br />
Promot "following to show how much undo is being used:"<br />
<br />
set pagesize 24 <br />
set lin 132 <br />
set verify off <br />
col owner format a13 <br />
col segment_name format a25 heading 'Segment Name' <br />
col segment_type format a15 heading 'Segment Type' <br />
col tablespace_name format a15 heading 'Tablespace Name' <br />
col extents format 99999999 heading 'Extent' <br />
select <br />
owner, segment_name, segment_type, tablespace_name, <br />
(bytes / 1048576) "Mbytes", <br />
extents <br />
from sys.dba_segments <br />
where tablespace_name = '&amp;UNDO01' <br />
order by owner, segment_name ;<br />
<br />
spool off]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Oracle 11g Upgrade]]></title>
			<link>http://www.oraerp.com/Thread-Oracle-11g-Upgrade</link>
			<pubDate>Mon, 24 Jan 2011 23:30:07 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-Oracle-11g-Upgrade</guid>
			<description><![CDATA[I want to upgrade the oracle 10g databases to oracle 11g databases. What is the best method to upgrade to 11g.<br />
For some databases one DBA is doing exp/imp method for other databases he is using conventional upgrade (manual upgrade through scripts, Database Upgrade Assistant). Please let me know when to use exp/imp method ? and when to use conventional upgrade ?<br />
<br />
any update]]></description>
			<content:encoded><![CDATA[I want to upgrade the oracle 10g databases to oracle 11g databases. What is the best method to upgrade to 11g.<br />
For some databases one DBA is doing exp/imp method for other databases he is using conventional upgrade (manual upgrade through scripts, Database Upgrade Assistant). Please let me know when to use exp/imp method ? and when to use conventional upgrade ?<br />
<br />
any update]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to measure the data rate between RAC nodes ]]></title>
			<link>http://www.oraerp.com/Thread-How-to-measure-the-data-rate-between-RAC-nodes</link>
			<pubDate>Sat, 22 Jan 2011 08:15:54 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-How-to-measure-the-data-rate-between-RAC-nodes</guid>
			<description><![CDATA[Hello,<br />
<br />
I would like to know how to measure the data rate between the 2 RAC nodes . What i mean here is the cable over which cache fusion data transmit happens.]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
I would like to know how to measure the data rate between the 2 RAC nodes . What i mean here is the cable over which cache fusion data transmit happens.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Oracle Export and Import Utility ]]></title>
			<link>http://www.oraerp.com/Thread-Oracle-Export-and-Import-Utility</link>
			<pubDate>Thu, 20 Jan 2011 12:31:15 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-Oracle-Export-and-Import-Utility</guid>
			<description><![CDATA[1. Introduction<br />
<br />
Oracle provides Export and Import utilities for the transfer of data from one database to another. It enables writing of data i.e. Export of one database into Operating system files in binary format. These OS files in binary format can only be traced by IMPORT utility to move the data to the new owner.<br />
<br />
Efficiency of Export and Import Utilities<br />
1. Archive data for future reference and restore database object definitions <br />
2. Enable data movement between the databases which may be of different versions<br />
3. Transport tablespace(s) between databases<br />
<br />
Export/Import utility prove to be useful in situations of database corruptions and user errors. They can be used for logical database recovery. They can also be used for partial exporting of objects. User can take export and import few tables or specified tablespace.<br />
<br />
2. Export<br />
<br />
Export utility extract database objects along with their dependent and referenced objects. The export utility creates a binary format dump file at the specified location. <br />
<br />
Export Syntax<br />
<br />
Code :<br />
exp username/password file=file.dmp log=log.txt statistics=none<br />
In the syntax,<br />
username/password is the source database username and password<br />
file.dmp is the name of the file where the data gets backed up.<br />
log.txt is the log file which contains relevant information about the export status<br />
<br />
3. Import <br />
<br />
The Import utility reads the object definitions and table data from an Export dump file. It inserts the data objects with or without data into an Oracle database. <br />
<br />
Import Syntax<br />
<br />
Code :<br />
imp username/password fromuser=User1 touser=User2 file=samepage.dmp log=implog.txt<br />
In the syntax,<br />
Username/Password is the username and password of the target Oracle Database<br />
User1 is the original DB user from where the data was exported<br />
User2 is the new DB user into which the data is being imported<br />
file.dmp is the exported database dump file<br />
log.txt is file to store the import logs<br />
<br />
4. Utility Invoking methods<br />
<br />
Export and Import can be invoked using below methods. <br />
1. Command-line entries<br />
2. Interactive prompts<br />
3. Parameter files<br />
4. Oracle Enterprise Manager Data Management Wizard<br />
<br />
Since command line method is the most conventional and widely used method, we shall concentrate our discussion on it.<br />
<br />
5. User Requirements<br />
<br />
•User must possess the CREATE SESSION privilege on source or target Oracle database.<br />
•To export or import tables which owned by another user, user must possess the EXP_FULL_DATABASE and IMP_FULL_DATABASE role enabled.<br />
<br />
6. Export Parameters and Modes<br />
<br />
Below table shows the parameter which can be specified during EXPORT utility.<br />
<br />
<br />
Below are the modes of operation of EXPORT.<br />
<br />
<br />
7. Import Parameter and Modes<br />
<br />
Below table shows the parameter which can be specified during IMPORT utility.<br />
<br />
<br />
Below are the modes of operation of IMPORT.<br />
<br />
<br />
Order of database object Import<br />
Import utility maintains a sequence of object import to avoid redundancy of trigger firing and other considerable scenarios of referential integrity. This sequence is less preferential in case of Full Database Import.<br />
<br />
<br />
8. Examples<br />
<br />
1. Below command line EXPORT command takes export of EMPLOYEE and EXP_ARCHIVE table from CLUB schema. Note that it also includes rows(data) from the table<br />
<br />
<br />
Code sql:<br />
exp CLUB/CLUB TABLES=EMPLOYEE,EMP_ARCHIVE rows=y file=tabexp.dmp<br />
2. Below EXPORT command takes export only for the tablespace TBS_ORDERS. Note that transportable tablespace can be exported or imported only by SYSDBA.<br />
<br />
<br />
Code :<br />
exp \'username/password AS SYSDBA\' TRANSPORT_TABLESPACE=y TABLESPACES=tbs_orders file-exptbs.dmp log=exptbs.log<br />
3. The below command line EXPORT command imports the objects owned by CLUB schema into ORCL user of SYSTEM database using the export file EXPFULL.dmp<br />
<br />
<br />
Code sql:<br />
imp system/manager FROMUSER=CLUB TOUSER=ORCL file=EXPFULL.dmp]]></description>
			<content:encoded><![CDATA[1. Introduction<br />
<br />
Oracle provides Export and Import utilities for the transfer of data from one database to another. It enables writing of data i.e. Export of one database into Operating system files in binary format. These OS files in binary format can only be traced by IMPORT utility to move the data to the new owner.<br />
<br />
Efficiency of Export and Import Utilities<br />
1. Archive data for future reference and restore database object definitions <br />
2. Enable data movement between the databases which may be of different versions<br />
3. Transport tablespace(s) between databases<br />
<br />
Export/Import utility prove to be useful in situations of database corruptions and user errors. They can be used for logical database recovery. They can also be used for partial exporting of objects. User can take export and import few tables or specified tablespace.<br />
<br />
2. Export<br />
<br />
Export utility extract database objects along with their dependent and referenced objects. The export utility creates a binary format dump file at the specified location. <br />
<br />
Export Syntax<br />
<br />
Code :<br />
exp username/password file=file.dmp log=log.txt statistics=none<br />
In the syntax,<br />
username/password is the source database username and password<br />
file.dmp is the name of the file where the data gets backed up.<br />
log.txt is the log file which contains relevant information about the export status<br />
<br />
3. Import <br />
<br />
The Import utility reads the object definitions and table data from an Export dump file. It inserts the data objects with or without data into an Oracle database. <br />
<br />
Import Syntax<br />
<br />
Code :<br />
imp username/password fromuser=User1 touser=User2 file=samepage.dmp log=implog.txt<br />
In the syntax,<br />
Username/Password is the username and password of the target Oracle Database<br />
User1 is the original DB user from where the data was exported<br />
User2 is the new DB user into which the data is being imported<br />
file.dmp is the exported database dump file<br />
log.txt is file to store the import logs<br />
<br />
4. Utility Invoking methods<br />
<br />
Export and Import can be invoked using below methods. <br />
1. Command-line entries<br />
2. Interactive prompts<br />
3. Parameter files<br />
4. Oracle Enterprise Manager Data Management Wizard<br />
<br />
Since command line method is the most conventional and widely used method, we shall concentrate our discussion on it.<br />
<br />
5. User Requirements<br />
<br />
•User must possess the CREATE SESSION privilege on source or target Oracle database.<br />
•To export or import tables which owned by another user, user must possess the EXP_FULL_DATABASE and IMP_FULL_DATABASE role enabled.<br />
<br />
6. Export Parameters and Modes<br />
<br />
Below table shows the parameter which can be specified during EXPORT utility.<br />
<br />
<br />
Below are the modes of operation of EXPORT.<br />
<br />
<br />
7. Import Parameter and Modes<br />
<br />
Below table shows the parameter which can be specified during IMPORT utility.<br />
<br />
<br />
Below are the modes of operation of IMPORT.<br />
<br />
<br />
Order of database object Import<br />
Import utility maintains a sequence of object import to avoid redundancy of trigger firing and other considerable scenarios of referential integrity. This sequence is less preferential in case of Full Database Import.<br />
<br />
<br />
8. Examples<br />
<br />
1. Below command line EXPORT command takes export of EMPLOYEE and EXP_ARCHIVE table from CLUB schema. Note that it also includes rows(data) from the table<br />
<br />
<br />
Code sql:<br />
exp CLUB/CLUB TABLES=EMPLOYEE,EMP_ARCHIVE rows=y file=tabexp.dmp<br />
2. Below EXPORT command takes export only for the tablespace TBS_ORDERS. Note that transportable tablespace can be exported or imported only by SYSDBA.<br />
<br />
<br />
Code :<br />
exp \'username/password AS SYSDBA\' TRANSPORT_TABLESPACE=y TABLESPACES=tbs_orders file-exptbs.dmp log=exptbs.log<br />
3. The below command line EXPORT command imports the objects owned by CLUB schema into ORCL user of SYSTEM database using the export file EXPFULL.dmp<br />
<br />
<br />
Code sql:<br />
imp system/manager FROMUSER=CLUB TOUSER=ORCL file=EXPFULL.dmp]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Oracle Architecture in less than 10 minutes ]]></title>
			<link>http://www.oraerp.com/Thread-Oracle-Architecture-in-less-than-10-minutes</link>
			<pubDate>Fri, 07 Jan 2011 15:34:12 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-Oracle-Architecture-in-less-than-10-minutes</guid>
			<description><![CDATA[Oracle Architecture in less than 10 minutes <br />
<div class="automedia"><object width="560" height="350"><param name="movie" value="http://www.youtube.com/v/yk8esAZKz4k&amp;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://www.youtube.com/v/yk8esAZKz4k&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="350"></embed></object></div>]]></description>
			<content:encoded><![CDATA[Oracle Architecture in less than 10 minutes <br />
<div class="automedia"><object width="560" height="350"><param name="movie" value="http://www.youtube.com/v/yk8esAZKz4k&amp;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://www.youtube.com/v/yk8esAZKz4k&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="350"></embed></object></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Manual Oracle Uninstall]]></title>
			<link>http://www.oraerp.com/Thread-Manual-Oracle-Uninstall</link>
			<pubDate>Mon, 03 Jan 2011 23:58:48 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-Manual-Oracle-Uninstall</guid>
			<description><![CDATA[The two methods listed below should only be used as a last resort and will remove all Oracle software allowing a reinstall. If you make any mistakes they can be quite destructive so be careful<br />
<br />
<span style="font-weight: bold;">Windows</span><br />
In the past I've had many problems uninstalling all Oracle products from Windows systems. Here's my last resort method:<br />
<br />
•Uninstall all Oracle components using the Oracle Universal Installer (OUI).<br />
•Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE key. This contains registry entires for all Oracle products.<br />
•Delete any references to Oracle services left behind in the following part of the registry:<br />
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*<br />
It should be pretty obvious which ones relate to Oracle.<br />
•Reboot your machine.<br />
•Delete the "C:\Oracle" directory, or whatever directory is your ORACLE_BASE.<br />
•Delete the "C:\Program Files\Oracle" directory.<br />
•Empty the contents of your "c:\temp" directory.<br />
•Empty your recycle bin.<br />
At this point your machine will be as clean of Oracle components as it can be without a complete OS reinstall.<br />
<br />
Remember, manually editing your registry can be very destructive and force an OS reinstall so only do it as a last resort.<br />
UNIX<br />
Uninstalling all products from UNIX is a lot more consistent. If you do need to resort to a manual uninstall you should do something like:<br />
<br />
•Uninstall all Oracle components using the Oracle Universal Installer (OUI).<br />
•Stop any outstanding processes using the appropriate utilities:<br />
<br />
# oemctl stop oms user/password<br />
# agentctl stop<br />
# lsnrctl stopAlternatively you can kill them using the kill -9 pid command as the root user.<br />
•Delete the files and directories below the &#36;ORACLE_HOME:<br />
<br />
# cd &#36;ORACLE_HOME<br />
# rm -Rf *•With the exception of the product directory, delete directories below the &#36;ORACLE_BASE. <br />
# cd &#36;ORACLE_BASE<br />
# rm -Rf admin doc jre o*•Delete the /etc/oratab file. If using 9iAS delete the /etc/emtab file also. <br />
# rm /etc/oratab /etc/emtab<br />
Hope this helps]]></description>
			<content:encoded><![CDATA[The two methods listed below should only be used as a last resort and will remove all Oracle software allowing a reinstall. If you make any mistakes they can be quite destructive so be careful<br />
<br />
<span style="font-weight: bold;">Windows</span><br />
In the past I've had many problems uninstalling all Oracle products from Windows systems. Here's my last resort method:<br />
<br />
•Uninstall all Oracle components using the Oracle Universal Installer (OUI).<br />
•Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE key. This contains registry entires for all Oracle products.<br />
•Delete any references to Oracle services left behind in the following part of the registry:<br />
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*<br />
It should be pretty obvious which ones relate to Oracle.<br />
•Reboot your machine.<br />
•Delete the "C:\Oracle" directory, or whatever directory is your ORACLE_BASE.<br />
•Delete the "C:\Program Files\Oracle" directory.<br />
•Empty the contents of your "c:\temp" directory.<br />
•Empty your recycle bin.<br />
At this point your machine will be as clean of Oracle components as it can be without a complete OS reinstall.<br />
<br />
Remember, manually editing your registry can be very destructive and force an OS reinstall so only do it as a last resort.<br />
UNIX<br />
Uninstalling all products from UNIX is a lot more consistent. If you do need to resort to a manual uninstall you should do something like:<br />
<br />
•Uninstall all Oracle components using the Oracle Universal Installer (OUI).<br />
•Stop any outstanding processes using the appropriate utilities:<br />
<br />
# oemctl stop oms user/password<br />
# agentctl stop<br />
# lsnrctl stopAlternatively you can kill them using the kill -9 pid command as the root user.<br />
•Delete the files and directories below the &#36;ORACLE_HOME:<br />
<br />
# cd &#36;ORACLE_HOME<br />
# rm -Rf *•With the exception of the product directory, delete directories below the &#36;ORACLE_BASE. <br />
# cd &#36;ORACLE_BASE<br />
# rm -Rf admin doc jre o*•Delete the /etc/oratab file. If using 9iAS delete the /etc/emtab file also. <br />
# rm /etc/oratab /etc/emtab<br />
Hope this helps]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[WFMLRSVCApp.ear file missing 11g Installation]]></title>
			<link>http://www.oraerp.com/Thread-WFMLRSVCApp-ear-file-missing-11g-Installation</link>
			<pubDate>Sun, 26 Dec 2010 00:45:23 -0600</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-WFMLRSVCApp-ear-file-missing-11g-Installation</guid>
			<description><![CDATA[If you are installing 11g database and hit error “File not found… WFMLRSVCApp.ear” ensure that you have downloaded two disks (for software) and both disks are unzipped in same folder]]></description>
			<content:encoded><![CDATA[If you are installing 11g database and hit error “File not found… WFMLRSVCApp.ear” ensure that you have downloaded two disks (for software) and both disks are unzipped in same folder]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Droping a Tablespace]]></title>
			<link>http://www.oraerp.com/Thread-Droping-a-Tablespace</link>
			<pubDate>Wed, 20 Oct 2010 00:10:24 -0500</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-Droping-a-Tablespace</guid>
			<description><![CDATA[Dear all,<br />
<br />
can you please tell me how to drop a tablespace which has materialized views.I tried the following <br />
drop tablespace portal including contents and datafiles;<br />
<br />
but i get the following error message<br />
<br />
SQL> drop tablespace portal including contents and datafiles;<br />
drop tablespace portal including contents and datafiles<br />
*<br />
ERROR at line 1:<br />
ORA-23515: materialized views and/or their indices exist in the tablespace<br />
<br />
<br />
there are about 200 indices in the tablespace dropping the all one by one is very cumbersome.Is there any other way i can do this and drop the tablespace.]]></description>
			<content:encoded><![CDATA[Dear all,<br />
<br />
can you please tell me how to drop a tablespace which has materialized views.I tried the following <br />
drop tablespace portal including contents and datafiles;<br />
<br />
but i get the following error message<br />
<br />
SQL> drop tablespace portal including contents and datafiles;<br />
drop tablespace portal including contents and datafiles<br />
*<br />
ERROR at line 1:<br />
ORA-23515: materialized views and/or their indices exist in the tablespace<br />
<br />
<br />
there are about 200 indices in the tablespace dropping the all one by one is very cumbersome.Is there any other way i can do this and drop the tablespace.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Converting RAC Instance to Single Instance ]]></title>
			<link>http://www.oraerp.com/Thread-Converting-RAC-Instance-to-Single-Instance</link>
			<pubDate>Thu, 07 Oct 2010 03:44:41 -0500</pubDate>
			<guid isPermaLink="false">http://www.oraerp.com/Thread-Converting-RAC-Instance-to-Single-Instance</guid>
			<description><![CDATA[Can you please share the details as how to convert RAC instance to Single instance.<br />
<br />
Is it just making the parameter "cluster_database" and then drop the addition redo threads and undo tablespaces in the mount stage?<br />
<br />
Or<br />
<br />
Do we have to re-create the control file?]]></description>
			<content:encoded><![CDATA[Can you please share the details as how to convert RAC instance to Single instance.<br />
<br />
Is it just making the parameter "cluster_database" and then drop the addition redo threads and undo tablespaces in the mount stage?<br />
<br />
Or<br />
<br />
Do we have to re-create the control file?]]></content:encoded>
		</item>
	</channel>
</rss>