<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2356870753929006427</id><updated>2012-01-25T17:09:01.616-06:00</updated><category term='Unix'/><category term='sql*plus'/><category term='delete duplicate'/><category term='Shell Script'/><category term='analytic'/><category term='ref cursor'/><category term='sql version'/><category term='startup'/><category term='formatting'/><category term='migration'/><category term='escape character'/><category term='D2K'/><category term='environment'/><category term='collection'/><category term='date'/><category term='query'/><category term='sed'/><category term='Set'/><category term='Editor'/><category term='Sql'/><category term='oracle'/><category term='tnsnames'/><category term='sum'/><category term='Vi'/><category term='10g new feature'/><category term='alternate record'/><category term='interview'/><category term='pin package'/><category term='report'/><category term='lsof'/><category term='configuration'/><category term='top n'/><category term='number to text'/><category term='truss'/><category term='session'/><category term='forms'/><category term='running total'/><category term='partition'/><category term='developer'/><category term='tablespace'/><category term='Current Shell'/><category term='scn'/><title type='text'>Arpit</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>53</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-4962088900333769518</id><published>2012-01-25T17:03:00.002-06:00</published><updated>2012-01-25T17:09:01.622-06:00</updated><title type='text'>Oracle Unique Constraint sys.i_procedure1 violated while creating package</title><content type='html'>Recently I faced issue in Oracle 11g, where after dropping a package, I was not able to recreate it. Recreating package was giving error, Unique Constraint (sys.i_procedure1) violated.&lt;br /&gt;&lt;br /&gt;It was an issue with Oracle Dictionary table not getting updated while dropping package.&lt;br /&gt;&lt;br /&gt;DBAs had to take following steps to resolve the issue.&lt;br /&gt;&lt;br /&gt;select * from obj$ where name = 'PACK1' ;&lt;br /&gt;&lt;br /&gt;select * from user$ where name = 'ABC' ; --This query is to get owner#, which can be joined with obj$&lt;br /&gt;&lt;br /&gt;After getting obj#, we had to delete that object from 3 tables.&lt;br /&gt;&lt;br /&gt;procedure$, source$ and obj$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-4962088900333769518?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/4962088900333769518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=4962088900333769518' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4962088900333769518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4962088900333769518'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2012/01/oracle-unique-constraint-sysiprocedure1.html' title='Oracle Unique Constraint sys.i_procedure1 violated while creating package'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5843308493674317675</id><published>2011-12-08T15:07:00.001-06:00</published><updated>2011-12-08T15:08:24.201-06:00</updated><title type='text'>Oracle XML to TABLE using XMLTABLE</title><content type='html'>Query:&lt;br /&gt;  SELECT seq&lt;br /&gt;        , ID&lt;br /&gt;        , NAME&lt;br /&gt;  FROM XMLTABLE('/xml/emp'&lt;br /&gt;        PASSING XMLTYPE('&lt;xml&gt;&lt;emp id="3"&gt;&lt;name&gt;Arpit&lt;/name&gt;&lt;/emp&gt;&lt;emp id="4"&gt;&lt;name&gt;Venkat&lt;/name&gt;&lt;/emp&gt;&lt;/xml&gt;')&lt;br /&gt;        COLUMNS   seq FOR ORDINALITY&lt;br /&gt;                , ID VARCHAR2(3) PATH '@id'&lt;br /&gt;                , NAME varchar2(10) path 'name'&lt;br /&gt;      ) AS tbl&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;       SEQ ID  NAME&lt;br /&gt;---------- --- ----------&lt;br /&gt;         1 3   Arpit&lt;br /&gt;         2 4   Venkat&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5843308493674317675?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5843308493674317675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5843308493674317675' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5843308493674317675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5843308493674317675'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2011/12/oracle-xml-to-table-using-xmltable.html' title='Oracle XML to TABLE using XMLTABLE'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-7266932815879128806</id><published>2011-01-28T13:12:00.002-06:00</published><updated>2011-01-28T13:15:32.740-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='escape character'/><category scheme='http://www.blogger.com/atom/ns#' term='sql*plus'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Escape / (Forward Slash) in Oracle SQL*Plus</title><content type='html'>Escape / (Forward Slash) in Oracle SQL*Plus &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Problem:&lt;/span&gt;&lt;br /&gt;I am running following anonymous block and it's giving error. It's because SQL Plus is considering forward slash (/) in variable "a" assignment as block terminator. How to escape that? The use of following block is to store test case in Database. This is simple example real test cases are complex and involve print after /.&lt;br /&gt;DECLARE&lt;br /&gt;  A   varchar2(1024) := NULL;&lt;br /&gt;BEGIN&lt;br /&gt;  A := 'set serveroutput on;&lt;br /&gt;BEGIN&lt;br /&gt;  INSERT INTO table_name&lt;br /&gt;       VALUES (5067);&lt;br /&gt;END ;&lt;br /&gt;/ &lt;br /&gt; &lt;br /&gt;' ;&lt;br /&gt;    INSERT INTO x VALUES (A) ;&lt;br /&gt; &lt;br /&gt;       COMMIT ;&lt;br /&gt;END ;&lt;br /&gt;/ &lt;br /&gt;&lt;br /&gt;Output&lt;br /&gt;SQL&gt; DECLARE&lt;br /&gt;  2    A   varchar2(1024) := NULL;&lt;br /&gt;  3  BEGIN&lt;br /&gt;  4    A := 'set serveroutput on;&lt;br /&gt;  5  BEGIN&lt;br /&gt;  6    INSERT INTO table_name&lt;br /&gt;  7         VALUES (5067);&lt;br /&gt;  8  END ;&lt;br /&gt;  9  / &lt;br /&gt;ERROR:&lt;br /&gt;ORA-01756: quoted string not properly terminated&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;SQL&gt; &lt;br /&gt;SQL&gt; ' ;&lt;br /&gt;SP2-0042: unknown command "' " - rest of line ignored.&lt;br /&gt;SQL&gt;     INSERT INTO x VALUES (A) ;&lt;br /&gt;    INSERT INTO x VALUES (A)&lt;br /&gt;                          *&lt;br /&gt;ERROR at line 1:&lt;br /&gt;ORA-00984: column not allowed here&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;SQL&gt; &lt;br /&gt;SQL&gt;        COMMIT ;&lt;br /&gt; &lt;br /&gt;Commit complete.&lt;br /&gt; &lt;br /&gt;SQL&gt; END ;&lt;br /&gt;SP2-0042: unknown command "END " - rest of line ignored.&lt;br /&gt;SQL&gt; / &lt;br /&gt; &lt;br /&gt;Commit complete.&lt;br /&gt; &lt;br /&gt;SQL&gt; &lt;br /&gt;&lt;br /&gt;Running same block from Toad works fine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;DECLARE&lt;br /&gt;  A   varchar2(1024) := NULL;&lt;br /&gt;BEGIN&lt;br /&gt;  A := 'set serveroutput on;&lt;br /&gt;BEGIN&lt;br /&gt;  INSERT INTO table_name&lt;br /&gt;       VALUES (5067);&lt;br /&gt;END ;' || '&lt;br /&gt;/' || '&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;' ;&lt;br /&gt;    INSERT INTO x VALUES (A) ;&lt;br /&gt; &lt;br /&gt;       COMMIT ;&lt;br /&gt;END ;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-7266932815879128806?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/7266932815879128806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=7266932815879128806' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7266932815879128806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7266932815879128806'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2011/01/escape-forward-slash-in-sqlplus.html' title='Escape / (Forward Slash) in Oracle SQL*Plus'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1492837467963374314</id><published>2010-10-06T15:23:00.001-05:00</published><updated>2010-10-06T15:24:41.695-05:00</updated><title type='text'>Query to run Dynamic SQL Using XML on SQL&gt; prompt</title><content type='html'>Query to run Dynamic SQL Using XML on SQL&gt; prompt&lt;br /&gt;&lt;br /&gt;SELECT table_name, extractvalue(dbms_xmlgen.getxmltype('select count(*) from ' || table_name),'//text()')&lt;br /&gt;FROM user_Tables&lt;br /&gt;WHERE table_name LIKE 'A%'&lt;br /&gt;&lt;br /&gt;The query above is just sample. Put your query in getxmltype and you are all set.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1492837467963374314?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1492837467963374314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1492837467963374314' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1492837467963374314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1492837467963374314'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2010/10/query-to-run-dynamic-sql-using-xml-on.html' title='Query to run Dynamic SQL Using XML on SQL&gt; prompt'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5286652857094189844</id><published>2010-08-03T14:03:00.000-05:00</published><updated>2010-08-03T14:04:09.012-05:00</updated><title type='text'>vi ... How to Refresh Already Open File</title><content type='html'>Refresh file from version on disk:&lt;br /&gt;:e!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5286652857094189844?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5286652857094189844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5286652857094189844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5286652857094189844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5286652857094189844'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2010/08/vi-how-to-refresh-already-open-file.html' title='vi ... How to Refresh Already Open File'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-2724085549107863903</id><published>2010-06-30T14:08:00.002-05:00</published><updated>2010-06-30T14:31:23.849-05:00</updated><title type='text'>Awk Script to Find Start Time End Time and Diff</title><content type='html'>[0]/ely =&gt;cat f&lt;br /&gt;awk '/Started Lighting for / { bid = toupper(substr($4, 1, 10)) ; start_time[bid] = $6}&lt;br /&gt;         /Lighting Successful at|Failed at / { bid = toupper(substr($1, 1, 10)) &lt;br /&gt;        split(start_time[bid], st, ":")&lt;br /&gt;        if ($3 ~ "Successful")&lt;br /&gt;        {&lt;br /&gt;                end_time[bid] = $5&lt;br /&gt;                success_fail = "Success"&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;                end_time[bid] = $4&lt;br /&gt;                success_fail = "Failed "&lt;br /&gt;        }&lt;br /&gt;        split(end_time[bid], et, ":")&lt;br /&gt;        start_sec = st[3] + st[2] * 60 + st[1] * 60 * 60&lt;br /&gt;        end_sec = et[3] + et[2] * 60 + et[1] * 60 * 60&lt;br /&gt;        total_time = end_sec - start_sec&lt;br /&gt;        hh = int(total_time / 3600)&lt;br /&gt;        rm = total_time % 3600 &lt;br /&gt;        mm = int(rm / 60)&lt;br /&gt;        ss = rm % 60 &lt;br /&gt;        printf("Bid: %s Start Time: %s %s at: %s Total Time: %02s:%02s:%02s \n", bid, start_time[bid], success_fail, end_time[bid], hh, mm, ss)&lt;br /&gt;}' bb&lt;br /&gt;&lt;br /&gt;[0]/ely =&gt;cat bb&lt;br /&gt;Started Lighting for x440019981O.iad at 16:33:31 (x440019981)&lt;br /&gt;x440019981O Failed at 16:33:54 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x250020161O.iad at 16:35:01 (x250020161)&lt;br /&gt;x250020161O Lighting Successful at 16:35:43 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x750016701O.iad at 16:38:12 (x750016701)&lt;br /&gt;x750016701O Lighting Successful at 16:38:21 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x260019961O.iad at 16:38:23 (x260019961)&lt;br /&gt;x260019961O Lighting Successful at 16:38:50 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x650019976O.iad at 16:40:05 (x650019976)&lt;br /&gt;x650019976O Lighting Successful at 16:40:21 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x360019763O.iad at 16:41:46 (x360019763)&lt;br /&gt;x360019763O Lighting Successful at 16:42:26 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x440019981O.iad at 16:44:27 (x440019981)&lt;br /&gt;x440019981O Failed at 16:44:29 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x370020017O.iad at 16:45:47 (x370020017)&lt;br /&gt;x370020017O Lighting Successful at 16:46:06 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x260019961O.iad at 16:46:48 (x260019961)&lt;br /&gt;x260019961O Lighting Successful at 16:47:14 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x920020035O.iad at 16:48:48 (x920020035)&lt;br /&gt;x920020035O Lighting Successful at 16:49:09 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x560019917O.iad at 16:53:20 (x560019917)&lt;br /&gt;x560019917O Lighting Successful at 16:54:06 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x030020010O.iad at 16:54:40 (x030020010)&lt;br /&gt;x030020010O Lighting Successful at 16:55:38 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x260019961O.iad at 16:55:41 (x260019961)&lt;br /&gt;x260019961O Lighting Successful at 16:56:08 (Domestic)&lt;br /&gt;&lt;br /&gt;Started Lighting for x460019558O.iad at 16:57:31 (x460019558)&lt;br /&gt;x460019558O Lighting Successful at 16:57:43 (Domestic)&lt;br /&gt;&lt;br /&gt;[0]/ely =&gt;./f&lt;br /&gt;Bid: X440019981 Start Time: 16:33:31 Failed  at: 16:33:54 Total Time: 00:00:23 &lt;br /&gt;Bid: X250020161 Start Time: 16:35:01 Success at: 16:35:43 Total Time: 00:00:42 &lt;br /&gt;Bid: X750016701 Start Time: 16:38:12 Success at: 16:38:21 Total Time: 00:00:09 &lt;br /&gt;Bid: X260019961 Start Time: 16:38:23 Success at: 16:38:50 Total Time: 00:00:27 &lt;br /&gt;Bid: X650019976 Start Time: 16:40:05 Success at: 16:40:21 Total Time: 00:00:16 &lt;br /&gt;Bid: X360019763 Start Time: 16:41:46 Success at: 16:42:26 Total Time: 00:00:40 &lt;br /&gt;Bid: X440019981 Start Time: 16:44:27 Failed  at: 16:44:29 Total Time: 00:00:02 &lt;br /&gt;Bid: X370020017 Start Time: 16:45:47 Success at: 16:46:06 Total Time: 00:00:19 &lt;br /&gt;Bid: X260019961 Start Time: 16:46:48 Success at: 16:47:14 Total Time: 00:00:26 &lt;br /&gt;Bid: X920020035 Start Time: 16:48:48 Success at: 16:49:09 Total Time: 00:00:21 &lt;br /&gt;Bid: X560019917 Start Time: 16:53:20 Success at: 16:54:06 Total Time: 00:00:46 &lt;br /&gt;Bid: X030020010 Start Time: 16:54:40 Success at: 16:55:38 Total Time: 00:00:58 &lt;br /&gt;Bid: X260019961 Start Time: 16:55:41 Success at: 16:56:08 Total Time: 00:00:27 &lt;br /&gt;Bid: X460019558 Start Time: 16:57:31 Success at: 16:57:43 Total Time: 00:00:12&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-2724085549107863903?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/2724085549107863903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=2724085549107863903' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2724085549107863903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2724085549107863903'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2010/06/awk-script-to-find-start-time-end-time.html' title='Awk Script to Find Start Time End Time and Diff'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-3342427206428584654</id><published>2010-06-22T16:00:00.001-05:00</published><updated>2010-06-22T16:01:47.950-05:00</updated><title type='text'>Partitioning</title><content type='html'>Partitioning&lt;br /&gt;Local Indexes&lt;br /&gt;Index is partitioned for each partition. So one Index Partition will store index keys for only one partition&lt;br /&gt;Global Partitioned Indexes&lt;br /&gt;Partitioning Key for Index is independent of Partitioning Key for table. It can be applied to Regular table, Index Organized Tables, Partitioned Tables&lt;br /&gt;Global Non Partitioned Indexes&lt;br /&gt;It's regular non Partitioned Index. And can be applied to any table&lt;br /&gt;&lt;br /&gt;Three Types of Basic Partitioning:&lt;br /&gt;----------------------------------&lt;br /&gt;Range : Partition For Feb 2010, Mar 2010, ...&lt;br /&gt;List  : Partition For say America, India, US, Russia&lt;br /&gt;Hash  : Partition using Hash Algorithm (I guess Oracle does not publish the algorithm)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Single Level Partitioning: Only one set of partitions&lt;br /&gt;-------------------------&lt;br /&gt;Composite Partitioning: Two level of partitions and can be combination of 3 basic&lt;br /&gt;---------------------- &lt;br /&gt;paritioning type. Available composite partitioning techniques are range-hash, range-list,&lt;br /&gt;range-range, list-range, list-list, and list-hash.&lt;br /&gt;&lt;br /&gt;Partitioning Extension in Oracle 11g:&lt;br /&gt;------------------------------------&lt;br /&gt;Interval Partitioning: Define Interval and first partition. Oracle will create new partition when data is inserted for first time in new partition&lt;br /&gt;&lt;br /&gt;REF Partitioning: Parent-Child Relationship: Child partitions will be created automatically based on parents partition and will have same charecteristics as parent partitions. In Child partitions, Oracle will not store index keys as data&lt;br /&gt;&lt;br /&gt;Virtual Column Based Partitioning:&lt;br /&gt;Paritioning based on metadata instead of column data. Let's say account number has first three digit as branch code, then we can have partitions for branch and account level data will go in respective branch partitions&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-3342427206428584654?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.oracle.com/technology/products/bi/db/11g/pdf/partitioning-11g-whitepaper.pdf' title='Partitioning'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/3342427206428584654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=3342427206428584654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3342427206428584654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3342427206428584654'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2010/06/partitioning.html' title='Partitioning'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-2114172859580032199</id><published>2009-11-04T16:27:00.000-06:00</published><updated>2009-11-04T16:28:44.354-06:00</updated><title type='text'>Parallel Hint</title><content type='html'>SELECT /*+ PARALLEL(a) */ COUNT(*) FROM ABCD a ;&lt;br /&gt;&lt;br /&gt;Parallel Hint makes operation faster. It does so by providing more threads to the current SQL statement. Not advisable to run in Production Environment during Peak Hours.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-2114172859580032199?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/2114172859580032199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=2114172859580032199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2114172859580032199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2114172859580032199'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/11/parallel-hint.html' title='Parallel Hint'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-4993232053401385393</id><published>2009-08-05T08:41:00.001-05:00</published><updated>2009-08-05T08:41:37.481-05:00</updated><title type='text'>When We are Joyful</title><content type='html'>&lt;div style="font-family:verdana, helvetica, sans-serif;font-size:10pt;color:#4040ff;"&gt;&lt;STRONG&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;P align=center&gt;WHEN WE ARE JOYFUL&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;When we are joyful, we don't look for perfection. If you are looking for perfection then you are not at the source of joy. Joy is the realization that there is no vacation from wisdom. The world appears imperfect on the surface but underneath, all is perfect. Perfection hides; imperfection shows off. &lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;The wise will not stay on the surface but will probe into the depth. Things are not blurred; your vision is blurred. Infinite actions prevail in the wholeness of consciousness. And yet the consciousness remains perfect, untouched. As Satsangees, realize this now and be at Home.&lt;/P&gt; &lt;DIV&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;BR&gt;&amp;nbsp;&lt;/DIV&gt; &lt;P&gt;&lt;FONT face=Arial color=#333399 size=4&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;Arpit Shah&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;DIV&gt;&lt;/DIV&gt;&lt;/div&gt;&lt;br&gt;       &lt;!--3--&gt;&lt;hr size=1&gt;&lt;/hr&gt; See the Web&amp;#39;s breaking stories, chosen by people like you. Check out &lt;a href="http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/" target="_blank"&gt; Yahoo! Buzz&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-4993232053401385393?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/4993232053401385393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=4993232053401385393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4993232053401385393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4993232053401385393'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/08/when-we-are-joyful.html' title='When We are Joyful'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1728589864345285206</id><published>2009-07-10T09:51:00.002-05:00</published><updated>2009-07-10T09:59:36.476-05:00</updated><title type='text'>Smart Choice for Cursor Processing</title><content type='html'>It's nice article desribing when to use &lt;br /&gt;CURSOR FOR Loops &lt;br /&gt;   Avoid using it&lt;br /&gt;SELECT INTO&lt;br /&gt;   Use when query can return atmost one row. Also put SELECT statements in seperate PROCEDURES/FUNCTION. Which can be optimized/cached in Oracle 11g.&lt;br /&gt;CURSOR BULK COLLECT VARRAY [Fixed number of rows or less]&lt;br /&gt;    Use when SELECT query will return multiple rows but you know upper limit. If upper limit is very high say 10000, you may want to go for next approach. As it will consume lots of memory.&lt;br /&gt;CURSOR BULK COLLECT NESTED ARRAY with LIMITS&lt;br /&gt;   Use when SELECT query will fetch multiple rows and you don't know the upper limit or you know the upper limit but it is very high.&lt;br /&gt;&lt;br /&gt;More Detail with examples at:&lt;br /&gt;http://www.oracle.com/technology/oramag/oracle/08-nov/o68plsql.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1728589864345285206?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.oracle.com/technology/oramag/oracle/08-nov/o68plsql.html' title='Smart Choice for Cursor Processing'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1728589864345285206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1728589864345285206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1728589864345285206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1728589864345285206'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/07/smart-choice-for-cursor-processing.html' title='Smart Choice for Cursor Processing'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-567415659706923851</id><published>2009-07-06T10:29:00.005-05:00</published><updated>2009-07-06T10:40:03.129-05:00</updated><title type='text'>Unix to Dos [How to write Control Character in Unix File]</title><content type='html'>Suppose following is your file. If you move the file from Windows to Unix, you will see Control M (^M) character at the end of each line. &lt;br /&gt;File in Windows:&lt;br /&gt;export USERNAME&lt;br /&gt;export PASSWORD&lt;br /&gt;export CTLPATH&lt;br /&gt;&lt;br /&gt;Same File when you move it to Unix&lt;br /&gt;export USERNAME^M&lt;br /&gt;export PASSWORD^M&lt;br /&gt;export CTLPATH^M&lt;br /&gt;^M&lt;br /&gt;&lt;br /&gt;You can see the special characters because Windows has [Carriage Return Line Feed] CRLF (\r\n) as line terminating sequence. Where as Unix has only [Line Feed] LF (\n) as line terminator.&lt;br /&gt;&lt;br /&gt;So, when we move file from Dos (Windows) to Unix, we need some kind of special processing which will convert CRLF into LF.&lt;br /&gt;&lt;br /&gt;One is to open the file and replace Control M character visible in file to blank. To replace Control M character one should know how to create Control M character in Unix.&lt;br /&gt;&lt;br /&gt;Folloing is the way to create Control M character in Unix.&lt;br /&gt;&lt;br /&gt;Open File in vi editor.&lt;br /&gt;&lt;br /&gt;Come in Instert mode by pressing Esc i&lt;br /&gt;Press Control V&lt;br /&gt;Then Press Control M&lt;br /&gt;Then Esc.&lt;br /&gt;&lt;br /&gt;It will generate Control M.&lt;br /&gt;&lt;br /&gt;Whatever control character you want to generate, first press Control + V and then Control + &lt;required character&gt;&lt;br /&gt;&lt;br /&gt;So convert file from Dos to Unix follow the steps mentioned below:&lt;br /&gt;&lt;br /&gt;Open file in vi.&lt;br /&gt;Type following command.&lt;br /&gt;:0,$s/^M//&lt;br /&gt;&lt;br /&gt;The above command will remove Control M (^M) character from entire file.&lt;br /&gt;&lt;br /&gt;I will mention other utilities to convert from Dos to Unix sometime later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-567415659706923851?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/567415659706923851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=567415659706923851' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/567415659706923851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/567415659706923851'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/07/how-to-write-control-character-in-unix.html' title='Unix to Dos [How to write Control Character in Unix File]'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1528411308471550406</id><published>2009-05-27T17:20:00.001-05:00</published><updated>2009-05-27T17:20:19.703-05:00</updated><title type='text'>SQL Report Formatting Using HTML</title><content type='html'>&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;See the magic. Following block of code will format the report in tabular format. The best way to generate SQL Report. Using it, you can view it in Browser. You can open it in Excel. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SET MARKUP HTML ON SPOOL ON HEAD &amp;quot;&amp;lt;TITLE&amp;gt;SQL*Plus Report&amp;lt;/title&amp;gt; -&lt;br /&gt;&amp;lt;STYLE TYPE='TEXT/CSS'&amp;gt;&amp;lt;!--BODY {background: ffffc6} --&amp;gt;&amp;lt;/STYLE&amp;gt;&amp;quot;&lt;br /&gt;SET ECHO OFF&lt;br /&gt;SPOOL employee.htm&lt;br /&gt;SELECT FIRST_NAME, LAST_NAME, SALARY&lt;br /&gt;FROM EMP_DETAILS_VIEW&lt;br /&gt;WHERE SALARY&amp;gt;12000;&lt;br /&gt;SPOOL OFF&lt;br /&gt;SET MARKUP HTML OFF&lt;br /&gt;SET ECHO ON&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1528411308471550406?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1528411308471550406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1528411308471550406' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1528411308471550406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1528411308471550406'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/05/sql-report-formatting-using-html_2358.html' title='SQL Report Formatting Using HTML'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-3900218180362317953</id><published>2009-05-05T16:11:00.001-05:00</published><updated>2009-05-05T16:11:04.945-05:00</updated><title type='text'>Fw: Love - The Question of an answer</title><content type='html'>&lt;div style="font-family:tahoma, new york, times, serif;font-size:10pt"&gt;&lt;DIV&gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma, new york, times, serif"&gt; &lt;DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"&gt; &lt;DIV style="FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: tahoma, new york, times, serif"&gt; &lt;DIV&gt;&lt;/DIV&gt; &lt;DIV&gt; &lt;H3 class="post-title entry-title"&gt;&lt;A href="http://wisdomfromsrisri.blogspot.com/2009/05/love-question-of-answer.html" target=_blank rel=nofollow&gt;Love - The Question of an answer&lt;/A&gt; &lt;/H3&gt; &lt;DIV class=post-header-line-1&gt;&lt;/DIV&gt; &lt;DIV class="post-body entry-content"&gt;&lt;SPAN style="FONT-FAMILY: arial"&gt;In a congregation, Sri Sri asked, "How many of you feel strong?" Many people raised their hands.&lt;BR&gt;Sri Sri then asked, "Why?"&lt;BR&gt;"Because you are with us," they answered.&lt;BR&gt;"Only those who feel weak can surrender," Sri Sri responded.&lt;BR&gt;All those who were feeling strong were taken aback; they suddenly felt weak!&lt;BR&gt;&lt;BR&gt;If you are in love, you feel weak because love makes you weak. Yet there is no power stronger than love. Love is strength. Yet love is the greatest power on earth. You feel absolutely powerful when you are with the Divine.&lt;BR&gt;&lt;BR&gt;Someone asked: But why do we keep alternating between strength and weakness?&lt;BR&gt;Sri Sri: That is the fluctuation in life.&lt;BR&gt;When you feel weak - surrender.&lt;BR&gt;When you feel strong - do seva.&lt;/SPAN&gt;&lt;BR&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt; &lt;P&gt;&lt;FONT face=Arial color=#333399 size=4&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;Arpit Shah&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;FONT color=#000000&gt;&lt;FONT face="verdana, helvetica, sans-serif"&gt;&lt;FONT color=#0000bf&gt;"Celebrate Life. Care for others and share whatever you have with those less fortunate than you. Broaden your vision, for the whole world belongs to you."&lt;BR&gt;- Sri Sri Ravi Shankar, Founder, Art&lt;/FONT&gt;&lt;FONT color=#0000bf&gt; of Living Foundation, &lt;A href="http://www.artofliving.org/" target=_blank rel=nofollow&gt;www.artofliving.org&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;BR&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/div&gt;&lt;br&gt;         &lt;!--1--&gt;&lt;hr size=1&gt;&lt;/hr&gt; Bollywood news, movie reviews, film trailers and more! &lt;a href="http://in.rd.yahoo.com/tagline_movies_1/*http://in.movies.yahoo.com/?wm=n/"&gt; Click here.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-3900218180362317953?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/3900218180362317953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=3900218180362317953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3900218180362317953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3900218180362317953'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/05/fw-love-question-of-answer.html' title='Fw: Love - The Question of an answer'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5085839894566794344</id><published>2009-04-17T09:23:00.001-05:00</published><updated>2009-04-17T09:23:15.016-05:00</updated><title type='text'>Intelligent people celebrate diversity</title><content type='html'>&lt;div style="font-family:tahoma, new york, times, serif;font-size:10pt;color:#0000ff;"&gt;&lt;DIV&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;STRONG&gt;Intelligent people celebrate diversity&lt;/STRONG&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;?XML:NAMESPACE PREFIX = O /&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;Bangalore (India), April 16 (Thursday), 8:10 pm: The 2,000-strong crowd in the Vishalakshi Mantap Hall at the Art of Living Centre sat rapt in attention as Sri Sri answered many questions at the satsang this evening.&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;Q. What is the science of relativity? How does it work in life?&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;A.: You go on the internet. There is so much on it. Volumes and volumes. Everything is related: if you've slept well, you see everything better. If not, then things are blurred.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The observer and the observed vary. That is why it is said that different states of consciousness understand different knowledge. &lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;Have you heard the Japanese story?&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;In Japan, there is a rule that a motel-owner must give free boarding and lodging to monks. &lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;To test if a monk is genuine, the owner would ask a knowledge question. If the question is answered, monk can then stay. If the owner gives the right answer, then the monk will go further.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;There was a motel run by two brothers. The elder one was very intelligent. The younger one was dull. The elder brother used to manage affairs such that he did not have to give free rooms to the monks. If the elder brother had to go away, he would tell the younger one: 'If any monk comes here, act dumb. If you're silent, the monk will not stay here."&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;As soon as the elder brother left, a group of monks arrived. They said: 'Come we will argue.' &lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The younger brother gestured: 'I am in silence.'&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The monks: 'We will have a dialogue in silence.' They showed the forefinger to indicate 'one'.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The younger brother had only one eye. The other eye was bandaged. He showed two fingers.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The monks then showed three fingers.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The brother then showed a fist.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The monks became very happy and left.&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;When the elder brother came, the younger one explained what happened: &lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;'They told me that you have only one eye.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;So I said, 'You have two.' &lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;They then said: The dialogue is between three eyes. &lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;So I said: I will punch you.'&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;Later the monks returned and told the elder brother that the younger one had shared the highest knowledge in silence.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The monks narrated:&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;'We asked: What is the one truth?&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;He said: Not one, there are two: Buddham and Dhammam.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;We said: There are three things: – Buddham, Dhammam, and Sangham.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;He said: They are all one!'&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;It was such a mind-blowing realization! &lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;This story shows that different levels of consciousness can interpret different things, differently.&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;Fools always create conflicts over nothing. And die for it. The intelligent will celebrate diversity. Fools can't tolerate diversity. &lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;The ancient sages in the &lt;I&gt;Rig Veda&lt;/I&gt; have said: 'Accept even the atheist and they have included them in prayers: Those who call You as no God and think there is no Divinity, I bow down. Those who say, You are not there, I offer my obeisance.'&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;One accepts even atheism. That is true wisdom: You have broad vision which accepts people and differences. &lt;O:P&gt;&lt;/O:P&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;I&gt;Intelligent people celebrate diversity, fools fight over diversity.&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;SPAN style="FONT-SIZE: 85%"&gt;&lt;/SPAN&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&lt;BR&gt;More at: &lt;A href="http://www.artofliving.org/intl/wisdomblog/tabid/183/Default.aspx"&gt;http://www.artofliving.org/intl/wisdomblog/tabid/183/Default.aspx&lt;/A&gt;&amp;nbsp;&lt;/P&gt; &lt;P class=MsoNormal style="MARGIN-BOTTOM: 0pt; FONT-FAMILY: arial"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt; &lt;P&gt;&lt;FONT face=Arial&gt;&lt;FONT size=4&gt;&lt;FONT color=#333399&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;BR&gt;AOL Parsippany&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;FONT color=#000000&gt;&lt;FONT face="verdana, helvetica, sans-serif"&gt;&lt;FONT color=#0000bf&gt;"Celebrate Life. Care for others and share whatever you have with those less fortunate than you. Broaden your vision, for the whole world belongs to you."&lt;BR&gt;- Sri Sri Ravi Shankar, Founder, Art&lt;/FONT&gt;&lt;FONT color=#0000bf&gt; of Living Foundation, &lt;A href="http://www.artofliving.org/" target=_blank rel=nofollow&gt;www.artofliving.org&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;DIV&gt;&lt;/DIV&gt;&lt;/div&gt;&lt;br&gt;       &lt;!--6--&gt;&lt;hr size=1&gt;&lt;/hr&gt; Add more friends to your messenger and enjoy! &lt;a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/"&gt; Invite them now.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5085839894566794344?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5085839894566794344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5085839894566794344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5085839894566794344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5085839894566794344'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/04/intelligent-people-celebrate-diversity.html' title='Intelligent people celebrate diversity'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-4729383013797802078</id><published>2009-04-13T10:10:00.001-05:00</published><updated>2009-04-13T10:10:22.680-05:00</updated><title type='text'>KNOW UR CHAKRAS by Sri Sri</title><content type='html'>&lt;div style="font-family:tahoma, new york, times, serif;font-size:10pt;color:#0000ff;"&gt;&lt;DIV&gt;&lt;/DIV&gt; &lt;DIV&gt;KNOW UR CHAKRAS&lt;BR&gt;-&lt;BR&gt;Know yourself better by knowing the Colour of Chakras&lt;BR&gt;-&lt;BR&gt;You possess chakras, every human does and they do have a color.&lt;BR&gt;Why you are elated when you see green?&lt;BR&gt;Why is red violent?&lt;BR&gt;Why indigo soothes and relaxes your mind?&lt;BR&gt;The reason lies in the color of the respective chakra&lt;BR&gt;&lt;BR&gt;A human body has seven major chakras, namely, Crown , &lt;SPAN class=yshortcuts id=lw_1239463472_13&gt;Third Eye&lt;/SPAN&gt; , Throat,&lt;BR&gt;Heart, &lt;SPAN class=yshortcuts id=lw_1239463472_14 style="CURSOR: pointer; BORDER-BOTTOM: medium none"&gt;Solar Plexus&lt;/SPAN&gt;, Hara and finally the Root chakra with the colors in the&lt;BR&gt;sequence of VIBGYOR (Violet, Indigo, Blue, Green, Yellow, Orange, Red&lt;BR&gt;)respectively.&lt;BR&gt;&lt;BR&gt;This is the reason why cardiac patients are advised to eat green vegetables&lt;BR&gt;and asked to walk on green grass as the former not only give nutrients but&lt;BR&gt;also soothes the heart chakra. The more you see green the more you  feel&lt;BR&gt;green (good at heart)&lt;BR&gt;So for the heart patients the basic mantra is go green!!!&lt;BR&gt;Exercise each color to strengthen your respective chakra and feel the&lt;BR&gt;difference&lt;BR&gt;&amp;nbsp;&lt;/DIV&gt; &lt;P&gt;&lt;FONT face=Arial&gt;&lt;FONT size=4&gt;&lt;FONT color=#333399&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;FONT color=#000000&gt;&lt;FONT face="verdana, helvetica, sans-serif"&gt;&lt;FONT color=#0000bf&gt;&lt;FONT face=Arial color=#333399 size=4&gt;AOL Parsippany&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;FONT color=#000000&gt;&lt;FONT face="verdana, helvetica, sans-serif"&gt;&lt;FONT color=#0000bf&gt;"Celebrate Life. Care for others and share whatever you have with those less fortunate than you. Broaden your vision, for the whole world belongs to you."&lt;BR&gt;- Sri Sri Ravi Shankar, Founder, Art&lt;/FONT&gt;&lt;FONT color=#0000bf&gt; of Living Foundation, &lt;A href="http://www.artofliving.org/" target=_blank rel=nofollow&gt;www.artofliving.org&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Verdana color=#000080&gt;&lt;FONT size=1&gt;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;DIV&gt;&lt;/DIV&gt;&lt;/div&gt;&lt;br&gt;       &lt;!--6--&gt;&lt;hr size=1&gt;&lt;/hr&gt; Add more friends to your messenger and enjoy! &lt;a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/"&gt; Invite them now.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-4729383013797802078?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/4729383013797802078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=4729383013797802078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4729383013797802078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4729383013797802078'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/04/know-ur-chakras-by-sri-sri.html' title='KNOW UR CHAKRAS by Sri Sri'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5306842785432956917</id><published>2009-04-13T10:08:00.001-05:00</published><updated>2009-04-13T10:08:17.007-05:00</updated><title type='text'>A very nice perspective - "Money has no memory. Experience has"</title><content type='html'>&lt;div style="font-family:tahoma, new york, times, serif;font-size:10pt"&gt;&lt;DIV&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;BR&gt; &lt;TABLE cellSpacing=0 cellPadding=0 border=0&gt; &lt;TBODY&gt; &lt;TR&gt; &lt;TD vAlign=top&gt;&lt;FONT face=Arial size=2&gt; &lt;DIV&gt;Money has no memory. Experience has. You will never know what was the total cost of your education, but for a lifetime you will recall and relive the memories of schools and colleges. Few years from now, you will forget the amount you paid to settle the hospitalization bill, but will ever cherish having saved your mother's life or the life you get to live with the just born. You won't remember the cost of your honeymoon, but to the last breath remember the experiences of the bliss of togetherness. Money has no memory. Experience has. &lt;/DIV&gt; &lt;DIV&gt;Good times and bad times, times of prosperity and times of poverty, times when the future looked so secure and times when you didn't know from where the tomorrow will come… life has been in one way or the other a roller-coaster ride for everyone. Beyond all that abundance and beyond all that deprivation, what remains is the memory of experiences. Sometimes the wallet was full… sometimes even the pocket was empty. There was enough and you still had reasons to frown. There wasn't enough and you still had reasons to smile. Today, you can look back with tears of gratitude for all the times you had laughed together, and also look back with a smile at all the times you cried alone. All in all, life filled you with experiences to create a history of your own self, and you alone can remember them all.&lt;/DIV&gt; &lt;DIV&gt;The first time you balanced yourself on your cycle without support… &lt;/DIV&gt; &lt;DIV&gt;The first time she said 'yes' and it was two years since you proposed… &lt;/DIV&gt; &lt;DIV&gt;The first cry… the first steps… the first word… the first kiss… all of your child… &lt;/DIV&gt; &lt;DIV&gt;The first gift you bought for your parents and the first gift your daughter gave you… &lt;/DIV&gt; &lt;DIV&gt;The first award… the first public appreciation… the first stage performance… &lt;/DIV&gt; &lt;DIV&gt;And the list is endless… Experiences, with timeless memory… &lt;/DIV&gt; &lt;DIV&gt;Not denying that anything that's material cost money, but the fact remains the cost of the experience will be forgotten, but the experience never. &lt;/DIV&gt; &lt;DIV&gt;So, what if it's economic recession? Let it be, but let there not be a recession to the quality of your life. You can still take your parents, if not on a pilgrimage, at least to the local temple. You can still play with your children, if not on an international holiday, at least in the local park. It doesn't cost money to lie down or to take a loved one onto your lap. Nice time to train the employees, create leadership availability and be ready for the wonderful times when they arrive. Hey! Aspects like your health, knowledge development and spiritual growth are not economy dependent.&lt;/DIV&gt; &lt;DIV&gt;Time will pass… economy will revive… currency will soon be in current… and in all this, I don't want you to look back and realize you did nothing but stayed in gloom. Recession can make you lose out on money. Let it not make you lose out on experiences… If you are not happy with what you have, no matter how much more you have, you will still not be happy. &lt;/DIV&gt; &lt;DIV&gt;Make a statement with the way you live your life: How I feel has nothing to do with how much I have. &lt;/DIV&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/div&gt;&lt;br&gt;       &lt;!--6--&gt;&lt;hr size=1&gt;&lt;/hr&gt; Add more friends to your messenger and enjoy! &lt;a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/"&gt; Invite them now.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5306842785432956917?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5306842785432956917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5306842785432956917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5306842785432956917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5306842785432956917'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/04/very-nice-perspective-money-has-no.html' title='A very nice perspective - &quot;Money has no memory. Experience has&quot;'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-7826256425856188620</id><published>2009-01-30T10:10:00.002-06:00</published><updated>2009-01-30T13:09:44.928-06:00</updated><title type='text'>Cursor with variable in an "IN CLAUSE"</title><content type='html'>SQL&gt; with t as&lt;br /&gt;(SELECT ',001,002,003,004,005,006,007,008,ALL,' sList&lt;br /&gt;FROM dual)&lt;br /&gt;SELECT LEVEL, SUBSTR(sList, INSTR(sList, ',', 1, LEVEL) + 1, &lt;br /&gt;        INSTR(sList, ',', 1, LEVEL + 1) - INSTR(sList, ',', 1, LEVEL) - 1)&lt;br /&gt;  2    3    4    5    6  FROM t&lt;br /&gt;CONNECT BY LEVEL &lt;= LENGTH(sList) - LENGTH(REPLACE(sList,',')) - 1  7  ;&lt;br /&gt;&lt;br /&gt;     LEVEL SUBSTR(SLIST,INSTR(SLIST,',',1,LEVEL)&lt;br /&gt;---------- -------------------------------------&lt;br /&gt;         1 001&lt;br /&gt;         2 002&lt;br /&gt;         3 003&lt;br /&gt;         4 004&lt;br /&gt;         5 005&lt;br /&gt;         6 006&lt;br /&gt;         7 007&lt;br /&gt;         8 008&lt;br /&gt;         9 ALL&lt;br /&gt;&lt;br /&gt;9 rows selected.&lt;br /&gt;&lt;br /&gt;SQL&gt; &lt;br /&gt;&lt;br /&gt;SQL&gt; with t as&lt;br /&gt;(SELECT q'!('001','002','003','004','005','006','007','008','ALL')!' sList&lt;br /&gt;FROM dual)&lt;br /&gt;SELECT LEVEL, SUBSTR(sList, 3 + 6*(LEVEL - 1), 3)&lt;br /&gt;FROM t&lt;br /&gt;CONNECT BY LEVEL &lt;=  LENGTH(sList) - LENGTH(REPLACE(  2    3    4    5  sList, ',')) + 1&lt;br /&gt;  6    7  ;&lt;br /&gt;&lt;br /&gt;     LEVEL SUB&lt;br /&gt;---------- ---&lt;br /&gt;         1 001&lt;br /&gt;         2 002&lt;br /&gt;         3 003&lt;br /&gt;         4 004&lt;br /&gt;         5 005&lt;br /&gt;         6 006&lt;br /&gt;         7 007&lt;br /&gt;         8 008&lt;br /&gt;         9 ALL&lt;br /&gt;&lt;br /&gt;9 rows selected.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; with t as&lt;br /&gt;(SELECT ',001,002,003,004,005,006,007,008,ALL,' sList&lt;br /&gt;FROM dual)&lt;br /&gt;SELECT LEVEL, SUBSTR(sList, INSTR(sList, ',', 1, LEVEL) + 1, 3)&lt;br /&gt;FROM t&lt;br /&gt;CONNECT BY LEVEL &lt;= LENGTH(sList) - LENGTH(REPLACE(s  2    3    4    5    6  List,',')) - 1;&lt;br /&gt;&lt;br /&gt;     LEVEL SUB&lt;br /&gt;---------- ---&lt;br /&gt;         1 001&lt;br /&gt;         2 002&lt;br /&gt;         3 003&lt;br /&gt;         4 004&lt;br /&gt;         5 005&lt;br /&gt;         6 006&lt;br /&gt;         7 007&lt;br /&gt;         8 008&lt;br /&gt;         9 ALL&lt;br /&gt;&lt;br /&gt;9 rows selected.&lt;br /&gt;&lt;br /&gt;SQL&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-7826256425856188620?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/7826256425856188620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=7826256425856188620' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7826256425856188620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7826256425856188620'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2009/01/cursor-with-variable-in-in-clause.html' title='Cursor with variable in an &quot;IN CLAUSE&quot;'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-9172575683036087573</id><published>2008-10-28T16:06:00.000-05:00</published><updated>2008-10-28T16:07:48.636-05:00</updated><title type='text'>Using the FOR Clause in Pro*C (Oracle)</title><content type='html'>Using the FOR Clause&lt;br /&gt;&lt;br /&gt;You can use the optional embedded SQL FOR clause to set the number of array elements processed by any of the following SQL statements:&lt;br /&gt;&lt;br /&gt;DELETE&lt;br /&gt;EXECUTE&lt;br /&gt;FETCH&lt;br /&gt;INSERT&lt;br /&gt;OPEN&lt;br /&gt;UPDATE&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The FOR clause is especially useful in UPDATE, INSERT, and DELETE statements. With these statements you might not want to use the entire array. The FOR clause lets you limit the elements used to just the number you need,&lt;/strong&gt; as the following example shows:&lt;br /&gt;&lt;br /&gt;char  emp_name[100][20];&lt;br /&gt;float salary[100];&lt;br /&gt;int   rows_to_insert;&lt;br /&gt;&lt;br /&gt;/* populate the host arrays */&lt;br /&gt;rows_to_insert = 25;             /* set FOR-clause variable */&lt;br /&gt;EXEC SQL FOR :rows_to_insert   /* will process only 25 rows */&lt;br /&gt;    INSERT INTO emp (ename, sal)&lt;br /&gt;    VALUES (:emp_name, :salary);&lt;br /&gt;The FOR clause can use an integer host variable to count array elements, or an integer literal. A complex C expression that resolves to an integer cannot be used. For example, the following statement that uses an integer expression is illegal:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EXEC SQL FOR :rows_to_insert + 5                 /* illegal */&lt;br /&gt;    INSERT INTO emp (ename, empno, sal)&lt;br /&gt;        VALUES (:emp_name, :emp_number, :salary);&lt;br /&gt;The FOR clause variable specifies the number of array elements to be processed. Make sure the number is not larger than the smallest array dimension. Also, the number must be positive. If it is negative or zero, no rows are processed and Oracle issues an error message.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Restrictions&lt;br /&gt;Two restrictions keep FOR clause semantics clear. You cannot use the FOR clause in a SELECT statement or with the CURRENT OF clause.&lt;br /&gt;&lt;br /&gt;In a SELECT Statement&lt;br /&gt;If you use the FOR clause in a SELECT statement, you get the following error message:&lt;br /&gt;&lt;br /&gt;PCC-E-0056:  FOR clause not allowed on SELECT statement at ...&lt;br /&gt;The FOR clause is not allowed in SELECT statements because its meaning is unclear. Does it mean "execute this SELECT statement n times"? Or, does it mean "execute this SELECT statement once, but return n rows"? The problem in the former case is that each execution might return multiple rows. In the latter case, it is better to declare a cursor and use the FOR clause in a FETCH statement, as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.lsbu.ac.uk/oracle/oracle7/api/doc/PC_22/ch10.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-9172575683036087573?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/9172575683036087573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=9172575683036087573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/9172575683036087573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/9172575683036087573'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/10/using-for-clause-in-proc-oracle.html' title='Using the FOR Clause in Pro*C (Oracle)'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-8932466270328535777</id><published>2008-10-28T16:01:00.002-05:00</published><updated>2008-10-28T16:04:13.469-05:00</updated><title type='text'>Oracle Trigger: Mutating Table</title><content type='html'>A mutating table is a table that is being modified by an UPDATE, DELETE, or INSERT statement, or a table that might be updated by the effects of a DELETE CASCADE constraint.&lt;br /&gt;The session that issued the triggering statement cannot query or modify a mutating table. This restriction prevents a trigger from seeing an inconsistent set of data.&lt;br /&gt;&lt;br /&gt;This restriction applies to all triggers that use the FOR EACH ROW clause. Views being modified in INSTEAD OF triggers are not considered mutating.&lt;br /&gt;When a trigger encounters a mutating table, a runtime error occurs, the effects of the trigger body and triggering statement are rolled back, and control is returned to the user or application.&lt;br /&gt;&lt;br /&gt;Consider the following trigger:&lt;br /&gt;CREATE OR REPLACE TRIGGER Emp_count&lt;br /&gt;AFTER DELETE ON Emp_tab&lt;br /&gt;FOR EACH ROW&lt;br /&gt;DECLARE   &lt;br /&gt;   n INTEGER;&lt;br /&gt;BEGIN   &lt;br /&gt;   SELECT COUNT(*)&lt;br /&gt;   INTO n FROM Emp_tab;   &lt;br /&gt;   DBMS_OUTPUT.PUT_LINE(' There are now '  n         ' employees.');&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;If the following SQL statement is entered:&lt;br /&gt;&lt;br /&gt;DELETE FROM Emp_tab WHERE Empno = 7499;&lt;br /&gt;&lt;br /&gt;An error is returned because the table is mutating when the row is deleted:&lt;br /&gt;&lt;br /&gt;ORA-04091: table SCOTT.Emp_tab is mutating, trigger/function may not see it&lt;br /&gt;&lt;br /&gt;If you delete the line "FOR EACH ROW" from the trigger, it becomes a statement trigger which is not subject to this restriction, and the trigger.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;If you need to update a mutating table, you could bypass these restrictions by using a temporary table, a PL/SQL table, or a package variable. For example, in place of a single AFTER row trigger that updates the original table, resulting in a mutating table error, you might use two triggers--an AFTER row trigger that updates a temporary table, and an AFTER statement trigger that updates the original table with the values from the temporary table.&lt;br /&gt;&lt;/strong&gt;Declarative integrity constraints are checked at various times with respect to row triggers.&lt;br /&gt;See Also: Oracle Database Concepts for information about the interaction of triggers and integrity constraints&lt;br /&gt;Because declarative referential integrity constraints are not supported between tables on different nodes of a distributed database, the mutating table restrictions do not apply to triggers that access remote nodes. These restrictions are also not enforced among tables in the same database that are connected by loop-back database links. A loop-back database link makes a local table appear remote by defining an Oracle Net path back to the database that contains the link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-8932466270328535777?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm' title='Oracle Trigger: Mutating Table'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/8932466270328535777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=8932466270328535777' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/8932466270328535777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/8932466270328535777'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/10/oracle-trigger-mutating-table.html' title='Oracle Trigger: Mutating Table'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5445585804711582311</id><published>2008-10-28T15:37:00.002-05:00</published><updated>2008-10-28T15:50:51.832-05:00</updated><title type='text'>Bulk Collect NO_DATA_FOUND</title><content type='html'>Bulk collect clause do not generate an error when it do not find data in Select query. We need to check whether collection variable has any element or not.&lt;br /&gt;&lt;br /&gt;Sample:&lt;br /&gt;&lt;br /&gt;create table test_bulk (cola number, colb number) ;&lt;br /&gt;/&lt;br /&gt;Table created.&lt;br /&gt;&lt;br /&gt;declare&lt;br /&gt;    TYPE tNum IS TABLE OF NUMBER ;&lt;br /&gt;    a   tNum;&lt;br /&gt;    b   tNum;&lt;br /&gt;BEGIN&lt;br /&gt;    SELECT cola, colb&lt;br /&gt;    BULK COLLECT INTO a, b&lt;br /&gt;    FROM test_bulk ;&lt;br /&gt;    IF a.COUNT = 0 THEN&lt;br /&gt;        DBMS_OUTPUT.PUT_LINE('BULK COLLECT: NO DATA FOUND') ;&lt;br /&gt;    END IF ;&lt;br /&gt;EXCEPTION&lt;br /&gt;    WHEN NO_DATA_FOUND THEN&lt;br /&gt;        DBMS_OUTPUT.PUT_LINE('EXCEPTION: NO DATA FOUND') ;&lt;br /&gt;END ;&lt;br /&gt;/&lt;br /&gt;BULK COLLECT: NO DATA FOUND&lt;br /&gt;PL/SQL procedure successfully completed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5445585804711582311?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5445585804711582311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5445585804711582311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5445585804711582311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5445585804711582311'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/10/bulk-collect-nodatafound.html' title='Bulk Collect NO_DATA_FOUND'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-6090388325482763861</id><published>2008-10-27T17:00:00.002-05:00</published><updated>2008-10-27T17:05:55.826-05:00</updated><title type='text'>Happy Diwali</title><content type='html'>&lt;div   style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt;"&gt;&lt;span style="font-family:Times New Roman;font-size:100%;"&gt;&lt;span style="font-size:12;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold;font-family:'French Script MT';font-size:25;color:blue;"   &gt;As the glow of diyas spread radiance all around…&lt;/span&gt;&lt;br /&gt;&lt;div   style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt;"&gt;&lt;div   style="font-family:times new roman, new york, times, serif;font-size:12pt;"&gt;&lt;div   style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt;"&gt;&lt;div   style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt;"&gt;&lt;div   style="font-family:times new roman, new york, times, serif;font-size:12pt;"&gt;&lt;div   style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt;"&gt;&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif"&gt;&lt;div   style="font-family:times new roman, new york, times, serif;font-size:12pt;"&gt;&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif"&gt;&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif"&gt;&lt;div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"&gt;&lt;div lang="EN-US"&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.25in; TEXT-ALIGN: center" align="center"&gt;&lt;b&gt;&lt;span style="font-family:French Script MT;font-size:6;color:fuchsia;"&gt;&lt;span style="FONT-WEIGHT: bold;font-family:'French Script MT';font-size:25;color:fuchsia;"   &gt;As the sound of crackers fill the air…&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.25in; TEXT-ALIGN: center" align="center"&gt;&lt;b&gt;&lt;span style="font-family:French Script MT;font-size:6;color:green;"&gt;&lt;span style="FONT-WEIGHT: bold;font-family:'French Script MT';font-size:25;color:green;"   &gt;May the Festival of light&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.25in; TEXT-ALIGN: center" align="center"&gt;&lt;b&gt;&lt;span style="font-family:French Script MT;font-size:6;color:red;"&gt;&lt;span style="FONT-WEIGHT: bold;font-family:'French Script MT';font-size:25;color:red;"   &gt;Brighten your life with&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.25in; TEXT-ALIGN: center" align="center"&gt;&lt;b&gt;&lt;span style="font-family:French Script MT;font-size:6;color:purple;"&gt;&lt;span style="FONT-WEIGHT: bold;font-family:'French Script MT';font-size:25;color:purple;"   &gt;Peace, prosperity and fortune.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.25in"&gt;&lt;span style="font-family:Vivaldi;font-size:6;"&gt;&lt;span style="font-family:Vivaldi;font-size:25;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: center" align="center"&gt;&lt;b&gt;&lt;span style="font-family:Edwardian Script ITC;font-size:6;color:red;"&gt;&lt;span style="FONT-WEIGHT: bold;font-family:'Edwardian Script ITC';font-size:29;color:red;"   &gt;Wish you Happy Diwali &amp;amp; prosperous New Year&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br clear="all"&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&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/2356870753929006427-6090388325482763861?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/6090388325482763861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=6090388325482763861' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/6090388325482763861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/6090388325482763861'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/10/happy-diwali.html' title='Happy Diwali'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-8902002737206548315</id><published>2008-09-30T14:58:00.000-05:00</published><updated>2008-09-30T15:03:01.568-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ref cursor'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Using Cursor Expressions [Cursor in Select statement]</title><content type='html'>&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;A cursor expression returns a nested cursor. Each row in the result set can contain values as usual, plus cursors produced by subqueries involving the other values in the row. A single query can return a large set of related values retrieved from multiple tables. You can process the result set with nested loops that fetch first from the rows of the result set, then from any nested cursors within those rows.&lt;br /&gt;&lt;br /&gt;PL/SQL supports queries with cursor expressions as part of cursor declarations, REF CURSOR declarations and ref cursor variables. You can also use cursor expressions in dynamic SQL queries. Here is the syntax:&lt;br /&gt;&lt;br /&gt;CURSOR(subquery)&lt;br /&gt;&lt;br /&gt;A nested cursor is implicitly opened when the containing row is fetched from the parent cursor. The nested cursor is closed only when:&lt;br /&gt;&lt;br /&gt;The nested cursor is explicitly closed by the user&lt;br /&gt;&lt;br /&gt;The parent cursor is reexecuted&lt;br /&gt;&lt;br /&gt;The parent cursor is closed&lt;br /&gt;&lt;br /&gt;The parent cursor is canceled&lt;br /&gt;&lt;br /&gt;An error arises during a fetch on one of its parent cursors. The nested cursor is closed as part of the clean-up.&lt;br /&gt;&lt;br /&gt;Restrictions on Cursor Expressions&lt;br /&gt;The following are restrictions on cursor expressions:&lt;br /&gt;&lt;br /&gt;You cannot use a cursor expression with an implicit cursor.&lt;br /&gt;&lt;br /&gt;Cursor expressions can appear only:&lt;br /&gt;&lt;br /&gt;In a SELECT statement that is not nested in any other query expression, except when it is a subquery of the cursor expression itself.&lt;br /&gt;&lt;br /&gt;As arguments to table functions, in the FROM clause of a SELECT statement.&lt;br /&gt;&lt;br /&gt;Cursor expressions can appear only in the outermost SELECT list of the query specification.&lt;br /&gt;&lt;br /&gt;Cursor expressions cannot appear in view declarations.&lt;br /&gt;&lt;br /&gt;You cannot perform BIND and EXECUTE operations on cursor expressions.&lt;br /&gt;&lt;br /&gt;Example of Cursor Expressions&lt;br /&gt;In Example 6-35, we find a specified location ID, and a cursor from which we can fetch all the departments in that location. As we fetch each department's name, we also get another cursor that lets us fetch their associated employee details from another table.&lt;br /&gt;&lt;br /&gt;Example 6-35 Using a Cursor Expression&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;   TYPE emp_cur_typ IS REF CURSOR;&lt;br /&gt;   emp_cur emp_cur_typ;&lt;br /&gt;   dept_name departments.department_name%TYPE;&lt;br /&gt;   emp_name employees.last_name%TYPE;&lt;br /&gt;   CURSOR c1 IS SELECT&lt;br /&gt;      department_name,&lt;br /&gt;-- second item in the result set is another result set,&lt;br /&gt;-- which is represented as a ref cursor and labelled &amp;quot;employees&amp;quot;.&lt;br /&gt;      CURSOR&lt;br /&gt;      ( SELECT e.last_name FROM employees e&lt;br /&gt;         WHERE e.department_id = d.department_id) employees&lt;br /&gt;      FROM departments d WHERE department_name like 'A%';&lt;br /&gt;BEGIN&lt;br /&gt;   OPEN c1;&lt;br /&gt;   LOOP&lt;br /&gt;      FETCH c1 INTO dept_name, emp_cur;&lt;br /&gt;      EXIT WHEN c1%NOTFOUND;&lt;br /&gt;      DBMS_OUTPUT.PUT_LINE('Department: ' &amp;#124;&amp;#124; dept_name);&lt;br /&gt;-- for each row in the result set, the result set from a subquery is processed&lt;br /&gt;-- the set could be passed to a procedure for processing rather than the loop&lt;br /&gt;      LOOP&lt;br /&gt;         FETCH emp_cur INTO emp_name;&lt;br /&gt;         EXIT WHEN emp_cur%NOTFOUND;&lt;br /&gt;         DBMS_OUTPUT.PUT_LINE('-- Employee: ' &amp;#124;&amp;#124; emp_name);&lt;br /&gt;      END LOOP;&lt;br /&gt;   END LOOP;&lt;br /&gt;   CLOSE c1;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;Constructing REF CURSORs with Cursor Subqueries&lt;br /&gt;You can use cursor subqueries, also know as cursor expressions, to pass sets of rows as parameters to functions. For example, this statement passes a parameter to the StockPivot function consisting of a REF CURSOR that represents the rows returned by the cursor subquery:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT * FROM TABLE(StockPivot(&lt;br /&gt;              CURSOR(SELECT * FROM StockTable)));&lt;br /&gt;&lt;br /&gt;Cursor subqueries are often used with table functions, which are explained in &amp;quot;Setting Up Transformations with Pipelined Functions&amp;quot;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-8902002737206548315?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/sqloperations.htm#LNPLS00606' title='Using Cursor Expressions [Cursor in Select statement]'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/8902002737206548315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=8902002737206548315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/8902002737206548315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/8902002737206548315'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/09/using-cursor-expressions-cursor-in.html' title='Using Cursor Expressions [Cursor in Select statement]'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-2738836816875623683</id><published>2008-09-09T13:29:00.003-05:00</published><updated>2008-10-21T16:37:54.767-05:00</updated><title type='text'>Art Of Living Birthday Song</title><content type='html'>&lt;span style="color:#ff0000;"&gt;Sagar Mein Ek Leher(Birthday Song)&lt;br /&gt;Sagar Mein Ek Lehar Uthi Aapke Naam ki. &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Aapko Mubarak Khushiyan har sansaar ki,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Aapko hai Anant mein jaakar mil jaana,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Aap hain sundar Bund is chetna ki. ……. Sagar&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;This birthday song was drafted and composed in fifteen minutes. One day when Guruji was sitting at Sumeru and celebrating the fortieth B’day of a devotee. When the gathering started singing the well worn birthday song, Guruji admonished them to stop singing the same old weather-beaten song and compose some new tune---and thus this song was born---with the blessings of the master himself. The original song is in Hindi and the English translation is as below.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Today is the day waves remember &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;The Ocean where it was born&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;And today is the day we all remember &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;That, this world is our very own.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Happy Birthday to you (2) &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;We belong to you Happy Birthday to Dear Guruji&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;We all are your very own Yes, &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;we all are your very own&lt;/span&gt;&lt;br /&gt;&lt;a href='http://www.artofliving.org'&gt;The Art Of Living Website (All about Meditation, Yoga, Breathing Techniques, Stress Relief) &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-2738836816875623683?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/2738836816875623683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=2738836816875623683' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2738836816875623683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2738836816875623683'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/09/art-of-living-birthday-song.html' title='Art Of Living Birthday Song'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5524903302266467095</id><published>2008-08-15T09:39:00.005-05:00</published><updated>2008-09-17T16:24:50.210-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Set'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='environment'/><title type='text'>How to check if environment variable is defined or not in Unix?</title><content type='html'>Suppose, I want to check if variable USER_ID is defined or not.&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;The best solution I found is:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NOTDEFINED=ItsUnDefined&lt;br /&gt;&lt;br /&gt;USER_ID=${USER_ID:-$NOTDEFINED}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if [ "$USER_ID" = "ItsUnDefined" ]&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;echo Enter USER ID:&lt;br /&gt;&lt;br /&gt;read USER_ID&lt;br /&gt;&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;echo USER_ID&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Explanation: USER_ID=${USER_ID:-$NOTDEFINED}&lt;br /&gt;&lt;br /&gt;This will check if USER_ID variable is defined or not. If it is undefined, it will assign value of variable NOTDEFINED to it otherwise it will use its own value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Generally we use this to see if user has passed command line parameters. And if user has not passed parameter, you can set default value using this.&lt;br /&gt;&lt;br /&gt;USER_ID=${1:-arpit}&lt;br /&gt;&lt;br /&gt;echo $USER_ID&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;The second solution can be used is:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;envgrep "^USER_ID"&lt;br /&gt;&lt;br /&gt;if [ $? -eq 1 ]&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;echo Enter USER ID:&lt;br /&gt;read USER_ID&lt;br /&gt;fi&lt;br /&gt;echo USER_ID&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Explanation: env lists all environment variables defined for the shell. Then you can grep to see, if the variable is defined or not.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5524903302266467095?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1218810221994+28353475&amp;threadId=574274' title='How to check if environment variable is defined or not in Unix?'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5524903302266467095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5524903302266467095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5524903302266467095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5524903302266467095'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/08/how-to-check-if-environment-variable-is.html' title='How to check if environment variable is defined or not in Unix?'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-7040172463197122734</id><published>2008-05-29T15:06:00.004-05:00</published><updated>2008-05-29T15:20:04.077-05:00</updated><title type='text'>Example of REGEXP_LIKE and explanation of back references</title><content type='html'>Requirement:&lt;br /&gt;&lt;br /&gt;Suppose we have column named Name1 (consisting of first name and last name) with following data:&lt;br /&gt;&lt;br /&gt;Name1&lt;br /&gt;-------------&lt;br /&gt;Arpu Anau&lt;br /&gt;Stev Smith&lt;br /&gt;&lt;br /&gt;I want to match first and last characters of first and last names. If they are same show that row or show TRUE for that row.&lt;br /&gt;Means&lt;br /&gt;Arpit Anau is having A=A and u=u. So, TRUE&lt;br /&gt;Stev Smith is having S=S but v!=h. So, FALSE&lt;br /&gt;&lt;br /&gt;Example without Regular Exprssion:&lt;br /&gt;&lt;br /&gt;WITH t AS&lt;br /&gt;(&lt;br /&gt;SELECT 'Arpu Anau' Name1 FROM DUAL UNION ALL&lt;br /&gt;SELECT 'Stev Smith' Name1 FROM DUAL&lt;br /&gt;)&lt;br /&gt;SELECT FN, LN, CASE WHEN SUBSTR(FN,1,1) = SUBSTR(LN,1,1) AND SUBSTR(FN,-1,1) = SUBSTR(LN,-1,1) THEN 'TRUE' ELSE 'FALSE' END&lt;br /&gt;FROM (SELECT SUBSTR(Name1,1,INSTR(Name1,' ')-1) FN, SUBSTR(Name1,INSTR(Name1,' ')+1) LN&lt;br /&gt;FROM t)&lt;br /&gt;SQL&gt; /&lt;br /&gt;&lt;br /&gt;FN LN CASEW&lt;br /&gt;---------- ---------- -----&lt;br /&gt;Arpu Anau TRUE&lt;br /&gt;Stev Smith FALSE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With Regular Expresion [example uses backreferences in Regular Expression]&lt;br /&gt;&lt;br /&gt;SQL&gt; WITH t AS&lt;br /&gt;(&lt;br /&gt;SELECT 'Antu Anamentu' Name1 FROM DUAL UNION ALL&lt;br /&gt;SELECT 'Steven Smith' Name1 FROM DUAL&lt;br /&gt;)&lt;br /&gt;SELECT Name1&lt;br /&gt;FROM t&lt;br /&gt;WHERE REGEXP_LIKE (Name1, '^(.).*(.) \1.*\2$') ;&lt;br /&gt;&lt;br /&gt;NAME1&lt;br /&gt;-------------&lt;br /&gt;Antu Anamentu&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;^(.) =&gt;^ specifies the next char is first char&lt;br /&gt;. dot specifies single character&lt;br /&gt;() defines group which can be backrferenced&lt;br /&gt;.* =&gt; Any number of characters as we want only first and last character&lt;br /&gt;(.) =&gt; (.)space The space signifies that we want to remember last char of first word or char before space&lt;br /&gt;\1 =&gt; It recalls first group which we saved for backreference using (.)&lt;br /&gt;.* =&gt; Any number of chars&lt;br /&gt;\2 =&gt; It recalls first group which we saved for backreference using (.)&lt;br /&gt;$ =&gt; It specifies the char before this is last char&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-7040172463197122734?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/7040172463197122734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=7040172463197122734' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7040172463197122734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7040172463197122734'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/example-of-regexplike-and-explanation.html' title='Example of REGEXP_LIKE and explanation of back references'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5476119112668807214</id><published>2008-05-28T16:40:00.002-05:00</published><updated>2008-05-28T17:00:45.932-05:00</updated><title type='text'>My Trip to Niagara Fall</title><content type='html'>As 24, 25, 26-May-08 (Memorial Day holiday) was long weekend, we decided to visit Niagara Fall. We includes: Nilang, Keval, Kunal, Hardeep, Pravin, Naveen, Sanjay and myself. &lt;br /&gt;&lt;br /&gt;Planning:&lt;br /&gt;Earlier we were planning to rent a Car and drive it. But then where were few hurdles like the rented Van can accomodate only 7 people. And we were 8. And since all were not driving we were not able to rent two cars. Which seemed to be lucrative option as cheaper and comfortable compare to 7 ppl in one van. Finally we decided to go by bus. Kunal booked our ticket on gotobus.com . I bought Haldiram Namkin packets for trip.&lt;br /&gt;&lt;br /&gt;Trip Day:&lt;br /&gt;Reached Bus Stop at Top Quality Food Plaza [828 Rt 46 W]&lt;br /&gt;As the route of bus was via Parsippany, all decided to meet at my house and then go to bus stop. For, Kunal New York was near and easier to commute, so he went to New York. Pravin came to my house previous night. On Saturday morning at 8 o'clock, Nilang, Keval, Sanjay, Praving, Hardeep came to my house. I drove three frnds to bus stop and parked my Car at sister's house. My room partner Nirav dropped remaining 4 to bus stop. He also picked me up from my sister's house.&lt;br /&gt;&lt;br /&gt;Bus Journey:&lt;br /&gt;We started at 9:15am by bus. Actually bus was waiting for us only. As soon as we get into bus, it started. It was 2X2 coach with 58 seats. Ours were last 8 seats. Bus was full of desis. Out of 58, almost 48 were desis. And bus was of Chinese Travel Agency called "Happy Vacations". Seems desis need to venture into travels ;-)&lt;br /&gt;Guide was chinese guy named Leo. We took first break at almost 12:15pm. Bus stopped at Burger King(BK). It looked like small BK was filled with tourist of 4 buses. I forgot to mention but there were almost 5 buses that were running parallely on same route. There were queue everywhere for food, for restrooms :) So we went to Subway, at distance of 5 mins walk.&lt;br /&gt;&lt;br /&gt;Remaining will write later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5476119112668807214?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5476119112668807214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5476119112668807214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5476119112668807214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5476119112668807214'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/my-trip-to-niagara-fall.html' title='My Trip to Niagara Fall'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-4410894932998784995</id><published>2008-05-28T15:53:00.004-05:00</published><updated>2008-05-29T15:23:09.742-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='sed'/><title type='text'>Unix: sed to change characters in particular position</title><content type='html'>Suppose you have big file. You want to change character 100-110 with some text. So, simply you want to interchange first 4 characters with the next 4 characters in each line. In these kind of scenarios, sed one liners will be very useful.&lt;br /&gt;&lt;br /&gt;See few examples below:&lt;br /&gt;&lt;br /&gt;$cat a.tmp&lt;br /&gt;20090918ARPITH2010011634&lt;br /&gt;20090918ARPITH2010012050&lt;br /&gt;20090905ARPITH2010011382&lt;br /&gt;20090824ARPITH2010012075&lt;br /&gt;20090921ARPITH2010012075&lt;br /&gt;--Follwing sed command will interchange first 4 digits with next 4 digits.&lt;br /&gt;$sed 's:\([0-9]\{4\}\)\([0-9]\{4\}\):\2\1:' a.tmp&lt;br /&gt;09182009ARPITH2010011634&lt;br /&gt;09182009ARPITH2010012050&lt;br /&gt;09052009ARPITH2010011382&lt;br /&gt;08242009ARPITH2010012075&lt;br /&gt;09212009ARPITH2010012075&lt;br /&gt;Explanation:&lt;br /&gt;\([0-9]\{4\}\) It defines first four digits. If you want to replace any 4 characters not only digit then replace [0-9] with . like \(.\{4\}\)&lt;br /&gt;\ It is to escape (&lt;br /&gt;() This bracket will define different groups. It is used for backreference and can be used again using \1 or \2 etc based on its occurence.&lt;br /&gt;[0-9] Check for digits&lt;br /&gt;\{4\} Four occurence of digit in [0-9]&lt;br /&gt;&lt;br /&gt;\2\1 It says first put second set and then first set.&lt;br /&gt;&lt;br /&gt;Following sed command will interchange first 8 characters/digits with next 6 characters. And it will also seperate each set with space.&lt;br /&gt;$sed 's:\(.\{8\}\)\(.\{6\}\):\2 \1 :' a.tmp&lt;br /&gt;ARPITH 20090918 2010011634&lt;br /&gt;ARPITH 20090918 2010012050&lt;br /&gt;ARPITH 20090905 2010011382&lt;br /&gt;ARPITH 20090824 2010012075&lt;br /&gt;ARPITH 20090921 2010012075&lt;br /&gt;&lt;br /&gt;Following command will replace characters from 9 to 15 with text "NIRAVB"&lt;br /&gt;sed 's:\(.\{8\}\)\(.\{6\}\):\1NIRAVB:' a.tmp&lt;br /&gt;20090918NIRAVB2010011634&lt;br /&gt;20090918NIRAVB2010012050&lt;br /&gt;20090905NIRAVB2010011382&lt;br /&gt;20090824NIRAVB2010012075&lt;br /&gt;20090921NIRAVB2010012075&lt;br /&gt;&lt;br /&gt;Limitation: If you specify more than 255 in curly braces "\{ \}", you will get following error.&lt;br /&gt;$sed 's:\(.\{256\}\)\(.\{6\}\):\1NIRAVB:' a.tmp&lt;br /&gt;sed: Function s:\(.\{256\}\)\(.\{6\}\):\1NIRAVB: cannot be parsed.&lt;br /&gt;&lt;br /&gt;Solution: To overcome the issue you can break 335 in 255 + 80. As I have shown in following example. Here I want to change character 335 to 338 with text "TEST"&lt;br /&gt;$cat a.tmp&lt;br /&gt;20090913476178957893478958937589078903745897123890789074589076238904758906179038759081738904715890378904518978907348907579487592763785691287589072386590827890752890475890274890768902748906892748976898000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005&lt;br /&gt;20090913476178957893478958937589078903745897123890789074589076238904758906179038759081738904715890378904518978907348907579487592763785691287589072386590827890752890475890274890768902748906892748976898000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005&lt;br /&gt;20090913476178957893478958937589078903745897123890789074589076238904758906179038759081738904715890378904518978907348907579487592763785691287589072386590827890752890475890274890768902748906892748976898000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005&lt;br /&gt;&lt;br /&gt;$sed 's:\(.\{335\}\)\(.\{4\}\):\1TEST:' a.tmp&lt;br /&gt;sed: Function s:\(.\{335\}\)\(.\{4\}\):\1TEST: cannot be parsed.&lt;br /&gt;&lt;br /&gt;$sed 's:\(.\{255\}\)\(.\{80\}\)\(.\{4\}\):\1\2TEST:' a.tmp&lt;br /&gt;&lt;br /&gt;20090913476178957893478958937589078903745897123890789074589076238904758906179038759081738904715890378904518978907348907579487592763785691287589072386590827890752890475890274890768902748906892748976898000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000TEST00000000000000000000000000000000005&lt;br /&gt;20090913476178957893478958937589078903745897123890789074589076238904758906179038759081738904715890378904518978907348907579487592763785691287589072386590827890752890475890274890768902748906892748976898000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000TEST00000000000000000000000000000000005&lt;br /&gt;20090913476178957893478958937589078903745897123890789074589076238904758906179038759081738904715890378904518978907348907579487592763785691287589072386590827890752890475890274890768902748906892748976898000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000TEST00000000000000000000000000000000005&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-4410894932998784995?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/4410894932998784995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=4410894932998784995' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4410894932998784995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4410894932998784995'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/unix-sed-to-change-characters-in.html' title='Unix: sed to change characters in particular position'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-4949160959529350277</id><published>2008-05-28T15:50:00.002-05:00</published><updated>2008-05-28T15:53:42.415-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='partition'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Query to see partition info for Oracle Table</title><content type='html'>Following query will show the column name[s] on which partition is created.&lt;br /&gt;SELECT *&lt;br /&gt;FROM ALL_PART_KEY_COLUMNS&lt;br /&gt;WHERE NAME = &lt;TableName&gt;&lt;br /&gt;&lt;br /&gt;Following query will give the maximum value for particular partitions.&lt;br /&gt;SELECT HIGH_VALUE&lt;br /&gt;FROM ALL_TAB_PARTITIONS&lt;br /&gt;WHERE TABLE_NAME = &lt;TableName&gt;&lt;br /&gt;&lt;br /&gt;Following query will give all the tables in dictionary related to PARTITION.&lt;br /&gt;SELECT TABLE_NAME&lt;br /&gt;FROM DICT&lt;br /&gt;WHERE TABLE_NAME LIKE '%PART%'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-4949160959529350277?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/4949160959529350277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=4949160959529350277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4949160959529350277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4949160959529350277'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/query-to-see-partition-info-for-oracle.html' title='Query to see partition info for Oracle Table'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-7163395083821663104</id><published>2008-05-02T11:00:00.001-05:00</published><updated>2008-05-02T11:00:31.749-05:00</updated><title type='text'>Create virtual rows</title><content type='html'>create virtual rows: &lt;br /&gt;&lt;br /&gt;The query will run for first level. Then it will see, still it is less than 10, so it will try for next level and so on.... &lt;br /&gt;&lt;br /&gt;SELECT * FROM (SELECT LEVEL FROM DUAL CONNECT BY LEVEL &lt;= 10) ; &lt;br /&gt;&lt;br /&gt;Good Link which explains how it works: &lt;br /&gt;&lt;a href="http://www.sqlsnippets.com/en/topic-11821.html"&gt;SQL Snippets: Integer Series Generators - CONNECT BY LEVEL Method&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another way to create virtual rows is to select from ALL_OBJECTS&lt;br /&gt;One more way to create virtual table:&lt;br /&gt;WITH t AS&lt;br /&gt;(&lt;br /&gt;SELECT '01-MAR-2008' Dt FROM DUAL&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT '02-MAR-2008' Dt FROM DUAL&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT '03-MAR-2008' Dt FROM DUAL&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT '04-MAR-2008' Dt FROM DUAL&lt;br /&gt;)&lt;br /&gt;SELECT * FROM t ;&lt;br /&gt;&lt;br /&gt;Query to Calculate Business Days [Query to calculate date difference excluding Saturday/Sunday]&lt;br /&gt;SELECT SUM(DECODE(TO_CHAR(TO_DATE('01-MAR-2008')+ROWNUM-1, 'DY'),'SUN',0,'SAT',0,1))&lt;br /&gt;FROM all_objects&lt;br /&gt;WHERE ROWNUM &lt;= TO_DATE('20-MAR-2008') - TO_DATE('01-MAR-2008') + 1&lt;br /&gt;&lt;br /&gt;Query to find Next Date and Previous date in table of current date&lt;br /&gt;WITH t AS&lt;br /&gt;(&lt;br /&gt;SELECT '01-MAR-2008' Dt FROM DUAL&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT '02-MAR-2008' Dt FROM DUAL&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT '03-MAR-2008' Dt FROM DUAL&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT '04-MAR-2008' Dt FROM DUAL&lt;br /&gt;)&lt;br /&gt;SELECT LEAD(Dt,1) OVER (ORDER BY dt) NEXT_DT, LAG(Dt,1) OVER (ORDER BY dt) PREV_DT&lt;br /&gt;FROM t ;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-7163395083821663104?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/7163395083821663104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=7163395083821663104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7163395083821663104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7163395083821663104'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/create-virtual-rows.html' title='Create virtual rows'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-4120849886830936325</id><published>2008-05-02T10:00:00.000-05:00</published><updated>2008-05-02T10:00:06.897-05:00</updated><title type='text'>Oracle: Calendar using single SQL Query</title><content type='html'>&lt;a href="http://rwijk.blogspot.com/2008/02/calender.html"&gt;About Oracle: Calendar&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-4120849886830936325?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://rwijk.blogspot.com/2008/02/calender.html' title='Oracle: Calendar using single SQL Query'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/4120849886830936325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=4120849886830936325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4120849886830936325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4120849886830936325'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/oracle-calendar-using-single-sql-query.html' title='Oracle: Calendar using single SQL Query'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1323338171547746732</id><published>2008-05-01T13:11:00.001-05:00</published><updated>2008-05-01T13:11:45.550-05:00</updated><title type='text'>Oracle 11g PL SQL New Features</title><content type='html'>&lt;a href="http://maclochlainn.wordpress.com/2008/04/17/oracle-database-11g-plsql-new-features/"&gt;http://maclochlainn.wordpress.com/2008/04/17/oracle-database-11g-plsql-new-features/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1323338171547746732?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://maclochlainn.wordpress.com/2008/04/17/oracle-database-11g-plsql-new-features/' title='Oracle 11g PL SQL New Features'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1323338171547746732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1323338171547746732' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1323338171547746732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1323338171547746732'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/oracle-11g-pl-sql-new-features.html' title='Oracle 11g PL SQL New Features'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1759464418757479771</id><published>2008-05-01T10:37:00.003-05:00</published><updated>2008-05-01T10:46:41.632-05:00</updated><title type='text'>how to remove carriage return line feed from file in unix</title><content type='html'>#cat test_C&lt;br /&gt;hi&lt;br /&gt;my name is arpit&lt;br /&gt;this is test for cr lf&lt;br /&gt;reg&lt;br /&gt;arpit&lt;br /&gt;#od -c test_C&lt;br /&gt;0000000 h i \n m y n a m e i s a r&lt;br /&gt;0000020 p i t \n t h i s i s t e s t&lt;br /&gt;0000040 f o r c r l f \n r e g \n a&lt;br /&gt;0000060 r p i t \n&lt;br /&gt;0000065&lt;br /&gt;&lt;br /&gt;#od -b test_C&lt;br /&gt;0000000 150 151 012 155 171 040 156 141 155 145 040 151 163 040 141 162&lt;br /&gt;0000020 160 151 164 012 164 150 151 163 040 151 163 040 164 145 163 164&lt;br /&gt;0000040 040 146 157 162 040 143 162 040 154 146 012 162 145 147 012 141&lt;br /&gt;0000060 162 160 151 164 012&lt;br /&gt;0000065&lt;br /&gt;&lt;br /&gt;#cat test_C  tr -d "\015\012" &gt; op&lt;br /&gt;#cat op&lt;br /&gt;himy name is arpitthis is test for cr lfregarpit#&lt;br /&gt;#&lt;br /&gt;--tr command with -d option deletes char specified.&lt;br /&gt;#od -b op&lt;br /&gt;0000000 150 151 155 171 040 156 141 155 145 040 151 163 040 141 162 160&lt;br /&gt;0000020 151 164 164 150 151 163 040 151 163 040 164 145 163 164 040 146&lt;br /&gt;0000040 157 162 040 143 162 040 154 146 162 145 147 141 162 160 151 164&lt;br /&gt;0000060&lt;br /&gt;&lt;br /&gt;#od -c op&lt;br /&gt;0000000 h i m y n a m e i s a r p&lt;br /&gt;0000020 i t t h i s i s t e s t f&lt;br /&gt;0000040 o r c r l f r e g a r p i t&lt;br /&gt;0000060&lt;br /&gt;#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1759464418757479771?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1759464418757479771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1759464418757479771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1759464418757479771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1759464418757479771'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/05/how-to-remove-carriage-return-line-feed.html' title='how to remove carriage return line feed from file in unix'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1662164528526752468</id><published>2008-04-30T13:17:00.003-05:00</published><updated>2008-04-30T13:27:16.275-05:00</updated><title type='text'>Unix: Search for a pattern in all the files in all the directory</title><content type='html'>find . -name "*" -print xargs grep -i "string_to_find"&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;grep -i "string_to_find" `find . -name "*"`&lt;br /&gt;&lt;br /&gt;Finding for multiple file names in single command:&lt;br /&gt;&lt;br /&gt;find . \( -name "*.qry" -o -name "*.sql" \) -print&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1662164528526752468?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1662164528526752468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1662164528526752468' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1662164528526752468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1662164528526752468'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/unix-search-for-pattern-in-all-files-in.html' title='Unix: Search for a pattern in all the files in all the directory'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-2379520511619664479</id><published>2008-04-30T09:26:00.003-05:00</published><updated>2008-04-30T09:28:37.323-05:00</updated><title type='text'>How are numbers stored in Oracle?</title><content type='html'>This is really good link.&lt;br /&gt;&lt;br /&gt;It explains how the numbers are converted from Oracle internal format to real format (decimal/hexa..).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-2379520511619664479?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.jlcomp.demon.co.uk/number_format.html' title='How are numbers stored in Oracle?'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/2379520511619664479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=2379520511619664479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2379520511619664479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2379520511619664479'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/how-are-numbers-stored-in-oracle_30.html' title='How are numbers stored in Oracle?'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-493464800807353430</id><published>2008-04-28T09:53:00.002-05:00</published><updated>2008-05-02T10:51:55.369-05:00</updated><title type='text'>How do i store the row counts of all tables …</title><content type='html'>The query is really good. Doing dynamic sql in SQL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; select&lt;br /&gt;table_name,&lt;br /&gt;to_number(&lt;br /&gt;extractvalue(&lt;br /&gt;xmltype(&lt;br /&gt;dbms_xmlgen.getxml('select count(*) c from 'table_name))&lt;br /&gt;,'/ROWSET/ROW/C')) count&lt;br /&gt;from user_tables;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TABLE_NAME COUNT&lt;br /&gt;------------------------------ ------&lt;br /&gt;DEPT 4&lt;br /&gt;EMP 14&lt;br /&gt;BONUS 0&lt;br /&gt;SALGRADE 5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ref: &lt;a href="http://laurentschneider.com/wordpress/2007/04/how-do-i-store-the-counts-of-all-tables.html"&gt;http://laurentschneider.com/wordpress/2007/04/how-do-i-store-the-counts-of-all-tables.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-493464800807353430?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://laurentschneider.com/wordpress/2007/04/how-do-i-store-the-counts-of-all-tables.html' title='How do i store the row counts of all tables …'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/493464800807353430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=493464800807353430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/493464800807353430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/493464800807353430'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/how-do-i-store-row-counts-of-all-tables_28.html' title='How do i store the row counts of all tables …'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-3305141568274434959</id><published>2008-04-25T10:22:00.000-05:00</published><updated>2008-04-25T10:22:34.954-05:00</updated><title type='text'>Oracle: Date format element 'ww'</title><content type='html'>&lt;a href="http://rwijk.blogspot.com/2008/01/date-format-element-ww.html#links"&gt;About Oracle: Date format element 'ww'&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-3305141568274434959?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://rwijk.blogspot.com/2008/01/date-format-element-ww.html#links' title='Oracle: Date format element &apos;ww&apos;'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/3305141568274434959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=3305141568274434959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3305141568274434959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3305141568274434959'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/oracle-date-format-element-ww.html' title='Oracle: Date format element &apos;ww&apos;'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-7333260307275520799</id><published>2008-04-23T11:21:00.005-05:00</published><updated>2008-04-29T09:21:29.710-05:00</updated><title type='text'></title><content type='html'>If you fetch past the last row in the result set, the values of the target variables are undefined.&lt;br /&gt;Note: Eventually, the FETCH statement fails to return a row. When that happens, no exception is raised. To detect the failure, use the cursor attribute %FOUND or %NOTFOUND.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cast in Oracle for type casting&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;COALESCE function &lt;/p&gt;&lt;br /&gt;In Oracle/PLSQL, the coalesce function returns the first non-null expression in the list. If all expressions evaluate to null, then the coalesce function will return null.&lt;br /&gt;The syntax for the coalesce function is:&lt;br /&gt;coalesce( expr1, expr2, ... expr_n )&lt;br /&gt;&lt;br /&gt;IF expr1 IS NOT NULL THEN&lt;br /&gt;&lt;br /&gt;RETURN expr1;&lt;br /&gt;&lt;br /&gt;ELSIF expr2 IS NOT NULL THEN&lt;br /&gt;&lt;br /&gt;RETURN expr2;&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;ELSE&lt;br /&gt;&lt;br /&gt;RETURN NULL ;&lt;br /&gt;&lt;br /&gt;END IF;&lt;br /&gt;&lt;br /&gt;Oracle is an &lt;strong&gt;object-relational database management system&lt;/strong&gt; (ORDBMS), which means that users can define additional kinds of data--specifying both the structure of the data and the ways of operating on it--and use these types within the relational model. This approach adds value to the data stored in a database. User-defined datatypes make it easier for application developers to work with complex data such as images, audio, and video. Object types store structured business data in its natural form and allow applications to retrieve it that way. For that reason, they work efficiently with applications developed using object-oriented programming techniques.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-7333260307275520799?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/7333260307275520799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=7333260307275520799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7333260307275520799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7333260307275520799'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/if-you-fetch-past-last-row-in-result.html' title=''/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-4199269176910323833</id><published>2008-04-22T08:43:00.002-05:00</published><updated>2008-04-22T08:57:28.760-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scn'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>SCN, the System Change Number</title><content type='html'>Ref: &lt;a href="http://www.adp-gmbh.ch/ora/concepts/scn.html"&gt;http://www.adp-gmbh.ch/ora/concepts/scn.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SCN, the System Change Number&lt;br /&gt;&lt;br /&gt;The scn is an ever-increasing number. It can be used to determine the "age" of the database and its component &lt;a href="http://www.adp-gmbh.ch/ora/concepts/datafiles.html"&gt;datafiles&lt;/a&gt;.&lt;br /&gt;The current system SCN can be queried using &lt;a href="http://www.adp-gmbh.ch/ora/plsql/dbms_flashback.html#get_system_change_number"&gt;dbms_flashback.get_system_change_number&lt;/a&gt;.&lt;br /&gt;The SCN of the last &lt;a href="http://www.adp-gmbh.ch/ora/concepts/checkpoint.html"&gt;checkpoint&lt;/a&gt; can be found in &lt;a href="http://www.adp-gmbh.ch/ora/misc/dynamic_performance_views.html#database"&gt;v$database&lt;/a&gt;.checkpoint_change#.&lt;br /&gt;The SCN is needed in a &lt;a href="http://www.adp-gmbh.ch/ora/sql/flashback_table.html"&gt;flashback table&lt;/a&gt; .. to scn ... statement.&lt;br /&gt;&lt;br /&gt;Is database in a consistent state?&lt;br /&gt;The SCN plays an important role to determine if the database is in a consistent state when the database is brought online. &lt;a href="http://www.adp-gmbh.ch/ora/concepts/processes/smon.html"&gt;SMON&lt;/a&gt; checks the SCN in all &lt;a href="http://www.adp-gmbh.ch/ora/concepts/datafiles.html#datafile_header"&gt;datafile headers&lt;/a&gt; when the database is started. Everything is OK if all of these SCNs matches the SCN found in the &lt;a href="http://www.adp-gmbh.ch/ora/concepts/controlfiles.html"&gt;controlfile&lt;/a&gt;. If the SCNs don't match, the database is in an inconsistent state.&lt;br /&gt;Converting a time to scn&lt;br /&gt;&lt;a href="http://www.adp-gmbh.ch/ora/misc/sys_tables.html#smon_scn_time"&gt;smon_scn_time&lt;/a&gt; allows to roughly find out which SCN was current for a specific time in the last five days.&lt;br /&gt;&lt;br /&gt;Incrementing SCN&lt;br /&gt;The SCN is incremented whenever a &lt;a href="http://www.adp-gmbh.ch/ora/concepts/transaction.html"&gt;transaction&lt;/a&gt; commits. However, this is not the only source of increments. In a seemingly idle database, the SCN gets incremented also through AQ, &lt;a href="http://www.adp-gmbh.ch/ora/concepts/processes/smon.html"&gt;SMON&lt;/a&gt;, job queues...&lt;br /&gt;&lt;br /&gt;The role of the SCN for consistent reads&lt;br /&gt;The SCN plays a vital role for providing &lt;a href="http://www.adp-gmbh.ch/ora/concepts/consistent_read.html"&gt;consistent reads&lt;/a&gt;.&lt;br /&gt;Basically, it works as follows: The query reads a &lt;a href="http://www.adp-gmbh.ch/ora/concepts/db_block.html"&gt;db block&lt;/a&gt;. This block has as an attribute the SCN when it was last changed. If this SCN is greater than the SCN that was in place when (our) query began, it means that the block was changed after we have started our query. So we have to find an older version of the block. If this block is found in the &lt;a href="http://www.adp-gmbh.ch/ora/concepts/rollbacksegs.html"&gt;rollback segments&lt;/a&gt;, we use it for our query.&lt;br /&gt;&lt;br /&gt;Misc&lt;br /&gt;The &lt;a href="http://www.adp-gmbh.ch/ora/misc/dynamic_performance_views.html"&gt;v$ views&lt;/a&gt; use change# to report SCN values. Hence, it can be argued that SCN means System Change Number, not System Commit Number.&lt;br /&gt;When exporting, an SCN can be specified with the &lt;a href="http://www.adp-gmbh.ch/ora/admin/imp_exp.html#exp_flashback_scn"&gt;exp_flashback_scn&lt;/a&gt; export parameter.&lt;br /&gt;With &lt;a href="http://www.adp-gmbh.ch/ora/misc/10g.html"&gt;Oracle 10g&lt;/a&gt;, it is possible to go back to a specific SCN on a table with &lt;a href="http://www.adp-gmbh.ch/ora/sql/flashback.html"&gt;flashback table to scn&lt;/a&gt;.&lt;br /&gt;See also the &lt;a href="http://www.adp-gmbh.ch/ora/sql/ora_rowscn.html"&gt;ora_rowscn&lt;/a&gt; &lt;a href="http://www.adp-gmbh.ch/ora/sql/pseudo_columns.html"&gt;pseudo column&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;rowdependencies vs norowdependencies&lt;br /&gt;[ &lt;a href="http://www.adp-gmbh.ch/ora/sql/clauses/col_props.html"&gt;column-properties&lt;/a&gt; ]&lt;br /&gt;[ &lt;a href="http://www.adp-gmbh.ch/ora/sql/clauses/tab_partition.html"&gt;table-partitioning-clauses&lt;/a&gt; ]&lt;br /&gt;[ cache  nocache ]&lt;br /&gt;[ &lt;a href="http://www.adp-gmbh.ch/ora/sql/clauses/parallel.html"&gt;parallel-clause&lt;/a&gt; ]&lt;br /&gt;[ rowdependencies  norowdependencies ]&lt;br /&gt;[ &lt;a href="http://www.adp-gmbh.ch/ora/sql/clauses/enable_disable.html"&gt;enable-disable-clause-1&lt;/a&gt; [, enable-disable-clause-2 ....] ]&lt;br /&gt;[ &lt;a href="http://www.adp-gmbh.ch/ora/sql/clauses/row_movement.html"&gt;row-movement-clause&lt;/a&gt; ]&lt;br /&gt;[ as subquery ]&lt;br /&gt;The table properties appear as part within the &lt;a href="http://www.adp-gmbh.ch/ora/sql/cr_tab/heap.html"&gt;create table [heap]&lt;/a&gt; statement.&lt;br /&gt;rowdependencies vs norowdependencies&lt;br /&gt;The default is norowdependencies which keeps the &lt;a href="http://www.adp-gmbh.ch/ora/concepts/scn.html"&gt;SCN&lt;/a&gt; of the last modification at block level. When a table is created with rowdependencies, the SCN of each row's last modification is stored along with the&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-4199269176910323833?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.adp-gmbh.ch/ora/concepts/scn.html' title='SCN, the System Change Number'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/4199269176910323833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=4199269176910323833' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4199269176910323833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/4199269176910323833'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/scn-system-change-number.html' title='SCN, the System Change Number'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-3747071415577768579</id><published>2008-04-21T12:47:00.001-05:00</published><updated>2008-04-21T12:48:49.623-05:00</updated><title type='text'>How Lenders Interpret Your Credit Report</title><content type='html'>Refer: &lt;a href="http://www.howstuffworks.com/credit-report3.htm"&gt;http://www.howstuffworks.com/credit-report3.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Inquiries - Every time you apply for a &lt;a href="http://money.howstuffworks.com/credit-report.htm"&gt;credit card&lt;/a&gt; to get a free travel mug, duffel bag, or T-shirt, you are adding another hard inquiry to your credit report. When potential lenders see these inquiries, it may wrongly imply that you're either in some financial situation where you need a lot of credit, or are planning to take on a large debt. Either can flag you as a high credit risk.&lt;br /&gt;Other types of inquiries, such as your own requests to view the report, employer requests to view the report and requests by marketers to get your name in order to sell you something, count as soft inquiries. These inquiries don't show up on the reports that lenders see, and therefore don't affect how they view your credit.&lt;br /&gt;&lt;br /&gt;Debt in relation to income - If you have unsecured credit card debt that is more than 20 percent of your annual income, lenders may not want to give you the best deal on a loan -- if they'll take the chance and give you a loan in the first place. Work to reduce the debt-to-income ratio and you'll be able to get better rates on the loans you seek.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-3747071415577768579?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.howstuffworks.com/credit-report3.htm' title='How Lenders Interpret Your Credit Report'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/3747071415577768579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=3747071415577768579' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3747071415577768579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3747071415577768579'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/how-lenders-interpret-your-credit.html' title='How Lenders Interpret Your Credit Report'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-798293734975322599</id><published>2008-04-21T10:19:00.001-05:00</published><updated>2008-04-21T10:21:24.898-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='startup'/><category scheme='http://www.blogger.com/atom/ns#' term='pin package'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Load Oracle Package in SGA (Memory) at Startup</title><content type='html'>Load Oracle Package in SGA at Startup&lt;br /&gt;&lt;br /&gt;Normally whenever you call package for the first time, the entire package will be loaded in the memory. Memory is a shared area called share pool. Whenever there is a call to another stored procedure/function, oracle will try to find space in shared pool. If memory is available, object will be loaded into the memory. And if memory is not available then oracle will page out old procedures in memory using LRU (Least Recently Used) algorithm. If the large package which fit into the memory initially may not fit into contiguous memory when it is reloaded after paging out. It may give error ORA-4031.&lt;br /&gt;&lt;br /&gt;Pin Oracle Package&lt;br /&gt;&lt;br /&gt;To prevent paging, you can mark packages as non-swappable, telling the database that after their initial load they must always remain in memory. This is called pinning, or memory fencing. Oracle provides the procedure dbms_shared_pool.keep for pinning a package. You can unpin packages by using dbms_shared_pool.unkeep. In addition to pinning packages at database startup time, you can call the dbmspool.keep procedure at runtime to pin a package of stand-alone stored procedures.&lt;br /&gt;&lt;br /&gt;Oracle Corporation recommends that you always pin the STANDARD, DBMS_STANDARD, DBMS_UTILITY, DBMS_DESCRIBE, and DBMS_OUTPUT packages in the shared pool. You can use the following code:&lt;br /&gt;&lt;br /&gt;connect internal;&lt;br /&gt;@/usr/oracle/rdbms/admin/dbmspool.sql&lt;br /&gt;execute dbms_shared_pool.keep('sys.standard');&lt;br /&gt;&lt;br /&gt;You can write a standard procedure to pin all of the recommended Oracle packages into the shared pool. Here is the script:&lt;br /&gt;&lt;br /&gt;execute dbms_shared_pool.keep('DBMS_ALERT');&lt;br /&gt;execute dbms_shared_pool.keep('DBMS_DDL');&lt;br /&gt;execute dbms_shared_pool.keep('DBMS_UTILITY');&lt;br /&gt;execute dbms_shared_pool.keep('STANDARD');&lt;br /&gt;&lt;br /&gt;You can call this script at database startup. It will load all the required packages and procedures in the memory at startup.&lt;br /&gt;&lt;br /&gt; Reference: &lt;a href="http://www.dba-oracle.com/art_proc.htm"&gt;http://www.dba-oracle.com/art_proc.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-798293734975322599?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.dba-oracle.com/art_proc.htm' title='Load Oracle Package in SGA (Memory) at Startup'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/798293734975322599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=798293734975322599' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/798293734975322599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/798293734975322599'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/load-oracle-package-in-sga-memory-at.html' title='Load Oracle Package in SGA (Memory) at Startup'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-2474009445069239561</id><published>2008-04-18T12:39:00.004-05:00</published><updated>2008-04-18T15:30:49.360-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='running total'/><category scheme='http://www.blogger.com/atom/ns#' term='analytic'/><category scheme='http://www.blogger.com/atom/ns#' term='sum'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Getting Cumulative Sum Using Oracle Analytical Functions</title><content type='html'>&lt;a href="http://www.oracle.com/technology/oramag/code/tips2005/062005.html"&gt;http://www.oracle.com/technology/oramag/code/tips2005/062005.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.akadia.com/services/ora_analytic_functions.html"&gt;http://www.akadia.com/services/ora_analytic_functions.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Getting Cumulative Sum Using Oracle Analytical Functions&lt;br /&gt;This tip comes from &lt;a href="mailto:rware@vsc.teksystems.com"&gt;Robert Ware&lt;/a&gt;, DBA at TekSystems, in St. Louis, Missouri.&lt;br /&gt;&lt;br /&gt;The following code is an alternative way to get a cumulative sum by using Oracle Analytical Function. (This is an alternative approach to the &lt;a href="http://www.oracle.com/technology/oramag/code/tips2005/052305.html" target="_top"&gt;"Getting Cumulative Sum"&lt;/a&gt; code tip of May 23, 2005.)&lt;br /&gt;SQL&gt; select deptno,&lt;br /&gt;2 ename,&lt;br /&gt;3 sal,&lt;br /&gt;4 sum(sal) over (partition by deptno&lt;br /&gt;5 order by sal,ename) CumDeptTot,&lt;br /&gt;6 sum(sal) over (partition by deptno) SalByDept,&lt;br /&gt;7 sum(sal) over (order by deptno, sal) CumTot,&lt;br /&gt;8 sum(sal) over () TotSal&lt;br /&gt;9 from emp&lt;br /&gt;10 order by deptno, sal;&lt;br /&gt;DEPTNO ENAME SAL CUMDEPTTOT SALBYDEPT CUMTOT TOTSAL&lt;br /&gt;---------- ---------- ---------- ---------- ---------- ---------- ----------&lt;br /&gt;10 MILLER 1300 1300 8750 1300 29025&lt;br /&gt;10 CLARK 2450 3750 8750 3750 29025&lt;br /&gt;10 KING 5000 8750 8750 8750 29025&lt;br /&gt;20 SMITH 800 800 10875 9550 29025&lt;br /&gt;20 ADAMS 1100 1900 10875 10650 29025&lt;br /&gt;20 JONES 2975 4875 10875 13625 29025&lt;br /&gt;20 FORD 3000 7875 10875 19625 29025&lt;br /&gt;20 SCOTT 3000 10875 10875 19625 29025&lt;br /&gt;30 JAMES 950 950 9400 20575 29025&lt;br /&gt;30 MARTIN 1250 2200 9400 23075 29025&lt;br /&gt;30 WARD 1250 3450 9400 23075 29025&lt;br /&gt;30 TURNER 1500 4950 9400 24575 29025&lt;br /&gt;30 ALLEN 1600 6550 9400 26175 29025&lt;br /&gt;30 BLAKE 2850 9400 9400 29025 29025&lt;br /&gt;14 rows selected.&lt;br /&gt;sum(sal) over (partition by deptno order by sal, ename) CumDeptTot: Computes a running total on salaries within a department, in order of salaries from lowest salary to the highest. Adding the ORDER BY clause changed the behavior of the analytic function. Instead of working on every row in the partition, it worked only on the current and prior rows in the partition after sorting by SAL.&lt;br /&gt;sum(sal) over (partition by deptno) SalByDept: Computes a department total. The SAL column was summed by department now. The individual EMP records can compare their salary against the total salary made in that department. The PARTITION keyword breaks up our result set into virtual partitions on which the analytic functions will be applied.&lt;br /&gt;sum(sal) over (order by deptno, sal) CumTot: Creates a running total of the SAL column after the data was sorted by DEPTNO and then SAL. Since out entire result set would be sorted this way, it becomes a running total for our entire result set.&lt;br /&gt;sum(sal) over () TotSal: Computes a grand total. This is equivalent to select sum(sal) from emp, but that query would return only one row. Here we get the sum of SAL associated with each detail row. We can easily compare each salary in the EMP table to the grand total sum of SAL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-2474009445069239561?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.oracle.com/technology/oramag/code/tips2005/062005.html' title='Getting Cumulative Sum Using Oracle Analytical Functions'/><link rel='enclosure' type='text/html' href='http://www.oracle.com/technology/oramag/code/tips2005/062005.html' length='0'/><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/2474009445069239561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=2474009445069239561' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2474009445069239561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2474009445069239561'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/getting-cumulative-sum-using-oracle.html' title='Getting Cumulative Sum Using Oracle Analytical Functions'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-7955704369640016641</id><published>2008-04-17T13:59:00.003-05:00</published><updated>2008-04-18T12:47:28.038-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Current Shell'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Shell Script'/><title type='text'>Which Shell I am using in Unix</title><content type='html'>Try following commands:&lt;br /&gt;&lt;br /&gt;$echo $0&lt;br /&gt;OR&lt;br /&gt;$finger -m &lt;username&gt;&lt;br /&gt;OR&lt;br /&gt;$echo $SHELL&lt;br /&gt;OR&lt;br /&gt;$ps -p $$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-7955704369640016641?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/7955704369640016641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=7955704369640016641' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7955704369640016641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7955704369640016641'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/which-shell-i-am-using-in-unix.html' title='Which Shell I am using in Unix'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-5023071036999193325</id><published>2008-04-16T09:04:00.003-05:00</published><updated>2008-04-18T12:48:02.608-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql version'/><category scheme='http://www.blogger.com/atom/ns#' term='query'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Query to find current version of Oracle</title><content type='html'>There are two ways to find out the current version of Oracle using sqlplus.&lt;br /&gt;&lt;br /&gt;First is is when you start sqlplus, it will display the version. It will look something like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;SQL*Plus: Release 9.2.0.8.0 - Production on Wed Apr 16 10:06:34 2008&lt;br /&gt;Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.&lt;br /&gt;Enter user-name:&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Second way is to run following query :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;SQL&gt; select * from v$version ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;Connected to:Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit ProductionWith the Partitioning optionJServer Release 9.2.0.8.0 - Production&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-5023071036999193325?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/5023071036999193325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=5023071036999193325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5023071036999193325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/5023071036999193325'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/query-to-find-current-version-of-oracle.html' title='Query to find current version of Oracle'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-2446034710563839945</id><published>2008-04-11T09:42:00.002-05:00</published><updated>2008-04-18T12:48:26.700-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Editor'/><category scheme='http://www.blogger.com/atom/ns#' term='Vi'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>Vi Editor Settings</title><content type='html'>&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"&gt;&lt;br /&gt;&lt;a href="http://www.eng.hawaii.edu/Tutor/vi.html#settings"&gt;http://www.eng.hawaii.edu/Tutor/vi.html#settings&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:78%;color:#000080;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;!--7--&gt;&lt;hr size="1"&gt;&lt;/hr&gt;Meet people who discuss and share your passions. &lt;a href="http://in.rd.yahoo.com/tagline_groups_7/*http://in.promos.yahoo.com/groups/bestofyahoo/"&gt;Join them now.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-2446034710563839945?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/2446034710563839945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=2446034710563839945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2446034710563839945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2446034710563839945'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/04/vi-editor-settings.html' title='Vi Editor Settings'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-2917676309671103832</id><published>2008-03-31T15:54:00.007-05:00</published><updated>2008-04-21T14:39:23.966-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='collection'/><category scheme='http://www.blogger.com/atom/ns#' term='10g new feature'/><category scheme='http://www.blogger.com/atom/ns#' term='ref cursor'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='tablespace'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Good Topics</title><content type='html'>&lt;span style="FONT-WEIGHT: bold;font-size:130%;" &gt;Dictionary managed tablespaces&lt;/span&gt;&lt;br /&gt;Extents are allocated according to the following storage parameters&lt;br /&gt;initial&lt;br /&gt;next&lt;br /&gt;pctincrease&lt;br /&gt;The information about used and free extents is stored in the dictionary.&lt;br /&gt;Locally managed tablespaces&lt;br /&gt;A 'bitmap' is stored within the tablespace. Each bit within this bitmap determines if a corresponding extent in the tablespace is free or used.&lt;br /&gt;The extent sizes are either uniform or autoallocate. Hence, the following storage parameters don't make sense and are not permitted:&lt;br /&gt;next&lt;br /&gt;pctincrease&lt;br /&gt;minextents&lt;br /&gt;maxextents&lt;br /&gt;default storage&lt;br /&gt;Locally managed tablespaces have two advantages: recursive space management is avoided and adjacent free space is automatically coalesced.&lt;br /&gt;&lt;a name="AEN16989"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold;font-size:130%;" &gt;&lt;a name="SPL-REF-CURSOR-OVERVIEW"&gt;REF CURSOR Overview&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;A cursor variable is a cursor that actually contains a pointer to a query result set. The result set is determined by the execution of the OPEN FOR statement using the cursor variable.&lt;br /&gt;A cursor variable is not tied to a single particular query like a static cursor. The same cursor variable may be opened a number of times with OPEN FOR statements containing different queries. Each time, a new result set is created from that query and made available via the cursor variable.&lt;br /&gt;REF CURSOR types may be passed as parameters to or from stored procedures and functions. The return type of a function may also be a REF CURSOR type. This provides the capability to modularize the operations on a cursor into separate programs by passing a cursor variable between programs.&lt;br /&gt;We can define ref cursor with SYS_REFCURSOR built-in data type as well as creating a type of REF CURSOR and then declaring a variable of that type. SYS_REFCURSOR is a REF CURSOR type that allows any result set to be associated with it. This is known as a weakly-typed REF CURSOR.&lt;br /&gt;Only the declaration of SYS_REFCURSOR and user defined REF CURSOR variable's is different. The remaining usage like opening the cursor, selecting into the cursor and closing the cursor is the same across both the cursor types.&lt;br /&gt;The following is the syntax for declaring a SYS_REFCURSOR cursor variable: name SYS_REFCURSOR;&lt;br /&gt;DECLARE&lt;br /&gt;emp_refcur SYS_REFCURSOR;&lt;br /&gt;You must perform two distinct declaration steps in order to use a user defined REF CURSOR variable:&lt;br /&gt;1. Create a referenced cursor TYPE&lt;br /&gt;2. Declare the actual cursor variable based on that TYPE&lt;br /&gt;The syntax for creating a user defined REF CURSOR type is as follows: TYPE cursor_type_name IS REF CURSOR [RETURN return_type];&lt;br /&gt;The following is an example of a cursor variable declaration. DECLARE&lt;br /&gt;TYPE emp_cur_type IS REF CURSOR RETURN emp%ROWTYPE;&lt;br /&gt;my_rec emp_cur_type;&lt;br /&gt;CREATE OR REPLACE PROCEDURE emp_by_dept (&lt;br /&gt;p_deptno emp.deptno%TYPE&lt;br /&gt;)&lt;br /&gt;IS&lt;br /&gt;emp_refcur SYS_REFCURSOR;&lt;br /&gt;v_empno emp.empno%TYPE;&lt;br /&gt;v_ename emp.ename%TYPE;&lt;br /&gt;BEGIN&lt;br /&gt;OPEN emp_refcur FOR SELECT empno, ename FROM emp WHERE deptno = p_deptno;&lt;br /&gt;DBMS_OUTPUT.PUT_LINE('EMPNO ENAME');&lt;br /&gt;DBMS_OUTPUT.PUT_LINE('----- -------');&lt;br /&gt;LOOP&lt;br /&gt;FETCH emp_refcur INTO v_empno, v_ename;&lt;br /&gt;EXIT WHEN emp_refcur%NOTFOUND;&lt;br /&gt;DBMS_OUTPUT.PUT_LINE(v_empno ' ' v_ename);&lt;br /&gt;END LOOP;&lt;br /&gt;CLOSE emp_refcur;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;A &lt;span style="FONT-WEIGHT: bold;font-size:130%;" &gt;VARRAY&lt;/span&gt; is a collection with maximum limit set. A VARRAY can hold any defined datatype. A VARRAY is a dense collection, meaning that you can only add or remove objects from the end. You define a VARRAY first as a type, and then define a variable that is the actual collection.&lt;br /&gt;SQL&amp;gt; declare 2 type auth_var is varray(10) of 3 author.author_last_name%type; 4 a_auth auth_var := auth_var(); --Initilization 5 begin 6 a_auth.extend; 7 a_auth(1) := 'Arpit'; 8 a_auth.extend; 9 a_auth(a_auth.last) := 'Nirav';&lt;br /&gt;10 a_auth.extend; 11 a_auth(a_auth.last) := 'Amit'; 10 dbms_output.put_line( a_auth(1) ' and ' a_auth(2)); 11 end; /&lt;br /&gt;A VARRAY can not be used until it is initialized. In line 4 the auth_var() function actually does the initialization.&lt;br /&gt;Once the array is initialized you can extend it and add elements, which we do in lines 6 through 9. We access each element using the VARRAY variable and the index number. When the PL/SQL block ends (or the array variable goes out of scope), the memory used by the array is recovered automatically by the PL/SQL engine. Unlike a cursor, you do not close a collection.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;10g New Features:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Provides support for regular expressions as in Unix/Perl&lt;br /&gt;Ability to receive warning when compiling the code. We can get warnings using parameter plsql_warning or DBMS_WARNING package.&lt;br /&gt;BINARY_FLOAT / BINARY_DOUBLE (Native floating point data types and is alternative to NUMBER datatype)&lt;br /&gt;DBMS_LOB offers support of large LOBs (between 8 and 12 terrabytes)&lt;br /&gt;Handling of quotes in string (') can be done using q'! &amp;lt;text with quotes...&amp;gt;!'&lt;br /&gt;ErWin&lt;br /&gt;&lt;br /&gt;When you create a relationship between entities, ERwin automatically migrates the primary key attribute(s) of the parent entity, to the child entity. The designator (FK) indicates the name of the migrated key attribute, also known as a foreign key. This migration occurs automatically in the physical model.&lt;br /&gt;In an&lt;span style="FONT-WEIGHT: bold"&gt; identifying relationship&lt;/span&gt; (displayed using solid line), the FK migrates above the line and becomes part of the primary key of the child entity. In a non-identifying relationship (displayed using dotted line), the foreign key migrates below the line and becomes a non-key attribute in the child entity. In ERwin, a dashed line represents a non-identifying relationship.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold;font-size:130%;" &gt;Data warehousing questions&lt;/span&gt;&lt;br /&gt;What is a Star Schema?&lt;br /&gt;Star schema is a type of organizing the tables such that we can retrieve the result from the database quickly in the warehouse environment.&lt;br /&gt;&lt;br /&gt;What is Snow Flake Schema?&lt;br /&gt;Snowflake Schema, each dimension has a primary dimension table, to which one or more additional dimensions can join. The primary dimension table is the only table that can join to the fact table.&lt;br /&gt;&lt;br /&gt;Differences between star and snowflake schema?&lt;br /&gt;Star schema - A single fact table with N number of Dimension, all dimensions will be linked directly with a fact table. This schema is de-normalized and results in simple join and less complex query as well as faster results.&lt;br /&gt;Snow schema - Any dimensions with extended dimensions are know as snowflake schema, dimensions maybe interlinked or may have one to many relationship with other tables. This schema is normalized and results in complex join and very complex query as well as slower results.&lt;br /&gt;&lt;br /&gt;What is Difference between ER Modeling and Dimensional Modeling?&lt;br /&gt;ER modeling is used for normalizing the OLTP database design. Dimensional modeling is used for de-normalizing the ROLAP/MOLAP design.&lt;br /&gt;&lt;br /&gt;What is degenerate dimension table?&lt;br /&gt;If a table contains the values, which are neither dimension nor measures is called degenerate dimensions.&lt;br /&gt;&lt;br /&gt;Why is Data Modeling Important?&lt;br /&gt;Data modeling is probably the most labor intensive and time consuming part of the development process. The goal of the data model is to make sure that the all data objects required by the database are completely and accurately represented. Because the data model uses easily understood notations and natural language , it can be reviewed and verified as correct by the end-users.In computer science, data modeling is the process of creating a data model by applying a data model theory to create a data model instance. A data model theory is a formal data model description. When data modelling, we are structuring and organizing data. These data structures are then typically implemented in a database management system. In addition to defining and organizing the data, data modeling will impose (implicitly or explicitly) constraints or limitations on the data placed within the structure.Managing large quantities of structured and unstructured data is a primary function of information systems. Data models describe structured data for storage in data management systems such as relational databases. They typically do not describe unstructured data, such as word processing documents, email messages, pictures, digital audio, and video. (Reference : &lt;a title="Wikipedia" href="http://en.wikipedia.org/wiki/Data_modeling" target="_blank"&gt;Wikipedia&lt;/a&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-2917676309671103832?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/2917676309671103832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=2917676309671103832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2917676309671103832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/2917676309671103832'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/interview-questions.html' title='Good Topics'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-3899399882480937938</id><published>2008-03-28T11:23:00.016-05:00</published><updated>2008-05-02T11:02:55.184-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='top n'/><category scheme='http://www.blogger.com/atom/ns#' term='query'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><category scheme='http://www.blogger.com/atom/ns#' term='alternate record'/><category scheme='http://www.blogger.com/atom/ns#' term='delete duplicate'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Query Examples [Delete Duplicate, Top-N Analysis, Alternate Records]</title><content type='html'>SQL Query to delete duplicate records&lt;br /&gt;&lt;br /&gt;delete from t2 a&lt;br /&gt;where a.rowid &amp;gt; (select min(rowid)&lt;br /&gt;from t2 b&lt;br /&gt;where a.c1 = b.c1)&lt;br /&gt;&lt;br /&gt;delete from t2 a&lt;br /&gt;where a.rowid not in (select max(rowid)&lt;br /&gt;from t2 b&lt;br /&gt;where a.c1 = b.c1)&lt;br /&gt;&lt;br /&gt;Query to select nth highest row in the table:&lt;br /&gt;1] select a.sal&lt;br /&gt;from emp a&lt;br /&gt;where (&amp;amp;n-1) = (select count(distinct(b.sal))&lt;br /&gt;from emp b&lt;br /&gt;where b.sal &amp;gt; a.sal)&lt;br /&gt;Oracle 10g new feature : Handling of quotes in string&lt;br /&gt;insert into emp&lt;br /&gt;values (1234, q'!Arpit'sdfs!', 'Engg', 7902, '24-feb-1968',2334, 12 , NULL)&lt;br /&gt;&lt;br /&gt;EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO&lt;br /&gt;7839 KING PRESIDENT 17-NOV-81 5000 10&lt;br /&gt;7902 FORD ANALYST 7566 03-DEC-81 3000 20&lt;br /&gt;7788 SCOTT ANALYST 7566 19-APR-87 3000 20&lt;br /&gt;7566 JONES MANAGER 7839 02-APR-81 2975 20&lt;br /&gt;7698 BLAKE MANAGER 7839 01-MAY-81 2850 30&lt;br /&gt;7782 CLARK MANAGER 7839 09-JUN-81 2450 10&lt;br /&gt;7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30&lt;br /&gt;7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30&lt;br /&gt;7934 MILLER CLERK 7782 23-JAN-82 1300 10&lt;br /&gt;7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30&lt;br /&gt;7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30&lt;br /&gt;7876 ADAMS CLERK 7788 23-MAY-87 1100 20&lt;br /&gt;7900 JAMES CLERK 7698 03-DEC-81 950 30&lt;br /&gt;7369 SMITH CLERK 7902 17-DEC-80 800 20&lt;br /&gt;2] SELECT * FROM ( SELECT deptno, ename, sal, DENSE_RANK() OVER ( PARTITION BY deptno ORDER BY sal desc ) TopN FROM emp)&lt;br /&gt;WHERE TopN &lt;= 3ORDER BY deptno, sal DESC/ &lt;br /&gt;&lt;br /&gt;3] SELECT * FROM ( SELECT deptno, ename, sal, ROW_NUMBER() OVER ( PARTITION BY deptno ORDER BY sal DESC ) Top3 FROM emp)&lt;br /&gt;WHERE Top3 &lt;= 3 ; &lt;br /&gt;&lt;br /&gt;[Gives only first 3. Duplicates r counted as 2] &lt;br /&gt;&lt;br /&gt;Query to select alternate records from table &lt;br /&gt;&lt;br /&gt;SELECT * &lt;br /&gt;FROM emp &lt;br /&gt;WHERE (rowid,1) IN (SELECT rowid,mod(rownum,2) FROM emp); &lt;br /&gt;&lt;br /&gt;SELECT * FROM ( SELECT rownum r, emp.* FROM emp ) temp WHERE MOD(temp.r,2) = 1 ;&lt;br /&gt;&lt;br /&gt;EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO &lt;br /&gt;1234 Arpit'sdfs Engg 7902 24-FEB-68 2334 12 &lt;br /&gt;7369 SMITH CLERK 7902 17-DEC-80 800 20 &lt;br /&gt;7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 &lt;br /&gt;7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 &lt;br /&gt;7566 JONES MANAGER 7839 02-APR-81 2975 20 &lt;br /&gt;7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 &lt;br /&gt;7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 &lt;br /&gt;7782 CLARK MANAGER 7839 09-JUN-81 2450 10 &lt;br /&gt;7788 SCOTT ANALYST 7566 19-APR-87 3000 20 &lt;br /&gt;7839 KING PRESIDENT 17-NOV-81 5000 10 &lt;br /&gt;7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 &lt;br /&gt;7876 ADAMS CLERK 7788 23-MAY-87 1100 20 &lt;br /&gt;7900 JAMES CLERK 7698 03-DEC-81 950 30 &lt;br /&gt;7902 FORD ANALYST 7566 03-DEC-81 3000 20 &lt;br /&gt;7934 MILLER CLERK 7782 23-JAN-82 1300 10&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-3899399882480937938?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/3899399882480937938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=3899399882480937938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3899399882480937938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3899399882480937938'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/query-examples.html' title='Query Examples [Delete Duplicate, Top-N Analysis, Alternate Records]'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-7317598726531905862</id><published>2008-03-12T10:47:00.004-05:00</published><updated>2008-04-18T12:51:02.563-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='formatting'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><category scheme='http://www.blogger.com/atom/ns#' term='report'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>SQL Report in CSV format with column heading</title><content type='html'>&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"&gt;&lt;br /&gt;In SQL Reports, if you use "set pages 0" then it will remove heading from the report. The solution is to&lt;br /&gt;either use "set pages 99999", which will create page break after specified number of pages or to use "set emb on pages 0 newp 0"&lt;br /&gt;&lt;br /&gt;Report::::&lt;br /&gt;&lt;br /&gt;set feedback off;&lt;br /&gt;set heading on;&lt;br /&gt;set pages 9999;&lt;br /&gt;set lines 365;&lt;br /&gt;set underline off;&lt;br /&gt;set colsep ',';&lt;br /&gt;spool c:\try.csv&lt;br /&gt;select empno as emp_no from emp ;.&lt;br /&gt;spool off; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-7317598726531905862?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/7317598726531905862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=7317598726531905862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7317598726531905862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/7317598726531905862'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/sql-report-in-csv-format-with-column.html' title='SQL Report in CSV format with column heading'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-9074364750668614839</id><published>2008-03-10T14:58:00.002-05:00</published><updated>2008-04-18T12:51:28.058-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='developer'/><category scheme='http://www.blogger.com/atom/ns#' term='migration'/><category scheme='http://www.blogger.com/atom/ns#' term='forms'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>To convert Oracle forms 3.0 inp to fmb (Oracle 4.5/ 6i)</title><content type='html'>&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To convert forms 3.0 inp to fmb&lt;br /&gt;&lt;br /&gt;Open Start &amp;gt; Programs &amp;gt; Oracle Developer Suite &amp;gt; Forms Developer &amp;gt; forms Compiler&lt;br /&gt;&lt;br /&gt;1. Select inp file&lt;br /&gt;2. Give uid,pwd, db&lt;br /&gt;3. Tick Upgrade 3.0 Forms or 5.0 Menu to current release.&lt;br /&gt;4. Tick Widen Field Display length by 1 when upgrading&lt;br /&gt;5. Uncheck Build a runform/runmenu file when upgrading.&lt;br /&gt;6. Version to upgrade : 30&lt;br /&gt;7. Tick Compile all PL/SQL code&lt;br /&gt;8. Tick Strip PL/SQL source from library.&lt;br /&gt;9. Upgrade PL/SQL from V1 to V2.&lt;br /&gt;10. Write output to File :: Give output file name and path&lt;br /&gt;11. Tick Add key-up and down triggers when upgrading.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;!--2--&gt;&lt;hr size="1"&gt;&lt;/hr&gt;Unlimited freedom, unlimited storage. &lt;a href="http://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/"&gt;Get it now&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-9074364750668614839?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/9074364750668614839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=9074364750668614839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/9074364750668614839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/9074364750668614839'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/to-convert-oracle-forms-30-inp-to-fmb.html' title='To convert Oracle forms 3.0 inp to fmb (Oracle 4.5/ 6i)'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1352800667973181018</id><published>2008-03-10T14:56:00.001-05:00</published><updated>2008-04-18T12:52:04.783-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='developer'/><category scheme='http://www.blogger.com/atom/ns#' term='D2K'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='tnsnames'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Developer 2000 installation configuration</title><content type='html'>&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"&gt;&lt;br /&gt;&lt;br /&gt;After installing D2K forms 6, you are required to configure tnsnames.ora&lt;br /&gt;file.&lt;br /&gt;Location of tnsnames.ora file.&lt;br /&gt;&lt;br /&gt;C:\DevSuiteHome\network\admin&lt;br /&gt;&lt;br /&gt;C:\devsuitehome is the folder path in which u have installed oracle forms.&lt;br /&gt;&lt;br /&gt;OPEN tnsnames.ora.&lt;br /&gt;&lt;br /&gt;Add following lines in it.&lt;br /&gt;&lt;br /&gt;As a host you required to give ip or pc name of pc in which oracle&lt;br /&gt;database is installed to which u want to connect.&lt;br /&gt;Port is port at which oracle db listener is installed. It will be 1521&lt;br /&gt;fixed in most of the cases so dont need to change.&lt;br /&gt;&lt;br /&gt;And service name is name of SID of Oracle database.&lt;br /&gt;&lt;br /&gt;XYZ =&lt;br /&gt;  (DESCRIPTION =&lt;br /&gt;    (ADDRESS_LIST =&lt;br /&gt;      (ADDRESS = (PROTOCOL = TCP)(HOST = 11.6.0.15)(PORT = 1521))&lt;br /&gt;    )&lt;br /&gt;    (CONNECT_DATA =&lt;br /&gt;      (SERVICE_NAME = ABCD)&lt;br /&gt;    )&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;After adding this lines in tnsnames.ora file you are ready to use D2K.&lt;br /&gt;&lt;br /&gt;In the Connect dialog box give user name , password, and database which&lt;br /&gt;the one you have specified in tnsnames.ora. In above case it will be XYZ.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;!--5--&gt;&lt;hr size="1"&gt;&lt;/hr&gt;Get the freedom to save as many mails as you wish. &lt;a href="http://in.rd.yahoo.com/tagline_mail_5/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/"&gt;Click here to know how.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1352800667973181018?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1352800667973181018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1352800667973181018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1352800667973181018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1352800667973181018'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/developer-2000-installation.html' title='Developer 2000 installation configuration'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-1913382001899405392</id><published>2008-03-10T14:50:00.002-05:00</published><updated>2008-04-18T12:52:46.140-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='session'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Session id of current user who is using Oracle ias form or sqlplus</title><content type='html'>&lt;div style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"&gt;&lt;br /&gt;&lt;br /&gt;Oracle fuction to know session id of current user who is using either&lt;br /&gt;ias form or sqlplus.&lt;br /&gt;&lt;br /&gt;SELECT 'SID='TO_CHAR(SID)' SERIAL#='TO_CHAR(SERIAL#)'&lt;br /&gt;AUDSID='sys_context('USERENV','SESSIONID')&lt;br /&gt;        ' OSUSER='OSUSER' MACHINE='MACHINE' 'NVL(TERMINAL,'')&lt;br /&gt;        INTO :session_info&lt;br /&gt;        FROM V$SESSION&lt;br /&gt;        WHERE AUDSID= sys_context('USERENV','SESSIONID');&lt;br /&gt;&lt;br /&gt;select sys_context('USERENV','SESSIONID') from dual;&lt;br /&gt;&lt;br /&gt;Using sys_context('USERENV','SESSIONID')  this function you&lt;br /&gt;will get audsid of current user and then&lt;br /&gt;by using this id on V$session table&lt;br /&gt;you will get detail like sid,session#,&lt;br /&gt;machine through which user is using sqlplus.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;!--10--&gt;&lt;hr size="1"&gt;&lt;/hr&gt;Chat on a cool, new interface. No download required. &lt;a href="http://in.rd.yahoo.com/tagline_webmessenger_10/*http://in.messenger.yahoo.com/webmessengerpromo.php"&gt;Click here.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-1913382001899405392?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/1913382001899405392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=1913382001899405392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1913382001899405392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/1913382001899405392'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/session-id-of-current-user-who-is-using.html' title='Session id of current user who is using Oracle ias form or sqlplus'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-206506750326176895</id><published>2008-03-10T14:32:00.001-05:00</published><updated>2008-04-18T12:53:15.769-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='number to text'/><category scheme='http://www.blogger.com/atom/ns#' term='query'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Converting Number to Text using Oracle SQL Explained</title><content type='html'>&lt;u&gt;Query:&lt;/u&gt;&lt;br /&gt;select to_char(to_date('456','J'),'Jsp') --replace 456 with your number or variablefrom dual&lt;br /&gt;&lt;u&gt;Output:&lt;br /&gt;&lt;/u&gt;Four Hundred Fifty-Six&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How it works:&lt;br /&gt;&lt;u&gt;Step 1:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Following query will convert your number to date format. As this is number we need to specify 'J'ulian format.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Query:&lt;br /&gt;&lt;/u&gt;select to_date('456','J') --replace 456 with your number or variablefrom emp&lt;br /&gt;&lt;u&gt;Output:&lt;/u&gt;&lt;br /&gt;01-APR-11&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Step 2:&lt;br /&gt;&lt;/strong&gt;&lt;/u&gt;Following query will convert your number (date in 'J'ulian format) to text. If you write 'sp' after any format, the format will be spelled. So the number 456 will be converted to text as "Four Hundred Fifty-Six "&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Query:&lt;/u&gt;&lt;br /&gt;select to_char(to_date('456','J'),'Jsp') --replace 456 with your number or variablefrom dual&lt;br /&gt;&lt;u&gt;Output:&lt;/u&gt;&lt;br /&gt;Four Hundred Fifty-Six&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-206506750326176895?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/206506750326176895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=206506750326176895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/206506750326176895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/206506750326176895'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/converting-number-to-text-using-oracle.html' title='Converting Number to Text using Oracle SQL Explained'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-8549193625477263752</id><published>2008-03-09T16:38:00.000-05:00</published><updated>2008-03-09T16:53:23.788-05:00</updated><title type='text'>US Elcetions Explained</title><content type='html'>In US there are only two parties, namely Democratic and Republican. US presidential election occurs after every four years. In US Congress consist of two parts. House of Representatives and Senators. There are two senators from every state where as number of house of representatives will depend on population of particular state. Currently total senators are 100 and House of representatives are 435. And 3 members from Washington D.C. . So in total there are 538 members of House of Representatives.&lt;br /&gt;Before more than 1 year of election both the parties will start searching for suitable candidate for presidential election. In US presidential candidate will also be chosen by people. For that in every state primary or caucus are organised. Primary or caucus are almost same as election. But they will be held by state government and one for each party. People who are loyal to particular party will participate in Primary/Caucus for that party. In primary people will caste there vote and based on majority, the candidate will be selected. In caucus people marketing for particular candidate will discuss about the candidates with other people in group. The candidate, whose group are smaller will have to merge into other groups. And finally there will be elections between two groups.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-8549193625477263752?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/8549193625477263752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=8549193625477263752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/8549193625477263752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/8549193625477263752'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/us-elcetions-explained.html' title='US Elcetions Explained'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2356870753929006427.post-3013980660302312253</id><published>2008-03-09T16:27:00.001-05:00</published><updated>2008-04-18T12:53:47.656-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='truss'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='lsof'/><title type='text'>Use of truss and lsof in Unix</title><content type='html'>&lt;strong&gt;&lt;span style="font-family:arial;"&gt;First command is truss.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The truss utility executes the specified command and produces a trace of the system calls it performs, the signals it receives, and the machine faults it incurs. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Each line of the trace output reports either the fault or signal name or the system call name with its arguments and return value(s).The command can be used as::: truss ./abc [abc is executable program]On following link you can find examples of the same.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/aix/library/au-unix-tracingapps.html" target="_blank" rel="nofollow"&gt;&lt;span style="font-family:arial;"&gt;http://www.ibm.com/developerworks/aix/library/au-unix-tracingapps.html&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;Another useful command is lsof.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;lsof lists all the open files used by all the programs. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file.lsof can also be used to retrieve accidently deleted files, if they are currently being used by any process.On following link you can find examples of the same.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/aix/library/au-lsof.html?S_TACT=105AGX20&amp;amp;S_CMP=EDU" target="_blank" rel="nofollow"&gt;&lt;span style="font-family:arial;"&gt;http://www.ibm.com/developerworks/aix/library/au-lsof.html?S_TACT=105AGX20&amp;amp;S_CMP=EDU&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2356870753929006427-3013980660302312253?l=arpitshah4u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arpitshah4u.blogspot.com/feeds/3013980660302312253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2356870753929006427&amp;postID=3013980660302312253' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3013980660302312253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2356870753929006427/posts/default/3013980660302312253'/><link rel='alternate' type='text/html' href='http://arpitshah4u.blogspot.com/2008/03/use-of-truss-and-lsof-in-unix.html' title='Use of truss and lsof in Unix'/><author><name>Arpit</name><uri>http://www.blogger.com/profile/00513425552394091055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_UxcTWnmYP8s/R9RXnX0lL9I/AAAAAAAAAkw/syVVZ39UI4g/S220/DSC00353.JPG'/></author><thr:total>0</thr:total></entry></feed>
