<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>deltalounge &#187; Database</title>
	<atom:link href="http://www.deltalounge.net/wpress/category/oracle/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deltalounge.net/wpress</link>
	<description>Service Orientation, Software Development, Oracle, Life Hacking</description>
	<lastBuildDate>Thu, 26 Aug 2010 06:22:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Running SOA Suite on Amazon EC2</title>
		<link>http://www.deltalounge.net/wpress/2010/03/running-soa-suite-on-amazon-ec2/</link>
		<comments>http://www.deltalounge.net/wpress/2010/03/running-soa-suite-on-amazon-ec2/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 20:41:40 +0000</pubDate>
		<dc:creator>PeterPaul</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[BPEL]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[JDeveloper]]></category>
		<category><![CDATA[Life hack]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SOA Suite]]></category>
		<category><![CDATA[Service Bus]]></category>
		<category><![CDATA[WLS]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Fusion Middleware]]></category>
		<category><![CDATA[WebLogic]]></category>

		<guid isPermaLink="false">http://www.deltalounge.net/wpress/?p=760</guid>
		<description><![CDATA[One of the things on my To Do list was to move my local SOA Suite 11g R1 to The Cloud. It seemed a good idea to save my laptop some resources (to spare some for JDeveloper) with only a limited investment. Besides that it can be a good way to demo applications, and work [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_767" class="wp-caption alignright" style="width: 310px"><a href="http://www.deltalounge.net/wpress/wp-content/uploads/2010/03/screenshot.115.jpg"><img src="http://www.deltalounge.net/wpress/wp-content/uploads/2010/03/screenshot.115-300x222.jpg" alt="SOA Suite on EC2" title="SOA Suite on EC2" width="300" height="222" class="size-medium wp-image-767" /></a><p class="wp-caption-text">SOA Suite on EC2</p></div><br />
One of the things on my To Do list was to move my local SOA Suite 11g R1 to <strong>The Cloud</strong>. It seemed a good idea to save my laptop some resources (to spare some for JDeveloper) with only a limited investment. Besides that it can be a good way to demo applications, and work together with my colleagues on these demos.<br />
<br/><br />
During the last months I noticed that there are several good blogpost on the subject. In this post I&#8217;ll show you the ones I used and provide some additions to them.<br />
<br/></p>
<h3>Setting up Amazon Web Services (EC2 and S3)</h3>
<p>This <a href="http://www.oracle.com/technology/pub/articles/lokitz-cloud.html">arcticle on OTN</a> guided me while signing up for:</p>
<ul>
<li>Amazon <a href="http://aws.amazon.com/">AWS</a></li>
<li>Amazon <a href="http://aws.amazon.com/s3/">S3</a> &#8211; Simple Storage Service</li>
<li>Amazon <a href="http://aws.amazon.com/ec2/">EC2</a> &#8211; Elastic Compute Cloud</li>
</ul>
<p>and to setup <a href="http://www.putty.org/">PuTTY</a>. The only hick-up here was that I&#8217;m using the <a href="http://portableapps.com/">PortableApps</a> version of PuTTY that doesn&#8217;t come with the puttygen &#8211; Key Generator.</p>
<h3>Provisioning a SOA Server on Amazon EC2</h3>
<p>This <a href="http://blogs.oracle.com/SOA/2009/10/soa_suite_on_ec2_-_draft.html">blogpost guided</a> me in the provisioning of the <a href="http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=171">AMI</a> (Amazon Machine Image).</p>
<ul>
<li><strong>AMIs are per region</strong>: The Amazon Machine Instance (AMI) for SOA Suite (id = ami-acb557c5) is only available in the US East (Northern Virginia) Region.</li>
<li>Don&#8217;t bother to setup the Elastic Block Store (EBS) Volume. It is scripted in the latest version of the AMI, as described in step 5 of &#8220;SSH to your image and accept license&#8221;. The EBS Volume is seeded using a snapshot (id = snap-dd980db4) that is provided. This volume will be used to persist your data across sessions and AMI start/stop.</li>
<li>When launching the image (during the Configure Firewall step) set the <a href="http://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/index.html?using-network-security.html">SecurityGroup</a> to accept HTTP traffic on <strong>port 7001</strong> in case you want to use the SOA Suite from outside the Image.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.deltalounge.net/wpress/2010/03/running-soa-suite-on-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring AQ</title>
		<link>http://www.deltalounge.net/wpress/2009/12/monitoring-aq/</link>
		<comments>http://www.deltalounge.net/wpress/2009/12/monitoring-aq/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 08:28:01 +0000</pubDate>
		<dc:creator>PeterPaul</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Service Bus]]></category>
		<category><![CDATA[Advanced Queueing]]></category>
		<category><![CDATA[AS]]></category>
		<category><![CDATA[Fusion Middleware]]></category>
		<category><![CDATA[Messaging]]></category>

		<guid isPermaLink="false">http://www.deltalounge.net/wpress/?p=589</guid>
		<description><![CDATA[Although there were already several posts on querying AQ, like &#8220;in the queue&#8221; and &#8220;enqueue&#8220;, the next one is great when monitoring queues. We are using this to monitor AQ, especially for Oracle ESB (hence the commented addition): 1 2 3 4 5 6 7 8 9 SELECT aq.name , aq.queue_table , aq.queue_type , v$aq.* [...]]]></description>
			<content:encoded><![CDATA[<p>Although there were already several posts on querying AQ, like &#8220;<a href="http://www.deltalounge.net/wpress/2009/04/what-is-in-the-oracle-advanced-queue/">in the queue</a>&#8221; and &#8220;<a href="http://www.deltalounge.net/wpress/2009/07/will-aq-enqueue-and-dequeue-messages/">enqueue</a>&#8220;, the next one is great when monitoring queues. We are using this to monitor AQ, especially for Oracle ESB (hence the commented addition):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> aq<span style="color: #66cc66;">.</span>name
<span style="color: #66cc66;">,</span>      aq<span style="color: #66cc66;">.</span>queue_table
<span style="color: #66cc66;">,</span>      aq<span style="color: #66cc66;">.</span>queue_type
<span style="color: #66cc66;">,</span>      v$aq<span style="color: #66cc66;">.*</span> 
<span style="color: #993333; font-weight: bold;">FROM</span>   v$aq
<span style="color: #66cc66;">,</span>      all_queues aq
<span style="color: #993333; font-weight: bold;">WHERE</span>  aq<span style="color: #66cc66;">.</span>qid <span style="color: #66cc66;">=</span> v$aq<span style="color: #66cc66;">.</span>qid
<span style="color: #808080; font-style: italic;">-- use if looking for ESB AQ: and    aq.queue_table = 'ESB_JAVA_DEFERRED';</span>
;</pre></td></tr></table></div>

<p>The query will result in something like:</p>
<p><a href="http://www.deltalounge.net/wpress/wp-content/uploads/2009/12/screenshot.54.jpg"><img src="http://www.deltalounge.net/wpress/wp-content/uploads/2009/12/screenshot.54.jpg" alt="Monitoring AQ query results" title="Monitoring AQ query results" width="731" height="148" class="alignleft size-full wp-image-597" /></a></p>
<p>It contains the following metrics:</p>
<ul>
<li>Waiting &#8211; Number of waiting message;</li>
<li>Ready &#8211; Number of messages with status ready;</li>
<li>Expired &#8211; Number of expired messages; </li>
<li>Total Wait &#8211; Total waiting time per queue; </li>
<li>Average Wait &#8211; Average waiting time per queue.</li>
</ul>
<p>A describtion of the AQ and Streams views can be found <a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14257/aq_views.htm">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deltalounge.net/wpress/2009/12/monitoring-aq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Will AQ enqueue and dequeue messages</title>
		<link>http://www.deltalounge.net/wpress/2009/07/will-aq-enqueue-and-dequeue-messages/</link>
		<comments>http://www.deltalounge.net/wpress/2009/07/will-aq-enqueue-and-dequeue-messages/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 22:00:10 +0000</pubDate>
		<dc:creator>PeterPaul</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Advanced Queueing]]></category>
		<category><![CDATA[JMS]]></category>
		<category><![CDATA[Messaging]]></category>
		<category><![CDATA[queue]]></category>

		<guid isPermaLink="false">http://www.deltalounge.net/wpress/?p=296</guid>
		<description><![CDATA[Whether or not your Oracle Advanced Queue (AQ) will enqueue and dequeue messages can be determined with a simple query: 1 2 3 4 5 6 7 8 SELECT name , queue_table , enqueue_enabled , dequeue_enabled , max_retries , retry_delay FROM user_queues ; The query example is based on user_queues and in that case it [...]]]></description>
			<content:encoded><![CDATA[<p>Whether or not your <a href="http://en.wikipedia.org/wiki/Oracle_AQ">Oracle Advanced Queue</a> (AQ) will enqueue and dequeue messages can be determined with a simple query:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> name
<span style="color: #66cc66;">,</span>      queue_table
<span style="color: #66cc66;">,</span>      enqueue_enabled
<span style="color: #66cc66;">,</span>      dequeue_enabled
<span style="color: #66cc66;">,</span>      max_retries
<span style="color: #66cc66;">,</span>      retry_delay
<span style="color: #993333; font-weight: bold;">FROM</span>   user_queues
;</pre></td></tr></table></div>

<p>The query example is based on <code>user_queues</code> and in that case it has to be performed as the owner of the queue. The result wil be something like:<br />
<div id="attachment_298" class="wp-caption alignright" style="width: 760px"><img src="http://www.deltalounge.net/wpress/wp-content/uploads/2009/07/aq-enqueue-dequeue.jpg" alt="AQ enqueu dequeue" title="aq-enqueue-dequeue" width="750" height="438" class="size-full wp-image-298" /><p class="wp-caption-text">AQ enqueu dequeue</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deltalounge.net/wpress/2009/07/will-aq-enqueue-and-dequeue-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is in the (Oracle Advanced) queue?</title>
		<link>http://www.deltalounge.net/wpress/2009/04/what-is-in-the-oracle-advanced-queue/</link>
		<comments>http://www.deltalounge.net/wpress/2009/04/what-is-in-the-oracle-advanced-queue/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 08:08:21 +0000</pubDate>
		<dc:creator>PeterPaul</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Service Bus]]></category>
		<category><![CDATA[Advanced Queueing]]></category>
		<category><![CDATA[JMS]]></category>
		<category><![CDATA[Messaging]]></category>

		<guid isPermaLink="false">http://www.deltalounge.net/wpress/?p=27</guid>
		<description><![CDATA[As a quick follow up on the previous post&#8230; If you are using a JMS queue with Oracle´s Advanced Queueing or Streams (as they have been extended to) the previously described tool can´t help you out. For this case a blog by a former colleague helps us out. This approach boils down to&#8230; Find the [...]]]></description>
			<content:encoded><![CDATA[<p>As a quick follow up on the previous post&#8230; If you are using a JMS queue with <a href="http://en.wikipedia.org/wiki/Oracle_Advanced_Queuing">Oracle´s Advanced Queueing</a> or <a href="http://www.oracle.com/technology/products/dataint/htdocs/streams_fo.html">Streams</a> (as they have been extended to) the <a href="http://www.deltalounge.net/wpress/archives/20">previously</a> described tool can´t help you out.</p>
<p>For this case a <a href="http://rwijk.blogspot.com/2009/02/whats-in-my-jms-queue.html">blog</a> by a former colleague helps us out. This approach boils down to&#8230;</p>
<h4>Find the queue you want to monitor.</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> owner
<span style="color: #66cc66;">,</span>      queue_table
<span style="color: #66cc66;">,</span>      type
<span style="color: #66cc66;">,</span>      user_comment
<span style="color: #993333; font-weight: bold;">FROM</span>   all_queue_tables</pre></td></tr></table></div>

<h4>Perform a query.</h4>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> msgid
<span style="color: #66cc66;">,</span>      enq_time
<span style="color: #66cc66;">,</span>      enq_uid
<span style="color: #66cc66;">,</span>      qt<span style="color: #66cc66;">.</span>user_data<span style="color: #66cc66;">.</span>text_vc
<span style="color: #993333; font-weight: bold;">FROM</span>   my_queue_table qt  <span style="color: #808080; font-style: italic;">--alter the table name</span>
<span style="color: #993333; font-weight: bold;">WHERE</span>  q_name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'MY_QUEUE'</span> <span style="color: #808080; font-style: italic;">--alter the queue name</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.deltalounge.net/wpress/2009/04/what-is-in-the-oracle-advanced-queue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
