<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>thinkora - Think Oracle</title>
	<link>http://www.itbvision.com/thinkora</link>
	<description>to share my Oracle Database and Development knowledge &#38; experience.</description>
	<pubDate>Wed, 31 Mar 2010 11:41:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<item>
		<title>Change the Column Datatype using SQL</title>
		<link>http://www.itbvision.com/thinkora/?p=23</link>
		<comments>http://www.itbvision.com/thinkora/?p=23#comments</comments>
		<pubDate>Mon, 30 Nov 2009 07:26:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle database 9i-11g]]></category>

		<category><![CDATA[Change the Column Datatype]]></category>

		<category><![CDATA[Data type]]></category>

		<category><![CDATA[Oracle Column]]></category>

		<guid isPermaLink="false">http://www.itbvision.com/thinkora/?p=23</guid>
		<description><![CDATA[Follow the simple steps to change the column datatype which is also having a data inside.
Normally, it&#8217;s not possible to change the column datatype with the existing data.
Steps: 
1. Add New temp Column with desired datatype.
SQL&#62; Alter Table &#60;table_name&#62;
Add temp datatype(size);
2. Update the data into new column. 
SQL&#62; Update &#60;table_name&#62;
set temp = &#60;original_columnname&#62;
where &#60;original_columnname&#62; is [...]]]></description>
			<content:encoded><![CDATA[<p>Follow the simple steps to <strong>change the column datatype</strong> which is also having a data inside.<br />
Normally, it&#8217;s not possible to change the column datatype with the existing data.</p>
<p><strong>Steps: </strong></p>
<p><em>1. Add New temp Column with desired datatype.</em></p>
<p>SQL&gt; Alter Table <font color="#808080">&lt;table_name&gt;</font><br />
Add temp <font color="#808080">datatype(size)</font>;</p>
<p><em>2. Update the data into new column. </em></p>
<p>SQL&gt; Update <font color="#808080">&lt;table_name&gt;</font><br />
set temp = <font color="#808080">&lt;original_columnname&gt;<br />
</font>where <font color="#808080">&lt;original_columnname&gt;</font> is not null;</p>
<p>3. Drop the original Column.</p>
<p>SQL&gt; Alter table <font color="#808080">&lt;table_name&gt;</font><br />
Drop column <font color="#808080">&lt;original_columnname&gt;</font>;</p>
<p><em>4. Rename the new column to original Name.</em></p>
<p>SQL&gt; Alter table <font color="#808080">&lt;table_name&gt;</font><br />
rename column temp to <font color="#808080">&lt;original_columnname&gt;</font>;<em></p>
<p><font color="#800000">Note:-</font> <font color="#808080">change the table_name, datatype, Original_columnname and size</font></em></p>
<ol></ol>
]]></content:encoded>
			<wfw:commentRss>http://www.itbvision.com/thinkora/?feed=rss2&amp;p=23</wfw:commentRss>
		</item>
		<item>
		<title>Performance Tuning</title>
		<link>http://www.itbvision.com/thinkora/?p=22</link>
		<comments>http://www.itbvision.com/thinkora/?p=22#comments</comments>
		<pubDate>Wed, 17 Jun 2009 08:44:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Performance Tuning]]></category>

		<guid isPermaLink="false">http://www.itbvision.com/thinkora/?p=22</guid>
		<description><![CDATA[For many people, Oracle performance is a hard thing and difficult to achieve. Actual user will not see any change done by the experts after the application deployment, So, I will start writing some articles on the Oracle performance tuning, required by any Application built on Oracle Database.
Most of issues of performance tuning will auto [...]]]></description>
			<content:encoded><![CDATA[<p>For many people, Oracle performance is a hard thing and difficult to achieve. Actual user will not see any change done by the experts after the application deployment, So, I will start writing some articles on the Oracle performance tuning, required by any Application built on Oracle Database.</p>
<p>Most of issues of performance tuning will auto resolved, if the database design is properly done.<br />
We will start with the database design improvements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itbvision.com/thinkora/?feed=rss2&amp;p=22</wfw:commentRss>
		</item>
		<item>
		<title>DBMS_METADATA Error</title>
		<link>http://www.itbvision.com/thinkora/?p=20</link>
		<comments>http://www.itbvision.com/thinkora/?p=20#comments</comments>
		<pubDate>Sun, 25 Jan 2009 06:45:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle database 9i-11g]]></category>

		<category><![CDATA[DBMS_METADATA Error]]></category>

		<category><![CDATA[ORA-06502]]></category>

		<category><![CDATA[ORA-06512]]></category>

		<guid isPermaLink="false">http://www.itbvision.com/thinkora/?p=20</guid>
		<description><![CDATA[Applies to: Oracle Server - Enterprise Edition - Version: 9.2.0.7 Information in this document applies to any platform. Goal#1. How to solve the following situation?
SQL&#62; select dbms_metadata.get_ddl(&#8217;TABLE&#8217;,&#8217;mytable&#8216;,&#8217;myuser&#8216;) from dual;
ORA-06502: PL/SQL: numeric or value error
LPX-00210: expected '&#60;' instead of 'n'
ORA-06512: at "SYS.UTL_XML", line 0
ORA-06512: at "SYS.DBMS_METADATA_INT", line 3688
ORA-06512: at "SYS.DBMS_METADATA_INT", line 4544
ORA-06512: at "SYS.DBMS_METADATA", line 466
ORA-06512: [...]]]></description>
			<content:encoded><![CDATA[<p>Applies to: Oracle Server - Enterprise Edition - Version: 9.2.0.7 Information in this document applies to any platform. Goal#1. How to solve the following situation?</p>
<p>SQL&gt; <strong>select dbms_metadata.get_ddl(&#8217;TABLE&#8217;,&#8217;<em>mytable</em>&#8216;,&#8217;<em>myuser</em>&#8216;) from dual;</strong></p>
<pre>ORA-06502: PL/SQL: numeric or value error
LPX-00210: expected '&lt;' instead of 'n'
ORA-06512: at "SYS.UTL_XML", line 0
ORA-06512: at "SYS.DBMS_METADATA_INT", line 3688
ORA-06512: at "SYS.DBMS_METADATA_INT", line 4544
ORA-06512: at "SYS.DBMS_METADATA", line 466
ORA-06512: at "SYS.DBMS_METADATA", line 629
ORA-06512: at "SYS.DBMS_METADATA", line 1246
ORA-06512: at line 1

Prior to 9.2.0.6, this situation is caused by:Bug.3361288 (80) AFTER
REGISTERING XML SCHEMA IN AL32UTF8 DATABASE, EXPORT FAILS WITH ORA-24324

The recommendations are documented in:

Note.279065.1 Ext/Mod Full Export of Database fails with EXP-00056 ORA-06502 ORA-31605 ORA-22921</pre>
<p>Solution#1. The solution is to reload the XML API:<br />
Step 1. SQL&gt; alter system enable restricted session;</p>
<p>No Body can login or start a new session while running the scripts</p>
<p>Step 2. run: (from $ORACLE_HOME/rdbms/admin):<br />
<strong>catnomet.sql<br />
rmxml.sql </strong><br />
to remove the xml subsystem</p>
<p>After that recreate it by running following scripts:<br />
<strong>catxml<br />
utlcxml.sql<br />
prvtcxml.plb<br />
catmet.sql </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itbvision.com/thinkora/?feed=rss2&amp;p=20</wfw:commentRss>
		</item>
		<item>
		<title>Close Oracle Report Engine</title>
		<link>http://www.itbvision.com/thinkora/?p=19</link>
		<comments>http://www.itbvision.com/thinkora/?p=19#comments</comments>
		<pubDate>Thu, 22 Jan 2009 11:27:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle Development]]></category>

		<guid isPermaLink="false">http://www.itbvision.com/thinkora/archives/19</guid>
		<description><![CDATA[In the Application development, during running the oracle report engine every time you run the report.
Below is the code to close the reporting engine, if required by the application.


 

&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
PROCEDURE close_rbe IS
  v_win_handle NUMBER;
  timer_id TIMER;
  
BEGIN
  v_win_handle := win_api_session.findAppwindow(&#8217;Reports Background Engine&#8217;, &#8216;rwrbe60.exe&#8217;, &#8216;WINDOW&#8217;, WIN_API.WINCLASS_REPORTSSERVER_V6, FALSE);
&#8211;  MESSAGE(TO_CHAR(v_win_handle), acknowledge);
 
  IF v_win_handle &#62; 0 THEN
    IF win_api_session.Find3rdPartyApp [...]]]></description>
			<content:encoded><![CDATA[<p>In the Application development, during running the oracle report engine every time you run the report.</p>
<p>Below is the code to close the reporting engine, if required by the application.</p>
<p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 10" /><meta name="Originator" content="Microsoft Word 10" /></p>
<link href="file:///C:%5CDOCUME%7E1%5Cshoaib.FNC%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List" /><!--[if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:Compatibility>    <w:BreakWrappedTables/>    <w:SnapToGridInCell/>    <w:WrapTextWithPunct/>    <w:UseAsianBreakRules/>   </w:Compatibility>   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>  </w:WordDocument> </xml><![endif]--><br />
<style><!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0pt; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --> </style>
<p><!--[if gte mso 10]></p>
<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0pt 5.4pt 0pt 5.4pt; 	mso-para-margin:0pt; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman";} </style>
<p> <![endif]--><!--[if gte mso 9]><xml>  <o:shapedefaults v:ext="edit" spidmax="1026"/> </xml><![endif]--><!--[if gte mso 9]><xml>  <o:shapelayout v:ext="edit">   <o:idmap v:ext="edit" data="1"/>  </o:shapelayout></xml><![endif]--></p>
<p class="MsoNormal"><strong><span style="font-size: 10pt; font-family: Arial">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
PROCEDURE close_rbe IS<o:p></o:p></span></strong></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>v_win_handle NUMBER;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>timer_id TIMER;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial">BEGIN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>v_win_handle := win_api_session.findAppwindow(&#8217;Reports Background Engine&#8217;, &#8216;rwrbe60.exe&#8217;, &#8216;WINDOW&#8217;, WIN_API.WINCLASS_REPORTSSERVER_V6, FALSE);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial">&#8211;<span>  </span>MESSAGE(TO_CHAR(v_win_handle), acknowledge);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>IF v_win_handle &gt; 0 THEN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>    </span>IF win_api_session.Find3rdPartyApp (&#8217;Reports Background Engine&#8217;, &#8216;rwrbe60.exe&#8217;, &#8216;WINDOW&#8217;, TRUE, WIN_API.WINCLASS_REPORTSSERVER_V6, FALSE) THEN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>      </span>win_api_shell.sendkeys(v_win_handle, &#8216;%{F4}&#8217;, true);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>    </span>END IF; <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>END IF;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>timer_id := Find_Timer(&#8217;Delay&#8217;);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>IF NOT Id_Null(timer_id) THEN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span><span>          </span>Delete_Timer(timer_id);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>END IF;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial"><span>  </span>timer_id := CREATE_TIMER(&#8217;Delay&#8217;, 100, NO_REPEAT); <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Arial">END;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<o:p></o:p></span></p>
<p>step2: call  this procedure in the application to close oracle background reporting engine.<br />
make sure, your application has such requirements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itbvision.com/thinkora/?feed=rss2&amp;p=19</wfw:commentRss>
		</item>
		<item>
		<title>Oracle 10g/11g  OCA Preparation Guidelines</title>
		<link>http://www.itbvision.com/thinkora/?p=17</link>
		<comments>http://www.itbvision.com/thinkora/?p=17#comments</comments>
		<pubDate>Mon, 13 Oct 2008 05:16:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[OCP Preparation]]></category>

		<category><![CDATA[OCA Preparation]]></category>

		<category><![CDATA[Oracle certification]]></category>

		<category><![CDATA[Roadmap to OCP]]></category>

		<guid isPermaLink="false">http://www.itbvision.com/thinkora/archives/17</guid>
		<description><![CDATA[The road map which help the people who are looking for Oracle 1og and 11g Certification exam, where to start.
What are the required steps for getting certified?
1. Select a track
2. Prepare for the test
3. Schedule the test
1. Select the track
Oracle Database Administrator:

Oracle 11g (OCA, OCP, OCM)
Oracle 10g DBA (OCA, OCP, OCM)
Oracle 9i DBA� (OCA, OCP, [...]]]></description>
			<content:encoded><![CDATA[<p>The road map which help the people who are looking for Oracle 1og and 11g Certification exam, where to start.</p>
<p><em>What are the required steps for getting certified?</em></p>
<p>1. Select a track<br />
2. Prepare for the test<br />
3. Schedule the test</p>
<p><strong>1. Select the track</strong></p>
<p>Oracle Database Administrator:</p>
<ul>
<li>Oracle 11g (OCA, OCP, OCM)</li>
<li>Oracle 10g DBA (OCA, OCP, OCM)</li>
<li>Oracle 9i DBA� (OCA, OCP, OCM)</li>
</ul>
<p>Oracle 9i or 10g Forms Developer:</p>
<ul>
<li>Oracle PL/SQL Developer Certified Associate</li>
<li>Oracle Forms Developer Certified Professional</li>
</ul>
<p>For the complete list, follow the Oracle university website and check where you fit in. <a href="http://www.oracle.com/education/certification/index.html?starthere.html">http://www.oracle.com/education/certification/index.html?starthere.html</a></p>
<p>For Oracle 11g OCA, only two exams are required:</p>
<p>1. 1Z0-051 Oracle Database 11<em>g</em>: SQL Fundamentals I<br />
or<br />
1Z0-047 Oracle Database SQL Expert</p>
<p>2. 1Z0-052  Oracle Database 11<em>g</em>: Administration I</p>
<p><strong>2. Prepare for the test.</strong></p>
<p>Recommended Ref. Oracle Books</p>
<ul>
<li> Oracle Database 10g OCP Certification All-In-One Exam Guide</li>
</ul>
<ul>
<li> Sybex.Inc.OCA.Oracle.10g.Administration.I</li>
</ul>
<ul>
<li> Oracle.Database.10g.Administration.Workshop.I (from Oracle University)</li>
</ul>
<p>Read the Oracle Documentation Guides</p>
<ul>
<li>  10g Concepts</li>
<li>  10g DB Admin Guide</li>
</ul>
<p>(Download from Oracle full documentation <a href="http://tahiti.oracle.com">http://tahiti.oracle.com</a>)</p>
<p>Practice test</p>
<ul>
<li> Self-Test Software (250-300 questions)</li>
</ul>
<p><a href="http://www.selftestsoftware.com">http://www.selftestsoftware.com</a>.</p>
<p><strong>3. Schedule the test.</strong></p>
<ul>
<li>Check your nearest Sylvan Prometric testing center</li>
</ul>
<p><a href="http://www.prometric.com">http://www.prometric.com</a></p>
<p>For more details and any questions, you can reach me at <a href="mailto:shoaib@aezones.com">shoaib@aezones.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itbvision.com/thinkora/?feed=rss2&amp;p=17</wfw:commentRss>
		</item>
	</channel>
</rss>
