<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>ERP BASIC</title><link>http://erpbasic.blogspot.com/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ErpBasic" /><description>Don't Worry, We Have Solution</description><language>en</language><managingEditor>noreply@blogger.com (Admin)</managingEditor><lastBuildDate>Fri, 31 May 2013 03:05:08 PDT</lastBuildDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">413</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">25</openSearch:itemsPerPage><feedburner:info uri="erpbasic" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle>Don't Worry, We Have Solution</itunes:subtitle><feedburner:emailServiceId>ErpBasic</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>ORA-12532: TNS:invalid argument</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/9gux0jLO9NQ/ora-12532-tnsinvalid-argument.html</link><author>noreply@blogger.com (Jyothish)</author><pubDate>Tue, 11 Sep 2012 02:25:09 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-4943537009987891677</guid><description>&lt;br /&gt;sqlplus system@orcl&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 11.1.0.6.0 - Production on Sun Aug 19 13:18:56 2007&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2007, Oracle. All rights reserved.&lt;br /&gt;&lt;br /&gt;Enter password:&lt;br /&gt;ERROR:&lt;br /&gt;ORA-12532: TNS:invalid argument&lt;br /&gt;&lt;br /&gt;In this case we can ping to remote host but not able to connect database which we have created on remote host.&lt;br /&gt;&lt;br /&gt;Cause : Listener port is closed.May be a firewall policy make the issue.&lt;br /&gt;&lt;br /&gt;Action : We need to open Listener port for communication .By default Listener port is 1521.&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/9gux0jLO9NQ" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-09-11T14:55:09.631+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/09/ora-12532-tnsinvalid-argument.html</feedburner:origLink></item><item><title>Insert Array Output into Database</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/fRSPamOdBOM/insert-array-output-into-database.html</link><category>Array</category><category>PHP</category><category>PHP Problem</category><author>noreply@blogger.com (Admin)</author><pubDate>Wed, 25 Jul 2012 10:28:09 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-1325410182322423043</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hello Friends now a days i am working on php.A few days ago i got a task from my trainer&amp;nbsp;and task was to uploading a txt file in new folder and output should be in an array format&amp;nbsp;using loops and after that insert that output into database and&amp;nbsp;the content in the text file was 100 email id's.At that time i was new in php and&amp;nbsp;no idea how to start my task and how to use loops.For that i searched on net for many times&amp;nbsp;but i couldn't find the required data to complete task on single site.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;So,i had to serach many sites to collect or get idea how to complete my task.Now here in this post&amp;nbsp;i am going to share that program with you so that if you get similar task like this task you&amp;nbsp;can get help from this,i hope it will be helpful to you.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;span style="font-family: 'Courier New', Courier, monospace; font-size: large;"&gt;&lt;b&gt;Here the program is:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;1) Using this code you can upload your file from one folder to another folder.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: red;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;if (($_FILES&lt;span style="color: red;"&gt;["file"&lt;/span&gt;][&lt;span style="color: red;"&gt;"type"&lt;/span&gt;] ==&lt;span style="color: red;"&gt; 'text/plain'&lt;/span&gt;) &amp;amp;&amp;amp; ($_FILES&lt;span style="color: red;"&gt;["file"&lt;/span&gt;][&lt;span style="color: red;"&gt;"size"&lt;/span&gt;] &amp;lt; &lt;span style="color: red;"&gt;20000&lt;/span&gt;))&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; if ($_FILES["file"]["error"] &amp;gt; 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; echo "Return Code: " . $_FILES["file"]["error"] . "&amp;lt;br /&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; else&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; echo "Upload: " . $_FILES["file"]["name"] . "&amp;lt;br /&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; echo "Type: " . $_FILES["file"]["type"] . "&amp;lt;br /&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb&amp;lt;br /&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "&amp;lt;br /&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; if (file_exists("nit/" . $_FILES["file"]["name"]))&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; echo $_FILES["file"]["name"] . " already exists. "."&amp;lt;br/&amp;gt;"."&amp;lt;br/&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; move_uploaded_file($_FILES["file"]["tmp_name"],&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "nit/" . $_FILES["file"]["name"]);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; echo "Stored in: " . "nit/" . $_FILES["file"]["name"]."&amp;lt;br /&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;2) Use this code after 1st code as shown above, By using this code you will get your output in array format and after that output will be insert into database, see this code how its works,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $file = fopen("file.txt", "r");&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; if ($file) {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp; while (!feof($file))&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp; $aa=fgets($file);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp; $explode= explode(",",$aa);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp; print_r(explode(',',$aa));&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp; foreach ($explode as $id =&amp;gt;$email_id)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;$sql="insert into aa (id,email_id) values ('$id','$email_id')";&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;$result=mysql_query($sql);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; fclose($file);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Note:- In this above code we are using while loop as well as explode function after that we are using insert statement to insert output into database.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;I hope you will find it informative.&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/fRSPamOdBOM" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-07-25T22:58:09.398+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/07/insert-array-output-into-database.html</feedburner:origLink></item><item><title>To install Oracle in english on non-english OS</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/BHNnkmgzBjs/to-install-oracle-in-english-on-non.html</link><author>noreply@blogger.com (Navneet Singh)</author><pubDate>Tue, 19 Jun 2012 04:31:21 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-8396535812176884714</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
I installed oracle on non-english OS(windows server 2008 R2) which was not feasible for me.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
I
 got server in Germany and installed Oracle 11g. When i installed 
blindly then i noticed, Oracle was communicating in German language 
which i can't understand. After some research &amp;amp; discussion with my 
DBA friends, i found three ways to make oracle install in english on 
non-english machine. You can opt anyone of them as per your requirement.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;b&gt;#Modify the oraparam.ini file.&lt;/b&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
In
 all the unzipped oracle installation files directory, there is a folder
 called install which has the file oraparam.ini.&amp;nbsp; It is this file which 
tells the setup.exe how to behave.&amp;nbsp; There is this parameter&amp;nbsp; ” 
NLS_ENABLED “, has a default value TRUE, which tells the setup.exe to 
take the OS language when invoked. So, if the OS is German, the 
setup.exe would show the details in German.&amp;nbsp; Make it FALSE and setup.exe
 will not take the OS language, it will go for the default english.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
NLS_ENABLED=TRUE&amp;nbsp; #setup.exe will take the OS language for granted&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
NLS_ENABLED=FALSE #setup.exe will go for the default english&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;b&gt;#Change the non-english OS language to English.&lt;/b&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
There
 is an alternate option that we can change OS language to English and 
oracle will automatically use english language. Steps to change the 
language:&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Go to control panel --&amp;gt; Regional and language --&amp;gt; you will got four tab under this option&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
a) Formats --&amp;gt; select English where ever you find any option.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
b) Location --&amp;gt; You can select your country but i choose US.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
c)
 Keyboard &amp;amp; Language --&amp;gt; Change Keyboard --&amp;gt; general --&amp;gt; 
select US under Default Language and click on US under Installed 
Services.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
d) Administrative --&amp;gt; change system locale.. --&amp;gt; select English&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Reboot your system to take language into English. &lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Now install oracle, it will automatically pick English language as default.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;b&gt;#Change the NLS_LANG.&lt;/b&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
After installing Oracle in non-english language use NLS_LANG.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
NLS_LANG is an environment variable used to define language, territory and character set properties. You can use as follow.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Windows (in cmd window):&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Unix/ Linux:&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Here are some valid NLS_LANG settings:&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; French_France.WE8ISO8895P1&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; French_Switzerland.WE8ISO8895P1&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; Norwegian_Norway.NDK7DEC&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; Norwegian_Norway.WE8ISO8895P1&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; Japanese_Japan.JA16SJIS&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; Arabic_Egypt.AR8MSWIN1256&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; American_America.AR8MSWIN1256&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; American_America.WE8ISO8859P1&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
-&amp;gt;&amp;nbsp;&amp;nbsp; Latvian_Latvia.BLT8CP921 &lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
Note:
 Third option(Change the NLS_LANG.) is not permanent setting. It will 
work until command prompt is not closed. Rest both options are 
permanent.&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Your suggestions and queries are always warm welcomed at&amp;nbsp;&lt;/pre&gt;
&lt;pre style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;navneetsingh89@gmail.com&lt;/pre&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/BHNnkmgzBjs" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-06-19T17:01:21.911+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/06/to-install-oracle-in-english-on-non.html</feedburner:origLink></item><item><title>Reclaiming Unused Space in Index.</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/FH7WYLBmah8/reclaiming-unused-space-in-index.html</link><author>noreply@blogger.com (Jyothish)</author><pubDate>Sun, 10 Jun 2012 23:59:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-8157785682625849361</guid><description>We can see Reclaimable space in Schema by using below query.&lt;br /&gt;&lt;br /&gt;SELECT'Task Name : ' || f.task_name || CHR(10) ||'Start Run Time : ' || TO_CHAR(execution_start, 'dd-mon-yy hh24:mi') || chr (10) ||'Segment Name : ' || o.attr2 || CHR(10) ||'Segment Type : ' || o.type || CHR(10) ||'Partition Name : ' || o.attr3 || CHR(10) ||'Message : ' || f.message || CHR(10) ||'More Info : ' || f.more_info || CHR(10) ||&lt;br /&gt;'------------------------------------------------------' Advice FROM dba_advisor_findings f,dba_advisor_objects o,dba_advisor_executions e WHERE o.task_id = f.task_id AND o.object_id = f.object_id AND f.task_id = e.task_id AND e. execution_start &gt; sysdate - 1 AND e.advisor_name = 'Segment Advisor' ORDER BY f.task_name;&lt;br /&gt;&lt;br /&gt;                &lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;             There are a couple of effective methods for freeing up unused space associated with an index:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;           •Rebuilding the index &lt;br /&gt;           •Shrinking the index &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;          Before you perform either of these operations, first check &lt;br /&gt;USER_SEGMENTS to verify that the amount of space used corresponds with the Segment Advisor’s advice. In this example, the segment name is F_REGS_IDX1&lt;br /&gt;&lt;br /&gt;SQL&gt; select bytes from user_segments where segment_name = 'F_REGS_IDX1';&lt;br /&gt;BYTES----------&lt;br /&gt;166723584&lt;br /&gt;&lt;br /&gt;This example uses the&lt;br /&gt;ALTER INDEX...REBUILD&lt;br /&gt;&lt;br /&gt;statement to re-organize and compact the space usedby an index:&lt;br /&gt;&lt;br /&gt;SQL&gt; alter index f_regs_idx1 rebuild;&lt;br /&gt; Alternatively, use the&lt;br /&gt;ALTER INDEX...SHRINK SPACE statement to free up unused space in an index—for example:&lt;br /&gt;&lt;br /&gt;SQL&gt; alter index f_regs_idx1 shrink space;&lt;br /&gt;&lt;br /&gt;Now query &lt;br /&gt;&lt;br /&gt;USER_SEGMENTS&lt;br /&gt;&lt;br /&gt;again to verify that the space has been de-allocated. Here is the output forthis example:&lt;br /&gt;&lt;br /&gt;BYTES----------&lt;br /&gt;524288&lt;br /&gt;&lt;br /&gt;The space consumed by the index has considerably decreased.&lt;br /&gt;&lt;br /&gt;I prefer export and import is the another useful method to reclaim free space.&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/FH7WYLBmah8" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-06-11T12:29:00.094+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/06/reclaiming-unused-space-in-index.html</feedburner:origLink></item><item><title>" Bharat Bandh " Is it reality or just a show off.</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/VFi4L071kEI/bharat-bandh-is-it-realty-or-just-show.html</link><author>noreply@blogger.com (Admin)</author><pubDate>Thu, 31 May 2012 06:36:53 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-456812868139303100</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;b&gt;Is the bandh&lt;/b&gt; is the only way to protest,&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;what type of bandh is this where people are forced to stay home and shut down their shops. All anti social elements are having a great time.  A bandh should be something where people protest by themselves. Policitcan dont their work in Parliament and does not allow us to work too. What have they gained by calling this bandh we lost one day's pay.&lt;/span&gt; &lt;br /&gt;
&lt;span style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-5UN3luDyO_Q/T8cwP70J5rI/AAAAAAAAAo8/a3zLMyF0vhY/s1600/Bharat_bandh20120531110111_l.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="372" src="http://2.bp.blogspot.com/-5UN3luDyO_Q/T8cwP70J5rI/AAAAAAAAAo8/a3zLMyF0vhY/s640/Bharat_bandh20120531110111_l.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;b&gt;&amp;nbsp;Its just a show off&lt;/b&gt;. If really the cry needs to be heard, there is no point in destroying public properties or blocking roads. Think! cover all petrol pumps, don't allow anyone to fill petrol tanks(allow only people who are in emergency i.e. hospital , ambulance, traveling etc). Cover up govt. offices, don't allow anyone to go inside. When govt. takes a hit, then they think about it. Rt now , general public is getting a hit, how does it affect the govt?&lt;/span&gt; &lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/VFi4L071kEI" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-05-31T19:06:53.336+05:30</app:edited><media:thumbnail url="http://2.bp.blogspot.com/-5UN3luDyO_Q/T8cwP70J5rI/AAAAAAAAAo8/a3zLMyF0vhY/s72-c/Bharat_bandh20120531110111_l.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">10</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/05/bharat-bandh-is-it-realty-or-just-show.html</feedburner:origLink></item><item><title>Enable flashback in Oracle database</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/dFoLv2lt2Ec/enable-flashback-in-oracle-database.html</link><author>noreply@blogger.com (Navneet Singh)</author><pubDate>Thu, 17 May 2012 06:29:59 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-988500311235005037</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Before enable the flashback we need to take our database in archive log mode. To&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;enable the archive log &lt;a href="http://singhdba.blogspot.in/2012/03/enabling-archivelog-mode-in-oracle-11g.html" target="_blank"&gt;click here &lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;After enabling the archive logs now we need to set 3 paramaters for flashback are&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;1 db_recovery_file_dest &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;2 db_recovery_file_dest_size
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;3 db_flashback_retention_target 
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;gt;&amp;gt;This parameter "db_recovery_file_dest" is used to set the destination where we&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;want to store the location of flashback logs.&amp;nbsp; The location of flashback logs may or&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;maybe be same as the location of archive logs, here i gave different location&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;from archive logs. &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;gt;&amp;gt;The parmeter "&lt;/span&gt;&lt;span style="font-size: small;"&gt;db_recovery_file_dest_size" is used to define the size that can be&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;used by flashback directory/folder provided with above parameter. This size can be&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;calculated on the basis of transactions happened in our database and if archive logs,&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;only when the destination of archive logs &amp;amp; flashback logs are same.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;gt;&amp;gt;The parameter "&lt;/span&gt;&lt;span style="font-size: small;"&gt;db_flashback_retention_target " is used to provide time limit upto&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;which flashback logs should be in the memory of database, So that database can be&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;flashed up back with in time limit. Time is provided in minutes, so we set retention&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;time =1440 which is about a day.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;gt;&amp;gt;Set flashback database parameters&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;alter system set db_recovery_file_dest='E:\app\navneet\FRA' scope=spfile;&amp;nbsp;
alter system set db_recovery_file_dest_size=20G scope=spfile;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;alter system set db_flashback_retention_target=&lt;/span&gt;&lt;span style="font-size: small;"&gt;1440 &lt;/span&gt;&lt;span style="font-size: small;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;gt;&amp;gt; Turn flashback on for the database&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;shutdown immediate; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;startup mount;
alter database flashback on;
alter database open;

&amp;gt;&amp;gt;Now check if flashback is enabled&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;select flashback_on from v$database;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;FLASHBACK_ON
------------------
YES
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;Now Flashback is ENABLED.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&amp;gt;&amp;gt;&lt;span style="font-size: small;"&gt;To disable flashback&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;alter system set db_recovery_file_dest=" scope= both sid='*';&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Some related queries are as follow&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;gt;&amp;gt; To check the flashback logs &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;select * from v$flashback_database_log;

&amp;gt;&amp;gt;To check the estimated flashback size
SELECT ROUND(ESTIMATED_FLASHBACK_SIZE/1024/1024/1024) FROM&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;V$FLASHBACK_DATABASE_LOG;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;gt;&amp;gt;To create a guaranteed restore point
create restore point RESTORE_POINT guarantee flashback database;
select NAME, SCN, TIME from V$RESTORE_POINT;

&amp;gt;&amp;gt;To flashback the database to specific time
flashback database to timestamp to_timestamp('dd/mm/yy HH24:MI:SS',&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;'DD/MM/YYYY HH24:MI:SS');

&amp;gt;&amp;gt;To drop a restore point
select NAME, SCN, TIME from V$RESTORE_POINT;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;drop restore point RESTORE_POINT;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;
&lt;br /&gt;
The V$RECOVERY_FILE_DEST and V$FLASH_RECOVERY_AREA_USAGE views can help 
to find out the current location, disk quota, space in use, space 
reclaimable by deleting files,total number of files, the percentage of 
the total disk quota used by different types of files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your suggestions and queries are always warm welcomed at navneetsingh89@gmail.com. &lt;/div&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/dFoLv2lt2Ec" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-05-17T18:59:59.004+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/05/enable-flashback-in-oracle-database.html</feedburner:origLink></item><item><title>Enabling Archivelog Mode in Oracle 11g</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/EloJi8qXquw/enabling-archivelog-mode-in-oracle-11g.html</link><author>noreply@blogger.com (Navneet Singh)</author><pubDate>Wed, 20 Jun 2012 00:49:33 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-3087736085902715213</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div&gt;
To set archive log, always login through SYSDBA&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now, lets check the current log mode either in "Archivelog" or "Noarchivelog":&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
C:\Documents and Settings\navneet&amp;gt;sqlplus&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 27 11:19:53 2012&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copyright (c) 1982, 2010, Oracle. All rights reserved.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enter user-name: /as sysdba&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Connected to:&lt;/div&gt;
&lt;div&gt;
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/div&gt;
&lt;div&gt;
With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; archive log list&lt;/div&gt;
&lt;div&gt;
Database log mode &lt;b&gt;No Archive Mode&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Automatic archival &lt;b&gt;Disabled&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Archive destination USE_DB_RECOVERY_FILE_DEST&lt;/div&gt;
&lt;div&gt;
Oldest online log sequence 2296&lt;/div&gt;
&lt;div&gt;
Current log sequence 2299&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
OR&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; select log_mode from v$database;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
LOG_MODE&lt;/div&gt;
&lt;div&gt;
------------&lt;/div&gt;
&lt;div&gt;
NOARCHIVELOG&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
We have checked that our Database is in "NOARCHIVE LOG". Below query will set the location where to save the archive logs.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=E:\ARCHIVE_LOG' SCOPE=SPFILE;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
System altered.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; SHUTDOWN IMMEDIATE&lt;/div&gt;
&lt;div&gt;
Database closed.&lt;/div&gt;
&lt;div&gt;
Database dismounted.&lt;/div&gt;
&lt;div&gt;
ORACLE instance shut down.&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; STARTUP MOUNT&lt;/div&gt;
&lt;div&gt;
ORACLE instance started.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Total System Global Area 535662592 bytes&lt;/div&gt;
&lt;div&gt;
Fixed Size 1375792 bytes&lt;/div&gt;
&lt;div&gt;
Variable Size 385876432 bytes&lt;/div&gt;
&lt;div&gt;
Database Buffers 142606336 bytes&lt;/div&gt;
&lt;div&gt;
Redo Buffers 5804032 bytes&lt;/div&gt;
&lt;div&gt;
Database mounted.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The below query will make database into archivelog.&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; ALTER DATABASE ARCHIVELOG;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Database altered.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
SQL&amp;gt; ALTER DATABASE OPEN;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Database altered.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; SELECT LOG_MODE FROM V$DATABASE;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
LOG_MODE&lt;/div&gt;
&lt;div&gt;
------------&lt;/div&gt;
&lt;div&gt;
ARCHIVELOG&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
OR&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; ARCHIVE LOG LIST&lt;/div&gt;
&lt;div&gt;
Database log mode &lt;b&gt;Archive Mode&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Automatic archival &lt;b&gt;Enabled&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Archive destination &lt;b&gt;E:\ARCHIVE_LOG&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Oldest online log sequence 2296&lt;/div&gt;
&lt;div&gt;
Next log sequence to archive 2299&lt;/div&gt;
&lt;div&gt;
Current log sequence 2299&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
SQL&amp;gt; alter system switch logfile;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now database is in Archivelog mode, We have verified by checking archivelogs in directory.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
E:\&amp;gt;dir&lt;/div&gt;
&lt;div&gt;
Volume in drive E has no label.&lt;/div&gt;
&lt;div&gt;
Volume Serial Number is AA1B-C0B9&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Directory of E:\&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
12/09/2011 09:15 AM app&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;03/27/2012 11:43 AM 13,952,512 ARCHIVE_LOG2ARC0000002299_0769427405.0001&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;03/27/2012 11:46 AM 1,536 ARCHIVE_LOG2ARC0000002300_0769427405.0001&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;03/28/2012 05:39 AM 50,630,144 ARCHIVE_LOG2ARC0000002301_0769427405.0001&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;03/29/2012 05:38 AM 40,771,072 ARCHIVE_LOG2ARC0000002302_0769427405.0001&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;03/29/2012 06:30 PM 40,671,232 ARCHIVE_LOG2ARC0000002303_0769427405.0001&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
02/17/2009 11:33 AM 23,516,968 SkypeSetupFull.exe&lt;/div&gt;
&lt;div&gt;
6 File(s) 169,543,464 bytes&lt;/div&gt;
&lt;div&gt;
1 Dir(s) 38,746,923,008 bytes free&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
To Enable Flashback &lt;a href="http://singhdba.blogspot.in/2012/05/enable-flashback-database-in-oracle.html" rel="nofollow" target="_blank"&gt;click here&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Your suggestions and queries are always warm welcomed at navneetsingh89@gmail.com.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/EloJi8qXquw" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-06-20T13:19:33.917+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/04/enabling-archivelog-mode-in-oracle-11g.html</feedburner:origLink></item><item><title>Checking operating system version: must be  5.0, 5.1, 5.2 or 6.0 .    Actual 6.1      Failed</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/NLTHa4S9_Mg/checking-operating-system-version-must_31.html</link><author>noreply@blogger.com (Navneet Singh)</author><pubDate>Thu, 01 Nov 2012 08:46:23 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-146294500787994935</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-weight: normal;"&gt;Today i got error while installing oracle on Windows server 2008 R2&lt;br /&gt;When i clicked on "setup.exe" file, it throws an error as below:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Starting Oracle Universal Installer...&lt;br /&gt;&lt;br /&gt;Checking installer requirements...&lt;br /&gt;&lt;br /&gt;Checking operating system version: must be 5.0, 5.1, 5.2 or 6.0 . Actual 6.1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Failed &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Exiting Oracle Universal Installer, log for this session can be found at C:\Prog&lt;br /&gt;ram Files\Oracle\Inventory\logs\installActions2012-03-30_09-25-48AM.log&lt;br /&gt;&lt;br /&gt;Please press Enter to exit...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After too much research i came to know that I need to modify the "oraparam.ini" file which&lt;br /&gt;is placed with Oracle setup files.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I modify the Oraparam.ini file located here&lt;br /&gt;"database\install\oraparam.ini"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just add those words which are bold as below in the oraparam.ini file.&lt;br /&gt;&lt;br /&gt;[Certified Versions]&lt;br /&gt;# You can customise error message shown for failure, provide value for&lt;br /&gt;CERTIFIED_VERSION_FAILURE_MESSAGE&lt;br /&gt;Windows = 5.0,5.1,5.2,6.0&lt;/span&gt;&lt;b&gt;,6.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[Windows-6.1-required]&lt;br /&gt;# Minimum display colours for OUI to run&lt;br /&gt;MIN_DISPLAY_COLORS = 256&lt;br /&gt;# Minimum CPU speed required for OUI&lt;br /&gt;# CPU = 300&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save the oraparam.ini file &amp;amp; then run setup again. Now all goes fine &amp;amp; got the oracle installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Your suggestions and queries are always warm welcomed at navneetsingh89@gmail.com.&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/NLTHa4S9_Mg" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-11-01T21:16:23.993+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/checking-operating-system-version-must_31.html</feedburner:origLink></item><item><title>What is thread pool? Why should we use thread pools?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/kqPoSlCasRw/what-is-thread-pool-why-should-we-use.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Tue, 20 Mar 2012 03:12:10 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-9216622496011589206</guid><description>&lt;div style="text-align: justify; "&gt;&lt;span style="font-size: 100%; "&gt;&lt;b style="font-family: Georgia, serif; "&gt;Ans:&lt;/b&gt; &lt;span &gt;A thread pool is a collection of threads on which task can be scheduled. Instead of creating a new thread for each task, you can have one of the threads from the thread pool pulled out of the pool and assigned to the task. When the thread is finished with the task, it adds itself back to the pool and waits for another assignment. One common type of thread pool is the fixed thread pool. This type of pool always has a specified number of threads running; if a thread is somehow terminated while it is still in use, it is automatically replaced with a new thread. Below are key reasons to use a Thread Pool&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-weight: normal; "&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="font-size: 100%; "&gt;Using thread pools minimizes the JVM overhead due to thread creation. Thread objects use a significant amount of memory, and in a large-scale application, allocating and de-allocating many thread objects creates a significant memory management overhead.&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;span style="font-size: 100%; text-align: left; "&gt;You have control over the maximum number of tasks that are being processed in parallel (= number of threads in the pool).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="text-align: justify;font-family: Georgia, serif; font-weight: normal; "&gt;Most of the executor implementations in java.util.concurrent use thread pools, which consist of worker threads. This kind of thread exists separately from the Runnable and Callable tasks it executes and is often used to execute multiple tasks.&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-weight: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/kqPoSlCasRw" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-20T15:42:10.516+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/what-is-thread-pool-why-should-we-use.html</feedburner:origLink></item><item><title>What is a thread leak? What does it mean in Java?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/BuKsTyTGLhQ/what-is-thread-leak-what-does-it-mean.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Tue, 20 Mar 2012 03:16:56 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-8472660128196971982</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-style: normal; font-variant: normal; line-height: normal; text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;b style="font-family: Georgia, serif;"&gt;Ans:&lt;/b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Thread leak is when a application does not release references to a thread object properly. Due to this some Threads do not get garbage collected and the number of unused threads grow with time. Thread leak can often cause serious issues on a Java application since over a period of time too many threads will be created but not released and may cause applications to respond slow or hang.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-style: normal; font-variant: normal; line-height: normal; text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-style: normal; font-variant: normal; line-height: normal;"&gt;&lt;b&gt;Q:How can I trace whether the application has a thread leak?&lt;/b&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-variant: normal; line-height: normal; text-align: justify;"&gt;&lt;b style="font-family: Georgia, serif;"&gt;Ans:&lt;/b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-weight: normal;"&gt;If an application has thread leak then with time it will have too many unused threads. Try to find out what type of threads is leaking out. This can be done using following ways:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;ul style="font-style: normal; font-variant: normal; line-height: normal;"&gt;&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: left;"&gt;Give unique and descriptive names to the threads created in application. - Add log entry in all thread at various entry and exit points in threads.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: left;"&gt;Change debugging config levels (debug, info, error etc) and analyze log messages.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: left;"&gt;When you find the class that is leaking out threads check how new threads are instantiated and how they're closed.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: left;"&gt;Make sure the thread is Guaranteed to close properly by doing following - Handling all Exceptions properly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: left;"&gt;Make sure the thread is Guaranteed to close properly by doing following&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: left;"&gt;            -Handling all Exceptions properly.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: left;"&gt;            -releasing all resources (e.g. connections, files etc) before it closes.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/BuKsTyTGLhQ" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-20T15:46:56.096+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/what-is-thread-leak-what-does-it-mean.html</feedburner:origLink></item><item><title>How will you take thread dump in Java? How will you analyze Thread dump?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/Uf7KqwdvRYE/how-will-you-take-thread-dump-in-java.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Tue, 20 Mar 2012 02:58:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-3402901645452014684</guid><description>&lt;div style="text-align: justify;"&gt;&lt;span &gt;&lt;b&gt;Ans:&lt;/b&gt; A Thread Dump is a complete list of active threads. A java thread dump is a way of finding out what each thread in the JVM is doing at a particular point of time. This is especially useful when your java application seems to have some performance issues. Thread dump will help you to find out which thread is causing this. There are several ways to take thread dumps from a JVM. It is highly recommended to take more than 1 thread dump and analyze the results based on it. Follow below steps to take thread dump of a java process&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; •Step 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; On UNIX, Linux and Mac OSX Environment run below command: &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; ps -el | grep java &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; On Windows: &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; Press Ctrl+Shift+Esc to open the task manager and find the PID of the java process &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; •Step 2: &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; Use jstack command to print the Java stack traces for a given Java process PID&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Georgia, serif; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Georgia, serif; "&gt; jstack [PID]&lt;/span&gt;&lt;/div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/Uf7KqwdvRYE" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-20T15:28:00.099+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/how-will-you-take-thread-dump-in-java.html</feedburner:origLink></item><item><title>Why are wait(), notify() and notifyAll() methods defined in the object class?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/yQ0pNKknD_U/why-are-wait-notify-and-notifyall.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Tue, 20 Mar 2012 02:49:06 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-8528271392830531317</guid><description>&lt;div style="text-align: justify;"&gt;&lt;b&gt;Ans:&lt;/b&gt; The purpose of the wait(), notify() and notifyAll() methods is to temporarily pause and resume the execution of code in an object. Typically the host object is not in a state where it can proceed with a method call it has been given and the thread of execution must literally wait for the object to return to a ready state. A common example would be a limited pool or store of objects where you must wait for a storage slot to be released or an object to be returned to the pool before you can use it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;public synchronized Object getNextObject() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  // Waiting loop&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  while (! objectAvailable()) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;    try {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;      wait();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;    catch (InterruptedException e) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;      // Handle exception&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  // No longer waiting, get the return object&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  Object returnObject;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  // Assign the returnObject from store&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  // Notify state change for other waiters&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  notify();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;  return returnObject;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span&gt;The act of waiting is associated with the Object class because any subclass may need to wait for a ready state to occur (Java is fundamentally a multi-threaded language). The waiting process acts on a single thread of execution, but the wait mechanism expects that multiple threads may be waiting for the same object. The wait() and notify() methods are hosted by the Object class so that the Java Virtual Machine can manage the “wait set” of threads through the objects they are waiting for.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/yQ0pNKknD_U" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-20T15:19:06.563+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/why-are-wait-notify-and-notifyall.html</feedburner:origLink></item><item><title>What is Starvation? What is a Livelock?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/iQb5TuA8HjU/what-is-starvation-what-is-livelock.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Fri, 16 Mar 2012 03:09:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-8000820758657218474</guid><description>&lt;div style="font-style: normal; line-height: normal; "&gt;&lt;span &gt;&lt;b&gt;Starvation&lt;/b&gt; and&lt;b&gt; livelock &lt;/b&gt;are much less common a problem than deadlock, but are still problems that every designer of concurrent software is likely to encounter.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; line-height: normal; "&gt;&lt;b&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-style: normal; line-height: normal; "&gt;&lt;b&gt;&lt;span &gt;LiveLock&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-style: normal; line-height: normal; font-weight: normal; "&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; line-height: normal; text-align: justify; font-weight: normal; "&gt;&lt;span &gt;&lt;span&gt;Livelock&lt;/span&gt; occurs when all threads are blocked, or are otherwise unable to proceed due to unavailability of required resources, and the non-existence of any unblocked thread to make those resources available. In terms of Java API, thread livelock can occur in following conditions:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-style: normal; font-variant: normal; line-height: normal; font-weight: normal; "&gt;&lt;ul&gt;&lt;li style="text-align: justify; "&gt;&lt;span style="font-family: arial; "&gt;When all the threads in a program execute Object.wait(0) on an object with zero parameter. The program is live-locked and cannot proceed until one or more threads call Object.notify() or Object.notifyAll() on the relevant objects. Because all the threads are blocked, neither call can be made.&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align: justify; "&gt;&lt;span style="font-family: arial; text-align: left; "&gt;When all the threads in a program are stuck in infinite loops.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span&gt;&lt;b&gt;Starvation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; font-weight: normal; "&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: 100%; font-family: Georgia, serif; text-align: justify; "&gt;&lt;span style="font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; "&gt;&lt;span&gt;Starvation &lt;/span&gt;describes a situation where a thread is unable to gain regular access to shared resources and is unable to make progress. This happens when shared resources are made unavailable for long periods by "greedy" threads. For example, suppose an object provides a synchronized method that often takes a long time to return. If one thread invokes this method frequently, other threads that also need frequent synchronized access to the same object will often be blocked. Starvation occurs when one thread cannot access the CPU because one or more other threads are monopolizing the CPU. In Java, thread starvation can be caused by &lt;/span&gt;&lt;span&gt;setting thread priorities inappropriately. A lower-priority thread can be starved by higher-priority threads if the higher-priority threads do not yield control of the CPU from time to time.&lt;/span&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/iQb5TuA8HjU" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-16T15:39:00.394+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/what-is-starvation-what-is-livelock.html</feedburner:origLink></item><item><title>What is the difference between sleep(), suspend() and wait()?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/0XqCaOfWIKM/what-is-difference-between-sleep.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Fri, 16 Mar 2012 02:47:50 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-4315538130124372372</guid><description>&lt;div style="text-align: justify;"&gt;&lt;b style="font-family: Georgia, serif; "&gt;Ans:&lt;/b&gt;&lt;span &gt;Thread.sleep() sends the current thread into the "Not Runnable" state for some amount of time. The thread keeps the monitors it has aquired -- i.e. if the thread is currently in a synchronized block or method no other thread can enter this block or method. If another thread calls t.interrupt() it will wake up the sleeping thread. Note that sleep is a static method, which means that it always affects the current thread (the one that is executing the sleep method). A common mistake is to call t.sleep() where t is a different thread; even then, it is the current thread that will sleep, not the t thread. t.suspend() is deprecated. Using it is possible to halt a thread other than the current thread. A suspended thread keeps all its monitors and since this state is not interruptable it is deadlock prone. object.wait() sends the current thread into the "Not Runnable" state, like sleep(), but with a twist. Wait is called on a object, not a thread; we call this object the "lock object." Before lock.wait() is called, the current thread must synchronize on the lock object; wait() then releases this lock, and adds the thread to the "wait list" associated with the lock. Later, another thread can synchronize on the same lock object and call lock.notify(). This wakes up the original, waiting thread. Basically, wait()/notify() is like sleep()/interrupt(), only the active thread does not need a direct pointer to the sleeping thread, but only to the shared lock object.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;b&gt;Q:What are native operating system threads?&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;&lt;b&gt;Ans:&lt;/b&gt; &lt;/span&gt;&lt;span &gt;Native operating system threads are those provided by the computer operating system that plays host to a Java application, be it Windows, Mac or GNU/Linux. Operating system threads enable computers to run many programs simultaneously on the same central processing unit (CPU) without clashing over the use of system resources or spending lots of time running one program at the expense of another. Operating system thread management is usually optimised to specific microprocessor architecture and features so that it operates much faster than Java green thread processing. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/0XqCaOfWIKM" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-16T15:17:50.873+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/what-is-difference-between-sleep.html</feedburner:origLink></item><item><title>What is ThreadLocal class? How can it be used?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/pArA7_s25eM/what-is-threadlocal-class-how-can-it-be.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Fri, 16 Mar 2012 02:06:07 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-8582314332422035141</guid><description>&lt;div&gt;&lt;span style="font-size: 100%; "&gt;&lt;b style="font-family: Georgia, serif; "&gt;Ans:&lt;/b&gt;&lt;span&gt;Below are some key points about ThreadLocal variables&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;font-weight: normal; "&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: 100%; "&gt;A thread-local variable effectively provides a separate copy of its value for each thread that uses it.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%; "&gt;ThreadLocal instances are typically private static fields in classes that wish to associate state with a thread&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%; "&gt;In case when multiple threads access a ThreadLocal instance, separate copy of Threadlocal variable is maintained for each thread.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 100%; "&gt;Common use is seen in DAO pattern where the DAO class can be singleton but the Database connection can be maintained separately for each thread. (Per Thread Singleton) &lt;/span&gt;&lt;span style="font-size: 100%; font-family: arial; "&gt;ThreadLocal variable are difficult to understand and I have found below reference links very useful in getting better understanding on them&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="font-weight: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;b&gt;Q:When InvalidMonitorStateException is thrown? Why?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;font-weight: normal; "&gt;&lt;span&gt;Ans: This exception is thrown when you try to call wait()/notify()/notifyAll() any of these methods for an Object from a point in your program where u are NOT having a lock on that object.(i.e. u r not executing any synchronized block/method of that object and still trying to call wait()/notify()/notifyAll()) wait(), notify() and notifyAll() all throw IllegalMonitorStateException. since This exception is a subclass of RuntimeException so we r not bound to catch it (although u may if u want to). and being a RuntimeException this exception is not mentioned in the signature of wait(), notify(), notifyAll() methods.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-weight: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/pArA7_s25eM" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-16T14:36:07.945+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/what-is-threadlocal-class-how-can-it-be.html</feedburner:origLink></item><item><title>Folder Option Not Visible In Tools Menu</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/No1ta7jnHdA/folder-option-not-visible-in-tools-menu.html</link><category>Technology</category><author>noreply@blogger.com (Admin)</author><pubDate>Wed, 14 Mar 2012 09:24:19 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-1957123624027801962</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;Want to change your windows folder options such as Show hidden files or Hide extensions for know file types.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;But my folder options is not visible. How to make folder options visible under tools menu.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-xBRhA9VRIqU/T2DGCua0O-I/AAAAAAAAAos/ypBgbldEDMw/s1600/Windows-7-Folder-Options_thumb.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-xBRhA9VRIqU/T2DGCua0O-I/AAAAAAAAAos/ypBgbldEDMw/s1600/Windows-7-Folder-Options_thumb.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: magenta; font-family: Arial, Helvetica, sans-serif;"&gt;Here is the solution:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Step 1 : Goto Start Menu and Select Run otpion.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Step 2 : Type gpedit.msc in run dialog box. Group Policy dialog box will be displayed.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Step 3 : In Group Policy dialog box in the left pane select&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;user configuration-&amp;gt;administrative templates-&amp;gt;windows components-&amp;gt;windows explorer&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Step 4 : In left pane double click on "Removes the folder options menu item from the tools menu".&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Step 5 : Change its setting to disabled.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Step 6 : Close the Group Policy Dialog box.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Step 7 : Check tools menu in windows explorer.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: lime; font-family: Arial, Helvetica, sans-serif;"&gt;enjoy.............&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/No1ta7jnHdA" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-14T21:54:19.798+05:30</app:edited><media:thumbnail url="http://3.bp.blogspot.com/-xBRhA9VRIqU/T2DGCua0O-I/AAAAAAAAAos/ypBgbldEDMw/s72-c/Windows-7-Folder-Options_thumb.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/folder-option-not-visible-in-tools-menu.html</feedburner:origLink></item><item><title>How do Java threads make the environment asynchrnous?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/-WrTiiLOJGs/how-do-java-threads-make-environment.html</link><category>Thread Related Question</category><category>Thread</category><author>noreply@blogger.com (Admin)</author><pubDate>Wed, 14 Mar 2012 07:37:09 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-7095145370119082890</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans:&lt;/b&gt; The thread mechanism in Java begins with the main entry point thread the runtime environment creates to start a Java program. When you use that initial thread create secondary threads, each one runs independently of the other. The Java virtual machine manages the execution of the threads so they behave as if they all run at the same time, in fact each thread briefly takes turns at execution.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In its simplest form there may be no communication or synchronization between multiple threads in a Java program and they each run to completion independently of each other. In this respect Java threads are fundamentally asynchronous, there is no master clock that governs when threads will run and when they synchronize variables to “catch-up” with each other.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;It is often necessary and more useful if threads do check ready states before progressing, synchronize read and write access to shared variables and call-back to each other when their work is done. This is where the synchronized keyword and the various sleep(), wait() and notify() methods are used to more closely schedule the interaction between asynchronous threads.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/-WrTiiLOJGs" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-14T20:07:09.577+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/how-do-java-threads-make-environment.html</feedburner:origLink></item><item><title>Power On Your Computer With Mouse</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/yA0YIZK7Pxc/power-on-your-computer-with-mouse.html</link><category>Technology</category><author>noreply@blogger.com (Admin)</author><pubDate>Tue, 13 Mar 2012 10:04:15 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-5716818998430124155</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Want to power on your computer?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Press Power Button on cabinet.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Is there any other way?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Yah...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Double Click with your mouse.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;But for that you need to make some settings.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Here goes the settings.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Step 1 Restart your computer.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Step 2 Press DEL button (F2 in some motherboards) to goto the BIOS settings.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Step 3 Select Integrated Peripherals from main menu.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Step 4 If PS/2 mouse power on disabled, activate it by press page up/ page down key it will became Double-Click.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Step 5 Press Esc key to exit.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Step 6 Press F10 to save and exit Power off your PC.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Step 7 Now double-click the left mouse button,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;.. &lt;span style="color: magenta;"&gt;Your PC will turn on&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;This trick may not work with some motherboards&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/yA0YIZK7Pxc" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-13T22:34:15.846+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/power-on-your-computer-with-mouse.html</feedburner:origLink></item><item><title>ORA-28056: Writing audit records to Windows Event Log failed</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/UowHxdK04vw/ora-28056-writing-audit-records-to.html</link><category>Oracle Problems</category><author>noreply@blogger.com (Navneet Singh)</author><pubDate>Tue, 19 Jun 2012 04:32:28 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-1824445197462862546</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-size: 100%;"&gt;I got a PC which ran out from disk space &amp;amp; Oracle was not working. The error was ORA-28056.&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;
I need to delete all the event log &amp;amp; then reconnect it again. Here you can see what happened &amp;amp; it get resolved.&lt;/div&gt;
&lt;div style="font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
C:\Documents and Settings\navneet&amp;gt;sqlplus&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 7 15:44:02 2012&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copyright (c) 1982, 2010, Oracle.  All rights reserved.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enter user-name: /as sysdba&lt;/div&gt;
&lt;div&gt;
Connected to an idle instance.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; startup&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;ORA-28056: Writing audit records to Windows Event Log failed&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;OSD-157797404: Message 157797404 not found;  product=RDBMS; facility=SOSD&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;O/S-Error: (OS 1502) The event log file is full.&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
SQL&amp;gt; exit&lt;/div&gt;
&lt;div&gt;
Disconnected&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Solution of the Problem&lt;/b&gt; :&amp;nbsp; This was because the Event Viewer log is full and could not log anymore events.&lt;br /&gt;
The solution is to clear the event log .To solve this issue follow any of the following steps.&lt;br /&gt;
&lt;br /&gt;
1)
 When a log is full, it stops recording new events. Clearing the log is 
one way to free the log and start recording new events. To do so&lt;br /&gt;
Go to Control Panel --&amp;gt; Administrative Tools --&amp;gt; Event Viewer --&amp;gt; Clear All Events. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) We can also free a log and start recording new events by overwriting old events. To overwrite events,&lt;br /&gt;
Go
 to Control Panel --&amp;gt; Administrative Tools --&amp;gt; Event Viewer --&amp;gt;
 on the left side Application/System/Security (as available) Right click
 --&amp;gt; Properties --&amp;gt; click Overwrite events as needed .&amp;nbsp; &lt;br /&gt;
This ensures that all new events are written to the log, even when the log is full. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) We can also start logging new events by increasing the maximum log size. To increase the log size,&lt;br /&gt;
&amp;nbsp;Go
 to Control Panel --&amp;gt; Administrative Tools --&amp;gt; Event Viewer --&amp;gt;
 on the left side Application/System/Security (as available) Right click
 --&amp;gt; Properties --&amp;gt; Increase the Maximum log size by typing a 
bigger value.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
After that open the CMD, &lt;/div&gt;
&lt;div&gt;
write "sqlplus /nolog" and press enter. &lt;/div&gt;
&lt;div&gt;
Now, write "connect  as sysdba", enter the user name, for example, "sys" and the password. &lt;/div&gt;
&lt;div&gt;
After connect, write "startup".&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
C:\Documents and Settings\navneet&amp;gt;sqlplus&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 7 15:52:12 2012&lt;/div&gt;
&lt;div&gt;
Copyright (c) 1982, 2010, Oracle.  All rights reserved.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enter user-name: /as sysdba&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Connected to:&lt;/div&gt;
&lt;div&gt;
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production&lt;/div&gt;
&lt;div&gt;
With the Partitioning, OLAP, Data Mining and Real Application Testing options&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; select status from v$instance;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STATUS&lt;/div&gt;
&lt;div&gt;
------------&lt;/div&gt;
&lt;div&gt;
STARTED&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; alter database mount;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Database altered.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; select status from v$instance;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STATUS&lt;/div&gt;
&lt;div&gt;
------------&lt;/div&gt;
&lt;div&gt;
MOUNTED&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SQL&amp;gt; alter database open;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Database altered.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
SQL&amp;gt; select status from v$instance;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STATUS&lt;/div&gt;
&lt;div&gt;
------------&lt;/div&gt;
&lt;div&gt;
OPEN&lt;/div&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Njoy!!!!!&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Your suggestions and queries are always warm welcomed at navneetsingh89@gmail.com &lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/UowHxdK04vw" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-06-19T17:02:28.047+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/ora-28056-writing-audit-records-to.html</feedburner:origLink></item><item><title>What are the advantages or usage of threads?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/ytMu8ahytTw/what-are-advantages-or-usage-of-threads.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Fri, 16 Mar 2012 01:58:16 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-5877148246589159273</guid><description>&lt;div&gt;&lt;span style="font-family: Georgia, serif; "&gt;&lt;b&gt;Ans)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt; &lt;/span&gt;&lt;span &gt;&lt;b&gt;Threads support concurrent operations. For example,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;--  Multiple requests by a client on a server can be handled as an individual client thread.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: arial; "&gt;-- Long computations or high-latency disk and network operations can be handled in the background without disturbing foreground computations or screen updates. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;b&gt;Threads often result in simpler programs.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;-- &lt;/span&gt;&lt;span &gt;In sequential programming, updating multiple displays normally requires a big while-loop that performs small parts of each display update. Unfortunately, this loop basically simulates an operating system scheduler. In Java, each view can be assigned a thread to provide continuous updates.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;-- &lt;/span&gt;&lt;span &gt;Programs that need to respond to user-initiated events can set up service routines to handle the events without having to insert code in the main routine to look for these events.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;&lt;b&gt;Threads provide a high degree of control.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;-- &lt;/span&gt;&lt;span &gt;Imagine launching a complex computation that occasionally takes longer than is satisfactory. A "watchdog" thread can be activated that will "kill" the computation if it becomes costly, perhaps in favor of an alternate, approximate solution. Note that sequential programs must muddy the computation with termination code, whereas, a Java program can use thread control to non-intrusively supervise any operation. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;b&gt;Threaded applications exploit parallelism.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;-- &lt;/span&gt;&lt;span &gt;A computer with multiple CPUs can literally execute multiple threads on different functional units without having to simulating multi-tasking ("time sharing").&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;-- &lt;/span&gt;&lt;span &gt;On some computers, one CPU handles the display while another handles computations or database accesses, thus, providing extremely fast user interface response times.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/ytMu8ahytTw" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-16T14:28:16.614+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/what-are-advantages-or-usage-of-threads.html</feedburner:origLink></item><item><title>Difference between Multithreading and Multiprocessing</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/RXwpZmcJRbM/difference-between-multithreading-and.html</link><category>Thread Related Question</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Fri, 16 Mar 2012 01:49:54 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-5530751233696132313</guid><description>&lt;div style="text-align: justify; "&gt;&lt;span &gt;&lt;b&gt;Multi-threading&lt;/b&gt; refers to an application with multiple threads running within a process, while multi-processing refers to an application organised across multiple OS-level processes.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span &gt;&lt;b&gt;A thread&lt;/b&gt; is a stream of instructions within a process. Each thread has its own instruction pointer, set of registers and stack memory. The virtual address space is process specific, or common to all threads within a process. So, data on the heap can be readily accessed by all threads, for good or ill.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span &gt;&lt;b&gt;Multi-threading &lt;/b&gt;is a more "light weight" form of concurrency: there is less context per thread than per process. As a result thread lifetime, context switching and synchronisation costs are lower. The shared address space (noted above) means data sharing requires no extra work.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span &gt;&lt;b&gt;Multi-processing&lt;/b&gt; has the opposite benefits. Since processes are insulated from each other by the OS, an error in one process cannot bring down another process. Contrast this with multi-threading, in which an error in one thread can bring down all the threads in the process. Further, individual processes may run as different users and have different permissions.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; "&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-tab-span" style="font-family: white-space: pre; "&gt; &lt;/span&gt;&lt;b&gt;&lt;span&gt;Difference between multitasking multiprogramming and multithreading?&lt;/span&gt;&lt;/b&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span&gt;Multiprogramming is a rudimentary form of parallel processing in which several programs are run at the same time on a uniprocessor.Since there is only one processor, there can be no true simultaneous execution of different programs. Instead, the operating system executes part of one program, then part of another, and so on. To the user it appears that all programs are executing at the same time.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span&gt;Multitasking, in an operating system, is allowing a user to perform more than one computer task (such as the operation of an application program) at a time. The operating system is able to keep track of where you are in these tasks and go from one to the other without losing information&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span&gt;Multithreading is the ability of a program or an operating system process to manage its use by more than one user at a time and to even manage multiple requests by the same user without having to have multiple copies of the program running in the computer &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/RXwpZmcJRbM" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-16T14:19:54.006+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/difference-between-multithreading-and.html</feedburner:origLink></item><item><title>What is difference between thread and process?</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/ujJM5cztbrw/what-is-difference-between-thread-and.html</link><category>Thread Related Question</category><category>Thread</category><author>noreply@blogger.com (Admin)</author><pubDate>Wed, 14 Mar 2012 07:37:33 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-4984973871598273366</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Ans)&lt;/b&gt; &lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;Differences between threads and processes are:-&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1. Threads share the address space of the process that &amp;nbsp;created it; processes have their own address.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;2. Threads have direct access to the data segment of its process; processes have their own copy of the data segment of the parent process.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;3. Threads can directly communicate with other threads of its process; processes must use interprocess communication to communicate with sibling processes.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;4. Threads have almost no overhead; processes have considerable overhead.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;5. New threads are easily created; new processes require duplication of the parent process.&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;6. Threads can exercise considerable control over threads of the same process; processes can only exercise control over child processes.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;7. Changes to the main thread (cancellation, priority change, etc.) may affect the behavior of the other threads of the process; changes to the parent process do not affect child processes.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/ujJM5cztbrw" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-14T20:07:33.928+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/what-is-difference-between-thread-and.html</feedburner:origLink></item><item><title>Questions Related to Thread</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/a_W8Ehb1kRY/questions-related-to-thread.html</link><category>Thread Related Question</category><category>Thread</category><author>noreply@blogger.com (Admin)</author><pubDate>Wed, 14 Mar 2012 07:37:48 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-1627165503405868875</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;Q:What’s the difference between Thread and Runnable types?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans:&lt;/b&gt; Java Thread controls the main path of execution in an application. When you invoke the Java Virtual Machine with the java command, it creates an implicit thread in which to execute the main method. The Thread class provides a mechanism for the first thread to start-up other threads to run in parallel with it.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The Runnable interface defines a type of class that can be run by a thread. The only method it requires is run, which makes the interface very easy to to fulfil by extending existing classes. A runnable class may have custom constructors and any number of other methods for configuration and manipulation.&lt;/span&gt;&lt;/div&gt;&lt;b style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b style="font-family: Arial, Helvetica, sans-serif;"&gt;Q: If all methods are synchronized, is a class thread safe?&lt;/b&gt;&lt;br /&gt;
&lt;b style="font-family: Arial, Helvetica, sans-serif; text-align: justify;"&gt;Ans:&lt;/b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: justify;"&gt; Even if all the methods of a class are synchronized, it may still be vulnerable to thread safety problems if it exposes non-final fields or its methods return mutable object references that could be manipulated by multiple threads. Non-final fields should be declared private and encapsulated with synchronization. Rather than return references to internal object fields, create an independent copy that has no relation to the original, known as a deep copy.&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;A deep copy of an object duplicates the content and state of the original object and all its constituent fields in such a way that none of its properties refer to instances in the original at any level.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;These measures will help prevent uncontrolled access to the internal state of objects, but you must also ensure synchronization techniques are applied in a robust, consistent manner that will not cause deadlock or race conditions. It is generally better to use synchronized blocks than synchronized methods for performance reasons. Limit the extent of synchronized blocks and ensure they all use the same object monitor.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Q: What's the difference between a thread's start() and run() methods?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style="font-family: Arial, Helvetica, sans-serif; text-align: justify;"&gt;Ans:&lt;/b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: justify;"&gt; The separate start() and run() methods in the Thread class provide two ways to create threaded programs. The start() method starts the execution of the new thread and calls the run() method. The start() method returns immediately and the new thread normally continues until the run()method returns.&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The Thread class' run() method calls the run() method of the Runnable type class passed to its constructor. Subclasses of Thread should override the run() method with their own code to execute in the second thread.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Depending on the nature of your threaded program, calling the Thread run() method directly can give the same output as calling via the start() method. Howevever, the code will only be executed in a new thread if the start() method is used.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Q: What is a Runnable object and a Runnable argument?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans: &lt;/b&gt;A Runnable object is one that implements the Runnable interface, which is the type used to execute new threads. The Runnable interface only has one method, run(), which must be implemented by a Runnable class.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In Java an argument is a primitive value or object reference that is passed to a constructor or method, defined in the method signature. A Runnable argument would be a constructor or method argument that is declared to be a Runnable type. The constructor of the Thread class is the most obvious example.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;public Thread(Runnable target);&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;This constructor requires a Runnable type argument to be passed when a Thread is instantiated.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Q: What is a green thread?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans:&lt;/b&gt; A green thread refers to a mode of operation for the Java Virtual Machine (JVM) in which all code is executed in a single operating system thread. If a Java program has any concurrent threads, the JVM manages multi-threading behaviour internally rather than use additional operating system threads.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;There is a significant processing overhead for the JVM to keep track of thread states and swap between them, so green thread mode has been deprecated and removed from more recent Java implementations. Current JVM implementations make more efficient use of native operating system threads. These days there is no case where the green thread approach is useful except on systems where this is the only concurrency scheme that is available for Java, on old operating systems and hardware platforms.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Q:What are the daemon threads?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans:&lt;/b&gt;&amp;nbsp;Daemon thread are service provider threads run in the background,these not used to run the application code generally.When all user threads(non-daemon threads) complete their execution the jvm exit the application whatever may be the state of the daemon threads. Jvm does not wait for the daemon threads to complete their execution if all user threads have completed their execution.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;To create Daemon thread set the daemon value of Thread using setDaemon(boolean value) method. By default all the threads created by user are user thread. To check whether a thread is a Daemon thread or a user thread use isDaemon() method.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Example of the Daemon thread is the Garbage Collector run by jvm to reclaim the unused memory by the application. The Garbage collector code runs in a Daemon thread which terminates as all the user threads are done with their execution.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Q:What happens if a start method is not invoked and the run method is directly invoked?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Ans:&lt;/b&gt; If a thread has been instantiated but not started its is said to be in new state. Unless until a start() method is invoked on the instance of the thread, it will not said to be alive. If you do not call a start() method on the newly created thread instance thread is not considered to be alive. If the start() method is not invoked and the run() method is directly called on the Thread instance, the code inside the run() method will not run in a separate new thread but it will start running in the existing thread.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/a_W8Ehb1kRY" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-14T20:07:48.998+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/questions-related-to-thread.html</feedburner:origLink></item><item><title>ThreadGroup Class - Access Restriction Methods</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/_vUgcTdX0ZY/threadgroup-class-access-restriction.html</link><category>Thread</category><author>noreply@blogger.com (Swati Goyal)</author><pubDate>Tue, 13 Mar 2012 03:22:36 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-1195414404631175629</guid><description>&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;The ThreadGroup class itself does not impose any access restrictions, such as allowing threads from one group to inspect or modify threads in a different group. Rather the Thread and ThreadGroup classes cooperate with security managers (subclasses of the SecurityManager  class), which can impose access restrictions based on thread group membership.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;The Thread and ThreadGroup class both have a method, checkAccess, which calls the current security manager's checkAccess method. The security manager decides whether to allow the access based on the group membership of the threads involved. If access is not allowed, the checkAccess method throws a SecurityException. Otherwise, checkAccess simply returns.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span &gt;The following is a list of ThreadGroup methods that call ThreadGroup's checkAccess before performing the action of the method. These are what are known as regulated accesses, that is, accesses that must be approved by the security manager before they can be completed.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;ul&gt;&lt;li&gt;&lt;span &gt;ThreadGroup(ThreadGroup parent, String name)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="text-align: left; "&gt;&lt;span &gt;setDaemon(boolean isDaemon)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="text-align: left; "&gt;&lt;span &gt;setMaxPriority(int maxPriority)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="text-align: left; "&gt;&lt;span &gt;stop&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="text-align: left; "&gt;&lt;span &gt;suspend&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="text-align: left; "&gt;&lt;span &gt;resume&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="text-align: left; "&gt;&lt;span &gt;destroy&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: Georgia, serif; text-align: left; "&gt;This is a list of the methods in the Thread class that call checkAccess before proceeding:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span &gt;constructors that specify a thread group&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span &gt;stop&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span &gt;suspend&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span &gt;resume&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span &gt;setPriority(int priority)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span &gt;setName(String name)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span &gt;setDaemon(boolean isDaemon)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;b&gt;Related Posts:- &lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;a href="http://erpbasic.blogspot.in/2012/03/java-threadgroup-class.html"&gt;Java - ThreadGroup Class&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;a href="http://erpbasic.blogspot.in/2012/03/threadgroup-class-collection-ma.html"&gt;ThreadGroup Class - Collection Management Methods&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;a href="http://erpbasic.blogspot.in/2012/03/threadgroup-class-methods-that-operate.html"&gt;ThreadGroup Class - Methods that Operate on the Group &lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;a href="http://erpbasic.blogspot.in/2012/03/threadgroup-class-methods-that-operate_06.html"&gt;ThreadGroup Class - Methods that Operate on all Threads within a Group &lt;/a&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/_vUgcTdX0ZY" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-13T15:52:36.771+05:30</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/threadgroup-class-access-restriction.html</feedburner:origLink></item><item><title>Some Unique Guinness World Records</title><link>http://feedproxy.google.com/~r/ErpBasic/~3/J-W-guMlXEc/some-unique-guinness-world-records.html</link><author>noreply@blogger.com (Admin)</author><pubDate>Wed, 07 Mar 2012 00:26:14 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8112177544657508617.post-8972302371199814517</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-QiF5QxHImrw/T1cUQtmo4RI/AAAAAAAAAm8/Jh8wzvttPhE/s1600/guiness_book_of_records_02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="306" src="http://4.bp.blogspot.com/-QiF5QxHImrw/T1cUQtmo4RI/AAAAAAAAAm8/Jh8wzvttPhE/s400/guiness_book_of_records_02.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="background-color: white; border-bottom-style: none; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-style: none; border-left-width: 0px; border-right-style: none; border-right-width: 0px; border-top-style: none; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1,253 Smurfs gathered in the high street in the town of Castleblayney in County Monaghan, Ireland on July 18, 2008. (Guinness World Records)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-zWQ_py3cr8c/T1cViqLB9vI/AAAAAAAAAnE/7ODBqwtbch4/s1600/guiness_book_of_records_15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="281" src="http://3.bp.blogspot.com/-zWQ_py3cr8c/T1cViqLB9vI/AAAAAAAAAnE/7ODBqwtbch4/s400/guiness_book_of_records_15.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: justify;"&gt;35,310 Lego Star Wars Clone Troopers in the UK.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-yoTeH4R-zz4/T1cV50oRvwI/AAAAAAAAAnM/bjeTK7re0MY/s1600/guiness_book_of_records_21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://1.bp.blogspot.com/-yoTeH4R-zz4/T1cV50oRvwI/AAAAAAAAAnM/bjeTK7re0MY/s400/guiness_book_of_records_21.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The longest skis are 534 m long and were worn by 1,043 skiers in an event organized by Danske Bank on Drottninggatan in Örebro, Sweden, on 13 September 2008.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Q_yBapYbA0I/T1cWK7KJ2AI/AAAAAAAAAnU/mH7FA8k3neQ/s1600/guiness_book_of_records_2_18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://2.bp.blogspot.com/-Q_yBapYbA0I/T1cWK7KJ2AI/AAAAAAAAAnU/mH7FA8k3neQ/s400/guiness_book_of_records_2_18.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;World's biggest pickup truck - 2002&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-X8vVOCnE_jc/T1cWr38hzuI/AAAAAAAAAnc/cLow8EsOdiw/s1600/guiness_book_of_records_2_19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-X8vVOCnE_jc/T1cWr38hzuI/AAAAAAAAAnc/cLow8EsOdiw/s400/guiness_book_of_records_2_19.jpg" width="289" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-6f6sB-cOxV4/T1cW5YSmn2I/AAAAAAAAAnk/4Q20Eb8vw8c/s1600/guiness_book_of_records_2_06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-6f6sB-cOxV4/T1cW5YSmn2I/AAAAAAAAAnk/4Q20Eb8vw8c/s400/guiness_book_of_records_2_06.jpg" width="270" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Surrey resident Sarwan Singh achieved a feat, which every Sikh is going to be proud of. He set a new Guinness Book of World Record by having the longest beard.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-RTsmd5Zd3rU/T1cW_6-YpkI/AAAAAAAAAns/y3eE4TDcJhQ/s1600/guiness_book_of_records_04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-RTsmd5Zd3rU/T1cW_6-YpkI/AAAAAAAAAns/y3eE4TDcJhQ/s400/guiness_book_of_records_04.jpg" width="273" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: justify;"&gt;The largest pocket knife was designed by Telmo Cadavez and hand made by Virgilio, Raul and Manuel Pires of Portugal.&amp;nbsp;The knife is 3.9m long when open and weighs 122kg.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-wSfwRSjsqGc/T1cXG-n8g0I/AAAAAAAAAn0/m1cMgivBUDY/s1600/guiness_book_of_records_10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-wSfwRSjsqGc/T1cXG-n8g0I/AAAAAAAAAn0/m1cMgivBUDY/s400/guiness_book_of_records_10.jpg" width="286" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-1NKoZ8d3o7s/T1cXLxXWmXI/AAAAAAAAAn8/ck8c9Ylxht0/s1600/guiness_book_of_records_2_12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="312" src="http://1.bp.blogspot.com/-1NKoZ8d3o7s/T1cXLxXWmXI/AAAAAAAAAn8/ck8c9Ylxht0/s400/guiness_book_of_records_2_12.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The largest commercially available hamburger is 74.75 kg (164.8 lbs) and is available for US$399 (£271.55) on the menu at Mallie's Sports Grill &amp;amp; Bar in Southgate, Michigan, USA, as of 29 August 2008.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-X5DkiD0Cvt8/T1cXQs20y2I/AAAAAAAAAoE/pQxQ6ydkxQk/s1600/guiness_book_of_records_07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://2.bp.blogspot.com/-X5DkiD0Cvt8/T1cXQs20y2I/AAAAAAAAAoE/pQxQ6ydkxQk/s400/guiness_book_of_records_07.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; text-align: justify;"&gt;In Germany, Anita Schwarz set a new record for carrying the most steins of lager over 40m.&amp;nbsp;She staggered across the finishing line holding 19 glasses.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ASXFE5OCyyY/T1cXW8AMncI/AAAAAAAAAoM/_6fMjCFAyPo/s1600/guiness_book_of_records_13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="278" src="http://2.bp.blogspot.com/-ASXFE5OCyyY/T1cXW8AMncI/AAAAAAAAAoM/_6fMjCFAyPo/s400/guiness_book_of_records_13.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Coke &amp;amp; Mentos Guiness world record With 1,911 explosions in Riga, Latvia&lt;/span&gt;.&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-b3ZYmfXvJSA/T1cXdCmhMuI/AAAAAAAAAoU/g39GUy1Ndhc/s1600/guiness_book_of_records_2_25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="265" src="http://4.bp.blogspot.com/-b3ZYmfXvJSA/T1cXdCmhMuI/AAAAAAAAAoU/g39GUy1Ndhc/s400/guiness_book_of_records_2_25.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Ox80_93e_sY/T1cXicEd25I/AAAAAAAAAoc/j8iwI23fI9E/s1600/guiness_book_of_records_12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://2.bp.blogspot.com/-Ox80_93e_sY/T1cXicEd25I/AAAAAAAAAoc/j8iwI23fI9E/s400/guiness_book_of_records_12.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-D6l_IlQuV6M/T1cXo_Jh30I/AAAAAAAAAok/2rteB6b29eg/s1600/guiness_book_of_records_19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="348" src="http://4.bp.blogspot.com/-D6l_IlQuV6M/T1cXo_Jh30I/AAAAAAAAAok/2rteB6b29eg/s400/guiness_book_of_records_19.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ErpBasic/~4/J-W-guMlXEc" height="1" width="1"/&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-03-07T13:56:14.657+05:30</app:edited><media:thumbnail url="http://4.bp.blogspot.com/-QiF5QxHImrw/T1cUQtmo4RI/AAAAAAAAAm8/Jh8wzvttPhE/s72-c/guiness_book_of_records_02.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://erpbasic.blogspot.com/2012/03/some-unique-guinness-world-records.html</feedburner:origLink></item><media:rating>nonadult</media:rating></channel></rss>
