<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Amardeep Sidhu's Oracle blog</title>
	
	<link>http://amardeepsidhu.com/blog</link>
	<description>Little bit of fun with Oracle</description>
	<lastBuildDate>Thu, 22 Dec 2011 05:59:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/OracleAndMore" /><feedburner:info uri="oracleandmore" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>OracleAndMore</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>DML and HCC – Exadata</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/FYT9vg0jZnw/</link>
		<comments>http://amardeepsidhu.com/blog/2011/12/22/dml-and-hcc-exadata/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 18:31:11 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Exadata]]></category>
		<category><![CDATA[HCC]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=379</guid>
		<description><![CDATA[Hybrid Columnar Compression (HCC) is a new awesome feature in Exadata that helps in saving a lot of storage space in your environment. This whitepaper on Oracle website explains this feature in detail. Also Uwe Hesse has an excellent how to use all this post on his blog. You can see the compression levels one can [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hybrid Columnar Compression (HCC) is a new awesome feature in Exadata that helps in saving a lot of storage space in your environment. <a href="http://www.oracle.com/technetwork/middleware/bi-foundation/ehcc-twp-131254.pdf">This whitepaper</a> on Oracle website explains this feature in detail. Also Uwe Hesse has an excellent <em>how to use all this </em><a href="http://uhesse.wordpress.com/2011/01/21/exadata-part-iii-compression/">post on his blog</a>. You can see the compression levels one can achive by making use of HCC. It is very simple to use feature but one needs to be aware of few things before using HCC extensively as otherwise all your storage calculations may go weird. Here are few of the things to keep in mind:</p>
<ul style="text-align: justify;">
<ul>
<li>HCC works with direct path loads only that includes: CTAS, running impdp with ACCESS_METHOD=DIRECT or direct path inserts. If you insert data using a normal insert, it will not be HCC compressed.</li>
</ul>
</ul>
<ul style="text-align: justify;">
<ul>
<li>It is most suited for tables that aren&#8217;t going to be updated once loaded. There are some complications (next point) that arise if some DML is going to be run on HCC compressed data.</li>
</ul>
</ul>
<ul style="text-align: justify;">
<ul>
<li>At block level HCC stores data as compression units. A compression unit can be defined as a set of blocks. Now if some rows (stored with HCC) are updated, they need to be decompressed first. Also in that case the database needs to read the compression unit, not a single block. So once you do some update on the data stored in HCC, it will be moved out of HCC compression. To HCC compress it again you will need to do <em>alter table table_name move compress for </em>(Also see Metalink note 1332853.1)<em>.</em> So if the tables you are planning to use HCC upon, undergo frequent DML, HCC may not be best suited for that scenario. Not only it will add the additional overhead of running <em>alter table move</em> statement every time some updates happen, it may screw up the storage space calculations as well.</li>
</ul>
</ul>
<p style="text-align: justify;">
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/FYT9vg0jZnw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2011/12/22/dml-and-hcc-exadata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2011/12/22/dml-and-hcc-exadata/</feedburner:origLink></item>
		<item>
		<title>OGG-01004  Aborted grouped transaction on ‘, Database error 1403 ()</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/Q3sR5oRPrvg/</link>
		<comments>http://amardeepsidhu.com/blog/2011/11/04/ogg-01004-aborted-grouped-transaction-on-database-error-1403/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 11:08:39 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[GoldenGate]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=371</guid>
		<description><![CDATA[The last post was just like that. It was this GoldenGate issue that woke me up from the deep sleep to do a post after a long time . Well it was a simple schema to schema replication setup using GoldenGate. We were using the SCN method (Metalink Doc ID 1276058.1 &#38; 1347191.1) to do [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The <a href="http://amardeepsidhu.com/blog/2011/11/04/expdp-not-consistent/" target="_blank">last post</a> was just like that. It was this GoldenGate issue that woke me up from the deep sleep to do a post after a long time <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  .</p>
<p style="text-align: justify;">Well it was a simple schema to schema replication setup using GoldenGate. We were using the SCN method (Metalink Doc ID 1276058.1 &amp; 1347191.1) to do the intial load so that there is no overlvapping of transactions and the replicat runs with minimum issues. Even after following this method, the replicat was hitting</p>
<pre class="brush: plain; title: ; notranslate">2011-10-31 19:25:17  WARNING OGG-01004  Aborted grouped transaction on 'SCHEMA.TABLE', Database error 1403 ().

2011-10-31 19:25:17  WARNING OGG-01003  Repositioning to rba 3202590 in seqno 1.

2011-10-31 19:25:18  WARNING OGG-01154  SQL error 1403 mapping SCHEMA.TABLE TO SCHEMA.TABLE.

2011-10-31 19:25:18  WARNING OGG-01003  Repositioning to rba 3468713 in seqno 1.</pre>
<p>If we managed to bypass this error somehow, it hit:</p>
<pre class="brush: plain; title: ; notranslate">2011-10-24 19:58:15  WARNING OGG-00869  OCI Error ORA-00001: unique constraint (SCHEMA.UK) violated (status = 1), SQL &lt;INSERT INTO &quot;SCHEMA&quot;.&quot;TABLE&quot; (&lt;INSERT HERE&gt;

2011-10-24 19:58:15  WARNING OGG-01004  Aborted grouped transaction on 'SCHEMA.TABLE', Database error 1 (OCI Error ORA-00001: unique constraint (SCHEMA.UK) violated (status = 1), SQL &lt;INSERT HERE&gt;).

2011-10-24 19:58:15  WARNING OGG-01003  Repositioning to rba 1502788 in seqno 3.

2011-10-24 19:58:15  WARNING OGG-01154  SQL error 1 mapping SCHEMA.TABLE to SCHEMA.TABLE OCI Error ORA-00001: unique constraint (SCHEMA.UK) violated (status = 1), SQL &lt;INSERT HERE&gt;.

2011-10-24 19:58:15  WARNING OGG-01003  Repositioning to rba 1502788 in seqno 3.</pre>
<p>1403 means that GoldenGate couldn&#8217;t find the record it wanted to update.</p>
<p>00001 would mean that the record GoldenGate tried to insert was already there.</p>
<p style="text-align: justify;">In our case, as we used SCN method so none of them was expected. So these weird errors left us totally confused. Some guys suggested that expdp was not taking a consistent image and some transactions were getting overlapped (picked up by both expdp &amp; GG extract trail). We took the database down and repeated the exercise but oops ! it hit almost the same errors again. So it was not about consistency for sure.</p>
<p style="text-align: justify;">Till now we haven&#8217;t been examining the contents of discard file very seriously. As the errors were pretty simple so we always suspected that some transactions were getting overlapped. Now it was high time to take some help from discard file as well <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  . We took the before/after image of the record from the discard file and checked it in the target database &amp; values in one or two columns were different (that is why GG couldn&#8217;t find that record). The new values were the actual hint towards the solution [It was a table storing the mail requests and their statuses. This update that GG was trying to run was updating the status from NOT-SENT TO SENT but here on the target the status was already set to 'ORA-something......']. We got the clue that something must have run on the target itself that spoiled this record and now GG is not able to find it and abending with 1403. select * from dba_jobs cleared it all. While doing the initial load with expdp/impdp, job also got imported and some of them were in not broken state. They were firing according to their schedule and making changes to data in the target. So before GG came to update/insert record the job had already done its game and the replicat was hitting different errors. We did the initial load again (this time by using flashback_scn in the running database), disabled all the jobs and ran the replicat. It went through without any errors.</p>
<p style="text-align: justify;">So things to take care of, in such cases:</p>
<p style="text-align: justify;">1) Disable all the triggers on the target side (or exclude triggers while running expdp)</p>
<p style="text-align: justify;">2) Look for and disable any scheduled jobs (could be dba_jobs, dba_scheduler_jobs or cron)</p>
<p style="text-align: justify;">Happy GoldenGate&#8217;ing !</p>
<p style="text-align: justify;">
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/Q3sR5oRPrvg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2011/11/04/ogg-01004-aborted-grouped-transaction-on-database-error-1403/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2011/11/04/ogg-01004-aborted-grouped-transaction-on-database-error-1403/</feedburner:origLink></item>
		<item>
		<title>expdp not consistent</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/tfAFal0TETo/</link>
		<comments>http://amardeepsidhu.com/blog/2011/11/04/expdp-not-consistent/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 09:40:26 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[expdp]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=368</guid>
		<description><![CDATA[Came across this small oddity that documentation of 10.2 and 11.2 states that expdp by default takes consistent image of the database. But actually it is not so. You need to use flashback_scn/flashback_time for that. Metalink doc 377218.1 explains the scenario.]]></description>
			<content:encoded><![CDATA[<p>Came across this small oddity that documentation of 10.2 and 11.2 states that expdp by default takes consistent image of the database. But actually it is not so. You need to use flashback_scn/flashback_time for that. Metalink doc 377218.1 explains the scenario.</p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/tfAFal0TETo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2011/11/04/expdp-not-consistent/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2011/11/04/expdp-not-consistent/</feedburner:origLink></item>
		<item>
		<title>dbc_min_pct and dbc_max_pct in HP-UX</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/AmjOi_o7Qgc/</link>
		<comments>http://amardeepsidhu.com/blog/2011/05/25/dbc_min_pct-and-dbc_max_pct-in-hp-ux/#comments</comments>
		<pubDate>Wed, 25 May 2011 11:15:56 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Oracle Tuning]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[dbc_max_pct]]></category>
		<category><![CDATA[dbc_min_pct]]></category>
		<category><![CDATA[HP-UX]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=357</guid>
		<description><![CDATA[It was a 10g (10.2.0.5 on HP-UX 11.23 RISC) database which was recently upgraded from 9.2.0.8. The CPU and memory utilization was going really high. After tuning few of the queries coming in top, CPU usage was coming within accetable limits but the memory usage was still high. There was a total of 16 GB [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">It was a 10g (10.2.0.5 on HP-UX 11.23 RISC) database which was recently upgraded from 9.2.0.8. The CPU and memory utilization was going really high. After tuning few of the queries coming in top, CPU usage was coming within accetable limits but the memory usage was still high. There was a total of 16 GB of RAM on the server and the usage was above 90%, constantly. One of the reasons behind high usage was increase in the SGA size. It was increased from 2.5 GB (in 9i) to around 5 GB (in 10g). Another major chunk was being eaten by OS buffer cache. While looking at the memory usage with kmeminfo:
<pre class="brush: bash; title: ; notranslate">Buffer cache        =  1048448    4.0g  25%  details with -bufcache</pre>
</p>
<p style="text-align: justify;">In HP-UX, The memory allocated to (dynamic) buffer cache is controlled by two parameters <strong>dbc_min_pct</strong> and <strong>dbc_max_pct</strong>. It can vary between dbc_min_pct and dbc_max_pct percent of the total RAM. They default to 5 and 50 respectively. For a system that is running an Oracle database value of 50 for dbc_max_pct is way too high. That means half of the memory is going to be allocated to OS buffer cache. As Oracle has got its own buffer cache so the OS cache is not of much use. As mentioned in the metalink note 726652.1, the value of dbc_max_pct can be safely lowered without impacting the Oracle database performance. In many of the threads (on HP website) people have suggested the value of 10 for db_max_pct. Not sure if it is more like a thumb rule but in the same metalink note (726652.1) it is mentioned that if %rcache in sar -b is above 90, that means your OS buffer cache is adequately sized.</p>
<p>After setting the value of dbc_max_pct to 15 (It will be changed to 10, finally), around 1.6 GB more memory was freed. Also there was no impact on the database or OS performance. Here are few of the metalink notes and threads on HP-UX website that talk about these parameters in detail:</p>
<p><a href="https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=434535.1" target="_blank">Oracle Shadow Processes Are Taking Too Much Memory (Doc ID 434535.1)</a></p>
<p><a href="https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=726652.1" target="_blank">How OS Buffer Cache Size Affects Db Performance (Doc ID 726652.1) </a></p>
<p><a href="https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=68105.1" target="_blank">Commonly Misconfigured HP-UX Kernel Parameters (Doc ID 68105.1) </a></p>
<p><a href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1306231311459+28353475&amp;threadId=1266914" target="_blank">http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1306231311459+28353475&amp;threadId=1266914</a></p>
<p><a href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=727618" target="_blank">http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=727618</a></p>
<p><a href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=467288" target="_blank">http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=467288</a></p>
<p><a href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=750342" target="_blank">http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=750342</a></p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/AmjOi_o7Qgc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2011/05/25/dbc_min_pct-and-dbc_max_pct-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2011/05/25/dbc_min_pct-and-dbc_max_pct-in-hp-ux/</feedburner:origLink></item>
		<item>
		<title>ORA-12547: TNS:lost contact</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/RI5ORnu6LPo/</link>
		<comments>http://amardeepsidhu.com/blog/2011/05/18/ora-12547-tns-lost-contact/#comments</comments>
		<pubDate>Wed, 18 May 2011 05:43:08 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[ORA-12547]]></category>
		<category><![CDATA[TNS:lost contact]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=351</guid>
		<description><![CDATA[Very simple issue but took some amount of time in troubleshooting so thought about posting it here. May be it proves to be useful for someone. Scenario was: Oracle is installed from &#8220;oracle&#8221; user and all runs well. There is a new OS user &#8220;test1&#8243; that also needs to use sqlplus. So granted the necessary [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Very simple issue but took some amount of time in troubleshooting so thought about posting it here. May be it proves to be useful for someone.</p>
<p>Scenario was: Oracle is installed from &#8220;oracle&#8221; user and all runs well. There is a new OS user &#8220;test1&#8243; that also needs to use sqlplus. So granted the necessary permissions on ORACLE_HOME to test1. Tried to connect sqlplus scott/tiger@DB and yes it works. But while trying sqlplus scott/tiger it throws:</p>
<p style="text-align: justify;">
<pre class="brush: sql; title: ; notranslate">$ sqlplus scott/tiger

SQL*Plus: Release 10.2.0.5.0 - Production on Wed May 18 09:32:35 2011

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

ERROR:
ORA-12547: TNS:lost contact

Enter user-name: ^C
$</pre>
</p>
<p style="text-align: justify;">Did a lot of troubleshooting including checking tnsnames.ora, sqlnet.ora, listener.ora and so on. Nothing was hitting my mind so finally raised an SR. And it has to do with the permissions of the $ORACLE_HOME/bin/oracle binary. The permissions of oracle executable should be rwsr-s&#8211;x or 6751 but they were not. See below:</p>
<p style="text-align: justify;">
<pre class="brush: sql; title: ; notranslate">$ id
uid=241(test1) gid=202(users) groups=1(staff),13(dba)
$

$ cd $ORACLE_HOME/bin
$ ls -ltr oracle
-rwxr-xr-x    1 oracle   dba       136803483 Mar 16 20:32 oracle
$

$ chmod 6751 oracle
$ ls -ltr oracle
-rwsr-s--x    1 oracle   dba       136803483 Mar 16 20:32 oracle
$

$ sqlplus scott/tiger

SQL*Plus: Release 10.2.0.5.0 - Production on Wed May 18 10:23:27 2011

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL&gt; show user
USER is &quot;SCOTT&quot;
SQL&gt;</pre></p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/RI5ORnu6LPo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2011/05/18/ora-12547-tns-lost-contact/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2011/05/18/ora-12547-tns-lost-contact/</feedburner:origLink></item>
		<item>
		<title>waiting for resmgr:become active – can’t login</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/YHoChez4RsE/</link>
		<comments>http://amardeepsidhu.com/blog/2011/03/04/waiting-for-resmgr-become-active-cant-login/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 11:49:33 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[resmgr:become active]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=342</guid>
		<description><![CDATA[Some time back, I was at a client where the customer complained that no one was able to log in to the database. It was Oracle 10.2.0.4 running on HP-Ux. I logged in to the database and checked the wait events: Tanel&#8217;s snapper showed something like: If we check the description of the wait event, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Some time back, I was at a client where the customer complained that no one was able to log in to the database. It was Oracle 10.2.0.4 running on HP-Ux. I logged in to the database and checked the wait events:</p>
<pre class="brush: sql; title: ; notranslate">SQL&gt; @wait

EVENT                                                              COUNT(*)
---------------------------------------------------------------- ----------
wait for possible quiesce finish                                          1
Streams AQ: qmn coordinator idle wait                                     1
Streams AQ: qmn slave idle wait                                           1
Streams AQ: waiting for time management or cleanup tasks                  1
SQL*Net message to client                                                 1
smon timer                                                                1
pmon timer                                                                1
jobq slave wait                                                           4
rdbms ipc message                                                        11
SQL*Net message from client                                              27
resmgr:become active                                                    322

11 rows selected.

SQL&gt;</pre>
<p>Tanel&#8217;s snapper showed something like:</p>
<pre class="brush: sql; title: ; notranslate">SQL&gt; @snapper ash 5 1 all
Sampling with interval 5 seconds, 1 times...

-- Session Snapper v3.11 by Tanel Poder @ E2SN ( http://tech.e2sn.com )

-----------------------------------------------------------------------
Active% | SQL_ID          | EVENT                     | WAIT_CLASS
-----------------------------------------------------------------------
 26322% | 4ffu7nb93c2c9   | resmgr:become active      | Scheduler
  1900% | 2wn958z7gzh57   | resmgr:become active      | Scheduler
  1400% | 9d9bg2r538nd2   | resmgr:become active      | Scheduler
   600% | 4d3k70q6y344k   | resmgr:become active      | Scheduler
   500% | d6vwqbw6r2ffk   | resmgr:become active      | Scheduler
   500% | 4tsrz92mmshbw   | resmgr:become active      | Scheduler
   200% | 37td1bbvc1a69   | resmgr:become active      | Scheduler
   100% | ftdjfxws0s8q9   | resmgr:become active      | Scheduler
   100% | 41apc1bjqrfbv   | resmgr:become active      | Scheduler
   100% | af9d8aqtkvn02   | resmgr:become active      | Scheduler

--  End of ASH snap 1, end=2011-02-10 11:06:40, seconds=5, samples_taken=23

PL/SQL procedure successfully completed.

SQL&gt;</pre>
<p>If we check the <a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/waitevents003.htm#sthref3161" target="_blank">description of the wait event</a>, it says:</p>
<blockquote><p>The session is waiting for a resource manager active session slot. This event occurs when the resource manager is enabled and the number of active sessions in the session&#8217;s current consumer group exceeds the current resource plan&#8217;s active session limit for the consumer group. To reduce the occurrence of this wait event, increase the active session limit for the session&#8217;s current consumer group.</p></blockquote>
<p>But if we check the resource_limit settings:</p>
<pre class="brush: sql; title: ; notranslate">SQL&gt; show parameter resource

NAME_COL_PLUS_SHOW_PARAM   TYPE		VALUE_COL_PLUS_SHOW_PARAM
----------------------- -----------     --------------------------
resource_limit            boolean		FALSE
resource_manager_plan     string

SQL&gt;</pre>
<p>What ? Resource manager is not enabled. But why all the sessions are waiting for<strong> resmgr:become active</strong> and nobody is able to login ?</p>
<p>A bit of googling lead me to <a href="http://www.saptechies.com/oracle-wait-events" target="_blank">this page</a> from where I got the clue.</p>
<blockquote><p>Generally, this wait situation occurs when you execute certain EMCA operations such as the operation for creating the EM repository. As a result of these operations, the systems implicity switches to QUIESCE mode. Therefore, all database connections (except users SYS and SYSTEM) must wait for &#8220;resmgr:become active&#8221;. In this case, refer to Note 1044758 and execute the following command if necessary:</p>
<p>ALTER SYSTEM UNQUIESCE;</p></blockquote>
<p style="text-align: justify;">I asked around in the DBA team and one of the guys was trying to configure EM for the database due to which system switched tto QUIESCE mode and all the sessions were waiting on <strong>resmgr:become active</strong>.</p>
<p style="text-align: justify;">After canceling the operation, the wait event was gone and everything was working normally.</p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/YHoChez4RsE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2011/03/04/waiting-for-resmgr-become-active-cant-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2011/03/04/waiting-for-resmgr-become-active-cant-login/</feedburner:origLink></item>
		<item>
		<title>Issues in upgrading from 9i to 10g</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/hHKk11Ah6EM/</link>
		<comments>http://amardeepsidhu.com/blog/2011/01/29/issues-in-upgrading-from-9i-to-10g/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 17:00:29 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[10g]]></category>
		<category><![CDATA[9i]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/2011/01/29/issues-in-upgrading-from-9i-to-10g/</guid>
		<description><![CDATA[Last week I had a chance to upgrade a 9.2.0.7 database to 10.2.0.5. The size of the database was around 800 GB. The major applications connecting to the database were developed in Pro*C and Oracle Forms. The upgrade itself pretty smooth but there were few glitches around that needed to be handled. Just thought about [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Last week I had a chance to upgrade a 9.2.0.7 database to 10.2.0.5. The size of the database was around 800 GB. The major applications connecting to the database were developed in Pro*C and Oracle Forms. The upgrade itself pretty smooth but there were few glitches around that needed to be handled. Just thought about documenting all the issues:</p>
<ul>
<li>
<div align="justify">Few users in the database were assigned the CREATE SESSION privilege through a password protected role (That role was the default role for that user). 10.2.0.5 onwards, password protected roles can’t be set as default roles. The alternate is to either disable the password for the role or assign CREATE SESSION directly to the user, not through a role.</div>
</li>
<li>
<div align="justify">After the upgrade, few procedures became invalid and while compiling started giving <strong>ORA-00918: COLUMN AMBIGUOUSLY DEFINED</strong>. The issue was bug 2846640 which is fixed in 10.2. Actually, in few of the queries using ANSI syntax, the developer didn’t qualify the column names with table names. It worked fine in 9i but due to the bug getting fixed in 10g, it started giving ORA-00918. The simple solution is to prefix the column name with the table name.</div>
</li>
<li>
<div align="justify">Few of the application schema owner users complained that they were not able to modify the procedures/packages in their own schemas. The schemas were not assigned CREATE PROCEDURE privilege but as per <a href="http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/authoriz.htm#sthref453" target="_blank">documentation</a>, they should be able to modify the existing procedures/packages owned by them. This again is a documentation bug. It worked fine in 9i but in 10g onwards you need to have either a CREATE PROCEDURE or ALTER ANY PROCEDURE privilege (a risky one) to be able to edit the PL/SQL units in your own schema. </div>
</li>
</ul>
<p>These were few of the issues encountered, rest of the upgrade was super smooth !</p>
<p>Happy upgrading !</p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/hHKk11Ah6EM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2011/01/29/issues-in-upgrading-from-9i-to-10g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2011/01/29/issues-in-upgrading-from-9i-to-10g/</feedburner:origLink></item>
		<item>
		<title>ORA-39083: Object type INDEX failed to create with error</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/oGbDI_4DHg0/</link>
		<comments>http://amardeepsidhu.com/blog/2010/12/04/ora-39083-object-type-index-failed-to-create-with-error/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 11:52:56 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[ORA-14102]]></category>
		<category><![CDATA[ORA-39083]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=290</guid>
		<description><![CDATA[Another let-us-help-Google post . While running impdp import in 11g, you hit: It is related to bug 9015411 where DBMS_METADATA.GET_DDL creates incorrect create index statement by dumping both LOGGING and NO LOGGING clauses. Due to this the CREATE INDEX statement, while running impdp fails with the above error. It applies to 11.2.0.1 (Metalink doc id [...]]]></description>
			<content:encoded><![CDATA[<p>Another let-us-help-Google post <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>While running impdp import in 11g, you hit:</p>
<pre class="brush: sql; title: ; notranslate">ORA-39083: Object type INDEX failed to create with error:
ORA-14102: only one LOGGING or NOLOGGING clause may be specified</pre>
<p style="text-align: justify;">It is related to bug 9015411 where DBMS_METADATA.GET_DDL creates incorrect create index statement by dumping both LOGGING and NO LOGGING clauses. Due to this the CREATE INDEX statement, while running impdp fails with the above error. It applies to 11.2.0.1 (Metalink doc id 1066635.1)</p>
<p>Fix is to install the patch, if it is available for your platform. Another workaround is given in <a href="http://forums.oracle.com/forums/thread.jspa?messageID=4512555" target="_blank">this OTN thread</a> i.e. strip the create index statement of storage related information by using TRANSFORM=SEGMENT_ATTRIBUTES:N:INDEX &amp; TRANSFORM=SEGMENT_ATTRIBUTES:N:CONSTRAINT</p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/oGbDI_4DHg0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2010/12/04/ora-39083-object-type-index-failed-to-create-with-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2010/12/04/ora-39083-object-type-index-failed-to-create-with-error/</feedburner:origLink></item>
		<item>
		<title>EXP-00056: ORACLE error 28002 encountered</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/_aToYgQDOxU/</link>
		<comments>http://amardeepsidhu.com/blog/2010/11/14/exp-00056-oracle-error-28002-encountered/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 18:54:30 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Bug 1654141]]></category>
		<category><![CDATA[EXP-00056]]></category>
		<category><![CDATA[ORA-24309]]></category>
		<category><![CDATA[ORA-28002]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=281</guid>
		<description><![CDATA[Yesterday, a friend of mine asked me about an error he was getting while running a schema level export in Oracle 8i: I googled and metalink&#8217;ed (oops&#8230;is there anything like that ? ) a bit and found that it was bug 1654141 where user accounts in grace period cannot perform export. It is fixed in [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, a friend of mine asked me about an error he was getting while running a schema level export in Oracle 8i:</p>
<pre class="brush: sql; title: ; notranslate">exp system/manager@DB owner=ABC file=ABC.dmp log =ABC.log

Export: Release 8.1.7.1.0 - Production on Fri Nov 12 04:21:05 2010

(c) Copyright 2000 Oracle Corporation.  All rights reserved.

EXP-00056: ORACLE error 28002 encountered
ORA-28002: the password will expire within 11 days
EXP-00056: ORACLE error 24309 encountered
ORA-24309: already connected to a server
EXP-00000: Export terminated unsuccessfully</pre>
<p style="text-align: justify;">I googled and metalink&#8217;ed (oops&#8230;is there anything like that ? <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) a bit and found that it was bug 1654141 where user accounts in grace period cannot perform export. It is fixed in Oracle 9i (version 9.0.0.0 as per metalink). The obvious work around is to change the password and then try again. Thought about posting it here so that Google can give little better results if someone in trouble comes searching for it <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/_aToYgQDOxU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2010/11/14/exp-00056-oracle-error-28002-encountered/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2010/11/14/exp-00056-oracle-error-28002-encountered/</feedburner:origLink></item>
		<item>
		<title>Sangam 10</title>
		<link>http://feedproxy.google.com/~r/OracleAndMore/~3/WhuLozdEJJ4/</link>
		<comments>http://amardeepsidhu.com/blog/2010/09/12/sangam-10/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 11:27:12 +0000</pubDate>
		<dc:creator>Sidhu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Hyderabad]]></category>
		<category><![CDATA[Jonathan Lewis]]></category>
		<category><![CDATA[Sangam10]]></category>

		<guid isPermaLink="false">http://amardeepsidhu.com/blog/?p=274</guid>
		<description><![CDATA[It has been almost an year since i posted something (useful) here. The last post was also a crappy one . Well, it all boils down to sheer laziness . Now, i think the time has come to be regular again. Here i am getting a good start talking about Sangam10, i attended last week. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">It has been almost an year since i posted something (useful) here. The  last post was also a crappy one <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Well, it all boils down to sheer  laziness <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  . Now, i think the time has come to be regular again. Here i  am getting a good start talking about <a href="http://www.aioug.org/sangam10.php" target="_blank">Sangam10</a>, i attended last week.  It was a great opportunity to meet so many fellow Oracle professionals  and most awesomely to meet &amp; see <a href="http://jonathanlewis.wordpress.com/" target="_blank">Jonathan Lewis</a> talk about Performance &amp; Tuning. As expected the whole experience was amazing.  It was a 2 day event where Jonathan was delivering 2 half day seminars  on SQL Tuning and there were other break out sessions as well. We had  planned to go a day in advance so me, <a href="http://blog.aristadba.com/" target="_blank">Aman</a>, <a href="http://ankitkgoel.wordpress.com/" target="_blank">Ankit</a> &amp; <a href="http://neerajbhatia.wordpress.com" target="_blank">Neeraj</a> reached  Hyderabad on 2nd Sep.</p>
<p style="text-align: justify;">Jonathan&#8217;s presentations were simply amazing. His knowledge about how things work (and why they work this way not that) is simply awesome.  He is an inspiration for newbies like us and there was so much to learn from him. Few of the quick tips that i picked up from him:</p>
<ol>
<li>Don&#8217;t believe what you read or hear. Make small test cases to test and confirm how things work &amp; how they don&#8217;t. He said that he has around 2000 test cases on his laptop. Some of them ready to be fired on Oracle database 12g <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</li>
<li>Always document your findings. At a later date you only won&#8217;t be able to remember that something that you already faced and solved something you are stuck in. If you document things properly, you would always remember a bit of it and you can search it in a minute.</li>
</ol>
<p style="text-align: justify;">Also i got to meet &amp; attend presentation of good friend <a href="http://oraclenz.com/2010/07/27/next-step-insync10-nzoug-otn-days-and-sangam10/" target="_blank">Francisco Munoz Alvarez</a>. I have been in touch with him since more than 2 years but this was for the first time i was meeting him in person. Also his presentation on how to become a good DBA was really awesome. Enjoyed every bit of it.</p>
<p style="text-align: justify;">Two of my colleagues <a href="http://viveklsharma.wordpress.com/" target="_blank">Vivek Sharma</a> and <a href="http://in.linkedin.com/in/rahuldutta22" target="_blank">Rahul Dutta</a> were also presenting, so got a chance to see their presentations too. Vivek talked about developing scalable applications and Rahul&#8217;s presentation was about developing a EBS reporting solution using Oracle streams.</p>
<p style="text-align: justify;">I attended some part of <a href="http://www.rittmanmead.com/2010/09/05/rittman-mead-at-sangam10-hyderabad/" target="_blank">Mark Rittman</a>&#8216;s session also. I am not much into data warehousing but Mark is such a respected name so wanted to be present in his session <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
<p style="text-align: justify;">I also met and attended one of the presentation of <a href="http://iggyfernandez.wordpress.com/" target="_blank">Iggy Fernandez</a>. He talked about 52 weeks in the life of a database. I couldn&#8217;t attend his other presentation on <a href="http://iggyfernandez.wordpress.com/2010/09/05/india-trip-report-the-oracle-documentation-is-always-correct-not/" target="_blank">reading execution plans</a> as Vivek was presnting in the same time slot.</p>
<p style="text-align: justify;">Overall, it was an amazing experience and i am already looking forward to attending Sangam (or whatever it would be called <img src='http://amardeepsidhu.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) 11 !</p>
<p style="text-align: justify;"><em>Read Aman&#8217;s <a href="http://blog.aristadba.com/?p=163" target="_blank">post about Sangam 10</a>.</em></p>
<img src="http://feeds.feedburner.com/~r/OracleAndMore/~4/WhuLozdEJJ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amardeepsidhu.com/blog/2010/09/12/sangam-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://amardeepsidhu.com/blog/2010/09/12/sangam-10/</feedburner:origLink></item>
	</channel>
</rss>

