<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<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>Comments on: Shared Servers and Automatic Workarea Management</title>
	<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management</link>
	<description>News and views from Pythian DBAs</description>
	<pubDate>Wed,  8 Oct 2008 03:36:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Fran Zolick</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-118310</link>
		<dc:creator>Fran Zolick</dc:creator>
		<pubDate>Mon, 29 Oct 2007 19:05:26 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-118310</guid>
		<description>Please ignore my previous email, I just found out that SID is part of the user system conext.</description>
		<content:encoded><![CDATA[<p>Please ignore my previous email, I just found out that SID is part of the user system conext.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran Zolick</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-118293</link>
		<dc:creator>Fran Zolick</dc:creator>
		<pubDate>Mon, 29 Oct 2007 17:19:49 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-118293</guid>
		<description>How can you find out the SID if one user can have multiple sessions</description>
		<content:encoded><![CDATA[<p>How can you find out the SID if one user can have multiple sessions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hesham</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-87019</link>
		<dc:creator>Hesham</dc:creator>
		<pubDate>Mon, 20 Aug 2007 10:44:41 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-87019</guid>
		<description>Thank you Alex</description>
		<content:encoded><![CDATA[<p>Thank you Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Fatkulin</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-85516</link>
		<dc:creator>Alex Fatkulin</dc:creator>
		<pubDate>Thu, 16 Aug 2007 14:03:28 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-85516</guid>
		<description>Hesham, logon trigger could be like this:

SQL&#62; create trigger logon_trigger after logon on database
  2  begin
  3   for cur in (
  4    select null
  5     from v$session
  6     where sid=sys_context('userenv', 'sid')
  7      and server='SHARED'
  8   ) loop
  9    execute immediate 'alter session set workarea_size_policy=manual';
 10   end loop;
 11  end;
 12  /

Trigger created.

Changing this at instance level will affect, well, instance instead of a session. This can be appropriate if you do not want Oracle instance to use auto pga memory management by "default".</description>
		<content:encoded><![CDATA[<p>Hesham, logon trigger could be like this:</p>
<p>SQL&gt; create trigger logon_trigger after logon on database<br />
  2  begin<br />
  3   for cur in (<br />
  4    select null<br />
  5     from v$session<br />
  6     where sid=sys_context(&#8217;userenv&#8217;, &#8217;sid&#8217;)<br />
  7      and server=&#8217;SHARED&#8217;<br />
  8   ) loop<br />
  9    execute immediate &#8216;alter session set workarea_size_policy=manual&#8217;;<br />
 10   end loop;<br />
 11  end;<br />
 12  /</p>
<p>Trigger created.</p>
<p>Changing this at instance level will affect, well, instance instead of a session. This can be appropriate if you do not want Oracle instance to use auto pga memory management by &#8220;default&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hesham</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-85454</link>
		<dc:creator>Hesham</dc:creator>
		<pubDate>Thu, 16 Aug 2007 09:30:07 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-85454</guid>
		<description>dear friends ,
first : can you explain how can i create this trigger to change workarea_size_policy to manual on session level ?

what will happen if i change all things on instance level ?

thank you</description>
		<content:encoded><![CDATA[<p>dear friends ,<br />
first : can you explain how can i create this trigger to change workarea_size_policy to manual on session level ?</p>
<p>what will happen if i change all things on instance level ?</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Fatkulin</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-69543</link>
		<dc:creator>Alex Fatkulin</dc:creator>
		<pubDate>Fri, 29 Jun 2007 14:03:56 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-69543</guid>
		<description>Hesham,

you would use alter session instead of alter system of course...

I mistyped.</description>
		<content:encoded><![CDATA[<p>Hesham,</p>
<p>you would use alter session instead of alter system of course&#8230;</p>
<p>I mistyped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Fatkulin</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-69429</link>
		<dc:creator>Alex Fatkulin</dc:creator>
		<pubDate>Thu, 28 Jun 2007 23:54:09 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-69429</guid>
		<description>Hesham,

just use a logon trigger. Recognize the shared server connection (by looking at v$session.server) and do an alter system set workarea_size_policy=manual if it's a shared server session.</description>
		<content:encoded><![CDATA[<p>Hesham,</p>
<p>just use a logon trigger. Recognize the shared server connection (by looking at v$session.server) and do an alter system set workarea_size_policy=manual if it&#8217;s a shared server session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hesham</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-69328</link>
		<dc:creator>Hesham</dc:creator>
		<pubDate>Thu, 28 Jun 2007 09:04:04 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-69328</guid>
		<description>Dear friend ,

can you tell me Alex how you can do that 

"set pga_aggregate_target on instance level and workarea_size_policy=manual for certain shared sessions "

thank you</description>
		<content:encoded><![CDATA[<p>Dear friend ,</p>
<p>can you tell me Alex how you can do that </p>
<p>&#8220;set pga_aggregate_target on instance level and workarea_size_policy=manual for certain shared sessions &#8221;</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yumianfeilong</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-65505</link>
		<dc:creator>yumianfeilong</dc:creator>
		<pubDate>Thu, 21 Jun 2007 02:14:23 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-65505</guid>
		<description>nice and good point.10g automatic managed pga enable SQL WORK AREA allocated in PGA under MTS mode.
We will also notice this issue when using workarea_size_policy=AUTO.</description>
		<content:encoded><![CDATA[<p>nice and good point.10g automatic managed pga enable SQL WORK AREA allocated in PGA under MTS mode.<br />
We will also notice this issue when using workarea_size_policy=AUTO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-65377</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Wed, 20 Jun 2007 21:05:26 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/524/shared-servers-and-automatic-workarea-management#comment-65377</guid>
		<description>Hey, who is there! Welcome to the English blogosphere! ;-)

Good catch, by the way. So we can set &lt;code&gt;pga_aggregate_target&lt;/code&gt; on instance level and &lt;code&gt;workarea_size_policy=manual&lt;/code&gt; for certain shared sessions exhibiting thus buggy behavior.

By the way, you reminded me about a similar issue I hit with shared servers. But that is a good topic for another blog.</description>
		<content:encoded><![CDATA[<p>Hey, who is there! Welcome to the English blogosphere! ;-)</p>
<p>Good catch, by the way. So we can set <code>pga_aggregate_target</code> on instance level and <code>workarea_size_policy=manual</code> for certain shared sessions exhibiting thus buggy behavior.</p>
<p>By the way, you reminded me about a similar issue I hit with shared servers. But that is a good topic for another blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
