<?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:blogger='http://schemas.google.com/blogger/2008' 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-5704690066084689969</id><updated>2025-07-28T03:52:25.481-07:00</updated><title type='text'>Blog for open world </title><subtitle type='html'>Upul Indika. Expedition for future</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-4048190821657465693</id><published>2014-08-18T05:55:00.002-07:00</published><updated>2014-09-23T00:23:16.430-07:00</updated><title type='text'>Oracle data all table keyword search.</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
SET SERVEROUTPUT ON SIZE 100000;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DECLARE&lt;br /&gt;
&amp;nbsp; match_count INTEGER;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;-- Type the owner of the tables you are looking at&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; v_owner VARCHAR2(255) :=&#39;SCOTT&#39;;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;-- Type the data type you are look at (in CAPITAL) VARCHAR2, NUMBER, etc.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; v_data_type VARCHAR2(255) :=&#39;VARCHAR2&#39;;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;-- Type the string you are looking at&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; v_search_string VARCHAR2(4000) :=&#39;%RCT2011030328%&#39;;&lt;br /&gt;
&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; FOR t IN (SELECT table_name, column_name FROM all_tab_cols where owner=v_owner and data_type = v_data_type) LOOP&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; EXECUTE IMMEDIATE &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;SELECT COUNT(*) FROM &#39;||t.table_name||&#39; WHERE lower(&#39;||t.column_name||&#39;) like :1&#39;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO match_count&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; USING v_search_string;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; IF match_count &amp;gt; 0 THEN&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --dbms_output.put_line( t.table_name ||&#39; &#39;||t.column_name||&#39; &#39;||match_count );&lt;br /&gt;
&amp;nbsp; INSERT INTO &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; XSTOCKS.trn_cds_checkdatastring a ( a.str_cds_place)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES (t.table_name ||&#39; &#39;||t.column_name||&#39; &#39;||match_count);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; END LOOP;&lt;br /&gt;
END; </content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/4048190821657465693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2014/08/electronic-data-sheet-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4048190821657465693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4048190821657465693'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2014/08/electronic-data-sheet-site.html' title='Oracle data all table keyword search.'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-6400824861764968448</id><published>2014-07-11T03:45:00.000-07:00</published><updated>2014-07-11T03:45:10.267-07:00</updated><title type='text'>Oracle Long operation monitoring</title><content type='html'>&lt;br /&gt;
&lt;u&gt;Lock session&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
select v$session.username, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v$lock.sid,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id1, id2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lmode,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request, block, v$lock.type , v$session.osuser , v$session.machine , v$session.process , v$process.pid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from v$lock, v$session , v$process&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where v$lock.sid = v$session.sid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and v$lock.type = &#39;TX&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and v$process.addr = v$session.paddr&lt;br /&gt;&amp;nbsp; order by username &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;active long operation&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
select username||&#39;(&#39;||sid||&#39;,&#39;||serial#||&#39;) ospid = &#39;|| process ||&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39; program = &#39; || program username,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_char(LOGON_TIME,&#39; Day HH24:MI&#39;) logon_time,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to_char(sysdate,&#39; Day HH24:MI&#39;) current_time,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql_address,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql_hash_value , a.osuser ,a.machine&amp;nbsp; ,a.last_call_et&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; from v$session a&lt;br /&gt;&amp;nbsp;&amp;nbsp; where status = &#39;ACTIVE&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp; and rawtohex(sql_address) &amp;lt;&amp;gt; &#39;00&#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp; and username is not null&lt;br /&gt;&amp;nbsp;&amp;nbsp; order by last_call_et desc &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Long opseration details&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;select&amp;nbsp; distinct x.sid , a.machine&amp;nbsp; , x.opname , a.program&amp;nbsp; , x.target , x.sofar ,x.totalwork , x.start_time , x.last_update_time ,x.time_remaining , x.elapsed_seconds , context , message,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql_text &lt;br /&gt;&amp;nbsp; from v$session_longops x , gv$sqlarea y , v$session a&lt;br /&gt;&amp;nbsp; where x.username = &#39;SYS&#39;&lt;br /&gt;&amp;nbsp; and x.sql_hash_value = y.HASH_VALUE&lt;br /&gt;&amp;nbsp; and a.sid = x.sid &lt;br /&gt;&amp;nbsp; and a.status = &#39;ACTIVE&#39;&lt;br /&gt;&amp;nbsp; order by TIME_REMAINING desc </content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/6400824861764968448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2014/07/oracle-long-operation-monitoring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6400824861764968448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6400824861764968448'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2014/07/oracle-long-operation-monitoring.html' title='Oracle Long operation monitoring'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-8404108304600193948</id><published>2014-07-11T03:42:00.001-07:00</published><updated>2014-07-11T03:42:14.739-07:00</updated><title type='text'>oracle dbms schedulers</title><content type='html'>BEGIN &lt;br /&gt;DBMS_SCHEDULER.CREATE_JOB ( &lt;br /&gt;job_name =&amp;gt; &#39;TEST_SHEDULE&#39;, &lt;br /&gt;job_type =&amp;gt; &#39;STORED_PROCEDURE&#39;, &lt;br /&gt;job_action =&amp;gt; &#39;DPG.SP_SHEDULE_TEST&#39;, &lt;br /&gt;start_date =&amp;gt; to_date(&#39;26/05/2011 13:38:00&#39; , &#39;DD/MM/RRRR HH24:MI:SS&#39; ), &lt;br /&gt;repeat_interval =&amp;gt; &#39;FREQ=MINUTELY;INTERVAL=2;&#39;, &lt;br /&gt;comments =&amp;gt; &#39;My new job&#39;); &lt;br /&gt;END; &lt;br /&gt;/ &lt;br /&gt;
DECLARE &lt;br /&gt;BEGIN &lt;br /&gt;DBMS_SCHEDULER.ENABLE(&#39;TEST_SHEDULE&#39;); &lt;br /&gt;END; &lt;br /&gt;
------------------------------------------------------------- &lt;br /&gt;
EXEC dbms_scheduler.run_job(&#39;TEST_SHEDULE&#39;); &lt;br /&gt;
------------------------------------------------------------- &lt;br /&gt;
EXEC DBMS_SCHEDULER.DROP_JOB(&#39;my_java_job&#39;); &lt;br /&gt;
------------------------------------------------------------- &lt;br /&gt;
SELECT * FROM dba_scheduler_jobs&amp;nbsp; where job_creator = &#39;DPG&#39; order by job_name </content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/8404108304600193948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2014/07/oracle-dbms-schedulers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8404108304600193948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8404108304600193948'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2014/07/oracle-dbms-schedulers.html' title='oracle dbms schedulers'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-4839974335157299249</id><published>2014-07-11T03:38:00.001-07:00</published><updated>2014-07-11T03:38:12.787-07:00</updated><title type='text'>How to create a yum repository on RHEL/CentOS 5.x with CD/DVD or ISO images</title><content type='html'>

&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 18pt;&quot;&gt;Mount
your CD/DVD or ISO images&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;DVD_Disk_or_DVD_ISO_image&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt;&quot;&gt;DVD Disk or DVD ISO
image&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.05in; mso-list: l1 level1 lfo1; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;If you have DVD disk, please
     mount dvd-rom first, and then create yum repository:&lt;/span&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(238, 238, 238); margin: 0in 0in 0pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: #880000; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;# mkdir
/mnt/dvd/&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# mount /dev/cdrom /mnt/dvd/&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.05in; mso-list: l0 level1 lfo2; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;If you use DVD iso, please copy
     it to the system, and then create yum repository:&lt;/span&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(238, 238, 238); margin: 0in 0in 0pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: #880000; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;# mkdir
/mnt/dvd/&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# mount -o loop /root/rhel5.1-dvd.iso /mnt/dvd&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;CD_images&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt;&quot;&gt;CD images&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15pt; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;If you have multiple CD image files, you
should mount all iso images and then create yum repository.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.05in; mso-list: l3 level1 lfo3; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Mount all iso images:&lt;/span&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(238, 238, 238); margin: 0in 0in 0pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: #880000; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;# mkdir -p
/mnt/{1,2,3,4,5}&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# mount -o loop rhel5.1-disc1.iso /mnt/1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# mount -o loop rhel5.1-disc2.iso /mnt/2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# mount -o loop rhel5.1-disc3.iso /mnt/3&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# mount -o loop rhel5.1-disc4.iso /mnt/4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# mount -o loop rhel5.1-disc5.iso /mnt/5&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Install_necessary_package&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 18pt;&quot;&gt;Install necessary
package&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.05in; mso-list: l4 level1 lfo4; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Find and install &#39;createrepo&#39;
     package in /mnt directory:&lt;/span&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(238, 238, 238); margin: 0in 0in 0pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: #880000; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;# find /mnt
-iname &#39;createrepo*&#39;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #666600;&quot;&gt;/&lt;/span&gt;mnt&lt;span style=&quot;color: #666600;&quot;&gt;/&lt;/span&gt;dvd&lt;span style=&quot;color: #666600;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #660066;&quot;&gt;Server&lt;/span&gt;&lt;span style=&quot;color: #666600;&quot;&gt;/&lt;/span&gt;createrepo&lt;span style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #006666;&quot;&gt;0.4&lt;/span&gt;&lt;span style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #006666;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #006666;&quot;&gt;3.el5.noarch&lt;/span&gt;&lt;span style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;rpm&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# rpm -ivh
/mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Create_yum_repository&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 18pt;&quot;&gt;Create yum repository&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Create_metadata&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt;&quot;&gt;Create metadata&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.05in; mso-list: l2 level1 lfo5; tab-stops: list .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Create yum repository:&lt;/span&gt;&lt;span style=&quot;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: rgb(238, 238, 238); margin: 0in 0in 0pt 0.5in;&quot;&gt;
&lt;span style=&quot;color: #880000; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;# cd /mnt/&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# createrepo .&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Define_yum_repository&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt;&quot;&gt;Define yum repository&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15pt; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;Create yum repository define file
/etc/yum.repos.d/dvdiso.repo:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #666600; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #660066; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;MailRepo&lt;/span&gt;&lt;span style=&quot;color: #666600; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
name&lt;span style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #660066;&quot;&gt;MailRepo&lt;/span&gt;&lt;br /&gt;
baseurl&lt;span style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;file&lt;span style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #880000;&quot;&gt;///mnt/&lt;/span&gt;&lt;br /&gt;
enabled&lt;span style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
gpgcheck&lt;span style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Test_it&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 13.5pt;&quot;&gt;Test it&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;color: #880000; font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;# yum clean all&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Console&amp;quot;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #880000;&quot;&gt;# yum list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15pt; margin: 0in 0in 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;If &#39;yum list&#39; list all packages in DVD/CD
disks or ISO images, it works. :)&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/4839974335157299249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2014/07/how-to-create-yum-repository-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4839974335157299249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4839974335157299249'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2014/07/how-to-create-yum-repository-on.html' title='How to create a yum repository on RHEL/CentOS 5.x with CD/DVD or ISO images'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-2749173675911192090</id><published>2014-04-08T21:50:00.000-07:00</published><updated>2014-04-08T21:50:01.290-07:00</updated><title type='text'>Send Email using mysql trigger</title><content type='html'>&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;CREATE&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;TRIGGER&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; dbo&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;whatever
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;ON&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; dbo&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;wherever
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;FOR&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;INSERT&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;AS&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;BEGIN&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;SET&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; NOCOUNT &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;ON&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;IF&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;EXISTS&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; inserted &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; speed &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;BEGIN&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;EXEC&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; msdb&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;dbo&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;sp_send_dbmail
          &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;whoever@yourcompany.com&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;profile_name &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;default&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;subject &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;Someone was speeding&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;body &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;Yep, they sure were.&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;END&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;END&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
GO&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/2749173675911192090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2014/04/send-email-using-mysql-trigger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/2749173675911192090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/2749173675911192090'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2014/04/send-email-using-mysql-trigger.html' title='Send Email using mysql trigger'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-7521634809613196705</id><published>2013-09-15T03:54:00.000-07:00</published><updated>2013-09-15T03:54:16.437-07:00</updated><title type='text'>Java ArrayList Example </title><content type='html'>&lt;pre class=&quot;prettyprint prettyprinted&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; java&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;util&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ArrayList&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ArrayListDemo&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;[]&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; args&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// create an empty array list with an initial capacity&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ArrayList&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Integer&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; arrlist &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ArrayList&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Integer&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// use add() method to add elements in the list&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      arrlist&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      arrlist&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      arrlist&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      arrlist&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;add&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;        
       
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// let us print all the elements available in list&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Integer&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; number &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; arrlist&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Number = &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; number&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// list contains element 10&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;boolean&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; retval &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; arrlist&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
   
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;retval &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;element 10 is contained in the list&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;element 10 is not contained in the list&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
  
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// list does not contain element 30&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;boolean&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; retval2 &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; arrlist&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;retval2 &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;element 30 is contained in the list&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
       &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;element 30 is not contained in the list&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;    
       &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
Let us compile and run the above program, this will produce the following result:&lt;br /&gt;

&lt;pre class=&quot;prettyprint prettyprinted&quot;&gt;&lt;span class=&quot;typ&quot;&gt;Number&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Number&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Number&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Number&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
element &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; contained &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; the list
element &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;not&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; contained &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; the list&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/7521634809613196705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/09/java-arraylist-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/7521634809613196705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/7521634809613196705'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/09/java-arraylist-example.html' title='Java ArrayList Example '/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-6666671325634086933</id><published>2013-09-13T12:58:00.000-07:00</published><updated>2013-09-13T13:10:53.113-07:00</updated><title type='text'>send e-mail configuration using Access list to Network Services in Oracle Database 11g </title><content type='html'>&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif; font-size: small;&quot;&gt;•acl - The name of the access control list XML file, generated relative to the &quot;/sys/acls&quot; directory in the XML DB Repository.&lt;br /&gt;•description - A description of the ACL.&lt;br /&gt;•principal - The first user account or role being granted or denied permissions. The text is case sensitive.&lt;br /&gt;•is_grant - TRUE to grant, FALSE to deny the privilege.&lt;br /&gt;•privilege - Use &#39;connect&#39; for UTL_TCP, UTL_SMTP, UTL_MAIL and UTL_HTTP access. Use &#39;resolve&#39; for UTL_INADDR name/IP resolution. The text is case sensitive.&lt;br /&gt;•start_date - Default value NULL. When specified, the ACL will only be active on or after the specified date.&lt;br /&gt;•end_date - An optional end date for the ACL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CONN sys/password@db11g AS SYSDBA&lt;br /&gt;&lt;br /&gt;CREATE USER test1 IDENTIFIED BY test1;&lt;br /&gt;GRANT CONNECT TO test1;&lt;br /&gt;&lt;br /&gt;CREATE USER test2 IDENTIFIED BY test2;&lt;br /&gt;GRANT CONNECT TO test2;&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp; DBMS_NETWORK_ACL_ADMIN.create_acl (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; acl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;test_acl_file.xml&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; description&amp;nbsp; =&amp;gt; &#39;A test of the ACL functionality&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; principal&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;TEST1&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_grant&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; TRUE, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; privilege&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;connect&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; start_date&amp;nbsp;&amp;nbsp; =&amp;gt; SYSTIMESTAMP,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; NULL);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp; DBMS_NETWORK_ACL_ADMIN.add_privilege ( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; acl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;test_acl_file.xml&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; principal&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;TEST2&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_grant&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; FALSE, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; privilege&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;connect&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; position&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; NULL, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; start_date&amp;nbsp; =&amp;gt; NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_date&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; NULL);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp; DBMS_NETWORK_ACL_ADMIN.delete_privilege ( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; acl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;test_acl_file.xml&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; principal&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;TEST2&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_grant&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; FALSE, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; privilege&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;connect&#39;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp; DBMS_NETWORK_ACL_ADMIN.drop_acl ( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; acl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;test_acl_file.xml&#39;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;•acl - The name of the access control list XML file.&lt;br /&gt;•host - The hostname, domain, IP address or subnet to be assigned. Hostnames are case sensitive, and wildcards are allowed for IP addresses and domains.&lt;br /&gt;•lower_port - Defaults to NULL. Specifies the lower port range for the &#39;connect&#39; privilege.&lt;br /&gt;•upper_port - Defaults to NULL. If the lower_port is specified, and the upper_port is NULL, it is assumed the upper_port matches the lower_port.&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp; DBMS_NETWORK_ACL_ADMIN.assign_acl (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; acl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;test_acl_file.xml&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; host&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;192.168.2.3&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lower_port&amp;nbsp; =&amp;gt; 80,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; upper_port&amp;nbsp; =&amp;gt; NULL); &lt;br /&gt;&lt;br /&gt;&amp;nbsp; DBMS_NETWORK_ACL_ADMIN.assign_acl (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; acl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;test_acl_file.xml&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; host&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; &#39;10.1.10.*&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lower_port&amp;nbsp; =&amp;gt; NULL,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; upper_port&amp;nbsp; =&amp;gt; NULL);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/6666671325634086933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/09/send-e-mail-configuration-using-access.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6666671325634086933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6666671325634086933'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/09/send-e-mail-configuration-using-access.html' title='send e-mail configuration using Access list to Network Services in Oracle Database 11g '/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-5689661406554071992</id><published>2013-09-11T19:13:00.001-07:00</published><updated>2013-09-11T19:13:47.660-07:00</updated><title type='text'>NetBeans: java.lang.ClassNotFoundException</title><content type='html'>&lt;em&gt;Find the class that error occurs and do some frontend adjustment. then compile again. apply to netbeans 7.3. &lt;/em&gt;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/5689661406554071992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/09/netbeans-javalangclassnotfoundexception.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/5689661406554071992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/5689661406554071992'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/09/netbeans-javalangclassnotfoundexception.html' title='NetBeans: java.lang.ClassNotFoundException'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-6385097921290304200</id><published>2013-09-05T12:34:00.001-07:00</published><updated>2013-09-13T12:59:48.667-07:00</updated><title type='text'>Mysql  access denied for user &#39;root&#39;@&#39;localhost&#39; (using password yes) </title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/6385097921290304200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/09/mysql-access-denied-for-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6385097921290304200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6385097921290304200'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/09/mysql-access-denied-for-user.html' title='Mysql  access denied for user &#39;root&#39;@&#39;localhost&#39; (using password yes) '/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-4873599487540027463</id><published>2013-08-30T21:33:00.003-07:00</published><updated>2013-08-30T21:35:50.054-07:00</updated><title type='text'>Mysql Upgrade upgrade and bugfix</title><content type='html'>After upgrading MySQL from version 5.0 to 5.5 I started getting the following message trying to edit table structure in Navicat:&lt;br /&gt;
&lt;br /&gt;
Cannot load from mysql.proc.&lt;br /&gt;
The table is probably corrupted

Luckily there is an easy fix.&lt;br /&gt;
&lt;br /&gt;
Run the following command from the command prompt (on Windows you might need to run it from MySQL&#39;s bin directory).&lt;br /&gt;
&lt;br /&gt;
mysql_upgrade&lt;br /&gt;
&lt;br /&gt;
In some cases you will need specify&lt;br /&gt;
&lt;br /&gt;
mysql root password and --force option (if you run upgrade procedure already).&lt;br /&gt;
&lt;br /&gt;
mysql_upgrade -u root -p --force
 
 </content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/4873599487540027463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/08/after-upgrading-mysql-from-version-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4873599487540027463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4873599487540027463'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/08/after-upgrading-mysql-from-version-5.html' title='Mysql Upgrade upgrade and bugfix'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-6116906130956957102</id><published>2013-08-29T11:50:00.001-07:00</published><updated>2013-08-30T19:55:38.002-07:00</updated><title type='text'>Complete remove Mysql</title><content type='html'>&lt;pre&gt;&lt;code&gt;sudo apt-get remove mysql-server mysql-client mysql-common
sudo apt-get purge mysql-server mysql-client mysql-common
sudo apt-get autoremove&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;locate mysql (get lla location where install mysql and delete) &lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/6116906130956957102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/08/complete-remove-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6116906130956957102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/6116906130956957102'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/08/complete-remove-mysql.html' title='Complete remove Mysql'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-4583533532503750986</id><published>2013-08-24T01:20:00.003-07:00</published><updated>2013-08-24T01:20:41.673-07:00</updated><title type='text'>java resultset insert, update and delete </title><content type='html'>&lt;pre class=&quot;prettyprint prettyprinted&quot;&gt;&lt;span class=&quot;com&quot;&gt;//STEP 1. Import required packages&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; java&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;sql&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.*;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;JDBCExample&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// JDBC driver name and database URL&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;final&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; JDBC_DRIVER &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;com.mysql.jdbc.Driver&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;  
   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;final&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; DB_URL &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;jdbc:mysql://localhost/EMP&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

   &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//  Database credentials&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;final&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; USER &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;username&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;final&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; PASS &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   
 &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;[]&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; args&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Connection&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; conn &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//STEP 2: Register JDBC driver&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Class&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;forName&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;com.mysql.jdbc.Driver&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//STEP 3: Open a connection&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Connecting to database...&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      conn &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;DriverManager&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getConnection&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;DB_URL&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;USER&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;PASS&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//STEP 4: Execute a query to create statment with&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// required arguments for RS example.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Creating statement...&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Statement&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; stmt &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; conn&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;createStatement&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                           &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ResultSet&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;TYPE_SCROLL_INSENSITIVE&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
                           &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ResultSet&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;CONCUR_UPDATABLE&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
     &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//STEP 5: Execute a query&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; sql &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;SELECT id, first, last, age FROM Employees&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ResultSet&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; stmt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;executeQuery&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;sql&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;List result set for reference....&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      printRs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//STEP 6: Loop through result set and add 5 in age&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Move to BFR postion so while-loop works properly&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;beforeFirst&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//STEP 7: Extract data from result set&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;()){&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Retrieve by column name&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; newAge &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getInt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;age&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;updateDouble&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;age&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; newAge &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;updateRow&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;List result set showing new ages...&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      printRs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// Insert a record into the table.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Move to insert row and add column data with updateXXX()&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Inserting a new record...&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;moveToInsertRow&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;updateInt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;id&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;104&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;updateString&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;first&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;John&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;updateString&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;last&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Paul&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;updateInt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;age&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;40&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Commit row&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;insertRow&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;List result set showing new set...&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      printRs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// Delete second record from the table.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;// Set position to second record first&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;absolute&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;List the record before deleting...&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Retrieve by column name&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; id  &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getInt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;id&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; age &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getInt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;age&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; first &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;first&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;last&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;last&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Display values&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;ID: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; id&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;, Age: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;, First: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; first&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;, Last: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;last&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

     &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Delete row&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;deleteRow&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;List result set after \
                                 deleting one records...&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      printRs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//STEP 8: Clean-up environment&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      stmt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      conn&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;catch&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;SQLException&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; se&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Handle errors for JDBC&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      se&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;printStackTrace&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;catch&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Exception&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; e&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Handle errors for Class.forName&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      e&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;printStackTrace&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;finally&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//finally block used to close resources&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
            conn&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;catch&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;SQLException&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; se&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         se&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;printStackTrace&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//end finally try&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//end try&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Goodbye!&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//end main&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; printRs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;ResultSet&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;throws&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;SQLException&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Ensure we start with first row&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;beforeFirst&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;()){&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Retrieve by column name&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; id  &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getInt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;id&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; age &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getInt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;age&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; first &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;first&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;last&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; rs&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;last&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

         &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//Display values&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;ID: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; id&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;, Age: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;, First: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; first&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;, Last: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;last&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
     &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
     &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//end printRs()&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;//end JDBCExample&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/4583533532503750986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/08/java-resultset-insert-update-and-delete.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4583533532503750986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4583533532503750986'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/08/java-resultset-insert-update-and-delete.html' title='java resultset insert, update and delete '/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-827779008780469213</id><published>2013-07-12T03:44:00.001-07:00</published><updated>2013-07-12T03:44:52.145-07:00</updated><title type='text'>CREATE OR REPLACE PROCEDURE GRANT_SELECT AS</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/827779008780469213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/07/create-or-replace-procedure-grantselect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/827779008780469213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/827779008780469213'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/07/create-or-replace-procedure-grantselect.html' title='CREATE OR REPLACE PROCEDURE GRANT_SELECT AS'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-8720172394968866952</id><published>2013-07-01T10:33:00.001-07:00</published><updated>2013-07-01T10:33:22.659-07:00</updated><title type='text'>Alternative colour for java jtable</title><content type='html'>jTblRefe = new javax.swing.JTable(){public Component prepareRenderer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (TableCellRenderer renderer,int Index_row, int Index_col)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Component comp = super.prepareRenderer(renderer, Index_row, Index_col);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //even index, selected or not selected&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Index_row % 2 == 0 ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp.setBackground(new java.awt.Color(230,212,212));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp.setBackground(Color.white);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return comp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean isCellEditable(int row,int column){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/8720172394968866952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/07/alternative-colour-for-java-jtable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8720172394968866952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8720172394968866952'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/07/alternative-colour-for-java-jtable.html' title='Alternative colour for java jtable'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-3007969012999850309</id><published>2013-07-01T09:45:00.000-07:00</published><updated>2013-09-11T10:17:59.183-07:00</updated><title type='text'>Check java jar application is already running.</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;
&lt;pre&gt;&lt;code&gt;ServerSocket ss;
try {
    ss = new ServerSocket(MY_PORT);
    // not already running.
} catch (BindException e) {
    // already running.
}&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Steps.&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;1) open listning port.&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;2) check listning port alredy runnig. &lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Good luck.&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/3007969012999850309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/07/chack-java-jar-application-is-alredy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/3007969012999850309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/3007969012999850309'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/07/chack-java-jar-application-is-alredy.html' title='Check java jar application is already running.'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-210520695118988761</id><published>2013-05-30T08:12:00.001-07:00</published><updated>2013-05-30T08:15:04.174-07:00</updated><title type='text'>java textbox + jformattedtextfield format </title><content type='html'>&lt;br /&gt;
MaskFormatter formatter = new MaskFormatter(&quot;*****&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jtxtSellingPrice.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(formatter));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatter.setValidCharacters(&quot;1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ $#@!&amp;amp;*()&quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; summary=&quot;Valid characters and their descriptions&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;Character&amp;nbsp;&lt;/th&gt;
    &lt;th&gt;&lt;div align=&quot;left&quot;&gt;
Description&lt;/div&gt;
&lt;/th&gt;
 &lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;#&lt;/td&gt;
    &lt;td&gt;Any valid number, uses &lt;code&gt;Character.isDigit&lt;/code&gt;.&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;&#39;&lt;/td&gt;
    &lt;td&gt;Escape character, used to escape any of the
       special formatting characters.&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;U&lt;/td&gt;&lt;td&gt;Any character (&lt;code&gt;Character.isLetter&lt;/code&gt;). All
        lowercase letters are mapped to upper case.&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;L&lt;/td&gt;&lt;td&gt;Any character (&lt;code&gt;Character.isLetter&lt;/code&gt;). All
        upper case letters are mapped to lower case.&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;A&lt;/td&gt;&lt;td&gt;Any character or number (&lt;code&gt;Character.isLetter&lt;/code&gt;
       or &lt;code&gt;Character.isDigit&lt;/code&gt;)&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;?&lt;/td&gt;&lt;td&gt;Any character
        (&lt;code&gt;Character.isLetter&lt;/code&gt;).&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;*&lt;/td&gt;&lt;td&gt;Anything.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;H&lt;/td&gt;&lt;td&gt;Any hex character (0-9, a-f or A-F).&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/210520695118988761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/05/java-textbox-jformattedtextfield-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/210520695118988761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/210520695118988761'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/05/java-textbox-jformattedtextfield-format.html' title='java textbox + jformattedtextfield format '/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-8307463291492444994</id><published>2013-05-24T05:03:00.001-07:00</published><updated>2013-06-01T02:54:01.494-07:00</updated><title type='text'>How to search data in java jtable</title><content type='html'>&lt;code&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.swing.JFrame;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.swing.JScrollPane;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.swing.JTable;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.swing.RowFilter;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.swing.table.DefaultTableModel;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.swing.table.TableModel;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;javax.swing.table.TableRowSorter;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public&amp;nbsp;class&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Main&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public&amp;nbsp;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[][]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;data&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;A&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;5&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;B&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;C&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;4&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;D&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;8&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;String&amp;nbsp;columnNames&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Item&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Value&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TableModel&amp;nbsp;model&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;DefaultTableModel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;data,&amp;nbsp;columnNames&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public&amp;nbsp;Class&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;getColumnClass&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;column&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;return&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;getValueAt&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;column&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.getClass&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;JTable&amp;nbsp;table&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;JTable&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;model&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;RowFilter&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;RowFilter&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;boolean&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Entry&amp;nbsp;entry&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Integer&amp;nbsp;population&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;entry.getValue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;return&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;population.intValue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TableRowSorter&lt;tablemodel&gt;&amp;nbsp;sorter&amp;nbsp;=&amp;nbsp;&lt;/tablemodel&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TableRowSorter&lt;tablemodel&gt;&lt;/tablemodel&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;model&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sorter.setRowFilter&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;filter&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;table.setRowSorter&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sorter&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;JScrollPane&amp;nbsp;scrollPane&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;JScrollPane&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;JFrame&amp;nbsp;frame&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;JFrame&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;Filtering&amp;nbsp;Table&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;frame.setDefaultCloseOperation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;JFrame.EXIT_ON_CLOSE&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;frame.add&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;scrollPane&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;frame.setSize&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;frame.setVisible&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;true&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;refer http://www.java2s.com/Code/JavaAPI/javax.swing.table/DefaultRowSortersetRowFilterRowFiltersuperTableModelsuperIntegerfilter.htm&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;mycode&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;TableRowSorter&lt;tablemodel&gt; sorter = new TableRowSorter&lt;tablemodel&gt;(dtm);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;RowFilter&lt;object object=&quot;&quot;&gt; filter = RowFilter.regexFilter(jtxtSearch.getText().toString());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sorter.setRowFilter(filter);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jtblData.setRowSorter(sorter); &lt;/object&gt;&lt;/tablemodel&gt;&lt;/tablemodel&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/8307463291492444994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/05/how-to-search-data-in-java-jtable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8307463291492444994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8307463291492444994'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/05/how-to-search-data-in-java-jtable.html' title='How to search data in java jtable'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-4644207625337248644</id><published>2013-02-12T09:24:00.002-08:00</published><updated>2013-02-12T19:54:22.693-08:00</updated><title type='text'></title><content type='html'>&lt;b&gt;Import data into Oracle8i or higher release database. import export compatibility matrix&lt;/b&gt;&lt;span class=&quot;kmfixedwidthfont&quot;&gt;&amp;nbsp;Which&amp;nbsp;Export client to&amp;nbsp;use&amp;nbsp;when&amp;nbsp;importing&amp;nbsp;into&amp;nbsp;an&amp;nbsp;Oracle8i 8.1.7 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;or&amp;nbsp;a&amp;nbsp;higher&amp;nbsp;release target database&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(always&amp;nbsp;use&amp;nbsp;the Import client&amp;nbsp;of&amp;nbsp;the&amp;nbsp;target&amp;nbsp;database): &lt;br /&gt;&lt;br /&gt;+-----------+--------------------------------------------------------------+ &lt;br /&gt;|&amp;nbsp;&amp;nbsp;EXPORT&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IMPORT&amp;nbsp;into:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| &lt;br /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+--------+--------+--------+--------+--------+-----------------+ &lt;br /&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;\/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; 8.1.7&amp;nbsp;&amp;nbsp;&amp;nbsp; |9.2.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |10.1.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |10.2.0&amp;nbsp;&amp;nbsp;&amp;nbsp; |11.1.0&amp;nbsp;&amp;nbsp;&amp;nbsp; |11.2.0&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &lt;br /&gt;+-----------+--------+--------+--------+--------+--------+--------+--------+ &lt;br /&gt;|&amp;nbsp;&amp;nbsp;5.x &amp;nbsp;1)2) |&amp;nbsp;EXP5x&amp;nbsp;&amp;nbsp; | EXP5x&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP5x&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP5x&amp;nbsp;&amp;nbsp; | EXP5x&amp;nbsp;&amp;nbsp; | EXP5x&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &lt;br /&gt;|&amp;nbsp;&amp;nbsp;6.x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2)&amp;nbsp; |&amp;nbsp;EXP6x&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP6x&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP6x&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP6x&amp;nbsp;&amp;nbsp; | EXP6x&amp;nbsp;&amp;nbsp; | EXP6x&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;7.x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3)&amp;nbsp; |&amp;nbsp;EXP7x&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP7x &amp;nbsp; |&amp;nbsp;EXP7x&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP7x&amp;nbsp;&amp;nbsp; | EXP7x&amp;nbsp;&amp;nbsp; | EXP7x&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;+-----------+--------+--------+--------+--------+--------+--------+--------+ &lt;br /&gt;|&amp;nbsp;&amp;nbsp;8.0.3&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP803&amp;nbsp;|&amp;nbsp;EXP803&amp;nbsp;|&amp;nbsp;EXP803&amp;nbsp;|&amp;nbsp;EXP803&amp;nbsp;|&amp;nbsp;EXP803&amp;nbsp;| EXP803 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;8.0.4&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP804&amp;nbsp;|&amp;nbsp;EXP804&amp;nbsp;|&amp;nbsp;EXP804&amp;nbsp;|&amp;nbsp;EXP804&amp;nbsp;|&amp;nbsp;EXP804&amp;nbsp;|&amp;nbsp;EXP804 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;8.0.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP805&amp;nbsp;|&amp;nbsp;EXP805&amp;nbsp;|&amp;nbsp;EXP805&amp;nbsp;|&amp;nbsp;EXP805&amp;nbsp;|&amp;nbsp;EXP805&amp;nbsp;|&amp;nbsp;EXP805 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;8.0.6&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP806&amp;nbsp;|&amp;nbsp;EXP806&amp;nbsp;| EXP806&amp;nbsp;|&amp;nbsp;EXP806&amp;nbsp;|&amp;nbsp;EXP806&amp;nbsp;|&amp;nbsp;EXP806 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;+-----------+--------+--------+--------+--------+--------+--------+--------+ &lt;br /&gt;|&amp;nbsp;&amp;nbsp;8.1.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP815&amp;nbsp;|&amp;nbsp;EXP815&amp;nbsp;|&amp;nbsp;EXP815&amp;nbsp;|&amp;nbsp;EXP815&amp;nbsp;|&amp;nbsp;EXP815&amp;nbsp;|&amp;nbsp;EXP815 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;8.1.6&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP816&amp;nbsp;|&amp;nbsp;EXP816&amp;nbsp;|&amp;nbsp;EXP816&amp;nbsp;|&amp;nbsp;EXP816&amp;nbsp;|&amp;nbsp;EXP816&amp;nbsp;|&amp;nbsp;EXP816 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;8.1.7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP817&amp;nbsp;|&amp;nbsp;EXP817&amp;nbsp;|&amp;nbsp;EXP817&amp;nbsp;|&amp;nbsp;EXP817&amp;nbsp;|&amp;nbsp;EXP817&amp;nbsp;|&amp;nbsp;EXP817 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;+-----------+--------+--------+--------+--------+--------+--------+--------+ &lt;br /&gt;|&amp;nbsp;&amp;nbsp;9.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP817&amp;nbsp;|&amp;nbsp;EXP901&amp;nbsp;|&amp;nbsp;EXP901&amp;nbsp;|&amp;nbsp;EXP901&amp;nbsp;|&amp;nbsp;EXP901&amp;nbsp;| EXP901 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;|&amp;nbsp;&amp;nbsp;9.2.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP817&amp;nbsp;| EXP920&amp;nbsp;|&amp;nbsp;EXP920&amp;nbsp;|&amp;nbsp;EXP920&amp;nbsp;|&amp;nbsp;EXP920&amp;nbsp;| EXP920 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;+-----------+--------+--------+--------+--------+--------+--------+--------+ &lt;br /&gt;|&amp;nbsp;10.1.0&amp;nbsp;&amp;nbsp;4)|&amp;nbsp;EXP817&amp;nbsp;|&amp;nbsp;EXP920 |&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;|&amp;nbsp;10.2.0&amp;nbsp;&amp;nbsp;4)|&amp;nbsp;&amp;nbsp;&amp;nbsp;N/S&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP920&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;+-----------+--------+--------+--------+--------+--------+--------+--------+ &lt;br /&gt;|&amp;nbsp;11.1.0&amp;nbsp;&amp;nbsp;4)|&amp;nbsp;&amp;nbsp;&amp;nbsp;N/S&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;EXP920*|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;| 11.2.0&amp;nbsp; 4)|&amp;nbsp;&amp;nbsp; N/S&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | EXP920*|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;+-----------+--------+--------+--------+--------+--------+--------+--------+&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Remarks:&lt;/i&gt;&lt;/b&gt;1) Import can read export dump files created by EXPORT release 5.1.22 and higher (up to same version).&lt;br /&gt;
2)&amp;nbsp;An Oracle5 or Oracle6 export dump and an Oracle8 or Oracle8i or Oracle9i Import: see the Oracle Utilities Manual, Chapter 2 &quot;Import&quot; for special considerations to keep in mind. &lt;br /&gt;
3) An Oracle7 export dump and an Oracle8 or Oracle8i or Oracle9i Import: check constraints on the DATE columns become invalid when TO_DATE function has not been used in the constraint (this was not required in earlier Oracle versions). &lt;br /&gt;
4) To have a better performance and more flexibility when exporting from and importing into Oracle10g and higher release databases, we recommend the usage of the Export Data Pump (expdp) and Import Data Pump (impdp) clients.&lt;br /&gt;
5) The original Export client is desupported for general use as of Oracle Database 11g.</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/4644207625337248644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2013/02/import-data-into-oracle8i-or-higher.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4644207625337248644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/4644207625337248644'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2013/02/import-data-into-oracle8i-or-higher.html' title=''/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-3323300059681124801</id><published>2012-08-09T09:31:00.002-07:00</published><updated>2013-03-30T05:07:05.135-07:00</updated><title type='text'>Solution in fusion</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkp2kREtjLphmP3l49RVzgX_zNkSlcrlzHAiG7uAoS-TU7q6XkVqqEOw3ti5AXFgJI2RIFTKgr5ukTfbvpFwFhZZt9a3AerxrnTwcLIXNMyPLSdcxyWuYde_tHof_eUtSBLGpBXXpFhh8/s1600/Biz+Fusion.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkp2kREtjLphmP3l49RVzgX_zNkSlcrlzHAiG7uAoS-TU7q6XkVqqEOw3ti5AXFgJI2RIFTKgr5ukTfbvpFwFhZZt9a3AerxrnTwcLIXNMyPLSdcxyWuYde_tHof_eUtSBLGpBXXpFhh8/s1600/Biz+Fusion.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;BIZ Fusion first application is ready to release ....... !!!!!!!!!!!!!!!!!</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/3323300059681124801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2012/08/my-modified-bycycle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/3323300059681124801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/3323300059681124801'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2012/08/my-modified-bycycle.html' title='Solution in fusion'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkp2kREtjLphmP3l49RVzgX_zNkSlcrlzHAiG7uAoS-TU7q6XkVqqEOw3ti5AXFgJI2RIFTKgr5ukTfbvpFwFhZZt9a3AerxrnTwcLIXNMyPLSdcxyWuYde_tHof_eUtSBLGpBXXpFhh8/s72-c/Biz+Fusion.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-7177365379728362923</id><published>2012-04-11T22:31:00.006-07:00</published><updated>2012-04-11T22:50:43.256-07:00</updated><title type='text'>Performanace tuning by AWR and ADDM.</title><content type='html'>&lt;u style=&quot;font-family: verdana;&quot;&gt;Snapshots&lt;/u&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;BEGIN&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt; DBMS_WORKLOAD_REPOSITORY.modify_snapshot_settings(&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   retention =&amp;gt; 43200,        -- Minutes (= 30 Days). Current value retained if NULL.&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   interval  =&amp;gt; 30);          -- Minutes. Current value retained if NULL.&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;END;&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;/&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Extra snapshots can be taken and existing snapshots can be removed, as shown below&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;BEGIN&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt; DBMS_WORKLOAD_REPOSITORY.drop_snapshot_range (&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   low_snap_id  =&amp;gt; 22,&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   high_snap_id =&amp;gt; 32);&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;END;&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;/&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;u style=&quot;font-family: verdana;&quot;&gt;Baselines&lt;/u&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;  View the difference between two time.&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;BEGIN&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt; DBMS_WORKLOAD_REPOSITORY.create_baseline (&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   start_snap_id =&amp;gt; 210,&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   end_snap_id   =&amp;gt; 220,&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   baseline_name =&amp;gt; &#39;batch baseline&#39;);&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;END;&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;/&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;BEGIN&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt; DBMS_WORKLOAD_REPOSITORY.drop_baseline (&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   baseline_name =&amp;gt; &#39;batch baseline&#39;,&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;   cascade       =&amp;gt; FALSE); -- Deletes associated snapshots if TRUE.&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;END;&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;/&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;DBA_HIST_SNAPSHOT view is use for get the snapshot ID;&lt;/span&gt;&lt;br  style=&quot;font-family:verdana;&quot;&gt;&lt;br face=&quot;verdana&quot;&gt;&lt;u style=&quot;font-family: verdana;&quot;&gt;Workload Repository Reports&lt;/u&gt;&lt;br style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;@$ORACLE_HOME/rdbms/admin/awrrpt.sql&lt;/span&gt;&lt;br style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;@$ORACLE_HOME/rdbms/admin/awrrpti.sql&lt;/span&gt;&lt;br style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;br /&gt;http://www.dbapool.com/analyzer/  Online Analyzer&lt;br style=&quot;font-family:verdana;&quot;&gt;&lt;br face=&quot;verdana&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;ADDM  report &lt;/span&gt;&lt;br face=&quot;verdana&quot;&gt;&lt;br face=&quot;verdana&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;By script&lt;/span&gt;&lt;br style=&quot;font-family: verdana;&quot;&gt;&lt;pre style=&quot;font-family: verdana;&quot;&gt;@/u01/app/oracle/product/10.1.0/db_1/rdbms/admin/addmrpt.sql&lt;br /&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;BY Pakage&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;BEGIN&lt;br /&gt; -- Create an ADDM task.&lt;br /&gt; DBMS_ADVISOR.create_task (&lt;br /&gt;   advisor_name      =&amp;gt; &#39;ADDM&#39;,&lt;br /&gt;   task_name         =&amp;gt; &#39;970_1032_AWR_SNAPSHOT&#39;,&lt;br /&gt;   task_desc         =&amp;gt; &#39;Advisor for snapshots 970 to 1032.&#39;);&lt;br /&gt;&lt;br /&gt; -- Set the start and end snapshots.&lt;br /&gt; DBMS_ADVISOR.set_task_parameter (&lt;br /&gt;   task_name =&amp;gt; &#39;970_1032_AWR_SNAPSHOT&#39;,&lt;br /&gt;   parameter =&amp;gt; &#39;START_SNAPSHOT&#39;,&lt;br /&gt;   value     =&amp;gt; 970);&lt;br /&gt;&lt;br /&gt; DBMS_ADVISOR.set_task_parameter (&lt;br /&gt;   task_name =&amp;gt; &#39;970_1032_AWR_SNAPSHOT&#39;,&lt;br /&gt;   parameter =&amp;gt; &#39;END_SNAPSHOT&#39;,&lt;br /&gt;   value     =&amp;gt; 1032);&lt;br /&gt;&lt;br /&gt; -- Execute the task.&lt;br /&gt; DBMS_ADVISOR.execute_task(task_name =&amp;gt; &#39;970_1032_AWR_SNAPSHOT&#39;);&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;-- Display the report.&lt;br /&gt;SET LONG 100000&lt;br /&gt;SET PAGESIZE 50000&lt;br /&gt;SELECT DBMS_ADVISOR.get_task_report(&#39;970_1032_AWR_SNAPSHOT&#39;) AS report&lt;br /&gt;FROM   dual;&lt;br /&gt;SET PAGESIZE 24&lt;br style=&quot;font-family: verdana;&quot;&gt;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/7177365379728362923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2012/04/performanace-tuning-by-awr-and-addm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/7177365379728362923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/7177365379728362923'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2012/04/performanace-tuning-by-awr-and-addm.html' title='Performanace tuning by AWR and ADDM.'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-604551540918112650</id><published>2012-03-15T22:26:00.002-07:00</published><updated>2012-03-15T22:32:05.340-07:00</updated><title type='text'>Gap Resolution of Physical Standby Database to Hang</title><content type='html'>&lt;span style=&quot;color:#33cc00;&quot;&gt;Fetching gap sequence in thread 1, gap sequence 53713-53713FAL[client]: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#33cc00;&quot;&gt;Error fetching gap sequenceWed May 12 15:26:44 2010FAL[client]: &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#33cc00;&quot;&gt;Failed to request gap sequenceGAP - thread 1 sequence 53713-53713DBID 2748812654 branch 645984751&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#33cc00;&quot;&gt;&lt;/span&gt;&lt;br /&gt;select sequence#, name, archived, applied from v$archived_log&lt;br /&gt;where sequence# like &#39;%53713%&#39;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SEQUENCE# NAME ARC APP&lt;br /&gt;---------- ------------------------------------------------------- --- ---&lt;br /&gt;53713 /opt/oracle/admin/PROD/standby/arch_3_53713_645984751 YES NO&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* check which sequence is not sync.&lt;br /&gt;&lt;br /&gt;* copy them to primary to standby.&lt;br /&gt;&lt;br /&gt;* then register the sequence.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALTER DATABASE REGISTER OR REPLACE PHYSICAL LOGFILE &#39;/opt/oracle/admin/BMCPD/standby/arch_1_53713_645984751&#39;;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/604551540918112650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2012/03/gap-resolution-of-physical-standby.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/604551540918112650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/604551540918112650'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2012/03/gap-resolution-of-physical-standby.html' title='Gap Resolution of Physical Standby Database to Hang'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-8739368769517984203</id><published>2012-01-25T15:58:00.000-08:00</published><updated>2012-01-25T16:04:25.881-08:00</updated><title type='text'>Install pakege in suse linux by zyper (error -&#39;/etc/init.d/vboxdrv setup&#39; )</title><content type='html'>First make certain that openSUSE is up-to-date&lt;br /&gt;&lt;br /&gt;Code: Select all   Expand view&lt;br /&gt;    zypper update&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then install all packages needed to compile external modules.&lt;br /&gt;&lt;br /&gt;Code: Select all   Expand view&lt;br /&gt;    sudo zypper install gcc make automake autoconf kernel-source kernel-syms&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then install VirtualBox again and it should work after a reboot. Make sure that your user name in in the vboxusers group as well.</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/8739368769517984203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2012/01/install-pakege-in-suse-linux-by-zyper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8739368769517984203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/8739368769517984203'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2012/01/install-pakege-in-suse-linux-by-zyper.html' title='Install pakege in suse linux by zyper (error -&#39;/etc/init.d/vboxdrv setup&#39; )'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-2623973007609560571</id><published>2012-01-10T06:06:00.000-08:00</published><updated>2012-01-10T06:10:20.983-08:00</updated><title type='text'>Oracle Long operations</title><content type='html'>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK, &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;ROUND(SOFAR/TOTALWORK*100,2) &quot;%_COMPLETE&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;FROM V$SESSION_LONGOPS&lt;/span&gt;&lt;a name=&quot;456535&quot;&gt;&lt;/a&gt; &lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;WHERE OPNAME LIKE &#39;RMAN%&#39;&lt;/span&gt;&lt;a name=&quot;456536&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;AND OPNAME NOT LIKE &#39;%aggregate%&#39;&lt;/span&gt;&lt;a name=&quot;456537&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;AND TOTALWORK != 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;AND SOFAR &amp;lt;&amp;gt; TOTALWORK&lt;/span&gt;&lt;a name=&quot;456539&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;/&lt;/span&gt;&lt;a name=&quot;456540&quot;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/2623973007609560571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2012/01/oracle-long-operations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/2623973007609560571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/2623973007609560571'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2012/01/oracle-long-operations.html' title='Oracle Long operations'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-5871679596320142302</id><published>2011-09-30T10:38:00.000-07:00</published><updated>2011-09-30T10:42:08.732-07:00</updated><title type='text'>RMAN backup script.</title><content type='html'>#!/bin/bash&lt;br /&gt;SHELL=/bin/bash&lt;br /&gt;export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db&lt;br /&gt;export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH&lt;br /&gt;export ORACLE_SID=xxx&lt;br /&gt;&lt;br /&gt;#wd=`date +%Y_%m_%d`&lt;br /&gt;#mkdir -p /orabackup/test_backup/$wd&lt;br /&gt;&lt;br /&gt;rman target backup/backup &quot;two less than simbole&quot; EOF&lt;br /&gt;run {&lt;br /&gt; set controlfile autobackup format for device type disk to &#39;/backup/%F&#39;;&lt;br /&gt; allocate channel c1 device type disk format=&#39;/backup/%d_%T_%U&#39;;&lt;br /&gt; backup database;&lt;br /&gt; sql &#39;alter system archive log current&#39;;&lt;br /&gt; backup archivelog all;&lt;br /&gt; delete noprompt archivelog all completed before &#39;SYSDATE-7&#39;;&lt;br /&gt; release channel c1;&lt;br /&gt; }&lt;br /&gt;EOF&lt;br /&gt;&lt;br /&gt;&lt;eof run=&quot;&quot; set=&quot;&quot; controlfile=&quot;&quot; autobackup=&quot;&quot; for=&quot;&quot; to=&quot;&quot; f=&quot;&quot; allocate=&quot;&quot; c1=&quot;&quot; device=&quot;&quot; type=&quot;&quot; disk=&quot;&quot; format=&quot;&quot; sql=&quot;&quot; alter=&quot;&quot; system=&quot;&quot; archive=&quot;&quot; log=&quot;&quot; current=&quot;&quot; backup=&quot;&quot; delete=&quot;&quot; noprompt=&quot;&quot; archivelog=&quot;&quot; all=&quot;&quot; completed=&quot;&quot; before=&quot;&quot; 7=&quot;&quot; release=&quot;&quot; channel=&quot;&quot; eof=&quot;&quot;&gt;&lt;/eof&gt;</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/5871679596320142302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2011/09/rman-backup-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/5871679596320142302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/5871679596320142302'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2011/09/rman-backup-script.html' title='RMAN backup script.'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704690066084689969.post-7660638620008180516</id><published>2011-09-30T10:18:00.000-07:00</published><updated>2011-09-30T10:22:17.290-07:00</updated><title type='text'>Linux automate backup copy to windows script</title><content type='html'>#!/bin/bash&lt;br /&gt;&lt;br /&gt;SHELL=/bin/bash&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# get sysdate to variable&lt;br /&gt;wd=`date +%Y_%m_%d`&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# get previous day to variable if required&lt;br /&gt;#wd=`date -d &quot;-1 day&quot; +&quot;%Y_%m_%d&quot;`&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mount -t smbfs -o username=administrator,password=password //[IP]/Exp /share/winShare&lt;br /&gt;&lt;br /&gt;tar -czPf /share/winShare/MiddleDB_$wd.tgz /orabackup/backup/$wd/*&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;umount /share/winShare</content><link rel='replies' type='application/atom+xml' href='http://upulindika.blogspot.com/feeds/7660638620008180516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://upulindika.blogspot.com/2011/09/linux-automate-backup-copy-to-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/7660638620008180516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704690066084689969/posts/default/7660638620008180516'/><link rel='alternate' type='text/html' href='http://upulindika.blogspot.com/2011/09/linux-automate-backup-copy-to-windows.html' title='Linux automate backup copy to windows script'/><author><name>upul indika</name><uri>http://www.blogger.com/profile/09876843578113480402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>