<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CEIBSXg7eip7ImA9WhRUFko.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315</id><updated>2012-01-27T19:25:58.602+05:30</updated><category term="1Z0-007" /><category term="Tuning" /><category term="FAQ" /><category term="Download" /><category term="SQL" /><category term="SQL *Plus" /><category term="HOW-To?" /><category term="1Z0-001" /><category term="Test yourself" /><category term="Tutorial" /><category term="Interview Questions" /><category term="Security" /><category term="Export Utility" /><category term="1Z0-132" /><category term="10g vs 11g" /><category term="OS Level" /><category term="Application Server" /><category term="Mini Tip" /><category term="Oracle Database 11g" /><category term="Oracle Universal Installer" /><category term="Database design" /><category term="Oracle XE" /><category term="Synonyms" /><category term="Scripts" /><category term="FRM-Errors" /><category term="Forms" /><category term="Query" /><category term="Examples" /><category term="Book Review" /><category term="ORA-Errors" /><category term="Oracle Database Lite" /><category term="OCP" /><category term="Reports" /><category term="Certification" /><category term="PL-SQL" /><category term="Troubleshooting" /><category term="Theoretical" /><category term="Migration" /><category term="1Z0-047" /><category term="Oracle SQL Developer Data Modeler" /><category term="XML" /><category term="Oracle 11g" /><category term="Tips" /><category term="MS-SQL vs Oracle" /><category term="Features" /><category term="SQL Developer" /><category term="DB Administration" /><category term="1Z0-131" /><category term="Tools" /><category term="JInitiator" /><category term="Tool Review" /><category term="Deprecated" /><category term="Oracle Packages" /><category term="1Z0-051" /><category term="Utilities" /><category term="1Z0-101" /><title>Ask Anantha</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://askanantha.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>192</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/AskAnantha" /><feedburner:info uri="askanantha" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><thespringbox:skin xmlns:thespringbox="http://www.thespringbox.com/dtds/thespringbox-1.0.dtd">http://feeds.feedburner.com/AskAnantha?format=skin</thespringbox:skin><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/2.0/" /><feedburner:emailServiceId>AskAnantha</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;AkYBSHczeip7ImA9WhRRFU0.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-6776465221707080790</id><published>2011-11-29T00:52:00.000+05:30</published><updated>2011-11-29T00:52:39.982+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-29T00:52:39.982+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial" /><title>What is SQL Injection?</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/f4UQi8uUZoHF8AHYaFXkuozKCBY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/f4UQi8uUZoHF8AHYaFXkuozKCBY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/f4UQi8uUZoHF8AHYaFXkuozKCBY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/f4UQi8uUZoHF8AHYaFXkuozKCBY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;SQL Injection as the name suggests is injecting arbitrary SQL commands or clauses into an executing program to defeat its purpose.&lt;br /&gt;
&lt;br /&gt;
Why does one inject SQL commands to defeat the purpose of a procedure. The answer is 'hackers'. Hackers are always looking for easy preys to steal another ones information. In this age of Information Technology, unnoticed stealing is for information. The information thus gathered can be consolidated by an experienced hacker and cause 'hell lot of trouble'.&lt;br /&gt;
&lt;br /&gt;
Now as we are clear of the intentions of defeating a program, we will understand the simple types of SQL Injection which are very well-known.&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;&lt;li&gt;First Order Attack&lt;/li&gt;
&lt;li&gt;Second Order Attack&lt;/li&gt;
&lt;li&gt;Lateral Injection&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;b&gt;First Order Attack&lt;/b&gt; is caused when a hacker simply modifies the string passed to a procedure and adds a malicious string to make the program work even if without valid data.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;For example consider the following code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;create table users (username varchar2(20), password varchar2(20));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;insert into users values('Anantha','111111');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;commit;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;create or replace function get_cnt (qry in varchar2) return number is&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; lv_cnt number;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;begin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; execute immediate qry into lv_cnt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; return lv_cnt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;end;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;begin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; if get_cnt('select count(1) from users where username=''Anantha''&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and password=''111111''') = 0 then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; dbms_output.put_line('Invalid Credentials');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; dbms_output.put_line('Valid Credentials');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; end if;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;end;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;In the above example an inexperienced programmer has written a procedure that accepts a string for a query. He has also written an EXECUTE IMMEDIATE which executes the query and returns the count of records (His assumptions are that the query will have a single select list with COUNT(1) in it.&amp;nbsp;The values for username and password, say are being captured from front-end and modified in the string.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;It seems fair enough until the hacker injects a ALL-SUCCESS where clause to the password field. The hacker simply types &lt;b&gt;222' OR 1=1&lt;/b&gt; in the password field. The resulting string passed to the procedure will be of the following form:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;begin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; if get_cnt('select count(1) from users where username=''Anantha''&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and password=''222&lt;b&gt;'' OR 1=1&lt;/b&gt;') = 0 then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; dbms_output.put_line('Invalid Credentials');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; dbms_output.put_line('Valid Credentials');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; end if;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;end;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;/&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The procedure has been defeated. Now imagine a procedure safe-guarding your application. Isn't this a nightmare?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;How do we defend such simple attacks? The inexperienced programmer has now some experience and rewrites his procedure as follows:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;create or replace procedure validate_user(uname in users.username%type, pwd in users.password%type) is&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; lv_cnt number;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;begin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; select count(1) into lv_cnt from users u where u.username=uname and u.password=pwd;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; if lv_cnt = 0 then dbms_output.put_line('Invalid credentials');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; else dbms_output.put_line('Valid credentials');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; end if;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;end;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now what if the hacker attacks again? The procedure code will be like:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;begin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp; validate_user('Anantha','222'' OR 1=1');&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;end;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;But the output always defeat the hacker's purpose of defeating the logic. How come this did not work in favor of the hacker. Because Oracle is intelligent enough to understand/bind value to a variable when already the query is known. The late binding of variable to the column does not allow the hacker to get his success.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The moral learnt is when using EXECUTE IMMEDIATE or similar query when it has been framed by the programe, always test it thoroughly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Next issue, Second Order Attack.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-6776465221707080790?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=7VNXZaBwZ1Y:-kcI3QMKNBs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=7VNXZaBwZ1Y:-kcI3QMKNBs:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=7VNXZaBwZ1Y:-kcI3QMKNBs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=7VNXZaBwZ1Y:-kcI3QMKNBs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=7VNXZaBwZ1Y:-kcI3QMKNBs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/7VNXZaBwZ1Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/6776465221707080790/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/11/what-is-sql-injection.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6776465221707080790?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6776465221707080790?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/7VNXZaBwZ1Y/what-is-sql-injection.html" title="What is SQL Injection?" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/11/what-is-sql-injection.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcAR34-fip7ImA9WhRRFEw.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-1400734083895176415</id><published>2011-11-27T22:10:00.001+05:30</published><updated>2011-11-27T22:10:46.056+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-27T22:10:46.056+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="Features" /><title>PL/SQL Server Pages or PSP</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MCeqPU2XXWTJ9tx_HC6udlQQMss/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MCeqPU2XXWTJ9tx_HC6udlQQMss/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MCeqPU2XXWTJ9tx_HC6udlQQMss/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MCeqPU2XXWTJ9tx_HC6udlQQMss/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Have you heard of JSP?&lt;/li&gt;
&lt;li&gt;Have you heard of ASP?&lt;/li&gt;
&lt;li&gt;Have you heard of PHP?&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;Of course I have heard of them all. They all does one function, generate web pages dynamically to deliver a nice and rich front-end to the web.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;But Have you heard of PSP? What?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;PSP is acronym for Oracle's PL/SQL Server Pages. Oracle has this kind of capability? Well Oracle always has this sort of capability but it was called in a rather different name. It was and is called PL/SQL Web Toolkit.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;But rather unknown or less used fact is Oracle also has an extension to this. This is called as PSP. I have created a &lt;b&gt;whitepaper&lt;/b&gt; which is here for you to read:&lt;/div&gt;&lt;br /&gt;
&lt;iframe frameborder="0" height="451" src="https://docs.google.com/present/embed?id=dghc5tdj_3918hbjpvchj&amp;amp;size=m" width="555"&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
For those who are unable to view the presentation in this web page or to view in Full screen, &lt;a href="https://docs.google.com/present/view?id=dghc5tdj_3918hbjpvchj" target="_blank"&gt;click here&lt;/a&gt;.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-1400734083895176415?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NMPl3z9eoyc:DUk7b9FXuPI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NMPl3z9eoyc:DUk7b9FXuPI:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NMPl3z9eoyc:DUk7b9FXuPI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NMPl3z9eoyc:DUk7b9FXuPI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NMPl3z9eoyc:DUk7b9FXuPI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/NMPl3z9eoyc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/1400734083895176415/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/11/plsql-server-pages-or-psp.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/1400734083895176415?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/1400734083895176415?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/NMPl3z9eoyc/plsql-server-pages-or-psp.html" title="PL/SQL Server Pages or PSP" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/11/plsql-server-pages-or-psp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcDSX89fip7ImA9WhRTEkg.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-473445146095710804</id><published>2011-11-02T22:44:00.000+05:30</published><updated>2011-11-02T22:44:38.166+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-02T22:44:38.166+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Features" /><category scheme="http://www.blogger.com/atom/ns#" term="Tips" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>Remove leading space in to_char</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SHyWUtD1HJFvcW-uTuTmGIJUwRQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SHyWUtD1HJFvcW-uTuTmGIJUwRQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SHyWUtD1HJFvcW-uTuTmGIJUwRQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SHyWUtD1HJFvcW-uTuTmGIJUwRQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;One point which is usually overseen with the usage of TO_CHAR() is the leading space that it returns when converting a &lt;i&gt;number to character&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;select length(to_char('109','000.00')) from dual;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;TO_CHAR('109','000.00')&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;" 109.00"&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Do you notice the leading space that TO_CHAR() has returned? If you have not noticed and surprised, execute this and find it for yourself.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;i&gt;This is not a bug.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;u&gt;&lt;b&gt;The Reason&lt;/b&gt;&lt;/u&gt; is Oracle reserves the first character for Sign. If you won't beleive me, execute the following statement:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;select to_char('-109','000.00') from dual;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;TO_CHAR('-109','000.00')&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;"-109.00"&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Notice that the length of the string has not increased with the negative value being converted by TO_CHAR().&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Hold on your tendency of calling TRIM() function to trim out the space. TO_CHAR() has a format model that suppresses this trailing space.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div&gt;To suppress this leading space simply use the &lt;b&gt;&lt;u&gt;FM (stands for Fill Mode)&lt;/u&gt;&lt;/b&gt; in your format string.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;select to_char('109','fm000.00') from dual;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;TO_CHAR('109','fm000.00')&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;"109.00"&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;In case you don't need any specific format for the string, but just to ignore the trailing space, use the &lt;b&gt;&lt;u&gt;TM (stands for Text Minimum)&lt;/u&gt;&lt;/b&gt; in your format string.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;select to_char('109.90','tm') from dual;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;TO_CHAR('109','tm')&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;"109"&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Further Reading: &lt;a href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:491846600346676782" target="_blank"&gt;Ask Tom&lt;/a&gt;, &lt;a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements004.htm#BABDAEDF" target="_blank"&gt;Oracle Documentation for Format Models&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-473445146095710804?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ppizlyCk4No:3rBH7cxgK3w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ppizlyCk4No:3rBH7cxgK3w:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ppizlyCk4No:3rBH7cxgK3w:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ppizlyCk4No:3rBH7cxgK3w:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ppizlyCk4No:3rBH7cxgK3w:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/ppizlyCk4No" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/473445146095710804/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/11/remove-leading-space-in-tochar.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/473445146095710804?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/473445146095710804?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/ppizlyCk4No/remove-leading-space-in-tochar.html" title="Remove leading space in to_char" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/11/remove-leading-space-in-tochar.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMBRnw5fip7ImA9WhdUEUQ.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-889645877710127871</id><published>2011-09-28T12:34:00.000+05:30</published><updated>2011-09-28T12:34:17.226+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-28T12:34:17.226+05:30</app:edited><title>Difference between two timestamp in seconds</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/W6TM0IRvtyisx6MqHzzm3elS9IM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W6TM0IRvtyisx6MqHzzm3elS9IM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/W6TM0IRvtyisx6MqHzzm3elS9IM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W6TM0IRvtyisx6MqHzzm3elS9IM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Question: How can I get difference between two timestamp variables in seconds in Oracle?&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Answer: Use interval datatype to store the difference. Example code is below.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;DECLARE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; l_start_time TIMESTAMP;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; l_end_time &amp;nbsp; TIMESTAMP;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; l_sec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INTERVAL DAY(9) TO SECOND(6);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; l_start_time := systimestamp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; FOR i IN 1 .. 100000 LOOP&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; NULL;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; END LOOP;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; l_end_time := systimestamp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; l_sec := l_end_time - l_start_time;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; dbms_output.put_line('Seconds past=' || abs(extract(SECOND FROM l_sec) + extract(minute FROM l_sec) * 60 + extract(hour FROM l_sec) * 60 * 60 + extract(DAY FROM l_sec) * 24 * 60 * 60));&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: 'Courier New', Courier, monospace;"&gt;END;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Output is:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Seconds past=.001144&lt;/span&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-889645877710127871?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ywAL0mILTdQ:QNs1JxSe7Dg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ywAL0mILTdQ:QNs1JxSe7Dg:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ywAL0mILTdQ:QNs1JxSe7Dg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ywAL0mILTdQ:QNs1JxSe7Dg:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ywAL0mILTdQ:QNs1JxSe7Dg:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/ywAL0mILTdQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/889645877710127871/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/09/difference-between-two-timestamp-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/889645877710127871?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/889645877710127871?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/ywAL0mILTdQ/difference-between-two-timestamp-in.html" title="Difference between two timestamp in seconds" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/09/difference-between-two-timestamp-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YNSXw9fSp7ImA9WhdVEkg.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-1691101448211840706</id><published>2011-09-17T14:49:00.001+05:30</published><updated>2011-09-17T14:49:58.265+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-17T14:49:58.265+05:30</app:edited><title>Oracle XE - Ubuntu - Solution to 'cannot access http://127.0.0.1:8080/apex'</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FigLzVocJSsVN74alXzvwtXPQSs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FigLzVocJSsVN74alXzvwtXPQSs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FigLzVocJSsVN74alXzvwtXPQSs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FigLzVocJSsVN74alXzvwtXPQSs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
I received some queries lately from various users regarding unable to open page http://localhost:8081/apex or http://127.0.0.1:8081/apex.&lt;br /&gt;
&lt;br /&gt;
The linux environment reported was Ubuntu and here is how to solve this error:&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Open command prompt and execute the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;sudo /etc/init.d/oracle-xe force-reload&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This command will reload the database and settings. (If you are using SQL Plus session connection with database be sure to save all your data as the above command will restart the database.)&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-1691101448211840706?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ysIkFxzg3V4:PltkjrklRwQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ysIkFxzg3V4:PltkjrklRwQ:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ysIkFxzg3V4:PltkjrklRwQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ysIkFxzg3V4:PltkjrklRwQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ysIkFxzg3V4:PltkjrklRwQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/ysIkFxzg3V4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/1691101448211840706/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/09/oracle-xe-ubuntu-solution-to-cannot.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/1691101448211840706?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/1691101448211840706?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/ysIkFxzg3V4/oracle-xe-ubuntu-solution-to-cannot.html" title="Oracle XE - Ubuntu - Solution to 'cannot access http://127.0.0.1:8080/apex'" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/09/oracle-xe-ubuntu-solution-to-cannot.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEAMQ3szeSp7ImA9WhZUFk0.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-8518460991837878243</id><published>2011-06-09T12:29:00.002+05:30</published><updated>2011-06-09T12:29:42.581+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-09T12:29:42.581+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="HOW-To?" /><title>How to import a Java Jar to Oracle Forms</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NSiZtWi7WGOMt6b0uqZRfDeUUUw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NSiZtWi7WGOMt6b0uqZRfDeUUUw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NSiZtWi7WGOMt6b0uqZRfDeUUUw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NSiZtWi7WGOMt6b0uqZRfDeUUUw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
The steps involved are simple as below:&lt;br /&gt;
&lt;br /&gt;
1. Save the jar file where forms jar files are saved&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Usually {FormsInstalledPath}\forms\java folder&lt;br /&gt;
&lt;br /&gt;
2. Open Registry editor (REGEDIT)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Browse to the following Key&lt;br /&gt;
&amp;nbsp; &amp;nbsp;HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/KEY_DevSuiteHome1&lt;br /&gt;
&lt;br /&gt;
3. Add Java archive name in the Name FORMS_BUILDER_CLASSPATH&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
4. Now open Form Builder and create new form.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Open Menu Program &amp;gt; Import Java Classes and find your java class added and Import.&lt;br /&gt;
&lt;br /&gt;
Enjoy&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-8518460991837878243?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=TGzhJ4MK-QM:R3XcqXZOV-Q:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=TGzhJ4MK-QM:R3XcqXZOV-Q:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=TGzhJ4MK-QM:R3XcqXZOV-Q:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=TGzhJ4MK-QM:R3XcqXZOV-Q:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=TGzhJ4MK-QM:R3XcqXZOV-Q:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/TGzhJ4MK-QM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/8518460991837878243/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/06/how-to-import-java-jar-to-oracle-forms.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/8518460991837878243?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/8518460991837878243?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/TGzhJ4MK-QM/how-to-import-java-jar-to-oracle-forms.html" title="How to import a Java Jar to Oracle Forms" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/06/how-to-import-java-jar-to-oracle-forms.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IHRn45cCp7ImA9WhZUEE0.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-6281956000927326682</id><published>2011-06-02T13:28:00.000+05:30</published><updated>2011-06-02T13:28:57.028+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-02T13:28:57.028+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Query" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>CSV data to multiple rows - Oracle Query</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u8neqlIpfez6y4hqjLdKTFkLz_c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u8neqlIpfez6y4hqjLdKTFkLz_c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/u8neqlIpfez6y4hqjLdKTFkLz_c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u8neqlIpfez6y4hqjLdKTFkLz_c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I have a data in CSV format (comma separated values) like follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;first,second,third,fourth,fifth&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I want the output as follows:&lt;br /&gt;
&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;column_value&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;first&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;second&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;third&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;fourth&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;fifth&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;The easiest way to achieve is to use a CONNECT BY clause in DUAL table and to populate the results. Here is the query:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SELECT &lt;/span&gt;substr(str, instr(str, ',', 1, LEVEL) + 1, instr(str, ',', 1, LEVEL + 1) - instr(str, ',', 1, LEVEL) - 1) column_value&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;FROM &amp;nbsp; &lt;/span&gt;(&lt;span class="Apple-style-span" style="color: blue;"&gt;SELECT &lt;/span&gt;',' || '&amp;amp;mystring' || ',' str&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;FROM&amp;nbsp;&lt;/span&gt;dual)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CONNECT BY &lt;/span&gt;LEVEL &amp;lt;= length(str) - length(REPLACE(str, ',')) - 1;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit; font-size: x-small;"&gt;Pass value&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;first,second,third,fourth,fifth &lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;to &lt;b&gt;mystring.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-6281956000927326682?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=1KOpkAqQ8rA:OXg-Z-OdALs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=1KOpkAqQ8rA:OXg-Z-OdALs:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=1KOpkAqQ8rA:OXg-Z-OdALs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=1KOpkAqQ8rA:OXg-Z-OdALs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=1KOpkAqQ8rA:OXg-Z-OdALs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/1KOpkAqQ8rA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/6281956000927326682/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/06/csv-data-to-multiple-rows-oracle-query.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6281956000927326682?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6281956000927326682?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/1KOpkAqQ8rA/csv-data-to-multiple-rows-oracle-query.html" title="CSV data to multiple rows - Oracle Query" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/06/csv-data-to-multiple-rows-oracle-query.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMMR3g9eyp7ImA9Wx9aEUg.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-73727337368982532</id><published>2011-03-03T18:51:00.000+05:30</published><updated>2011-03-03T18:51:26.663+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-03T18:51:26.663+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Database 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="Features" /><category scheme="http://www.blogger.com/atom/ns#" term="PL-SQL" /><title>11g New Feature - SIMPLE_INTEGER</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/04qiuysdiLXqe_TKeHSmaOdFFm0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/04qiuysdiLXqe_TKeHSmaOdFFm0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/04qiuysdiLXqe_TKeHSmaOdFFm0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/04qiuysdiLXqe_TKeHSmaOdFFm0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Prior to Oracle 11g, we have used PLS_INTEGER data type in PL/SQL programs. In 11g, a new data type SIMPLE_INTEGER has been introduced. It is a sub-type of PLS_INTEGER data type and has the same range as PLS_INTEGER. &lt;br /&gt;
&lt;br /&gt;
The basic difference between the two is that SIMPLE_INTEGER is always &lt;strong&gt;NOT NULL&lt;/strong&gt;. When the value of the declared variable is never going to be null then we can declare it with SIMPLE_INTEGER data type. &lt;br /&gt;
&lt;br /&gt;
Another major difference is that it never gives &lt;strong&gt;numeric overflow error&lt;/strong&gt; like its parent data type instead it wraps around without giving any error. When we don’t have to worry about null checking and overflow errors, SIMPLE_INTEGER data type is the best to use.&lt;br /&gt;
&lt;br /&gt;
Posted by &lt;a href="http://decipherinfosys.wordpress.com/2008/03/13/a-new-data-type-in-oracle-11g-simple_integer/" target="_blank"&gt;decipherinfosys&lt;/a&gt;, More information check &lt;a href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/datatypes.htm#CIHGBFGB" target="_blank"&gt;Oracle Documentation&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-73727337368982532?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=PRAiBcEbqOE:JUqj1UjJsA8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=PRAiBcEbqOE:JUqj1UjJsA8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=PRAiBcEbqOE:JUqj1UjJsA8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=PRAiBcEbqOE:JUqj1UjJsA8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=PRAiBcEbqOE:JUqj1UjJsA8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/PRAiBcEbqOE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/73727337368982532/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/03/11g-new-feature-simpleinteger.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/73727337368982532?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/73727337368982532?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/PRAiBcEbqOE/11g-new-feature-simpleinteger.html" title="11g New Feature - SIMPLE_INTEGER" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/03/11g-new-feature-simpleinteger.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcBRXY5eCp7ImA9Wx9bFUg.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-6007676634649682967</id><published>2011-02-24T19:47:00.000+05:30</published><updated>2011-02-24T19:47:34.820+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-02-24T19:47:34.820+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tools" /><category scheme="http://www.blogger.com/atom/ns#" term="Tool Review" /><title>Load CSV data to Oracle or other databases</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/P94b1Hwy_nFHdgTvoat4ZPp_WjQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/P94b1Hwy_nFHdgTvoat4ZPp_WjQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/P94b1Hwy_nFHdgTvoat4ZPp_WjQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/P94b1Hwy_nFHdgTvoat4ZPp_WjQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
This time it is a review of a product which is freely available for download. The CSV Loader. It is a Java Application that can load data to databases such as Oracle, MySQL and PostgreSQL databases. The software is available for download here &lt;a href="http://sourceforge.net/projects/csvloader/"&gt;http://sourceforge.net/projects/csvloader/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The installation instructions are also available through this website &lt;a href="http://csvloader.sourceforge.net/"&gt;http://csvloader.sourceforge.net/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
What makes this tool unique is its integration with SunGard Banner software. It is a big replacement for SQL Loader provided by Oracle. You can either use its interface to specify the tables in which the data needs to be imported or pretty advanced mode where you can edit the configuration file and upload the details.&lt;br /&gt;
&lt;br /&gt;
I loved the tool, and in initial attempt loaded about 1000s of records to a table. I as a developer became free to use the data to load it to appropriate tables.&lt;br /&gt;
&lt;br /&gt;
I give a cool 4.5 star rating out of 5 for this tool. I reserve 0.5 points for little user-interface difficulties which prevent me from specifying the target table/column easily. I had to type the schema and table name each time, and then select the column.&lt;br /&gt;
&lt;br /&gt;
From its interface it looks like target table can be multiple, have not tested it. Anyone interested in knowing more, I am happy to help.&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-6007676634649682967?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=oMIXlpSA59o:ktCFx0RZV44:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=oMIXlpSA59o:ktCFx0RZV44:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=oMIXlpSA59o:ktCFx0RZV44:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=oMIXlpSA59o:ktCFx0RZV44:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=oMIXlpSA59o:ktCFx0RZV44:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/oMIXlpSA59o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/6007676634649682967/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/02/load-csv-data-to-oracle-or-other.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6007676634649682967?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6007676634649682967?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/oMIXlpSA59o/load-csv-data-to-oracle-or-other.html" title="Load CSV data to Oracle or other databases" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/02/load-csv-data-to-oracle-or-other.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08ARXo9eCp7ImA9Wx9XF08.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-8418662860164301161</id><published>2011-01-11T11:33:00.001+05:30</published><updated>2011-01-11T11:34:04.460+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-11T11:34:04.460+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Database 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="Features" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="Examples" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>Virtual Columns in Oracle Database 11g Release 1</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bUudpouHj398pjhnV68Dh1mZb74/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bUudpouHj398pjhnV68Dh1mZb74/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bUudpouHj398pjhnV68Dh1mZb74/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bUudpouHj398pjhnV68Dh1mZb74/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre-wrap;"&gt;Virtual Columns has been introduced in Oracle Database 11g Release 1. Here is a good tutorial I could find from Oracle-Base website. The link for the tutorial is at the bottom of this article. - Anantha&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre-wrap;"&gt;When queried, virtual columns appear to be normal table columns, but their values are derived rather than being stored on disc. The syntax for defining a virtual column is listed below.&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;tbody&gt;
&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #cccccc; border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: x-small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;column_name [datatype] [GENERATED ALWAYS] AS (expression) [VIRTUAL]&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre-wrap;"&gt;If the datatype is omitted, it is determined based on the result of the expression. The GENERATED ALWAYS and VIRTUAL keywords are provided for clarity only. &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre-wrap;"&gt;The script below creates and populates an employees table with two levels of commission. It includes two virtual columns to display the commission-based salary. The first uses the most abbreviated syntax while the second uses the most verbose form.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;tbody&gt;
&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #cccccc; border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;CREATE TABLE employees (&lt;br class="kix-line-break" /&gt; &amp;nbsp;id &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NUMBER,&lt;br class="kix-line-break" /&gt; &amp;nbsp;first_name &amp;nbsp;VARCHAR2(10),&lt;br class="kix-line-break" /&gt; &amp;nbsp;last_name &amp;nbsp;&amp;nbsp;VARCHAR2(10),&lt;br class="kix-line-break" /&gt; &amp;nbsp;salary &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NUMBER(9,2),&lt;br class="kix-line-break" /&gt; &amp;nbsp;comm1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NUMBER(3),&lt;br class="kix-line-break" /&gt; &amp;nbsp;comm2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NUMBER(3),&lt;br class="kix-line-break" /&gt; &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;salary1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AS (ROUND(salary*(1+comm1/100),2)),&lt;br class="kix-line-break" /&gt; &amp;nbsp;salary2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NUMBER GENERATED ALWAYS AS (ROUND(salary*(1+comm2/100),2)) VIRTUAL,&lt;br class="kix-line-break" /&gt; &amp;nbsp;CONSTRAINT employees_pk PRIMARY KEY (id)&lt;br class="kix-line-break" /&gt;);&lt;br class="kix-line-break" /&gt;&lt;br class="kix-line-break" /&gt;INSERT INTO employees (id, first_name, last_name, salary, comm1, comm2)&lt;br class="kix-line-break" /&gt;VALUES (1, 'JOHN', 'DOE', 100, 5, 10);&lt;br class="kix-line-break" /&gt;&lt;br class="kix-line-break" /&gt;INSERT INTO employees (id, first_name, last_name, salary, comm1, comm2)&lt;br class="kix-line-break" /&gt;VALUES (2, 'JAYNE', 'DOE', 200, 10, 20);&lt;br class="kix-line-break" /&gt;COMMIT;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre-wrap;"&gt;Querying the table shows the inserted data plus the derived commission-based salaries.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 9pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;tbody&gt;
&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #cccccc; border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: xx-small; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;SELECT * FROM employees;&lt;br class="kix-line-break" /&gt;&lt;br class="kix-line-break" /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ID FIRST_NAME LAST_NAME &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SALARY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;COMM1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;COMM2 &amp;nbsp;&amp;nbsp;&amp;nbsp;SALARY1 &amp;nbsp;&amp;nbsp;&amp;nbsp;SALARY2&lt;br class="kix-line-break" /&gt;---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------&lt;br class="kix-line-break" /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1 JOHN &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DOE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;100 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;105 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;110&lt;br class="kix-line-break" /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 JAYNE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DOE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;200 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;20 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;220 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;240&lt;br class="kix-line-break" /&gt;&lt;br class="kix-line-break" /&gt;2 rows selected.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px; white-space: pre-wrap;"&gt;The expression used to generate the virtual column is listed in the DATA_DEFAULT column of the &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;[DBA | ALL | USER]_TAB_COLUMNS views.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;tbody&gt;
&lt;tr style="height: 0px;"&gt;&lt;td style="background-color: #cccccc; border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="background-color: transparent; color: black; font-family: 'Courier New'; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;COLUMN data_default FORMAT A50&lt;br class="kix-line-break" /&gt;SELECT column_name, data_default&lt;br class="kix-line-break" /&gt;FROM &amp;nbsp;&amp;nbsp;user_tab_columns&lt;br class="kix-line-break" /&gt;WHERE &amp;nbsp;table_name = 'EMPLOYEES';&lt;br class="kix-line-break" /&gt;&lt;br class="kix-line-break" /&gt;COLUMN_NAME &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATA_DEFAULT&lt;br class="kix-line-break" /&gt;------------------------------ --------------------------------------------------&lt;br class="kix-line-break" /&gt;ID&lt;br class="kix-line-break" /&gt;FIRST_NAME&lt;br class="kix-line-break" /&gt;LAST_NAME&lt;br class="kix-line-break" /&gt;SALARY&lt;br class="kix-line-break" /&gt;COMM1&lt;br class="kix-line-break" /&gt;COMM2&lt;br class="kix-line-break" /&gt;SALARY1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ROUND("SALARY"*(1+"COMM1"/100),2)&lt;br class="kix-line-break" /&gt;SALARY2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ROUND("SALARY"*(1+"COMM2"/100),2)&lt;br class="kix-line-break" /&gt;&lt;br class="kix-line-break" /&gt;8 rows selected.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: xx-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Notes and restrictions on virtual columns include:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Indexes defined against virtual columns are equivalent to function-based indexes.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Virtual columns can be referenced in the WHERE clause of updates and deletes, but they cannot be manipulated by DML.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Tables containing virtual columns can still be eligible for result caching.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Functions in expressions must be deterministic at the time of table creation, but can subsequently be recompiled and made non-deterministic without invalidating the virtual column. In such cases the following steps must be taken after the function is recompiled:&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Constraint on the virtual column must be disabled and re-enabled.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Indexes on the virtual column must be rebuilt.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Materialized views that access the virtual column must be fully refreshed.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;The result cache must be flushed if cached queries have accessed the virtual column.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Table statistics must be regathered.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Virtual columns are not supported for index-organized, external, object, cluster, or temporary tables.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;The expression used in the virtual column definition has the following restrictions:&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;It cannot refer to another virtual column by name.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;It can only refer to columns defined in the same table.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;If it refers to a deterministic user-defined function, it cannot be used as a partitioning key column.&lt;/span&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 13pt; font-style: normal; font-weight: normal; list-style-type: circle; text-decoration: none; vertical-align: baseline;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;The output of the expression must be a scalar value. It cannot return an Oracle supplied datatype, a user-defined type, or LOB or LONG RAW.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Here is an example of &lt;/span&gt;&lt;a href="http://www.oracle-base.com/articles/11g/PartitioningEnhancements_11gR1.php#virtual_column_based_partitioning"&gt;&lt;span style="background-color: transparent; color: #666699; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;Virtual Column-Based Partitioning&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;For more information see:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;a href="http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_7002.htm"&gt;&lt;span style="background-color: transparent; color: #666699; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;CREATE TABLE&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"&gt;&lt;a href="http://www.oracle-base.com/articles/11g/PartitioningEnhancements_11gR1.php#virtual_column_based_partitioning"&gt;&lt;span style="background-color: transparent; color: #666699; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;Virtual Column-Based Partitioning&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"&gt;Brought to you from&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;a href="http://www.oracle-base.com/articles/11g/VirtualColumns_11gR1.php" target="_blank"&gt;&lt;img height="43px;" src="https://lh6.googleusercontent.com/W404yfladwoAjI3mcxzxfcRrz6xEF54yW8Mq8lCWDu1ugZpagowO_CiwjZAk8SJH7nMw7n0cYHbpss6YwDvznmbP44b1z-Z38ktYLG1KLZrBMlBzXQc" width="243px;" /&gt;&lt;/a&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-8418662860164301161?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=h8M1vMBJ0Oo:lk7UU_Dg1KI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=h8M1vMBJ0Oo:lk7UU_Dg1KI:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=h8M1vMBJ0Oo:lk7UU_Dg1KI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=h8M1vMBJ0Oo:lk7UU_Dg1KI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=h8M1vMBJ0Oo:lk7UU_Dg1KI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/h8M1vMBJ0Oo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/8418662860164301161/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2011/01/virtual-columns-in-oracle-database-11g.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/8418662860164301161?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/8418662860164301161?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/h8M1vMBJ0Oo/virtual-columns-in-oracle-database-11g.html" title="Virtual Columns in Oracle Database 11g Release 1" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2011/01/virtual-columns-in-oracle-database-11g.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cAQXc6fip7ImA9Wx5bEEQ.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-7356973512027699081</id><published>2010-10-26T18:47:00.000+05:30</published><updated>2010-10-26T18:47:20.916+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-26T18:47:20.916+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Mini Tip" /><category scheme="http://www.blogger.com/atom/ns#" term="Query" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><title>How to get the last password changed time for a oracle user</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0NPSp9tELE6XANPF15ivbo6XklM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0NPSp9tELE6XANPF15ivbo6XklM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0NPSp9tELE6XANPF15ivbo6XklM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0NPSp9tELE6XANPF15ivbo6XklM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;b&gt;Question:&lt;/b&gt;&amp;nbsp;How to get the last password changed time for a oracle user?&lt;br /&gt;
&lt;b&gt;Answer:&lt;/b&gt; The SYS view user$ consists of a column PTIME which tells you what was the last time the password was changed for the user.&lt;br /&gt;
&lt;br /&gt;
Try this query:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SELECT &lt;/span&gt;name,&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; ctime,&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; ptime&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;FROM &amp;nbsp; &lt;/span&gt;sys.user$&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;WHERE &amp;nbsp;&lt;/span&gt;name = '&lt;/b&gt;&lt;i&gt;USER-NAME&lt;/i&gt;&lt;b&gt;';&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Note:&lt;/b&gt; Replace USER-NAME with the user name which you want to know the information.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;CTIME &lt;/b&gt;Indicates - Creation Time&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;PTIME &lt;/b&gt;Indicates - Password Change Time&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Here's the table &lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;DESC&lt;/span&gt;&lt;/b&gt;ription:&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nullable Default Comments&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;------------ ------------------- -------- ------- --------&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;USER# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VARCHAR2(30 BYTE) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;TYPE# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;PASSWORD &amp;nbsp; &amp;nbsp; VARCHAR2(30 BYTE) &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;DATATS# &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;TEMPTS# &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CTIME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DATE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;PTIME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DATE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;EXPTIME &amp;nbsp; &amp;nbsp; &amp;nbsp;DATE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;LTIME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DATE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;RESOURCE$ &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;AUDIT$ &amp;nbsp; &amp;nbsp; &amp;nbsp; VARCHAR2(38 BYTE) &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;DEFROLE &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;DEFGRP# &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;DEFGRP_SEQ# &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;ASTATUS &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;LCOUNT &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;DEFSCHCLASS &amp;nbsp;VARCHAR2(30 BYTE) &amp;nbsp; Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;EXT_USERNAME VARCHAR2(4000 BYTE) Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SPARE1 &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SPARE2 &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SPARE3 &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SPARE4 &amp;nbsp; &amp;nbsp; &amp;nbsp; VARCHAR2(1000 BYTE) Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SPARE5 &amp;nbsp; &amp;nbsp; &amp;nbsp; VARCHAR2(1000 BYTE) Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;SPARE6 &amp;nbsp; &amp;nbsp; &amp;nbsp; DATE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-7356973512027699081?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NTl4D4OKiEk:0Rto7DjkdRk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NTl4D4OKiEk:0Rto7DjkdRk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NTl4D4OKiEk:0Rto7DjkdRk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=NTl4D4OKiEk:0Rto7DjkdRk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=NTl4D4OKiEk:0Rto7DjkdRk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/NTl4D4OKiEk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/7356973512027699081/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/10/how-to-get-last-password-changed-time.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/7356973512027699081?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/7356973512027699081?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/NTl4D4OKiEk/how-to-get-last-password-changed-time.html" title="How to get the last password changed time for a oracle user" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/10/how-to-get-last-password-changed-time.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4BSX0-eSp7ImA9Wx5UFEo.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-5983540992429391850</id><published>2010-10-19T14:15:00.000+05:30</published><updated>2010-10-19T14:15:58.351+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-19T14:15:58.351+05:30</app:edited><title>Default Schemas in 11g</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/slg0XfBvbUMnmtPuje7LyCT1RUs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/slg0XfBvbUMnmtPuje7LyCT1RUs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/slg0XfBvbUMnmtPuje7LyCT1RUs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/slg0XfBvbUMnmtPuje7LyCT1RUs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;When an 11g database is created without&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;em&gt;tweaking&lt;/em&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&amp;nbsp;any of the options, using either&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;strong&gt;dbca&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&amp;nbsp;or the&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;strong&gt;installer&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;, the schema listed in the table below,&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;em&gt;36 of them(!)&lt;/em&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;, are created by default.&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;This document gives an overview of their purpose and function and, should the functionailty not be required, whether they can be safely deleted or not without compromising the fundamental operation of the database. Additionally, having been removed, if a schema is required again, there are details of which script(s) are required to be run in order to recreate it.&lt;/div&gt;&lt;div style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;
&lt;a href="http://abcdba.com/abcdbaserver11gdefaultschema"&gt;Click here&lt;/a&gt; to read the entire article which lists the schema's and its importance in 11g.&lt;/div&gt;&lt;div style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;
Metalink Note:&lt;br /&gt;
Further information can be found in Metalink article&amp;nbsp;&lt;strong&gt;160861.1&lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-5983540992429391850?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=jJKRw231q8A:rE1Nv4kgjm4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=jJKRw231q8A:rE1Nv4kgjm4:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=jJKRw231q8A:rE1Nv4kgjm4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=jJKRw231q8A:rE1Nv4kgjm4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=jJKRw231q8A:rE1Nv4kgjm4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/jJKRw231q8A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/5983540992429391850/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/10/default-schemas-in-11g.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/5983540992429391850?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/5983540992429391850?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/jJKRw231q8A/default-schemas-in-11g.html" title="Default Schemas in 11g" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/10/default-schemas-in-11g.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEHRHk8fSp7ImA9Wx5UEEg.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-4495737510822729895</id><published>2010-10-14T17:13:00.000+05:30</published><updated>2010-10-14T17:13:55.775+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-14T17:13:55.775+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tips" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><category scheme="http://www.blogger.com/atom/ns#" term="10g vs 11g" /><title>Difference between Oracle 10g, 11g with regard to Index Rebuild Online</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YiQMOdZtZHb1fMsXwKdAnp6Mt-A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YiQMOdZtZHb1fMsXwKdAnp6Mt-A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YiQMOdZtZHb1fMsXwKdAnp6Mt-A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YiQMOdZtZHb1fMsXwKdAnp6Mt-A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="c6" style="direction: ltr; font-family: arial, sans, sans-serif; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7 c15" style="color: black; font-family: Arial; font-size: 11pt; text-decoration: underline;"&gt;Creating or Rebuilding Indexes Online:&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; font-family: arial, sans, sans-serif; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;Online Index Rebuilds allows you to perform DML operations on the base table during index creation. You can use the CREATE INDEX ONLINE and DROP INDEX ONLINE statements to create and drop an index in an online environment.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; font-family: arial, sans, sans-serif; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; font-family: arial, sans, sans-serif; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;During index build you can use the CREATE INDEX ONLINE to create an index without placing an exclusive lock over the table. CREATE INDEX ONLINE statement can speed up the creation as it works even when reads or updates are happening on the table.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; font-family: arial, sans, sans-serif; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; font-family: arial, sans, sans-serif; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans, sans-serif; font-size: medium; line-height: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;The ALTER INDEX REBUILD ONLINE can be used to rebuild the index, resuming failed operations, performing batch DML, adding stop words to index or for optimizing the index.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;The CREATE INDEX ONLINE and ALTER INDEX REBUILD ONLINE options have been there for a long time to easy the task of online index rebuilding. However in highly active they still can introduce locking issues.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7 c15" style="color: black; font-family: Arial; font-size: 11pt; text-decoration: underline;"&gt;Table Locks:&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;A table lock is required on the index base table at the start of the CREATE or REBUILD process to guarantee DD information. A lock at the end of the process is also required so as to merge changes into the final index structure.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;The time taken to complete the indexing process will increase as the indexing process will hang if there is an active transaction on the base table of the index being created or rebuilt at the time one of these locks is required. Another important issue to be considered is that any other transaction taking place on the base table that started after indexing process will also be locked unless the indexing releases its locked.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;This issue can have serious impact on the response time in highly concurrent systems. This backlog of locked transactions can be quite significant depending on the time taken by initial transactions to commit or rollback.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c4" style="color: black; font-family: Arial; font-size: 11pt; font-weight: bold;"&gt;Oracle 11g&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;Oracle11g has provided enormous improvements in the locking implications regarding creating or rebuilding indexes online. Creating or Rebuilding Indexes Online in Oracle 11g also requires two associated locks on the base table. One lock is required at the start of indexing process and other at the end of indexing process.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6 c14" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2pt; padding-top: 11pt; text-indent: 0pt;"&gt;&lt;a href="" name="h.nrtyie-zgmkeg"&gt;&lt;/a&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;The indexing process still hangs until all prior transactions have been completed if an active transaction is going on the base table at the time one of these locks is required.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6 c14" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2pt; padding-top: 11pt; text-indent: 0pt;"&gt;&lt;a href="" name="h.20cq1c-nusg4b"&gt;&lt;/a&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;However such transaction will no longer be locked and complete successfully if the indexing process has been locked out and subsequent transactions relating to the base table starts afterwards.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6 c14" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2pt; padding-top: 11pt; text-indent: 0pt;"&gt;&lt;a href="" name="h.e1s06s-sac2b6"&gt;&lt;/a&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;In Oracle 11g the indexing process no longer effects other concurrent transactions on the base table. The only process potentially left hanging while waiting to acquire its associated lock resource. Now we will compare the index rebuild locking mechanism in Oracle 10g and Oracle 11g.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c4" style="color: black; font-family: Arial; font-size: 11pt; font-weight: bold;"&gt;The difference on ground (10g vs 11g)&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table cellpadding="0" cellspacing="0" class="c3" style="border-collapse: collapse;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class="c8 c10" style="background-color: silver; border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c4" style="color: black; font-family: Arial; font-size: 11pt; font-weight: bold;"&gt;Session No.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5 c10" style="background-color: silver; border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c4" style="color: black; font-family: Arial; font-size: 11pt; font-weight: bold;"&gt;Executing in 10g&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1 c10" style="background-color: silver; border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c4" style="color: black; font-family: Arial; font-size: 11pt; font-weight: bold;"&gt;Executing in 11g&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="c8" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;CREATE TABLE MYTABLE AS SELECT rownum id, ‘Anantha’ name from dual connect by level &amp;lt;= 200000;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Table Created.&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;CREATE INDEX MYTABLE_IDX on MYTABLE(id);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Index Created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;CREATE TABLE MYTABLE AS SELECT rownum id, ‘Anantha’ name from dual connect by level &amp;lt;= 200000;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Table Created.&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;CREATE INDEX MYTABLE_IDX on MYTABLE(id);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Index Created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="c8" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;2&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;INSERT INTO MYTABLE VALUES(200001, ‘No Name’);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;INSERT INTO MYTABLE VALUES(200001, ‘No Name’);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="c8" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;ALTER INDEX&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;MYTABLE_INDEX REBUILD ONLINE;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;(Session gets hanged)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;ALTER INDEX&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;MYTABLE_INDEX REBUILD ONLINE;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;(Session gets hanged)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="c8" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;3&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;INSERT INTO MYTABLE VALUES(200002, ‘Again No Name’);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;INSERT INTO MYTABLE VALUES(200001, ‘Again No Name’);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="c8" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;2&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;COMMIT;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Commit Complete.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;COMMIT;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Commit Complete.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="c8" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;2&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;INSERT INTO MYTABLE VALUES(200003, ‘Some Name’);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;INSERT INTO MYTABLE VALUES(200003, ‘Some Name’);&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;1 row created.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="c8" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 39.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;3&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c5" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 210.75pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;COMMIT;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Commit Complete.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="c1" style="border-bottom-color: rgb(0, 0, 0); border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: rgb(0, 0, 0); border-left-style: solid; border-left-width: 1pt; border-right-color: rgb(0, 0, 0); border-right-style: solid; border-right-width: 1pt; border-top-color: rgb(0, 0, 0); border-top-style: solid; border-top-width: 1pt; padding-bottom: 5pt; padding-left: 5pt; padding-right: 5pt; padding-top: 5pt; vertical-align: top; width: 217.5pt;"&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;COMMIT;&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Commit Complete. (Session 2)&lt;/span&gt;&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c0" style="direction: ltr; line-height: 1; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c2" style="color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;Index Altered (Session 1)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;To conclude I would say that even if an index rebuild process is performed online still it requires a lock at the start and at the end of the index rebuild process and these locks eventually causes other concurrent transactions on the table to be hanged.&lt;/span&gt;&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="c6" style="direction: ltr; line-height: 1.15; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0pt;"&gt;&lt;span class="c7" style="color: black; font-family: Arial; font-size: 11pt;"&gt;Therefore an Online Index Rebuilding in Oracle 11g can be still affected by concurrent transactions. However it will not in turn cause locking issues for other concurrent transactions on the base table.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-4495737510822729895?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=a0Ud9AuZtec:lw3ROuWPEzk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=a0Ud9AuZtec:lw3ROuWPEzk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=a0Ud9AuZtec:lw3ROuWPEzk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=a0Ud9AuZtec:lw3ROuWPEzk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=a0Ud9AuZtec:lw3ROuWPEzk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/a0Ud9AuZtec" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/4495737510822729895/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/10/difference-between-oracle-10g-11g-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/4495737510822729895?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/4495737510822729895?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/a0Ud9AuZtec/difference-between-oracle-10g-11g-with.html" title="Difference between Oracle 10g, 11g with regard to Index Rebuild Online" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/10/difference-between-oracle-10g-11g-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08ERH06eCp7ImA9Wx5RGE8.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-2121993749221093969</id><published>2010-08-26T19:01:00.001+05:30</published><updated>2010-08-26T19:06:45.310+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-26T19:06:45.310+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Mini Tip" /><category scheme="http://www.blogger.com/atom/ns#" term="Query" /><title>Who has locked my package?</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wnVekSLWC9MQQ4oWRgWPaEs2tV0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wnVekSLWC9MQQ4oWRgWPaEs2tV0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wnVekSLWC9MQQ4oWRgWPaEs2tV0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wnVekSLWC9MQQ4oWRgWPaEs2tV0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;This question I have frequently faced while developing packages/procedures in PL/SQL in Oracle.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Question:&lt;/b&gt; How will I identify who has locked a procedure or a package. I need to identify this because it should not hang after the compilation is issued?&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;Answer:&lt;/b&gt; You may see the details from &lt;b&gt;v$sql&lt;/b&gt;&amp;nbsp;with the search text (Your package name). If the query fetches results then join it with v$session to get the session information.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;select *&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;from v$sql, v$session&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;where sql_address=address&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;and upper(sql_text) like '%PACKAGE_NAME%';&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Hope this simple tip saves you some time.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-2121993749221093969?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=iZURGVrEzfs:FXiDdjFhOjo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=iZURGVrEzfs:FXiDdjFhOjo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=iZURGVrEzfs:FXiDdjFhOjo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=iZURGVrEzfs:FXiDdjFhOjo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=iZURGVrEzfs:FXiDdjFhOjo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/iZURGVrEzfs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/2121993749221093969/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/08/who-has-locked-my-package.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/2121993749221093969?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/2121993749221093969?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/iZURGVrEzfs/who-has-locked-my-package.html" title="Who has locked my package?" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/08/who-has-locked-my-package.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UDSH0-eCp7ImA9Wx5TF04.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-2525527245556220225</id><published>2010-08-02T14:16:00.001+05:30</published><updated>2010-08-02T14:24:39.350+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-02T14:24:39.350+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tips" /><category scheme="http://www.blogger.com/atom/ns#" term="PL-SQL" /><title>Getting file size with PL/SQL</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yVRd3ZVewQPDWVR93x6k9sAXNtE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yVRd3ZVewQPDWVR93x6k9sAXNtE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yVRd3ZVewQPDWVR93x6k9sAXNtE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yVRd3ZVewQPDWVR93x6k9sAXNtE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;b&gt;UTL_FILE&lt;/b&gt; procedure has been enhanced in Oracle 9i and since then it provides a procedure fgetattr to return file size. PL/SQL Evangelist Steven Feuerstein has come up with this function that returns file length.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;CREATE OR REPLACE FUNCTION flength (&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; location_in &amp;nbsp; IN &amp;nbsp; VARCHAR2,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; file_in &amp;nbsp; &amp;nbsp; &amp;nbsp; IN &amp;nbsp; VARCHAR2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; RETURN PLS_INTEGER&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IS&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; TYPE fgetattr_t IS RECORD (&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;fexists &amp;nbsp; &amp;nbsp; &amp;nbsp; BOOLEAN,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;file_length &amp;nbsp; PLS_INTEGER,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;block_size &amp;nbsp; &amp;nbsp;PLS_INTEGER&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; );&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; fgetattr_rec &amp;nbsp; fgetattr_t;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; UTL_FILE.fgetattr (&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;location &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; location_in,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;filename &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; file_in,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;fexists &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; fgetattr_rec.fexists,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;file_length &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; fgetattr_rec.file_length,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;block_size &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; fgetattr_rec.block_size&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; );&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; RETURN fgetattr_rec.file_length;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END flength;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Pass a directory structure name as first parameter and the file name as the second parameter.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Create directory TEST as '/tmp';&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;select flength('TEST','test.txt') size_in_bytes from dual;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;size_in_bytes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;-------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18568&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;CAUTION:&lt;/b&gt; If you are using 9.2.0.6 then there is a database bug which might not return the exact file size. This bug has been fixed in 9.2.0.7 version.&lt;br /&gt;
&lt;br /&gt;
For more information visit &lt;a href="http://www.oracle.com/technology/obe/obe9ir2/obe-cnt/plsql/plsql.htm#p2" target="_blank"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-2525527245556220225?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=X6YcB6MUNKQ:o-IIV2FwtRE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=X6YcB6MUNKQ:o-IIV2FwtRE:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=X6YcB6MUNKQ:o-IIV2FwtRE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=X6YcB6MUNKQ:o-IIV2FwtRE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=X6YcB6MUNKQ:o-IIV2FwtRE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/X6YcB6MUNKQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/2525527245556220225/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/08/getting-file-size-with-plsql.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/2525527245556220225?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/2525527245556220225?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/X6YcB6MUNKQ/getting-file-size-with-plsql.html" title="Getting file size with PL/SQL" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/08/getting-file-size-with-plsql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MAQnY_fCp7ImA9WxFQFkk.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-2676754369410515174</id><published>2010-05-12T11:54:00.000+05:30</published><updated>2010-05-12T11:54:03.844+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-12T11:54:03.844+05:30</app:edited><title>Puzzle this time from Steven Feuerstein in Toad World</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5XyQ1S0Q9slahMfmi8ST9NZbMH4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5XyQ1S0Q9slahMfmi8ST9NZbMH4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5XyQ1S0Q9slahMfmi8ST9NZbMH4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5XyQ1S0Q9slahMfmi8ST9NZbMH4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hurry up, its an easy Puzzle this time from Steven Feuerstein in Toad World&lt;br /&gt;
&lt;br /&gt;
Its May 2010, and this time Steven Feuerstein chose to play easy to his readers. I am reproducing the question and options here: &lt;br /&gt;
&lt;br /&gt;
Which of the following choices correctly describe a feature of the Oracle database called "external tables"?&lt;br /&gt;
&lt;br /&gt;
A. There is no such thing as an "external table" in Oracle; all tables are stored within the database.&lt;br /&gt;
B. External tables are tables defined in other databases, such as mySQL and SQL Server, which can be queried from within an Oracle database.&lt;br /&gt;
C. An external table is a read-only table defined in Oracle (it appears, for example, in the ALL_TABLES data dictionary view), whose data is stored in an operating system file.&lt;br /&gt;
D. An external table is a normal relational table that is accessed externally, usually from a Java method, and whose contents are displayed on web pages.&lt;br /&gt;
&lt;br /&gt;
I am betting that all must know the answer:&lt;br /&gt;
Go to this &lt;a href="http://www.toadworld.com/EXPERTS/StevenFeuersteinsPLSQLObsession/PuzzlesandQuizzes/tabid/380/Default.aspx" target="_blank"&gt;webpage&lt;/a&gt; and click on the answer.&lt;br /&gt;
&lt;br /&gt;
Best of luck to all of you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-2676754369410515174?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=eX_9mnyAg0o:MCuVmzIac2U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=eX_9mnyAg0o:MCuVmzIac2U:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=eX_9mnyAg0o:MCuVmzIac2U:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=eX_9mnyAg0o:MCuVmzIac2U:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=eX_9mnyAg0o:MCuVmzIac2U:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/eX_9mnyAg0o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/2676754369410515174/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/05/puzzle-this-time-from-steven-feuerstein.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/2676754369410515174?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/2676754369410515174?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/eX_9mnyAg0o/puzzle-this-time-from-steven-feuerstein.html" title="Puzzle this time from Steven Feuerstein in Toad World" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/05/puzzle-this-time-from-steven-feuerstein.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08NQHw9eyp7ImA9WxFQFUU.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-9152742762134407554</id><published>2010-05-11T18:14:00.000+05:30</published><updated>2010-05-11T18:14:51.263+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-11T18:14:51.263+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tips" /><category scheme="http://www.blogger.com/atom/ns#" term="Scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="PL-SQL" /><title>Find Value in database/schema</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kxgBy_erTrgKbDlfCe25ODhCIzs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kxgBy_erTrgKbDlfCe25ODhCIzs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kxgBy_erTrgKbDlfCe25ODhCIzs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kxgBy_erTrgKbDlfCe25ODhCIzs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;b&gt;Question:&lt;/b&gt; How to find any value in any column in a schema?&lt;br /&gt;
&lt;br /&gt;
I have been searching for this answer for long, and stumbled upon a beautiful response in &lt;a href="http://forums.oracle.com/forums/thread.jspa?threadID=1068786&amp;amp;tstart=1" target="_blank"&gt;Oracle Forums&lt;/a&gt; and tried the block and stunning to find the output much easily. This saved my day as I was searching for occurence of a value in entire schema. Thanks for &lt;a href="http://forums.oracle.com/forums/profile.jspa?userID=728566" target="_blank"&gt;pollywog&lt;/a&gt; for the posting.&lt;br /&gt;
&lt;br /&gt;
I will reproduce the anonymous block here for my readers:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;declare &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;aCount pls_integer;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;begin&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;for c in &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;(select table_name, column_name&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;from all_tab_columns&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;where owner = 'OWNER'&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;and data_type = 'DATATYPE') loop&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;execute immediate 'select count(*) from '||c.table_name||' where '||c.column_name||' = ''value_to_find'' ' into aCount;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if aCount &amp;gt; 0 then &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('found value_to_find in table '||c.table_name||', column '||c.column_name);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;end if;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;end loop;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;end;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Just modify the following in the block:&lt;br /&gt;
1. OWNER (The schema in which find is required)&lt;br /&gt;
2. DATATYPE (Data type of value which you are searching)&lt;br /&gt;
3. value_to_find (The string you are finding)&lt;br /&gt;
&lt;br /&gt;
The output is like:&lt;br /&gt;
&lt;br /&gt;
found value_to_find in table &lt;table_name&gt;, column &lt;column_name&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this tip helps you too, leave back a comment in case you like this tip.&lt;br /&gt;
&lt;/column_name&gt;&lt;/table_name&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-9152742762134407554?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=_-RWr1YCzNk:rIn6yRXt2R4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=_-RWr1YCzNk:rIn6yRXt2R4:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=_-RWr1YCzNk:rIn6yRXt2R4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=_-RWr1YCzNk:rIn6yRXt2R4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=_-RWr1YCzNk:rIn6yRXt2R4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/_-RWr1YCzNk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/9152742762134407554/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/05/find-value-in-databaseschema.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/9152742762134407554?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/9152742762134407554?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/_-RWr1YCzNk/find-value-in-databaseschema.html" title="Find Value in database/schema" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/05/find-value-in-databaseschema.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4DQX46cCp7ImA9WxFRFE4.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-8548253361085724522</id><published>2010-04-28T12:46:00.000+05:30</published><updated>2010-04-28T12:46:10.018+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-28T12:46:10.018+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Packages" /><title>Difference between package and serially_reusable package</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VKVvzNBYxw26ZSSZDD_0vQ8NNh8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VKVvzNBYxw26ZSSZDD_0vQ8NNh8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VKVvzNBYxw26ZSSZDD_0vQ8NNh8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VKVvzNBYxw26ZSSZDD_0vQ8NNh8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;A package once executed will have its variables in UGA (User Global Area). This is by default. If you are creating a package which will be&amp;nbsp;executed only once, then the memory used by the package could be freed up after its execution.&lt;br /&gt;
&lt;br /&gt;
It is using a &lt;b&gt;pragma&lt;/b&gt; (hint to compiler) that we do so. This directive is called as &lt;b&gt;serially_reusable&lt;/b&gt;. It tells the compiler to run the package&amp;nbsp;and free the space once its executed. The compiler on getting this directive does not save the program variables in UGA but it does in SGA (Shared&amp;nbsp;Global Area).&lt;br /&gt;
&lt;br /&gt;
Each time the package with serially_reusable directive is called, its public variables are initialized. But in a normal package&amp;nbsp;its not initialized every time the package is called.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Here is an example:&lt;/u&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;create or replace package pkg_with_pragma is&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pragma serially_reusable;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;n number := 5; -- default initialization&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;end pkg_with_pragma;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;set serveroutput on&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;BEGIN &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pkg_with_pragma.N := 10; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line(pkg_with_pragma.N);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Output is&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;10&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;BEGIN &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line(pkg_with_pragma.N);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Output is&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;create or replace package pkg_without_pragma is&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;n number := 5; -- default initialization&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;end pkg_without_pragma;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;BEGIN &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pkg_without_pragma.N := 10; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line(pkg_without_pragma.N);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Output is&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;10&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;BEGIN &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pkg_without_pragma.N := 10; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line(pkg_without_pragma.N);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Output is&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;10&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;References: &lt;a href="http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10807/13_elems046.htm" target="_blank"&gt;PL/SQL User's Guide and Reference&lt;/a&gt;,&amp;nbsp;&lt;a href="http://stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10795/adfns_pc.htm" target="_blank"&gt;Oracle® Database Application Developer's Guide - Fundamentals&lt;/a&gt;,&amp;nbsp;&lt;a href="http://www.dba-oracle.com/t_pragma_serially_reusable.htm" target="_blank"&gt;Burleson Consulting&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-8548253361085724522?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=DnOxRnPDUPk:f-vgMYaRwpc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=DnOxRnPDUPk:f-vgMYaRwpc:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=DnOxRnPDUPk:f-vgMYaRwpc:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=DnOxRnPDUPk:f-vgMYaRwpc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=DnOxRnPDUPk:f-vgMYaRwpc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/DnOxRnPDUPk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/8548253361085724522/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/04/difference-between-package-and.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/8548253361085724522?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/8548253361085724522?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/DnOxRnPDUPk/difference-between-package-and.html" title="Difference between package and serially_reusable package" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/04/difference-between-package-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUADR3k5eCp7ImA9WxFSEU4.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-6062613601660887021</id><published>2010-04-12T21:36:00.002+05:30</published><updated>2010-04-13T11:19:36.720+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-13T11:19:36.720+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Database 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="Utilities" /><category scheme="http://www.blogger.com/atom/ns#" term="Tips" /><category scheme="http://www.blogger.com/atom/ns#" term="Scripts" /><category scheme="http://www.blogger.com/atom/ns#" term="PL-SQL" /><title>Unwrap Oracle 10g/11g PLSQL</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/W-c0uUliSc_Mpk7OhH7jvJSCHG4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W-c0uUliSc_Mpk7OhH7jvJSCHG4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/W-c0uUliSc_Mpk7OhH7jvJSCHG4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/W-c0uUliSc_Mpk7OhH7jvJSCHG4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Article and Script Courtesy&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;a href="http://blog.teusink.net/2010/04/unwrapping-oracle-plsql-with-unwrappy.html" target="_blank"&gt;Niels Teusink&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;"&gt;The Oracle&amp;nbsp;&lt;a href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/wrap.htm" style="color: #336699; font-family: 'Courier New', Courier, monospace;"&gt;wrap&lt;/a&gt;&amp;nbsp;utility can be used to obfuscate PL/SQL code, to ensure it can't be easily read. Pete Finnigan described (&lt;a href="http://www.blackhat.com/presentations/bh-usa-06/BH-US-06-Finnigan.pdf" style="color: #336699;"&gt;pdf&lt;/a&gt;) the wrapping process for Oracle 9g, but for 10g and 11g it still remains a bit of a mystery. I decided to release my Python unwrapping utility (supports 10g and 11g).&lt;br /&gt;
&lt;br /&gt;
The unwrapping steps for 10g are nicely described in the&amp;nbsp;&lt;a href="http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470080221.html" style="color: #336699;"&gt;Oracle Hacker's Handbook&lt;/a&gt;, but the actual substitution table needed to decode the package is omitted. Nobody (as far as I know) has published it. A lot of people seem to know how to do it though, there is even an&amp;nbsp;&lt;a href="http://hz.codecheck.ch/UnwrapIt/" style="color: #336699;"&gt;online unwrapper&lt;/a&gt;&amp;nbsp;available (and I'm sure everyone seriously involved in Oracle security knows how to do it). A Russian-made closed source tool is also available, but tends to upset virus scanners.&lt;br /&gt;
&lt;br /&gt;
So to save everyone a couple of hours of figuring it out, here it is:&amp;nbsp;&lt;a href="http://www.teusink.net/unwrap.py" style="color: #336699;"&gt;unwrap.py&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It's easy to use (I've used the wrapped procedure from&amp;nbsp;&lt;a href="http://www.databasejournal.com/features/oracle/article.php/3382331/Oracles-Wrap-Utility.htm" style="color: #336699;"&gt;this article&lt;/a&gt;&amp;nbsp;as an example):&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;b style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
$ ./unwrap.py wrapped.txt&lt;/b&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;=== Oracle 10g/11g PL/SQL unwrapper - by Niels Teusink - blog.teusink.net ===&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;PROCEDURE WRAP_IT (SEED_IN NUMBER)&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;IS&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; V_RAND INTEGER;&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;BEGIN&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; DBMS_RANDOM.INITIALIZE (SEED_IN);&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; FOR I IN 1..5 LOOP&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; V_RAND := MOD(ABS(DBMS_RANDOM.RANDOM),45);&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; DBMS_OUTPUT.PUT_LINE(I||': '||V_RAND);&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; END LOOP;&lt;/span&gt;&lt;br style="font-family: 'Courier New', Courier, monospace;" /&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;END;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;Ask Anantha Team thanks Niels for permitting to post his article here.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-6062613601660887021?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=2JMmL4njJlk:0kRt4felOY0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=2JMmL4njJlk:0kRt4felOY0:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=2JMmL4njJlk:0kRt4felOY0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=2JMmL4njJlk:0kRt4felOY0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=2JMmL4njJlk:0kRt4felOY0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/2JMmL4njJlk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/6062613601660887021/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/04/unwrap-oracle-10g11g-plsql.html#comment-form" title="17 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6062613601660887021?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6062613601660887021?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/2JMmL4njJlk/unwrap-oracle-10g11g-plsql.html" title="Unwrap Oracle 10g/11g PLSQL" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>17</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/04/unwrap-oracle-10g11g-plsql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UDQX87fyp7ImA9WxFSEEg.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-7558980479891020023</id><published>2010-04-12T13:31:00.000+05:30</published><updated>2010-04-12T13:31:10.107+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-12T13:31:10.107+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Database 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="Features" /><title>Oracle 11g Enhancements-Compound Triggers</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CZTA4XtTbTgBdBSpIx0jLteAXt8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CZTA4XtTbTgBdBSpIx0jLteAXt8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CZTA4XtTbTgBdBSpIx0jLteAXt8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CZTA4XtTbTgBdBSpIx0jLteAXt8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;This feature is part of trigger enhancements released in Oracle 11g Release 1. This particular enhancement paves way to use a single trigger to perform more tasks which could'nt have been possible before.&lt;br /&gt;
&lt;br /&gt;
For example, you can use a single trigger for row triggers as well as row-level triggers. The syntax for a compound trigger is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;CREATE OR REPLACE TRIGGER triggername&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;FOR triggeraction ON tablename&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;COMPOUND TRIGGER&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;-- Variable declaration.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEFORE STATEMENT IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*Some PL/SQL Code here*/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END BEFORE STATEMENT;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEFORE EACH ROW IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*Some PL/SQL Code here*/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END BEFORE EACH ROW;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;AFTER EACH ROW IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*Some PL/SQL Code here*/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END AFTER EACH ROW;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;AFTER STATEMENT IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*Some PL/SQL Code here*/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END AFTER STATEMENT;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END triggername;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Where triggeraction can be INSERT, UPDATE or DELETE.&lt;br /&gt;
&lt;br /&gt;
Example:-&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;CREATE OR REPLACE TRIGGER t_employee FOR INSERT OR UPDATE OR DELETE ON emp COMPOUND TRIGGER&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;l_emp_id emp.empno%type;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEFORE STATEMENT IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;IF INSERTING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('INSERT - Before Statement Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF UPDATING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('UPDATE - Before Statement Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF DELETING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('DELETE - Before Statement Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END BEFORE STATEMENT;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEFORE EACH ROW IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;IF INSERTING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('INSERT - Before Each Row Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF UPDATING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('UPDATE - Before Each Row Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF DELETING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('DELETE - Before Each Row Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END BEFORE EACH ROW;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;AFTER EACH ROW IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;IF INSERTING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('INSERT - After Each Row Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF UPDATING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('UPDATE - After Each Row Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF DELETING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('DELETE - After Each Row Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END AFTER EACH ROW;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;AFTER STATEMENT IS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;IF INSERTING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('INSERT - After Statement Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF UPDATING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('UPDATE - After Statement Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IF DELETING THEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;dbms_output.put_line('DELETE - After Statement Trigger');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END IF;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;END AFTER STATEMENT;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;END t_emplouee;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I don't have a 11g database to test create this script. Just create this trigger and there goes the tension of maintaining multiple triggers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-7558980479891020023?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ZBmOh129uT8:WRV-bNtWWJU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ZBmOh129uT8:WRV-bNtWWJU:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ZBmOh129uT8:WRV-bNtWWJU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=ZBmOh129uT8:WRV-bNtWWJU:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=ZBmOh129uT8:WRV-bNtWWJU:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/ZBmOh129uT8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/7558980479891020023/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/04/oracle-11g-enhancements-compound.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/7558980479891020023?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/7558980479891020023?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/ZBmOh129uT8/oracle-11g-enhancements-compound.html" title="Oracle 11g Enhancements-Compound Triggers" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/04/oracle-11g-enhancements-compound.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EMSHo6eyp7ImA9WhRREkQ.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-4080185718145918846</id><published>2010-04-06T12:25:00.001+05:30</published><updated>2011-11-26T12:44:49.413+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-26T12:44:49.413+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions" /><title>Oracle Interview Questions - 1</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/l1ocbeMtcAlWJdUzHlQ4tXFB5ZY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l1ocbeMtcAlWJdUzHlQ4tXFB5ZY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/l1ocbeMtcAlWJdUzHlQ4tXFB5ZY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/l1ocbeMtcAlWJdUzHlQ4tXFB5ZY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Some Oracle Interview questions uploaded:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;What are the components of physical database structure of Oracle database?&lt;/li&gt;
&lt;li&gt;What are the components of logical database structure of Oracle database?&lt;/li&gt;
&lt;li&gt;What is a tablespace?&lt;/li&gt;
&lt;li&gt;What is SYSTEM tablespace and when is it created?&lt;/li&gt;
&lt;li&gt;Explain the relationship among database, tablespace and data file.&lt;/li&gt;
&lt;li&gt;What is schema?&lt;/li&gt;
&lt;li&gt;What are Schema Objects?&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
and much more answered...&lt;br /&gt;
&lt;br /&gt;
&lt;object data="http://viewer.docstoc.com/" height="550" id="_ds_33095102" name="_ds_33095102" type="application/x-shockwave-flash" width="500"&gt;&lt;param name="FlashVars" value="doc_id=33095102&amp;mem_id=3655573&amp;showrelated=0&amp;showotherdocs=0&amp;doc_type=pdf&amp;allowdownload=1" /&gt;&lt;param name="movie" value="http://viewer.docstoc.com/"/&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;/object&gt;&lt;br /&gt;
&lt;span style="font-size: xx-small;"&gt;&lt;a href="http://www.docstoc.com/docs/33095102/Oracle_interview_Questions"&gt;Oracle_interview_Questions&lt;/a&gt; - &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-4080185718145918846?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=F3NFLUG3UDI:ri0NTKPIdEY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=F3NFLUG3UDI:ri0NTKPIdEY:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=F3NFLUG3UDI:ri0NTKPIdEY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=F3NFLUG3UDI:ri0NTKPIdEY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=F3NFLUG3UDI:ri0NTKPIdEY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/F3NFLUG3UDI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/4080185718145918846/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/04/oracle-interview-questions-1.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/4080185718145918846?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/4080185718145918846?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/F3NFLUG3UDI/oracle-interview-questions-1.html" title="Oracle Interview Questions - 1" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/04/oracle-interview-questions-1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYBR309eip7ImA9WxBbE0o.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-1128182448430156801</id><published>2010-03-12T11:20:00.001+05:30</published><updated>2010-03-12T11:22:36.362+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-12T11:22:36.362+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Scripts" /><title>Oracle Script - List of Locked Users</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3yEbnYirZAfQcAxybLVkGLJU0WY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3yEbnYirZAfQcAxybLVkGLJU0WY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3yEbnYirZAfQcAxybLVkGLJU0WY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3yEbnYirZAfQcAxybLVkGLJU0WY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;The following SQL script will list out all users with its status:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SELECT username, &lt;span style="font-style: italic;"&gt;account_status&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;FROM &lt;span style="font-weight: bold;"&gt;dba_users&lt;/span&gt;;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-1128182448430156801?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=BD4RMziUgn4:xNDIe33MKRk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=BD4RMziUgn4:xNDIe33MKRk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=BD4RMziUgn4:xNDIe33MKRk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=BD4RMziUgn4:xNDIe33MKRk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=BD4RMziUgn4:xNDIe33MKRk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/BD4RMziUgn4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/1128182448430156801/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2010/03/oracle-script-list-of-locked-users.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/1128182448430156801?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/1128182448430156801?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/BD4RMziUgn4/oracle-script-list-of-locked-users.html" title="Oracle Script - List of Locked Users" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2010/03/oracle-script-list-of-locked-users.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEIFQXY9eSp7ImA9WxNQEE8.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-6086180126101246400</id><published>2009-09-15T19:06:00.002+05:30</published><updated>2009-09-15T19:18:30.861+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-15T19:18:30.861+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Book Review" /><category scheme="http://www.blogger.com/atom/ns#" term="DB Administration" /><title>Book Review: Oracle 10g/11g Data and Database Management Utilities</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/e7p7UFfFSQXWpMTRLnyvi9zfkMg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/e7p7UFfFSQXWpMTRLnyvi9zfkMg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/e7p7UFfFSQXWpMTRLnyvi9zfkMg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/e7p7UFfFSQXWpMTRLnyvi9zfkMg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;From Technologies to Solutions:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;Oracle 10g/11g Data and Database Management Utilities&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;by Hector R. Madrid&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;PACKT Publishing&lt;br /&gt;&lt;/span&gt;&lt;hr /&gt;&lt;br /&gt;&lt;img style="float:left; margin:0 10px 10px 0;width: 243px; height: 300px;" src="http://1.bp.blogspot.com/_bVTHkH_2WTA/Sq-a9umtJZI/AAAAAAAAMrw/jQSnPRwMj84/s400/18471913.GIF" border="0" alt="" id="BLOGGER_PHOTO_ID_5381690465004103058" /&gt; The book is well within its perimeters. It discusses in detail nearly all database management utilities that an administrator uses in his day-to-day activities. The book will prove to be helpful for DBAs in a junior role as well as for those who are preparing for database administration certification examinations. The language used in this book helps the reader understand the complex tools offered by Oracle even though he may not be aware of all the tools discussed.&lt;br /&gt;&lt;br /&gt;The authenticity of the topics discussed and extensive examples/screen shots used are a real added advantage in understanding the utilities better. This book can also prove to be a good reference material for those involved in routine tasks not worrying about what all Oracle offers.&lt;br /&gt;&lt;br /&gt;It deals with normal DBA tools like Data Pump, External tables, SQL Loader, Recovery Manager, Oracle Scheduler, Security Management, Database Configuration Assistant (DBCA) and much more. These are a must to be understood for a database administrator as well as a database developer/enthusiast. For a long time, there has been a demand for technical details of what a database administrator deals in his day-to-day life and this book addresses to this need. The book explains in detail the various tools the DBAs would use and then discusses the feature enhancements done in 11g. Also examples constitute a sizable portion of the book which are nice to have in a book of this magnitude.&lt;br /&gt;&lt;br /&gt;In short this book deserves its place in your custody and will prove to be best in times of database administration activities.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div&gt;Packt Publishing | English | ISBN: 1847196284 | 432 pages&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a href="http://www.packtpub.com/oracle-10g-11g-data-and-database-management-utilities/book"&gt;PACKT Publishing&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Oracle-Data-Database-Management-Utilities/dp/1847196284/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1253022039&amp;amp;sr=1-1"&gt;Buy Book from Amazon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-6086180126101246400?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=x8deXMz9Nso:km-0L-OhWUk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=x8deXMz9Nso:km-0L-OhWUk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=x8deXMz9Nso:km-0L-OhWUk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=x8deXMz9Nso:km-0L-OhWUk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=x8deXMz9Nso:km-0L-OhWUk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/x8deXMz9Nso" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/6086180126101246400/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2009/09/book-review-oracle-10g11g-data-and.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6086180126101246400?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6086180126101246400?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/x8deXMz9Nso/book-review-oracle-10g11g-data-and.html" title="Book Review: Oracle 10g/11g Data and Database Management Utilities" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_bVTHkH_2WTA/Sq-a9umtJZI/AAAAAAAAMrw/jQSnPRwMj84/s72-c/18471913.GIF" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2009/09/book-review-oracle-10g11g-data-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4GQXY8fip7ImA9WxJUEk4.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-4534246164607351300</id><published>2009-07-10T19:55:00.004+05:30</published><updated>2009-07-10T20:12:00.876+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-10T20:12:00.876+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle SQL Developer Data Modeler" /><title>Oracle SQL Developer Data Modeler</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wvwtjXXsAorhIdrOxXGmWh_J6mc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wvwtjXXsAorhIdrOxXGmWh_J6mc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wvwtjXXsAorhIdrOxXGmWh_J6mc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wvwtjXXsAorhIdrOxXGmWh_J6mc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Oracle SQL Developer Data Modeler is the latest product offering from the Oracle Database Tools group. SQL Developer Data Modeler is an independent, standalone product with a full spectrum of data and database modeling tools and utilities, including modeling for Entity Relationship Diagrams (ERD), Relational (database design), Data Type and Multi-dimensional modeling, full forward and reverse engineering and DDL code generation. The Data Modeler imports from and exports to a variety of sources and targets, provides a variety of formatting options and validates the models through a predefined set of design rules.&lt;br /&gt;&lt;br /&gt;Oracle SQL Developer Data Modeler can connect to any supported Oracle Database and is platform independent. A read-only SQL Developer Data Modeler Viewer is also available for download. The viewer allows users to open models created in the Data Modeler.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://download.oracle.com/docs/cd/E15276_01/doc.20/e13677/toc.htm" target="_blank"&gt;Click here for Oracle® SQL Developer Data Modeler User's Guide&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.oracle.com/technology/software/products/sql/datamodeler.html" target="_blank"&gt;&lt;br /&gt;Oracle® SQL Developer Data Modeler&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note: For download you require free OTN account. If you do not have one, &lt;a href="http://askanantha.blogspot.com/2008/12/create-your-own-oracle-otn-login-for.html"&gt;read this for creating one account&lt;/a&gt; for you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For more information visit &lt;a href="http://www.oracle.com/technology/products/database/datamodeler/index.html" target="_blank"&gt;Oracle website&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-4534246164607351300?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=tzY5Ags32ww:v8RsyCUTk7A:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=tzY5Ags32ww:v8RsyCUTk7A:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=tzY5Ags32ww:v8RsyCUTk7A:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=tzY5Ags32ww:v8RsyCUTk7A:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=tzY5Ags32ww:v8RsyCUTk7A:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/tzY5Ags32ww" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/4534246164607351300/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2009/07/oracle-sql-developer-data-modeler.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/4534246164607351300?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/4534246164607351300?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/tzY5Ags32ww/oracle-sql-developer-data-modeler.html" title="Oracle SQL Developer Data Modeler" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2009/07/oracle-sql-developer-data-modeler.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UGR3s7fyp7ImA9WxJUF0k.&quot;"><id>tag:blogger.com,1999:blog-723572961554940315.post-6783246140537128766</id><published>2009-07-10T17:10:00.001+05:30</published><updated>2009-07-16T17:23:46.507+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-16T17:23:46.507+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Test yourself" /><title>Puzzler from Steven Feuerstein (July 2009)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7lUoDhD-W99XykrvIERfgR625ko/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7lUoDhD-W99XykrvIERfgR625ko/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7lUoDhD-W99XykrvIERfgR625ko/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7lUoDhD-W99XykrvIERfgR625ko/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;New Puzzler from Steven Feuerstein (July 2009)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TEST YOUR PL/SQL KNOWLEDGE&lt;/span&gt;&lt;br /&gt;Which of the following identifiers is the name of the implicit cursor attribute that allows you to find out how many rows were updated by each individual statement processed by the FORALL statement?&lt;br /&gt;&lt;ul&gt;&lt;li&gt;SQL%ROWCOUNT&lt;br /&gt;&lt;/li&gt;&lt;li&gt;SQL%FORALL_ROWCOUNT&lt;br /&gt;&lt;/li&gt;&lt;li&gt;SQL%BULK_ROWCOUNT&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div&gt;To Understand about SQL%BULK_ROWCOUNT &lt;a href="http://decipherinfosys.wordpress.com/2007/10/12/bulk-collect-and-rowcount-sqlbulk_rowcount/" target="_blank"&gt;click here&lt;/a&gt;.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For subscribing to more Puzzlers from Steve and to answer to Steve click &lt;a href="http://www.toadworld.com/EXPERTS/StevenFeuersteinsPLSQLObsession/PuzzlesandQuizzes/tabid/380/Default.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/723572961554940315-6783246140537128766?l=askanantha.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=q_pZQLoQXSo:pIig09lSFVY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=q_pZQLoQXSo:pIig09lSFVY:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=q_pZQLoQXSo:pIig09lSFVY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/AskAnantha?a=q_pZQLoQXSo:pIig09lSFVY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/AskAnantha?i=q_pZQLoQXSo:pIig09lSFVY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/AskAnantha/~4/q_pZQLoQXSo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://askanantha.blogspot.com/feeds/6783246140537128766/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://askanantha.blogspot.com/2009/07/puzzler-from-steven-feuerstein-july.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6783246140537128766?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/723572961554940315/posts/default/6783246140537128766?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AskAnantha/~3/q_pZQLoQXSo/puzzler-from-steven-feuerstein-july.html" title="Puzzler from Steven Feuerstein (July 2009)" /><author><name>Anantha Narayanan</name><uri>https://profiles.google.com/100621678644351205414</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh4.googleusercontent.com/-s7RncibjCbc/AAAAAAAAAAI/AAAAAAAAQfQ/T-QTkpGFMg4/s512-c/photo.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://askanantha.blogspot.com/2009/07/puzzler-from-steven-feuerstein-july.html</feedburner:origLink></entry></feed>

