<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Abhishek's  Blog</title>
	<atom:link href="http://ack2904.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ack2904.wordpress.com</link>
	<description>Performance Tuning : Its not the science , Its an Art</description>
	<lastBuildDate>Thu, 08 Dec 2011 16:35:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ack2904.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Abhishek's  Blog</title>
		<link>http://ack2904.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ack2904.wordpress.com/osd.xml" title="Abhishek&#039;s  Blog" />
	<atom:link rel='hub' href='http://ack2904.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Identify all the programs currently running on standard manager.</title>
		<link>http://ack2904.wordpress.com/2010/05/11/identify-all-the-programs-currently-running-on-standard-manager/</link>
		<comments>http://ack2904.wordpress.com/2010/05/11/identify-all-the-programs-currently-running-on-standard-manager/#comments</comments>
		<pubDate>Tue, 11 May 2010 06:52:54 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[Apps DBA]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=221</guid>
		<description><![CDATA[REM Part 1 gives detail regarding concurrent queue- max process-pending request-active running REM REM set pagesize 10000 set linesize 132 break on USER_CONCURRENT_QUEUE_NAME on MAX_PROCESSES col USER_CONCURRENT_QUEUE_NAME format a40 SELECT a.USER_CONCURRENT_QUEUE_NAME,a.MAX_PROCESSES, sum(decode(b.PHASE_CODE,&#8217;P',decode(b.STATUS_CODE,&#8217;Q',1,0),0)) Pending_Standby, sum(decode(b.PHASE_CODE,&#8217;P',decode(b.STATUS_CODE,&#8217;I',1,0),0)) Pending_Normal, sum(decode(b.PHASE_CODE,&#8217;R',decode(b.STATUS_CODE,&#8217;R',1,0),0)) Running_Normal FROM FND_CONCURRENT_QUEUES_VL a, FND_CONCURRENT_WORKER_REQUESTS b WHERE a.enabled_flag=&#8217;Y&#8217; AND a.concurrent_queue_id = b.concurrent_queue_id AND (b.Phase_Code = &#8216;P&#8217; OR b.Phase_Code = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=221&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>REM Part 1 gives detail regarding concurrent queue- max process-pending request-active running<br />
REM<br />
REM<br />
set pagesize 10000<br />
set linesize 132<br />
break on USER_CONCURRENT_QUEUE_NAME on MAX_PROCESSES<br />
col USER_CONCURRENT_QUEUE_NAME format a40<br />
SELECT a.USER_CONCURRENT_QUEUE_NAME,a.MAX_PROCESSES,<br />
sum(decode(b.PHASE_CODE,&#8217;P',decode(b.STATUS_CODE,&#8217;Q',1,0),0)) Pending_Standby,<br />
sum(decode(b.PHASE_CODE,&#8217;P',decode(b.STATUS_CODE,&#8217;I',1,0),0)) Pending_Normal,<br />
sum(decode(b.PHASE_CODE,&#8217;R',decode(b.STATUS_CODE,&#8217;R',1,0),0)) Running_Normal<br />
FROM FND_CONCURRENT_QUEUES_VL a, FND_CONCURRENT_WORKER_REQUESTS b<br />
WHERE a.enabled_flag=&#8217;Y&#8217;<br />
AND  a.concurrent_queue_id = b.concurrent_queue_id<br />
AND  (b.Phase_Code = &#8216;P&#8217; OR b.Phase_Code = &#8216;R&#8217;) AND b.hold_flag != &#8216;Y&#8217;<br />
AND  b.Requested_Start_Date &lt;= SYSDATE<br />
AND  1=1<br />
GROUP BY a.USER_CONCURRENT_QUEUE_NAME,a.MAX_PROCESSES<br />
/<br />
Rem Concurrent Programs details<br />
REM<br />
REM<br />
clear breaks<br />
clear col<br />
ttitle off<br />
btitle off</p>
<p>set verify off<br />
set pages 90</p>
<p>col manager noprint    new_value n_manager<br />
col cprocn  noprint    new_value n_cprocn<br />
col d       noprint    new_value n_d<br />
col cprogn  format a10 heading &quot;Program|Name&quot;<br />
col cprogd  format a55 heading &quot;Program|Description&quot;</p>
<p>select    fcqv.USER_CONCURRENT_QUEUE_NAME     manager<br />
,         fcproc.concurrent_processor_name    cprocn<br />
,         fcproc.description                  d<br />
,         fcprog.concurrent_program_name      cprogn<br />
,         fcprogtl.description                cprogd<br />
from       fnd_concurrent_queues_vl        fcqv<br />
,          fnd_concurrent_processors       fcproc<br />
,          fnd_conc_processor_programs     fcpp<br />
,          fnd_concurrent_programs         fcprog<br />
,          fnd_concurrent_programs_tl      fcprogtl<br />
where     fcqv.USER_CONCURRENT_QUEUE_NAME like &#039;&amp;Enter_manager_name_like&#039;<br />
and       fcqv.concurrent_processor_id    = fcproc.concurrent_processor_id<br />
and       fcproc.concurrent_processor_id  = fcpp.concurrent_processor_id<br />
and       fcpp.concurrent_program_id      = fcprog.concurrent_program_id<br />
and       fcprog.concurrent_program_id    = fcprogtl.concurrent_program_id<br />
order by   fcproc.concurrent_processor_name<br />
,          fcproc.description<br />
,          fcprog.concurrent_program_name<br />
/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=221&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2010/05/11/identify-all-the-programs-currently-running-on-standard-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>TO see all the pending / Running requests per each manager wise</title>
		<link>http://ack2904.wordpress.com/2010/05/11/to-see-all-the-pending-running-requests-per-each-manager-wise/</link>
		<comments>http://ack2904.wordpress.com/2010/05/11/to-see-all-the-pending-running-requests-per-each-manager-wise/#comments</comments>
		<pubDate>Tue, 11 May 2010 05:55:00 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[Apps DBA]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/2010/05/11/to-see-all-the-pending-running-requests-per-each-manager-wise/</guid>
		<description><![CDATA[SELECT REQUEST_ID,phase_code,status_code,user_name,user_concurrent_queue_name from apps.fnd_concurrent_worker_requests cwr, apps.fnd_concurrent_queues_tl cq, apps.fnd_user fu where (cwr.phase_code = &#8216;P&#8217; or cwr.phase_code = &#8216;R&#8217;) AND cwr.hold_flag != &#8216;Y&#8217; AND cwr.requested_start_date &#60;= sysdate AND cwr.concurrent_queue_id = cq.concurrent_queue_id AND cwr.queue_application_id = cq.application_id AND cq.LANGUAGE = &#039;US&#039; AND cwr.requested_by = fu.user_id ORDER BY 5 /<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=220&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SELECT REQUEST_ID,phase_code,status_code,user_name,user_concurrent_queue_name<br />
from apps.fnd_concurrent_worker_requests cwr,<br />
     apps.fnd_concurrent_queues_tl cq,<br />
     apps.fnd_user fu<br />
where (cwr.phase_code = &#8216;P&#8217; or cwr.phase_code = &#8216;R&#8217;)<br />
AND cwr.hold_flag != &#8216;Y&#8217;<br />
AND cwr.requested_start_date &lt;= sysdate<br />
AND cwr.concurrent_queue_id = cq.concurrent_queue_id<br />
AND cwr.queue_application_id = cq.application_id<br />
AND cq.LANGUAGE = &#039;US&#039;<br />
AND cwr.requested_by = fu.user_id<br />
ORDER BY 5<br />
/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=220&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2010/05/11/to-see-all-the-pending-running-requests-per-each-manager-wise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>Sequence of steps in Oracle SQL explain plan</title>
		<link>http://ack2904.wordpress.com/2010/04/21/sequence-of-steps-in-oracle-sql-explain-plan/</link>
		<comments>http://ack2904.wordpress.com/2010/04/21/sequence-of-steps-in-oracle-sql-explain-plan/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 08:23:25 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[Performance related Issue]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=218</guid>
		<description><![CDATA[When Codd and Date created the relational data model, the execution plan was an afterthought, largely because the SQL optimizer was always supposed to generate the best execution plan, and hence, there was not real need to understand the internal machinations of Oracle execution plans. However, in the real world, all SQL tuning experts must [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=218&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When Codd and Date created the relational data model, the execution plan was an afterthought, largely because the SQL optimizer was always supposed to generate the best execution plan, and hence, there was not real need to understand the internal machinations of Oracle execution plans.</p>
<p>However, in the real world, all SQL tuning experts must be proficient in reading Oracle execution plans and understand the steps within a explain plans and the sequence that the steps are executed.  To successfully understand an explain plan you must be able to know the order that the plan steps are executed.</p>
<p>Reading an explain plan is important for many reasons, and Oracle SQL tuning experts reveal the explain plans to check many things:</p>
<p>·	Ensure that the tables will be joined in optimal order.<br />
·	Determine the most restrictive indexes to fetch the rows.<br />
·	Determine the best internal join method to use (e.g. nested loops, hash join).<br />
·	Determine that the SQL is executing the steps in the optimal order.</p>
<p>Reading SQL execution plans has always been difficult, but there are some tricks to help determine the correct order that the explain plan steps are executed.</p>
<p>Ordering the sequence of execution plan steps</p>
<p>In other words, execution plans are read inside-out, starting with the most indented operation. Here are some general rules for reading an explain plan.<br />
·	The first statement is the one that has the most indentation.<br />
·	If two statements appear at the same level of indentation, the top statement is executed first.</p>
<p>Thanks for the wonderful tips by<strong> Don Burleson</strong>( I believe he is the best when it comes to tuning) guys read his article</p>
<p>http://www.dba-oracle.com/#example</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/218/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=218&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2010/04/21/sequence-of-steps-in-oracle-sql-explain-plan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>BPEL Processes Stat</title>
		<link>http://ack2904.wordpress.com/2010/04/21/bpel-processes-stat/</link>
		<comments>http://ack2904.wordpress.com/2010/04/21/bpel-processes-stat/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 08:11:39 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[BPEL]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=214</guid>
		<description><![CDATA[Why Identify states? To identify the states of the BPEL processes from the database can be quite handy while for housekeeping jobs in production and building some bespoke application to monitor BPEL servers. Where to find? Well the the states of the BPEL processes can be found from the database. This is what I do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=214&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Why Identify states?</p>
<p>To identify the states of the BPEL processes from the database can be quite handy while for housekeeping jobs in production and building some bespoke application to monitor BPEL servers.</p>
<p>Where to find?</p>
<p>Well the the states of the BPEL processes can be found from the database.<br />
This is what I do and I prefer as it gives a lot more control of what you like to see and customize.</p>
<p>Core table and columns</p>
<p>Well the core table to look at is &#8220;ORABPEL&#8221;.&#8221;CUBE_INSTANCE&#8221;</p>
<p>The states of the BPEL processes are stores in &#8220;STATE&#8221; column.<br />
This is defined as INTEGER in the database and does not help in first glance, unless it is know what each state means.</p>
<p>What do the states mean?</p>
<p>Well this is what each integer in the &#8220;STATE&#8221; column mean they mean:<br />
0 &#8211; INITIATED in BPEL<br />
1 &#8211; OPEN and RUNNING in BPEL<br />
2 &#8211; OPEN and SUSPENDED in BPEL<br />
3 &#8211; OPEN and FAULTED in BPEL<br />
4 &#8211; CLOSED and PENDING_CANCEL in BPEL<br />
5 &#8211; CLOSED and COMPLETED in BPEL<br />
6 &#8211; CLOSED and FAULTED in BPEL<br />
7 &#8211; CLOSED and CANCELLED in BPEL<br />
8 &#8211; CLOSED and ABORTED in BPEL<br />
9 &#8211; CLOSED and STALE in BPEL<br />
ELSE UNKNOWN in BPEL</p>
<p>Sample Query<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>A sample query to find count of BPEL process in various states with in start and end date<br />
=================== Query START ======================<br />
SELECT<br />
CASE state<br />
WHEN 0 THEN &#8216;initiated&#8217;<br />
WHEN 1 THEN &#8216;open.running&#8217;<br />
WHEN 2 THEN &#8216;open.suspended&#8217;<br />
WHEN 3 THEN &#8216;open.faulted&#8217;<br />
WHEN 4 THEN &#8216;closed.pending_cancel&#8217;<br />
WHEN 5 THEN &#8216;closed.completed&#8217;<br />
WHEN 6 THEN &#8216;closed.faulted&#8217;<br />
WHEN 7 THEN &#8216;closed.cancelled&#8217;<br />
WHEN 8 THEN &#8216;closed.aborted&#8217;<br />
WHEN 9 THEN &#8216;closed.stale&#8217;<br />
ELSE &#8216;unknown&#8217;<br />
END state_text,<br />
COUNT (1)<br />
FROM orabpel.cube_instance<br />
WHERE creation_date  (:enddate)<br />
GROUP BY state;<br />
=================== Query END ======================</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=214&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2010/04/21/bpel-processes-stat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>JVM is crashing and Full Garbage collection is happening</title>
		<link>http://ack2904.wordpress.com/2010/03/10/jvm-is-crashing-and-full-garbage-collection-is-happening/</link>
		<comments>http://ack2904.wordpress.com/2010/03/10/jvm-is-crashing-and-full-garbage-collection-is-happening/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 07:04:15 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[Performance related Issue]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=210</guid>
		<description><![CDATA[Hi Sorry for not writing from a long as I was really tied up with my project . &#8220;Now a days I am working on an Interesting Issue : JVM is crashing and Full Garbage collection is happening Issue : Since we identified the component which is causing issues. Calls for oracle.apps.fnd.framework.webui.OAViewWebBeanMap to oracle.apps.fnd.framework.webui.OAFlaggedAttributeMap and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=210&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi<br />
Sorry for not writing from a long as I was really tied up with my project .<br />
&#8220;Now a days I am working on an Interesting Issue : JVM is crashing and Full Garbage collection is happening</p>
<p>Issue : Since we identified the component which is causing issues.</p>
<p>Calls for oracle.apps.fnd.framework.webui.OAViewWebBeanMap to oracle.apps.fnd.framework.webui.OAFlaggedAttributeMap and these objects are not getting cleared as expected. This might potentially be some issue within the code. Thats why JVM is crashing and Full Garbage collection is happening.</p>
<p>Oracle Support is not able to help as this is a custom applications developed with OAF framwork and we know seeded data is not the problem .</p>
<p>My Analysis<br />
&#8212;&#8212;&#8211;<br />
&#8220;Thread-5146&#8243; daemon prio=10 tid=0xadb1a000 nid=0xbd4 runnable [0xaf39f000..0xaf3a0f20]<br />
java.lang.Thread.State: RUNNABLE<br />
at java.net.SocketInputStream.socketRead0(Native Method)<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)<br />
at od.oracle.apps.xxcrm.asn.custsrch.common.customer.server.ODCustomerSearchResultsVOImpl.executeQuery(ODCustomerSearchResultsVOImpl.java:179)<br />
at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:716)<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p>________________________</p>
<p>&#8220;Thread-7023&#8243; daemon prio=10 tid=0xb0201000 nid=0x349b runnable [0xae6e3000..0xae6e5020]<br />
java.lang.Thread.State: RUNNABLE<br />
at java.net.SocketInputStream.socketRead0(Native Method)<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(OAEntityImpl.java:1713)<br />
at oracle.apps.ar.hz.components.contactpoints.server.HzPuiContactPointEmailEOImpl.postChanges(HzPuiContactPointEmailEOImpl.java:253)<br />
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2763)<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
I believe case  customer needs 2 different windows opened with the same session?<br />
Is it Possible ? Does Oracle OAF support multiple Windows ?<br />
Will Update you later , till then keep reading and let me know if you faced same sort of issue</p>
<p>Regards<br />
AB</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=210&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2010/03/10/jvm-is-crashing-and-full-garbage-collection-is-happening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle E-Business Suite runs on Exadata V2</title>
		<link>http://ack2904.wordpress.com/2010/01/13/oracle-e-business-suite-runs-on-exadata-v2/</link>
		<comments>http://ack2904.wordpress.com/2010/01/13/oracle-e-business-suite-runs-on-exadata-v2/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 10:15:46 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=207</guid>
		<description><![CDATA[Steven Chan the head of Applications Technology Integration Oracle E-Business Suite Development wrote in his mail/blog &#8220;In case you missed it, any application that&#8217;s certified on the 11gR2 Database can run on Exadata V2. This applies to the E-Business Suite &#8212; and any other members of our Oracle Applications Unlimited product family. Generic documentation for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=207&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Steven Chan the head of Applications Technology Integration Oracle E-Business Suite Development wrote in his mail/blog   </p>
<p>&#8220;In case you missed it, any application that&#8217;s certified on the 11gR2 Database can run on Exadata V2.</p>
<p>This applies to the E-Business Suite &#8212; and any other members of our Oracle Applications Unlimited product family.  Generic documentation for configuring these products with the 11gR2 database should suffice for Exadata V2 installations.</p>
<p>EBS Release 11i was certified with 11gR2 in October, and EBS Release 12 was certified with 11gR2 in December.  Therefore, both EBS 11i and 12 can run on Exadata V2 today.</p>
<p>You can refer interested EBS customers to this externally-published article:<br />
Running E-Business Suite on Exadata V2</p>
<p>http://blogs.oracle.com/stevenChan/2009/11/e-business_suite_exadata_v2.html</p>
<p>Benchmarks and Best Practices whitepapers<br />
We&#8217;re working on E-Business Suite benchmarks on Exadata V2 right now.  </p>
<p>Based upon the results of those benchmarks, our architects will evaluate the need for best practices recommendations for optimizing the performance of the E-Business Suite on Exadata V2.</p>
<p>Oracle&#8217;s Revenue Recognition rules prohibit us from discussing dates for when these whitepapers will be available, but you&#8217;re welcome to monitor or subscribe to my E-Business Suite Technology Stack blog (http://blogs.oracle.com/stevenChan) for updates, which I&#8217;ll post as soon as soon as they&#8217;re available. &#8221; </p>
<p>Guys so be ready for Exadata V2 .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/207/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=207&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2010/01/13/oracle-e-business-suite-runs-on-exadata-v2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>Sun Oracle Exadata Storage Server and Database Machine &#8211;DBAs Future lies here</title>
		<link>http://ack2904.wordpress.com/2009/11/24/sun-oracle-exadata-storage-server-and-database-machine-dbas-future-lies-here/</link>
		<comments>http://ack2904.wordpress.com/2009/11/24/sun-oracle-exadata-storage-server-and-database-machine-dbas-future-lies-here/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 03:46:10 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=203</guid>
		<description><![CDATA[Thanks to Oracle Site (extract of the pdf url shown below) The Sun Oracle Exadata Storage Server (Exadata) is a storage product optimized for use with Oracle Database applications and is the storage building block of the Sun Oracle Database Machine. Exadata delivers outstanding I/O and SQL processing performance for online transaction processing (OLTP), data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=203&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Thanks to Oracle Site (extract of the pdf url shown below) </p>
<p>The Sun Oracle Exadata Storage Server (Exadata) is a storage product optimized for use with Oracle Database applications and is the storage building block of the Sun Oracle Database Machine.</p>
<p>Exadata delivers outstanding I/O and SQL processing performance for online transaction processing (OLTP), data warehousing (DW) and consolidation of mixed workloads. Extreme performance is delivered for all types of database applications by leveraging a massively parallel grid architecture and Exadata Smart Flash Cache to dramatically accelerate Oracle Database processing and speed I/O operations</p>
<p>The Exadata storage products are a combination of software and hardware used to store and access Oracle databases. Exadata provides database aware storage services, such as the ability to offload database processing from the database server to storage, and provides this while being transparent to SQL processing and database applications. The Exadata Storage Servers are also packaged in a complete end-to-end database solution – the Sun Oracle Database Machine. The Sun Oracle Database Machine is an easy to deploy out of the box solution for hosting the Oracle Database for all applications and delivers the highest levels of performance available.</p>
<p>so what do you think friends about the exadata,  master stroke by oracle once again so want to know more as this is going to be future then </p>
<p>read this </p>
<p>http://www.oracle.com/technology/products/bi/db/exadata/pdf/exadata-technical-whitepaper.pdf</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=203&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2009/11/24/sun-oracle-exadata-storage-server-and-database-machine-dbas-future-lies-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>Procedure to do a system state dump and hanganalyzer trace</title>
		<link>http://ack2904.wordpress.com/2009/10/06/procedure-to-do-a-system-state-dump-and-hanganalyzer-trace/</link>
		<comments>http://ack2904.wordpress.com/2009/10/06/procedure-to-do-a-system-state-dump-and-hanganalyzer-trace/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 02:38:57 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[RAC]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=199</guid>
		<description><![CDATA[When you noticed that we can not saved the instance/node then most of the time DBA take the system state dump for further analysis or you can say for RCA purpose. Do system state dump 3 times in a row, so we can determine whether the processes are hung or active. For Oracle 9.2.0.1 or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=199&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you noticed that we can not saved the instance/node then most of the time DBA take the system state dump for further analysis or you can say for RCA purpose.</p>
<p>Do system state dump 3 times in a row, so we can determine whether<br />
the processes are hung or active.<br />
For Oracle 9.2.0.1 or higher<br />
==============================</p>
<p>$ sqlplus /nolog<br />
connect / as sysdba<br />
oradebug setmypid<br />
oradebug unlimit<br />
oradebug hanganalyze 3<br />
wait 90 seconds<br />
oradebug hanganalyze 3<br />
oradebug dump systemstate 10<br />
wait 90 seconds<br />
oradebug dump systemstate 10<br />
wait 90 seconds<br />
oradebug dump systemstate 10</p>
<p>If certain processes get PROCESSSTATE dump<br />
==========================================</p>
<p>- Trace the process from the os level .</p>
<p>Get processstate dumps. Do 3 times. This generates a trace file in your user_dump_dest </p>
<p>$ sqlplus &#8220;/as sysdba&#8221;</p>
<p>oradebug setospid </p>
<p>oradebug unlimit<br />
oradebug dump processstate 10</p>
<p>Get errorstacks from the process. Do 3 times.<br />
This generates a trace file in your user_dump_dest (from sqlplus: show parameter user_dump_dest).</p>
<p>$ sqlplus &#8220;/as sysdba&#8221;</p>
<p>oradebug setospid<br />
oradebug unlimit<br />
oradebug dump errorstack 3</p>
<p>===============================================</p>
<p>WHILE the database is hanging, run the following queries:</p>
<p>SPOOL v_views.log;</p>
<p>SELECT *<br />
FROM v$parameter;</p>
<p>SELECT class, value, name<br />
FROM v$sysstat;</p>
<p>SELECT sid, id1, id2, type, lmode, request<br />
FROM v$lock;</p>
<p>SELECT l.latch#, n.name, h.pid, l.gets, l.misses,<br />
l.immediate_gets, l.immediate_misses, l.sleeps<br />
FROM v$latchname n, v$latchholder h, v$latch l<br />
WHERE l.latch# = n.latch#<br />
AND l.addr = h.laddr(+);</p>
<p>SELECT *<br />
FROM v$session_wait<br />
ORDER BY sid;</p>
<p>/* repeat last query 3 times &#8211; we want to see who&#8217;s repeatedly waiting*/</p>
<p>SPOOL OFF;<br />
=================================================================</p>
<p>There are very good ref note available on Metalink for more information.<br />
<strong>Ref Doc ID:  29708.1  EVENT: SYSTEMSTATE Dump (If you can connect to sqlplus)<br />
Doc ID:  118527.1  How to get a SYSTEMSTATE dump when unable to connect to the database</strong></p>
<p>So read and understand it then only apply it.</p>
<p>Cheers<br />
Abhishek</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/199/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/199/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=199&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2009/10/06/procedure-to-do-a-system-state-dump-and-hanganalyzer-trace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create Database  11gR2 Manually</title>
		<link>http://ack2904.wordpress.com/2009/09/18/database-creating-11gr2/</link>
		<comments>http://ack2904.wordpress.com/2009/09/18/database-creating-11gr2/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 06:44:05 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[11g DB]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=191</guid>
		<description><![CDATA[root@ocvmrh2143 oracle]# id oracle uid=1000(oracle) gid=1001(dba) groups=1001(dba) [root@ocvmrh2143 oracle]# /usr/sbin/usermod -g oinstall -G dba oracle [root@ocvmrh2143 oracle]# id oracle uid=1000(oracle) gid=2259(oinstall) groups=2259(oinstall),1001(dba) [root@ocvmrh2143 oracle]# mkdir -p /opt/oracle/product/11.2 [root@ocvmrh2143 oracle]# mkdir /var/opt/oracle [root@ocvmrh2143 oracle]# chown oracle:dba /var/opt/oracle [root@ocvmrh2143 oracle]# chown -R oracle:dba /opt/oracle [root@ocvmrh2143 oracle]# ls -al /opt/oracle total 16 drwxr-xr-x 3 oracle dba 4096 Sep [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=191&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>root@ocvmrh2143 oracle]# id oracle<br />
uid=1000(oracle) gid=1001(dba) groups=1001(dba)</p>
<p>[root@ocvmrh2143 oracle]# /usr/sbin/usermod -g oinstall -G dba oracle</p>
<p>[root@ocvmrh2143 oracle]# id oracle<br />
uid=1000(oracle) gid=2259(oinstall) groups=2259(oinstall),1001(dba)</p>
<p>[root@ocvmrh2143 oracle]# mkdir -p /opt/oracle/product/11.2<br />
[root@ocvmrh2143 oracle]# mkdir /var/opt/oracle<br />
[root@ocvmrh2143 oracle]# chown oracle:dba /var/opt/oracle<br />
[root@ocvmrh2143 oracle]# chown -R oracle:dba /opt/oracle<br />
[root@ocvmrh2143 oracle]# ls -al /opt/oracle<br />
total 16<br />
drwxr-xr-x  3 oracle dba  4096 Sep 16 23:14 .<br />
drwxr-xr-x  3 root   root 4096 Sep 16 23:14 ..<br />
drwxr-xr-x  3 oracle dba  4096 Sep 16 23:14 product<br />
[root@ocvmrh2143 oracle]# chmod 755 /var/opt/oracle</p>
<p>[root@ocvmrh2143 oracle]# su &#8211; oracle<br />
$ vi ~/.bashrc</p>
<p># oracle 11g<br />
export ORACLE_BASE=/opt/oracle<br />
export ORACLE_HOME=/opt/oracle/product/11.2<br />
export PATH=$ORACLE_HOME/bin:$ORACLE_HPOME/Apache/Apache/bin:$PATH<br />
export ORACLE_OWNER=oracle<br />
export ORACLE_SID=abhi<br />
export ORACLE_TERM=xterm<br />
export LD_LIBRARY_PATH=/opt/oracle/product/11.2/lib:$LD_LIBRARY_PATH</p>
<p>To set up a temporary Linux swap area, execute these lines as root:<br />
[root@suranga root]#dd if=/dev/zero of=tmp_swap bs=1k count=900000<br />
[root@suranga root]#chmod 600 tmp_swap<br />
[root@suranga root]#mkswap tmp_swap<br />
[root@suranga root]#swapon tmp_swap<br />
After you finish installing, you can free this space:<br />
[root@suranga root]#swapoff tmp_swap<br />
[root@suranga root]#rm tmp_swap</p>
<p>&#8212;now using VNC completed the 11gR2 software Installation only &#8212;&#8212;</p>
<p>cp the init.ora to initabhi.ora </p>
<p>db_name=&#8217;abhi&#8217;<br />
memory_target=1G<br />
processes = 150<br />
audit_file_dest=&#8217;/opt/oracle/admin/abhi/adump&#8217; &#8212;create Directory<br />
audit_trail =&#8217;db&#8217;<br />
db_block_size=8192<br />
db_domain=&#8221;<br />
db_recovery_file_dest=&#8217;/opt/oracle/flash_recovery_area&#8217;  &#8212;create Directory<br />
db_recovery_file_dest_size=2G<br />
diagnostic_dest=&#8217;/opt/oracle&#8217;<br />
dispatchers=&#8217;(PROTOCOL=TCP) (SERVICE=ORCLXDB)&#8217;<br />
open_cursors=300<br />
remote_login_passwordfile=&#8217;EXCLUSIVE&#8217;<br />
undo_tablespace=&#8217;UNDOTBS&#8217;  &#8212; careful when creating the db with script<br />
# You may want to ensure that control files are created on separate physical<br />
# devices<br />
control_files = (ora_control1, ora_control2)<br />
compatible =&#8217;11.2.0&#8242;</p>
<p>error :<br />
=======</p>
<p>SQL&gt; startup nomount pfile=/opt/oracle/product/11.2/dbs/initabhi.ora<br />
ORA-00845: MEMORY_TARGET not supported on this system<br />
SQL&gt; !oerr ora 845<br />
00845, 00000, &#8220;MEMORY_TARGET not supported on this system&#8221;<br />
// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm was not sized correctly on Linux.<br />
// *Action: Refer to documentation for a list of supported operating systems. Or size /dev/shm to be at least the SGA_MAX_SIZE on each Oracle instance running </p>
<p>on the system.</p>
<p>Solution :  mount -t tmpfs shmfs -o size=2g /dev/shm </p>
<p>SQL&gt; startup nomount pfile=/opt/oracle/product/11.2/dbs/initabhi.ora<br />
ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated<br />
ORA-01262: Stat failed on a file destination directory<br />
Linux Error: 2: No such file or directory</p>
<p>[oracle@ocvmrh2143 dbs]$ sqlplus &#8220;/ as sysdba&#8221;</p>
<p>SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 17 23:18:29 2009</p>
<p>Copyright (c) 1982, 2009, Oracle.  All rights reserved.</p>
<p>Connected to an idle instance.</p>
<p>SQL&gt; startup nomount pfile=/opt/oracle/product/11.2/dbs/initabhi.ora<br />
ORACLE instance started.</p>
<p>Total System Global Area 1071333376 bytes<br />
Fixed Size                  1341312 bytes<br />
Variable Size             620759168 bytes<br />
Database Buffers          444596224 bytes<br />
Redo Buffers                4636672 bytes<br />
SQL&gt;</p>
<p>$ export ORACLE_BASE=/opt/oracle<br />
$ export ORACLE_HOME=/opt/oracle/product/11.2<br />
$ export ORACLE_SID=abhi<br />
$ export PATH=$ORACLE_HOME/bin:$PATH</p>
<p>[oracle@ocvmrh2143 dbs]$ orapwd file=$ORACLE_HOME/dbs/orapwabhi password=oracle</p>
<p>[oracle@ocvmrh2143 dbs]$ pwd<br />
/opt/oracle/product/11.2/dbs<br />
[oracle@ocvmrh2143 dbs]$ cd $ORACLE_HOME</p>
<p>[oracle@ocvmrh2143 11.2]$ mkdir -p /opt/oracle/product/11.2/oradata &#8212; create directory oradata </p>
<p>&#8212;&#8212;create script dbca.sql and run it &#8212;&#8211;</p>
<p>CREATE DATABASE abhi<br />
LOGFILE GROUP 1(&#8216;/opt/oracle/product/11.2/oradata/redo01.log&#8217;) SIZE 100M,<br />
GROUP 2(&#8216;/opt/oracle/product/11.2/oradata/redo02.log&#8217;) SIZE 100M,<br />
GROUP 3(&#8216;/opt/oracle/product/11.2/oradata/redo03.log&#8217;) SIZE 100M<br />
MAXLOGFILES 5<br />
MAXLOGMEMBERS 5<br />
MAXLOGHISTORY 1<br />
MAXDATAFILES 100<br />
MAXINSTANCES 1<br />
CHARACTER SET US7ASCII<br />
NATIONAL CHARACTER SET AL16UTF16<br />
DATAFILE &#8216;/opt/oracle/product/11.2/oradata/system01.dbf&#8217; SIZE 195M<br />
SYSAUX DATAFILE &#8216;/opt/oracle/product/11.2/oradata/sysaux01.dbf&#8217; size 100M<br />
UNDO TABLESPACE UNDOTBS DATAFILE &#8216;/opt/oracle/product/11.2/oradata/UNDOTBS.dbf&#8217; SIZE 150M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED;</p>
<p>Initailly i have not included the SYSAUX and want to see its impect and it started showing different error so it is mandatory datafile </p>
<p>SQL&gt; @dbca.sql<br />
CREATE DATABASE abhi</p>
<p>First Error<br />
&#8212;&#8212;&#8212;&#8212;-<br />
*<br />
ERROR at line 1:<br />
ORA-13504: No SYSAUX datafile clause specified</p>
<p>&#8212;&#8212;-</p>
<p>Cause:	If Create Database has the datafile clause, then SYSAUX datafile<br />
	clause has to be specified, unless using OMF.<br />
Action:	Specify the SYSAUX datafile clause.</p>
<p>second error<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
SQL&gt; @dbca.sql<br />
DATAFILE &#8216;/opt/oracle/product/11.2/oradata/sysaux01.dbf&#8217; SIZE 100M<br />
*<br />
ERROR at line 13:<br />
ORA-02164: DATAFILE clause specified more than once</p>
<p>***solution : SYSAUX DATAFILE &#8216;/opt/oracle/product/11.2/oradata/sysaux01.dbf&#8217; size 100M </p>
<p>add in the dbca.sql and rerun  it</p>
<p>now </p>
<p>SQL&gt; @dbca.sql</p>
<p>Database created.</p>
<p>SQL&gt;</p>
<p>Now run the following scripts</p>
<p>[oracle@ocvmrh2143 11.2]$ cd $ORACLE_HOME/rdbms/admin</p>
<p>-rw-r&#8211;r&#8211;  1 oracle oinstall 59322 Apr 24  2008 catalog.sql</p>
<p>-rw-r&#8211;r&#8211;  1 oracle oinstall 19980 Jan 30  2007 catproc.sql</p>
<p>-rw-r&#8211;r&#8211;  1 oracle oinstall 400333 May 13 21:18 catexp.sql</p>
<p>SQL&gt; @catalog.sql    &#8211;Must be run when connected AS SYSDBA</p>
<p>Shows output in the end like shown below</p>
<p>TIMESTAMP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
COMP_TIMESTAMP CATALOG    2009-09-17 23:45:06</p>
<p>SQL&gt;@catproc.sql      &#8211;must be run while connected AS SYSDBA</p>
<p>TIMESTAMP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
COMP_TIMESTAMP CATPROC    2009-09-18 00:05:02</p>
<p>SQL?@catexp.sql &#8211;Must be run when connected to SYS or INTERNAL</p>
<p>Commit complete.</p>
<p>SQL&gt; shutdown immediate<br />
Database closed.<br />
Database dismounted.<br />
ORACLE instance shut down.<br />
SQL&gt;</p>
<p>&#8212;now change the two file tnsnames.ora and listener.ora &#8212;&#8211;</p>
<p>[oracle@ocvmrh2143 samples]$ pwd<br />
/opt/oracle/product/11.2/network/admin/samples</p>
<p>listener.ora  sqlnet.ora  tnsnames.ora</p>
<p>[oracle@ocvmrh2143 samples]$ cp *.ora /opt/oracle/product/11.2/network/admin/</p>
<p>[oracle@ocvmrh2143 admin]$ pwd<br />
/opt/oracle/product/11.2/network/admin</p>
<p>listener.ora  samples  shrept.lst  sqlnet.ora  tnsnames.ora</p>
<p>New tnsnames but be careful when editing the sample tnsnames</p>
<p>abhi=<br />
          (DESCRIPTION=<br />
             (ADDRESS_LIST=<br />
              (ADDRESS=<br />
                (PROTOCOL=tcp)<br />
                (HOST=ocvmrh2143.us.oracle.com)<br />
                (PORT=1521))<br />
              )<br />
             (CONNECT_DATA=<br />
                (SERVER=DEDICATED)<br />
                 (SERVICE_NAME=abhi)<br />
              )<br />
          )</p>
<p>now change the listener.ora ***** be care ful while editing it ******</p>
<p> LISTENER =<br />
  (ADDRESS_LIST=<br />
        (ADDRESS=(PROTOCOL=tcp)(HOST=ocvmrh2143.us.oracle.com)(PORT=1521))<br />
        (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))</p>
<p> SID_LIST_LISTENER=<br />
   (SID_LIST=<br />
        (SID_DESC=<br />
          (SID_NAME=PLSExtProc)<br />
          (ORACLE_HOME = /opt/oracle/product/11.2)<br />
          (PROGRAM = extproc)<br />
          )<br />
         (SID_DESC =<br />
          (GLOBAL_DBNAME = abhi)<br />
          (ORACLE_HOME = /opt/oracle/product/11.2)<br />
          (SID_NAME = abhi)<br />
    )<br />
   )</p>
<p>now start the listener </p>
<p>[oracle@ocvmrh2143 admin]$ lsnrctl start</p>
<p>LSNRCTL for Linux: Version 11.2.0.1.0 &#8211; Production on 18-SEP-2009 00:51:26</p>
<p>Copyright (c) 1991, 2009, Oracle.  All rights reserved.</p>
<p>Starting /opt/oracle/product/11.2/bin/tnslsnr: please wait&#8230;</p>
<p>TNSLSNR for Linux: Version 11.2.0.1.0 &#8211; Production<br />
System parameter file is /opt/oracle/product/11.2/network/admin/listener.ora<br />
Log messages written to /opt/oracle/diag/tnslsnr/ocvmrh2143/listener/alert/log.xml<br />
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocvmrh2143.us.oracle.com)(PORT=1521)))</p>
<p>Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))<br />
STATUS of the LISTENER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Alias                     LISTENER<br />
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 &#8211; Production<br />
Start Date                18-SEP-2009 00:51:27<br />
Uptime                    0 days 0 hr. 0 min. 6 sec<br />
Trace Level               off<br />
Security                  ON: Local OS Authentication<br />
SNMP                      OFF<br />
Listener Parameter File   /opt/oracle/product/11.2/network/admin/listener.ora<br />
Listener Log File         /opt/oracle/diag/tnslsnr/ocvmrh2143/listener/alert/log.xml<br />
Listening Endpoints Summary&#8230;<br />
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocvmrh2143.us.oracle.com)(PORT=1521)))<br />
The listener supports no services<br />
The command completed successfully</p>
<p>[oracle@ocvmrh2143 admin]$ tnsping abhi</p>
<p>TNS Ping Utility for Linux: Version 11.2.0.1.0 &#8211; Production on 18-SEP-2009 00:51:54</p>
<p>Copyright (c) 1997, 2009, Oracle.  All rights reserved.</p>
<p>Used parameter files:<br />
/opt/oracle/product/11.2/network/admin/sqlnet.ora</p>
<p>Used TNSNAMES adapter to resolve the alias<br />
Attempting to contact (DESCRIPTION= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=tcp) (HOST=ocvmrh2143.us.oracle.com) (POR                                                                 T=1521))) (CONNECT_DATA= (SERVER=DEDICATED) (SERVICE_NAME=abhi)))<br />
OK (10 msec)<br />
[oracle@ocvmrh2143 admin]$</p>
<p>[oracle@ocvmrh2143 admin]$ sqlplus &#8220;/ as sysdba&#8221;</p>
<p>SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 18 00:53:13 2009</p>
<p>Copyright (c) 1982, 2009, Oracle.  All rights reserved.</p>
<p>Connected to an idle instance.</p>
<p>SQL&gt; startup pfile=/opt/oracle/product/11.2/dbs/initabhi.ora<br />
ORACLE instance started.</p>
<p>Total System Global Area 1071333376 bytes<br />
Fixed Size                  1341312 bytes<br />
Variable Size             620759168 bytes<br />
Database Buffers          444596224 bytes<br />
Redo Buffers                4636672 bytes<br />
Database mounted.<br />
Database opened.<br />
SQL&gt;</p>
<p>SQL&gt; select * from global_name;</p>
<p>GLOBAL_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
ABHI</p>
<p>SQL&gt; select * from v$version;</p>
<p>BANNER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 &#8211; Production<br />
PL/SQL Release 11.2.0.1.0 &#8211; Production<br />
CORE    11.2.0.1.0      Production<br />
TNS for Linux: Version 11.2.0.1.0 &#8211; Production<br />
NLSRTL Version 11.2.0.1.0 &#8211; Production</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=191&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2009/09/18/database-creating-11gr2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
		<item>
		<title>CMDET</title>
		<link>http://ack2904.wordpress.com/2009/06/05/cmdet/</link>
		<comments>http://ack2904.wordpress.com/2009/06/05/cmdet/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 14:11:41 +0000</pubDate>
		<dc:creator>ack2904</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ack2904.wordpress.com/?p=187</guid>
		<description><![CDATA[#Details of cmdet set lines 120 col det for a80 heading &#8216;Concurrent request Details &#124;Concurret Program &#124;Arguments&#124;Completion Text/User detail&#124;Request Date, Requested Start Date&#8217; justify left word_wrap col pid for a10 heading &#8220;DB Pid&#124;APPS Pid&#8221; Col traced form a10 heading &#8220;Traced?&#124;Req/Prog&#8221; select request_id &#124;&#124; &#8216; &#8216;&#124;&#124; to_char(r.actual_start_date,&#8217;mm/dd/yy hh24:mi:ss&#8217;) &#124;&#124; &#8216; &#8211; &#8216; &#124;&#124; nvl(to_char(r.ACTUAL_COMPLETION_DATE,&#8217;mm/dd/yy hh24:mi:ss&#8217;), &#8216; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=187&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#Details of cmdet<br />
set lines 120<br />
col det for a80 heading &#8216;Concurrent request Details |Concurret Program |Arguments|Completion Text/User detail|Request Date, Requested Start Date&#8217; justify left word_wrap<br />
col pid for a10 heading &#8220;DB Pid|APPS Pid&#8221;<br />
Col traced form a10 heading &#8220;Traced?|Req/Prog&#8221;<br />
select request_id || &#8216;  &#8216;||<br />
       to_char(r.actual_start_date,&#8217;mm/dd/yy hh24:mi:ss&#8217;) || &#8216; &#8211; &#8216; ||<br />
       nvl(to_char(r.ACTUAL_COMPLETION_DATE,&#8217;mm/dd/yy hh24:mi:ss&#8217;),<br />
       &#8216; Not complete &#8216;) || &#8216; =  &#8216;||<br />
       (round(trunc(to_number(nvl(r.ACTUAL_COMPLETION_DATE,sysdate) &#8211; r.actual_start_date) * 1440) + ((to_number(nvl(r.ACTUAL_COMPLETION_DATE,sysdate) &#8211; r.actual_start_date) * 1440) &#8211; trunc(to_number(nvl(r.ACTUAL_COMPLETION_DATE,sysdate) &#8211; r.actual_start_date) * 1440)) * .60,2)) || &#8216; &#8216; ||<br />
       decode(status_code,&#8217;C', &#8216;Completed&#8217;, &#8216;E&#8217;, &#8216;Error&#8217;, &#8216;R&#8217;, &#8216;Running&#8217;, &#8216;X&#8217;, &#8216;Terminated&#8217;, &#8216;G&#8217;,'Warning&#8217;,<br />
         &#8216; &#8216;) || &#8216; &#8216; || chr(10) ||<br />
       concurrent_program_name || &#8216; &#8211; &#8216; ||<br />
       user_concurrent_program_name || chr(10) ||<br />
       argument_text || chr(10) ||<br />
       completion_text ||&#8217;   User Details: &#8216; ||<br />
       fu.user_name||&#8217; &#8211; &#8216;||fu.description||&#8217; &#8211; &#8216;||fu.email_address || chr(10)||<br />
       to_char(request_date,&#8217;MM-DD-YY HH24:MI:SS&#8217;)||&#8217; &#8211; &#8216;||<br />
        to_char( requested_start_date,&#8217;MM-DD-YY HH24:MI:SS&#8217;) det, ORACLE_PROCESS_ID || chr(10)|| OS_PROCESS_ID PID,<br />
       r.Enable_trace||chr(10) ||p.Enable_trace Traced,<br />
       r.logfile_name,<br />
       r.logfile_node_name<br />
  from applsys.fnd_concurrent_requests r,<br />
       apps.fnd_concurrent_programs_vl p,<br />
       apps.fnd_user		fu<br />
 where r.concurrent_program_id = p.concurrent_program_id<br />
   and r.program_application_id= p.application_id<br />
   and r.requested_by          = fu.user_id<br />
   and request_id = &amp;1<br />
 order by request_id<br />
/<br />
ttitle off<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Rem Pass the request id as the parameter<br />
Rem Usage<br />
Rem<br />
Rem  @find_inst_no request_id</p>
<p>SELECT b.instance_number,b.ORACLE_PROCESS_ID<br />
FROM   apps.fnd_concurrent_requests a,<br />
       apps.fnd_concurrent_processes b<br />
WHERE  a.controlling_manager = b.concurrent_process_id<br />
&#8211;AND    c.pid = b.oracle_process_id<br />
AND    a.request_id = &amp;1;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
#CMSQU<br />
set feed on lines 220 pages 66 pause off<br />
col xdb    new_val db   noprint<br />
col ucp    new_val ucp  noprint<br />
col ci     new_val cid  noprint<br />
col ucpn   new_val ucpn noprint<br />
col user_name for a12<br />
col st format a17 heading &#8216;Start Time&#8217;<br />
col et format a17 heading &#8216;End Time&#8217;<br />
col el format 99990.00 heading &#8216;Elapsed|Minutes&#8217; justify right<br />
col sc format a15 heading &#8216;Status&#8217;</p>
<p>set term off<br />
select name xdb<br />
  from v$database;</p>
<p>break on today<br />
column today noprint new_value _date<br />
column appid new_value appid<br />
select to_char(sysdate, &#8216;fmMonth DD, hh24:mi&#8217;) today from dual;<br />
clear breaks<br />
var prgname varchar2(31);<br />
var days    number;<br />
var vappid number;<br />
set feed on<br />
set serveroutput on<br />
begin<br />
 :prgname   := &#8216;&amp;1&#8242;;<br />
 :days      := &amp;2;<br />
end;<br />
/</p>
<p>select USER_CONCURRENT_PROGRAM_NAME ucp, concurrent_program_id ci, APPLICATION_ID appid,<br />
       CONCURRENT_PROGRAM_NAME ucpn<br />
  from apps.FND_CONCURRENT_PROGRAMS_VL<br />
where CONCURRENT_PROGRAM_NAME = upper(:prgname);</p>
<p>/*<br />
select p.concurrent_program_id ci,<br />
          t.USER_CONCURRENT_PROGRAM_NAME ucp,<br />
       p.APPLICATION_ID appid<br />
     from applsys.fnd_concurrent_programs p,<br />
	  applsys.fnd_concurrent_programs_tl t<br />
    where concurrent_program_name = upper(:prgname)<br />
      and p.APPLICATION_ID            = t.APPLICATION_ID<br />
      and p.CONCURRENT_PROGRAM_ID     = t.CONCURRENT_PROGRAM_ID<br />
      and t.LANGUAGE                  = &#8216;US&#8217;;  */</p>
<p>begin<br />
 :vappid   := &appid;<br />
end;<br />
/</p>
<p>set term on pause on<br />
spool cmsq_&amp;1..txt<br />
break on report<br />
compute sum label &#8216;Total Time:&#8217; -<br />
        avg label &#8216;Avg Time:  &#8216; -<br />
        min label &#8216;Min Time:  &#8216; -<br />
        max label &#8216;Max Time:  &#8216; of el on report<br />
compute sum label &#8216;Total Q Time:&#8217; -<br />
        avg label &#8216;Avg QTime:  &#8216; -<br />
        min label &#8216;Min QTime:  &#8216; -<br />
        max label &#8216;Max QTime:  &#8216; of  runq on report<br />
compute sum label &#8216;Total Q Time:&#8217; -<br />
        avg label &#8216;Avg QTime:  &#8216; -<br />
        min label &#8216;Min QTime:  &#8216; -<br />
        max label &#8216;Max QTime:  &#8216; of  actualq on report<br />
ttitle left _date -<br />
       center &#8216;Database: &amp;db&#8217; -<br />
       right &#8216;Page :&#8217; format 999 sql.pno skip 1 -<br />
       center &#8216;&amp;ucpn &#8211; &amp;ucp&#8217; skip 2<br />
col runq for 99990.99 heading &#8220;Total Q|Minutes&#8221;<br />
col actualq for 990.99 heading &#8220;Actual Q|Minutes&#8221;<br />
col argument_text for a60 wrap<br />
col responsibility_id for 999999 Heading &#8220;RespId&#8221;<br />
col oracle_process_id for a8 Heading &#8220;PID&#8221;<br />
select request_id,<br />
       fu.user_name,<br />
       trunc(to_number(nvl(r.actual_start_date, sysdate) &#8211; greatest(REQUESTED_START_DATE,REQUEST_DATE   ) ) * 1440,2) runq,<br />
       trunc(to_number(r.actual_start_date &#8211; nvl(r.crm_release_date,r.actual_start_date)) * 1440,2) actualq,<br />
&#8211;       to_char(r.REQUESTED_START_DATE,&#8217;mm/dd/yy hh24:mi:ss&#8217;) rst,<br />
       nvl(to_char(r.actual_start_date,&#8217;mm/dd/yy hh24:mi:ss&#8217;), to_char(r.requested_start_date,&#8217;mm/dd/yy hh24:mi:ss&#8217;)) st,<br />
       to_char(r.ACTUAL_COMPLETION_DATE,&#8217;mm/dd/yy hh24:mi:ss&#8217;) et,<br />
       trunc(to_number(nvl(r.ACTUAL_COMPLETION_DATE,sysdate) &#8211; r.actual_start_date) * 1440) + ((to_number(nvl(r.ACTUAL_COMPLETION_DATE,sysdate) &#8211; r.actual_start_date) * 1440) &#8211; trunc(to_number(nvl(r.ACTUAL_COMPLETION_DATE,sysdate) &#8211; r.actual_start_date) * 1440)) * .60 el,<br />
       decode(status_code,&#8217;C', &#8216;Completed&#8217;,<br />
               &#8216;E&#8217;, &#8216;Error&#8217;,<br />
               &#8216;G&#8217;, &#8216;Warning&#8217;,<br />
               &#8216;R&#8217;, &#8216;Running&#8217;,<br />
               &#8216;X&#8217;, &#8216;Terminated&#8217;,<br />
               &#8216;I&#8217;, &#8216;Pending Normal&#8217;,<br />
               &#8216;Q&#8217;, &#8216;Pending Standby&#8217;,<br />
               &#8216; &#8216;) sc,<br />
       r.argument_text,<br />
       r.responsibility_id, oracle_process_id, r.Enable_trace<br />
  from applsys.fnd_concurrent_requests r,<br />
       apps.fnd_concurrent_programs_vl p,<br />
       apps.fnd_user                        fu<br />
 where r.concurrent_program_id = p.concurrent_program_id<br />
   and r.requested_by = fu.user_id<br />
   and (actual_start_date between sysdate &#8211; :days and sysdate or status_code  in (&#8216;I&#8217;, &#8216;Q&#8217;,'R&#8217;))<br />
   and application_id = :vappid<br />
   and concurrent_program_name = upper(:prgname)<br />
 order by nvl(r.actual_start_date, REQUESTED_START_DATE ), request_id<br />
/<br />
ttitle off<br />
rem   spool off<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>rem<br />
rem Display some basic information for a v$session.sid(sess_info_<br />
rem or v$session.process or v$process.spid<br />
rem</p>
<p>col sid for 9999<br />
col username for a10 trunc<br />
col process for 99999999<br />
col spid for 99999999<br />
col program for a40 trunc<br />
set verify on</p>
<p>select<br />
        s.inst_id,<br />
        s.sid,<br />
        s.serial#,<br />
        s.username,<br />
        s.process,<br />
        p.spid,<br />
        s.program,<br />
        s.osuser,<br />
        s.machine,<br />
        to_char(s.logon_time,&#8217;dd-mon-yy hh24:mi&#8217;) LogonTime,<br />
        s.action,<br />
        s.module<br />
from<br />
        gv$session s,<br />
        gv$process p<br />
where<br />
        to_char(s.sid) = &#8216;&amp;&amp;1&#8242;<br />
        and s.paddr= p.addr<br />
        and s.inst_id = p.inst_id<br />
union<br />
select<br />
        s.inst_id,<br />
        s.sid,<br />
        s.serial#,<br />
        s.username,<br />
        s.process,<br />
        p.spid,<br />
        s.program,<br />
        s.osuser,<br />
        s.machine,<br />
        to_char(s.logon_time,&#8217;dd-mon-yy hh24:mi&#8217;) LogonTime,<br />
        s.action,<br />
        s.module<br />
from<br />
        gv$session s,<br />
        gv$process p<br />
where<br />
        (to_char(p.spid) = &#8216;&amp;&amp;1&#8242; or s.process = &#8216;&amp;&amp;1&#8242; or s.osuser=&#8217;&amp;&amp;1&#8242;)<br />
        and s.paddr=p.addr<br />
        and s.inst_id = p.inst_id<br />
order by<br />
        1<br />
/<br />
undefine 1<br />
set verify on<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Rem ck_analyzed<br />
# Author AB<br />
REM<br />
REM<br />
col la heading &#8220;Last Analyzed&#8221; for a15<br />
col num_rows for 9999999999<br />
select to_char(last_analyzed, &#8216;DD-MON-YY HH24:MI&#8217;) la, num_rows , SAMPLE_SIZE    ,<br />
       blocks &#8220;Used Blocks&#8221;, empty_blocks, Chain_cnt, AVG_ROW_LEN, table_name,  owner<br />
  from dba_tables where table_name=upper(&#8216;&amp;1&#8242;)<br />
/<br />
select index_name,to_char(last_analyzed, &#8216;DD-MON-YY HH24:MI&#8217;) la,<br />
       num_rows , blevel, distinct_keys, SAMPLE_SIZE , avg_data_blocks_per_key,avg_leaf_blocks_per_key, status<br />
  from dba_indexes where table_name=upper(&#8216;&amp;1&#8242;)<br />
/<br />
=================================================================</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ack2904.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ack2904.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ack2904.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ack2904.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ack2904.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ack2904.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ack2904.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ack2904.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ack2904.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ack2904.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ack2904.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ack2904.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ack2904.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ack2904.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ack2904.wordpress.com&amp;blog=5325143&amp;post=187&amp;subd=ack2904&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ack2904.wordpress.com/2009/06/05/cmdet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f1f9dd2818524a2f49551462c9abc79?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">ack2904</media:title>
		</media:content>
	</item>
	</channel>
</rss>
