<?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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Simulation</title>
	<atom:link href="http://ashmasters.com/ash-simulation/feed/" rel="self" type="application/rss+xml" />
	<link>http://ashmasters.com</link>
	<description>The ASH Masters Demoground</description>
	<pubDate>Thu, 11 Mar 2010 03:05:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: khailey</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-710</link>
		<dc:creator>khailey</dc:creator>
		<pubDate>Wed, 21 Jan 2009 20:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-710</guid>
		<description>Stats are only collected for SQL that has been found running but yes it's collected for all the sql that has bee found running. This should probably  be limited to the  most executed or at least those execute recently.
I these enhancements are on the todo list but I won't be writing any more code as I'm now working on a production version of similar code at Embarcadero, though I can post any improvemtns people want to submit.

Interesting error on sash_sqlstat. Oracle doesn't complain creating a table with two fields with same name.
Changed and uploaded a version with just one field.</description>
		<content:encoded><![CDATA[<p>Stats are only collected for SQL that has been found running but yes it&#8217;s collected for all the sql that has bee found running. This should probably  be limited to the  most executed or at least those execute recently.<br />
I these enhancements are on the todo list but I won&#8217;t be writing any more code as I&#8217;m now working on a production version of similar code at Embarcadero, though I can post any improvemtns people want to submit.</p>
<p>Interesting error on sash_sqlstat. Oracle doesn&#8217;t complain creating a table with two fields with same name.<br />
Changed and uploaded a version with just one field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart Cozijnsen</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-651</link>
		<dc:creator>Bart Cozijnsen</dc:creator>
		<pubDate>Tue, 06 Jan 2009 21:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-651</guid>
		<description>Great Job,

I get the feeling that there is a restriction missing 
in procedure get_sqlstats of V2 targ_1_pkg.sql.
It is now inserting all rows from gv$sql.
Is this correct?

In repo_1_tables.sql table sash_sqlstat contains a field:
elasped.
Also the correct field elapsed is there.

best regards Bart</description>
		<content:encoded><![CDATA[<p>Great Job,</p>
<p>I get the feeling that there is a restriction missing<br />
in procedure get_sqlstats of V2 targ_1_pkg.sql.<br />
It is now inserting all rows from gv$sql.<br />
Is this correct?</p>
<p>In repo_1_tables.sql table sash_sqlstat contains a field:<br />
elasped.<br />
Also the correct field elapsed is there.</p>
<p>best regards Bart</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khailey</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-357</link>
		<dc:creator>khailey</dc:creator>
		<pubDate>Wed, 15 Oct 2008 21:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-357</guid>
		<description>Linux version of ASHMON available !!

http://www.perfvision.com/ftp/ashmon_linux.zip

still needs a small change to soft link tile0.7.8 to /usr/share/tcl :
cd /usr/share/tcl8.4
ln -s /opt/ashmon/lib/tile0.7.8 .
lrwxrwxrwx  1 root root       24 2008-10-14 12:27 tile0.7.8 -&gt; /usr/share/tcl/tile0.7.8

Thanks to Simon Coter from Oracle Italy who got it working during my 2 day class this past week in Milan.</description>
		<content:encoded><![CDATA[<p>Linux version of ASHMON available !!</p>
<p><a href="http://www.perfvision.com/ftp/ashmon_linux.zip" rel="nofollow">http://www.perfvision.com/ftp/ashmon_linux.zip</a></p>
<p>still needs a small change to soft link tile0.7.8 to /usr/share/tcl :<br />
cd /usr/share/tcl8.4<br />
ln -s /opt/ashmon/lib/tile0.7.8 .<br />
lrwxrwxrwx  1 root root       24 2008-10-14 12:27 tile0.7.8 -> /usr/share/tcl/tile0.7.8</p>
<p>Thanks to Simon Coter from Oracle Italy who got it working during my 2 day class this past week in Milan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khailey</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-204</link>
		<dc:creator>khailey</dc:creator>
		<pubDate>Thu, 31 Jul 2008 23:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-204</guid>
		<description>Thanks for the input. Turns out there was sql_id and sql_child_number were reversed in the insert into the repository. Should be fixed now with the latest version.
.
Yes the enhancement to collect new users would be useful. At this point I have no plans to do enhancements though I will look at fixes. If anyone wants to enhance the package, the code is welcome, and I'll check it in on the site.
Thanks
Kyle
http://perfvision.com</description>
		<content:encoded><![CDATA[<p>Thanks for the input. Turns out there was sql_id and sql_child_number were reversed in the insert into the repository. Should be fixed now with the latest version.<br />
.<br />
Yes the enhancement to collect new users would be useful. At this point I have no plans to do enhancements though I will look at fixes. If anyone wants to enhance the package, the code is welcome, and I&#8217;ll check it in on the site.<br />
Thanks<br />
Kyle<br />
<a href="http://perfvision.com" rel="nofollow">http://perfvision.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carel-Jan</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-202</link>
		<dc:creator>Carel-Jan</dc:creator>
		<pubDate>Thu, 31 Jul 2008 21:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-202</guid>
		<description>Thanks for the good work! 
I just upgraded from ash simulator V1 to V2 at a set of five 10.2.0.2 SE-One databases on Linux, using one central repository.

I no longer get any SQLs in the repository. I found that most of the SQL-ids inserted have a value 0. Do you know why this can happen?

Further, I have a slight enhancement. I experienced that a user that is added to that database after the installation of the simulator will not be added to the repository. To deal with this, I have added the get_users call to the get_all procedure in the package. It works fine for me, but is there a reason why this hasn't been done, or why I shouldn't do this?</description>
		<content:encoded><![CDATA[<p>Thanks for the good work!<br />
I just upgraded from ash simulator V1 to V2 at a set of five 10.2.0.2 SE-One databases on Linux, using one central repository.</p>
<p>I no longer get any SQLs in the repository. I found that most of the SQL-ids inserted have a value 0. Do you know why this can happen?</p>
<p>Further, I have a slight enhancement. I experienced that a user that is added to that database after the installation of the simulator will not be added to the repository. To deal with this, I have added the get_users call to the get_all procedure in the package. It works fine for me, but is there a reason why this hasn&#8217;t been done, or why I shouldn&#8217;t do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khailey</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-7</link>
		<dc:creator>khailey</dc:creator>
		<pubDate>Thu, 08 May 2008 17:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-7</guid>
		<description>1) Andrew -yep - sash_curhost was wrong. Should have been sash_target. Changed.
2) added back in the use of gv$ as a workaround to ORA-02070
3) on 9i I as getting  ora-22804 when selecting OBJECT_OWNER from v$sqlplan so I just changed it select 'unknown'. I could revisit this to see if it works on 10g or maybe I could select values into a variable and then do the insert instead of doing the insert into the repository as a select from the target.</description>
		<content:encoded><![CDATA[<p>1) Andrew -yep - sash_curhost was wrong. Should have been sash_target. Changed.<br />
2) added back in the use of gv$ as a workaround to ORA-02070<br />
3) on 9i I as getting  ora-22804 when selecting OBJECT_OWNER from v$sqlplan so I just changed it select &#8216;unknown&#8217;. I could revisit this to see if it works on 10g or maybe I could select values into a variable and then do the insert instead of doing the insert into the repository as a select from the target.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew henry</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-6</link>
		<dc:creator>andrew henry</dc:creator>
		<pubDate>Thu, 08 May 2008 14:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-6</guid>
		<description>If I run your script for the target DB (targ_1_pkg.sql) on either a 9.2.0.8 or 10.2.0.4 database (win32) I get compilation errors on the package body.  I run the script as sys, the database link works fine and the sashnow view gets created without issues.

I just ran it through Toad to see where it was failing:

SASH.sash_curhost@SASHREPO;

This object; sah_curhost, is not created in your script, but is referenced in the package body.  Do you have the definition for this table?</description>
		<content:encoded><![CDATA[<p>If I run your script for the target DB (targ_1_pkg.sql) on either a 9.2.0.8 or 10.2.0.4 database (win32) I get compilation errors on the package body.  I run the script as sys, the database link works fine and the sashnow view gets created without issues.</p>
<p>I just ran it through Toad to see where it was failing:</p>
<p>SASH.sash_curhost@SASHREPO;</p>
<p>This object; sah_curhost, is not created in your script, but is referenced in the package body.  Do you have the definition for this table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khailey</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-5</link>
		<dc:creator>khailey</dc:creator>
		<pubDate>Wed, 07 May 2008 20:05:22 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-5</guid>
		<description>andrew henry -
1)sleep is a variable - I just changed it to v_sleep to be less confusing
2)sys.v$database access - script needs to be run as SYS 
3)gv$ - just changed these to v$ 
-----------------------------------
Checinski -
Thanks for the good info.
1) There seems to be a bug on 9.2 querying v$sql_plan, so the work around is just to not collect the plan info on 9.2. I could add a version check for this, but that's way down my list of things to do. Anyone else want to add a version check in the collection package?
2) For v1, sash_targets should be filled in with the target dbid automatically when installing sash_pkg on each target. 
For v2, you see 0 rows in v$active_session_history its probably because the dbid filter isn't set up.
For example
select count(*) from sash_all;
227
select count(*) from v$active_session_history;
0
@repo_5_curdb
HOST
------------------------------
KYLEHPD
KYLEHPLAP
Enter value for host: KYLEHPD
select count(*) from v$active_session_history;
227
3) yes, the sql plans, text and stats don't get purged, only SASH does. Still to be done is a purge routine for SQL plans, text and stats. An easy purging method is to just delete from 
sash_sqltxt
sash_sqlplans
sash_sqlstats
where sql_id in (select sql_id from sash_sqlids where last_found &lt; sysdate - 7 )
or soemthing to that effect. 
Deletes are expensive, instead of automating this deleting, I was still thinking of some way to partition the data, but didn't come up with a method yet, so deleting is the only way right now.</description>
		<content:encoded><![CDATA[<p>andrew henry -<br />
1)sleep is a variable - I just changed it to v_sleep to be less confusing<br />
2)sys.v$database access - script needs to be run as SYS<br />
3)gv$ - just changed these to v$<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Checinski -<br />
Thanks for the good info.<br />
1) There seems to be a bug on 9.2 querying v$sql_plan, so the work around is just to not collect the plan info on 9.2. I could add a version check for this, but that&#8217;s way down my list of things to do. Anyone else want to add a version check in the collection package?<br />
2) For v1, sash_targets should be filled in with the target dbid automatically when installing sash_pkg on each target.<br />
For v2, you see 0 rows in v$active_session_history its probably because the dbid filter isn&#8217;t set up.<br />
For example<br />
select count(*) from sash_all;<br />
227<br />
select count(*) from v$active_session_history;<br />
0<br />
@repo_5_curdb<br />
HOST<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
KYLEHPD<br />
KYLEHPLAP<br />
Enter value for host: KYLEHPD<br />
select count(*) from v$active_session_history;<br />
227<br />
3) yes, the sql plans, text and stats don&#8217;t get purged, only SASH does. Still to be done is a purge routine for SQL plans, text and stats. An easy purging method is to just delete from<br />
sash_sqltxt<br />
sash_sqlplans<br />
sash_sqlstats<br />
where sql_id in (select sql_id from sash_sqlids where last_found < sysdate - 7 )<br />
or soemthing to that effect.<br />
Deletes are expensive, instead of automating this deleting, I was still thinking of some way to partition the data, but didn&#8217;t come up with a method yet, so deleting is the only way right now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Checinski</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-4</link>
		<dc:creator>Checinski</dc:creator>
		<pubDate>Wed, 07 May 2008 14:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-4</guid>
		<description>On Standard Edition  9i, ashmon (via  s-ash) is  useful  to complement eom for tuning oracle databases.

Here are  some  remarks from my experiences with the scripts:

-Use   of  s-ash for tuning  database 9.2.0.7  works  fine  if you modify the package sash_pkg not to query v$sql_plan. 
Otherwise  you will get an error  "ORA-07445"
This bug  seems  to  be  fixed in 9.2.0.8 (Metalink 4434689.8).

-Before execute  script hostview.sql ( filtering)  you  have to verify that the  field  "host " (table SASH_TARGETS) is correctly filled.for each dbid.

-default tablespace of user sash increases in size:
You  have periodically to  purge some  tables ( eg: SASH_SQLSTATS_ALL)</description>
		<content:encoded><![CDATA[<p>On Standard Edition  9i, ashmon (via  s-ash) is  useful  to complement eom for tuning oracle databases.</p>
<p>Here are  some  remarks from my experiences with the scripts:</p>
<p>-Use   of  s-ash for tuning  database 9.2.0.7  works  fine  if you modify the package sash_pkg not to query v$sql_plan.<br />
Otherwise  you will get an error  &#8220;ORA-07445&#8243;<br />
This bug  seems  to  be  fixed in 9.2.0.8 (Metalink 4434689.8).</p>
<p>-Before execute  script hostview.sql ( filtering)  you  have to verify that the  field  &#8220;host &#8221; (table SASH_TARGETS) is correctly filled.for each dbid.</p>
<p>-default tablespace of user sash increases in size:<br />
You  have periodically to  purge some  tables ( eg: SASH_SQLSTATS_ALL)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew henry</title>
		<link>http://ashmasters.com/ash-simulation/comment-page-1/#comment-3</link>
		<dc:creator>andrew henry</dc:creator>
		<pubDate>Wed, 07 May 2008 11:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://ashmasters.oracloid.com/?page_id=9#comment-3</guid>
		<description>I installed the V.2 objects but I have problems with the targ_1_pkg.sql script.  The package body seems to have a number of compilation errors.

At the end, you use a dbms_lock.sleep inbuilt but instead of specifying seconds, you enter the string sleep:

dbms_lock.sleep(sleep);

Is this correct?  Should it not be (example):

dbms_lock.sleep(3);

Also, you reference SYS.v$database, amongst others, but I could not get this to work manually when prefixing the schema owner, and as v$ objects are all views, I simply omitted SYS.  If you want to see v$ views as a normal user, I just grant SELECT_CATALOG_ROLE to be able to see all v$ views.

Also, there were a number of v$ views that were prefixed with a 'g':

select ... from ... gv$instance;

Is this correct or a typo?   could not find any sash segments with this prefix.

Still would not compile after correcting these.

I did look at the poor mans partitioning though and it looks like it will work fine, but I have not tested.</description>
		<content:encoded><![CDATA[<p>I installed the V.2 objects but I have problems with the targ_1_pkg.sql script.  The package body seems to have a number of compilation errors.</p>
<p>At the end, you use a dbms_lock.sleep inbuilt but instead of specifying seconds, you enter the string sleep:</p>
<p>dbms_lock.sleep(sleep);</p>
<p>Is this correct?  Should it not be (example):</p>
<p>dbms_lock.sleep(3);</p>
<p>Also, you reference SYS.v$database, amongst others, but I could not get this to work manually when prefixing the schema owner, and as v$ objects are all views, I simply omitted SYS.  If you want to see v$ views as a normal user, I just grant SELECT_CATALOG_ROLE to be able to see all v$ views.</p>
<p>Also, there were a number of v$ views that were prefixed with a &#8216;g&#8217;:</p>
<p>select &#8230; from &#8230; gv$instance;</p>
<p>Is this correct or a typo?   could not find any sash segments with this prefix.</p>
<p>Still would not compile after correcting these.</p>
<p>I did look at the poor mans partitioning though and it looks like it will work fine, but I have not tested.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
