<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-522132438700478092</id><updated>2012-02-16T19:02:29.805+07:00</updated><category term='Oracle DBA'/><category term='Oracle Memory Structure'/><category term='Memory Structure'/><category term='Workforce Development Program'/><category term='Oracle'/><category term='Oracle WDP'/><title type='text'>Helpless</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anovian.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anovian.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vian</name><uri>http://www.blogger.com/profile/15568804063024476872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_BNgU2_h6ygA/SUHKta4t_QI/AAAAAAAAANo/tdQ1VQ_tWIs/S220/imgp6621_1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-522132438700478092.post-6164713549503283583</id><published>2011-02-23T11:57:00.004+07:00</published><updated>2011-02-23T12:22:51.108+07:00</updated><title type='text'>Java Simple Tail</title><content type='html'>Many time we need to see application log but not for all log but for last line or -n line. As wee know tail in *NIX,solaris,etc have function like tail [-f] filename. And how if we make this future with JAVA code. This time i only give you a simple tail basic function that you have to extend it Here is the code:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre name="code" class="c-sharp"&gt;&lt;br /&gt; public String seek( String fileName , int line) {&lt;br /&gt;  try {&lt;br /&gt;         java.io.File file = new java.io.File( fileName );&lt;br /&gt;      &lt;br /&gt;         if( !file.exists() ){&lt;br /&gt;          System.out.println("File Not Found");&lt;br /&gt;          System.exit(0);&lt;br /&gt;         }&lt;br /&gt;         RandomAccessFile fileHandler = new RandomAccessFile( file, "r" );&lt;br /&gt;         long fileLength = file.length() - 1;&lt;br /&gt;         int newLineCount = 0;&lt;br /&gt;         int carrierLineCount = 0;&lt;br /&gt;         StringBuilder sb = new StringBuilder();&lt;br /&gt; &lt;br /&gt;         for( long filePointer = fileLength; filePointer != -1; filePointer-- ) {&lt;br /&gt;             fileHandler.seek( filePointer );&lt;br /&gt;             int readByte = fileHandler.readByte();&lt;br /&gt;             if( readByte == 0xA ) {              &lt;br /&gt;              if( filePointer == fileLength ) {                  &lt;br /&gt;                     continue;&lt;br /&gt;                 } else {&lt;br /&gt;                  newLineCount++;&lt;br /&gt;                  if( newLineCount == line )&lt;br /&gt;                   break;&lt;br /&gt;              }&lt;br /&gt;             } else if( readByte == 0xD ) {              &lt;br /&gt;              if( filePointer == fileLength - 1 ) {&lt;br /&gt;                  continue;&lt;br /&gt;                 } else{                  &lt;br /&gt;                  carrierLineCount++;&lt;br /&gt;                  if( carrierLineCount == line )&lt;br /&gt;                   break;&lt;br /&gt;              }          &lt;br /&gt;             }&lt;br /&gt;             sb.append( ( char ) readByte );&lt;br /&gt;         }&lt;br /&gt; &lt;br /&gt;         String lastLine = sb.reverse().toString();&lt;br /&gt;         return lastLine;&lt;br /&gt;     } catch( java.io.FileNotFoundException e ) {&lt;br /&gt;         e.printStackTrace();&lt;br /&gt;         return null;&lt;br /&gt;     } catch( java.io.IOException e ) {&lt;br /&gt;         e.printStackTrace();&lt;br /&gt;         return null;&lt;br /&gt;     }&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  white-space: pre; font-family:monospace;font-size:12px;"&gt;&lt;span class="tag" style="color: rgb(0, 0, 136); "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/522132438700478092-6164713549503283583?l=anovian.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anovian.blogspot.com/feeds/6164713549503283583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anovian.blogspot.com/2011/02/java-simple-tail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/6164713549503283583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/6164713549503283583'/><link rel='alternate' type='text/html' href='http://anovian.blogspot.com/2011/02/java-simple-tail.html' title='Java Simple Tail'/><author><name>Vian</name><uri>http://www.blogger.com/profile/15568804063024476872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_BNgU2_h6ygA/SUHKta4t_QI/AAAAAAAAANo/tdQ1VQ_tWIs/S220/imgp6621_1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-522132438700478092.post-7770748425111989878</id><published>2008-12-12T08:59:00.003+07:00</published><updated>2008-12-12T09:02:45.525+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle WDP'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='Workforce Development Program'/><title type='text'>Oracle Workforce Development Program</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://workforce.oracle.com/pdf/image_rd/wdp_header.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 356px; height: 35px;" src="https://workforce.oracle.com/pdf/image_rd/wdp_header.gif" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;In the year 2005 I decided to get Oracle course with Oracle Workforce Development Program (WDP). I take course with SQL Fundamental and Administration Workshop (to get OCA certificate). Event today my company not used Oracle as their databases but I still want to studying Oracle.&lt;/p&gt; &lt;p class="MsoNormal"&gt;In &lt;span&gt; &lt;/span&gt;a long period I search an e-book about Oracle (event I have Oracle book) and now it all was pay. I founded that book with lab script, unfortunately for SQL Fundamentals I’m not found for lab script.&lt;/p&gt; &lt;p class="MsoNormal"&gt;This book is same as Oracle WDP program used in their courses, so you get the same case as the courses. Here I will list where you can download the book:&lt;/p&gt; &lt;p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;/p&gt; &lt;p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in;"&gt;&lt;!--[endif]--&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a title="Oracle Fundamental I" href="http://www.4shared.com/file/21772852/2dee6e4e/Oracle_Database_10g_SQL_Fundamentals_I_2006.html?s=1" target="_blank"&gt;Oracle Fundamental I&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Symbol;"&gt;&lt;span&gt;&lt;span style="line-height: normal;font-family:&amp;quot;;font-size:7;"  &gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;a title="Oracle Fundamental II" href="http://www.4shared.com/file/21773081/b7e67764/Oracle_Database_10g_SQL_Fundamentals_II_2006.html?s=1" target="_blank"&gt;Oracle Fundamental II&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Symbol;"&gt;&lt;span&gt;&lt;span style="line-height: normal;font-family:&amp;quot;;font-size:7;"  &gt; &lt;a title="Oracle Fundamental III" href="http://www.4shared.com/file/55040013/3eb0658d/Oracle_Database_10g_Fundemental_Volumn_III.html?s=1" target="_blank"&gt; &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;a title="Oracle Fundamental III" href="http://www.4shared.com/file/55040013/3eb0658d/Oracle_Database_10g_Fundemental_Volumn_III.html?s=1" target="_blank"&gt;Oracle Fundamental III&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family:Symbol;"&gt;&lt;span&gt;&lt;span style="line-height: normal;font-family:&amp;quot;;font-size:7;"  &gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;a title="Administration Workshop I" href="http://www.4shared.com/file/41701185/6f0fc456/Oracle_Database_10g_-_Administration_Workshop_I.html?s=1" target="_blank"&gt;Oracle Administration Workshop I&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;!--[endif]--&gt;&lt;a title="Administration Workshop II" href="http://www.4shared.com/file/21012844/4fd33f22/Oracle_Database_10g_Administration_Workshop_II.html?s=1" target="_blank"&gt;Oracle Administration Workshop II&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p class="MsoListParagraphCxSpMiddle"&gt; &lt;/p&gt;&lt;p class="MsoListParagraphCxSpMiddle"&gt;Notes:&lt;/p&gt; &lt;p class="MsoListParagraphCxSpLast"&gt;For encrypted files, the password is `www.eftekasat.net`&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/522132438700478092-7770748425111989878?l=anovian.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anovian.blogspot.com/feeds/7770748425111989878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anovian.blogspot.com/2008/12/oracle-workforce-development-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/7770748425111989878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/7770748425111989878'/><link rel='alternate' type='text/html' href='http://anovian.blogspot.com/2008/12/oracle-workforce-development-program.html' title='Oracle Workforce Development Program'/><author><name>Vian</name><uri>http://www.blogger.com/profile/15568804063024476872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_BNgU2_h6ygA/SUHKta4t_QI/AAAAAAAAANo/tdQ1VQ_tWIs/S220/imgp6621_1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-522132438700478092.post-2665215751332240025</id><published>2008-12-12T08:52:00.003+07:00</published><updated>2008-12-12T08:55:15.957+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Memory Structure'/><category scheme='http://www.blogger.com/atom/ns#' term='Memory Structure'/><title type='text'>Oracle Memory Structure</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://anovian.files.wordpress.com/2008/05/oracle-memory-structure.jpg?w=300&amp;amp;h=138"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 300px; height: 138px;" src="http://anovian.files.wordpress.com/2008/05/oracle-memory-structure.jpg?w=300&amp;amp;h=138" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The basic memory structures associated with an Oracle instance include: &lt;ul&gt;&lt;li&gt;System Global Area (SGA): Shared by all server and background process.&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Program Global Area (PGA): Private to each server and background process; there is one PGA for each process.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;The System Global Area (SGA) is a shared memory area that contains data and control information for the instance.&lt;br /&gt;The SGA includes the following data structures:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Database buffer cache: Caches block of data retrieved from database&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Redo log buffer: Caches redo information (used for instance recovery) until it can be written to the physical redo log files store on disk&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Shared pool: Caches various constructs that can be shared among users&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Large pool: Optional area used for buffering large I/O request&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Java pool: Used for all session-specific Java code and data within the Java Virtual Machine (JVM)&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Stream pool: Used by Oracle Streams&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;With the dynamic SGA infrastructure, the size of the database buffer cache, the shared pool, the large pool, the Java pool, and the Stream pool changes without shutting down the instance.&lt;br /&gt;The preconfigured database has been pretuned with adequate setting for the memory parameters. However, as your database usage expands your may find it necessary to alter the setting of the memory parameters.&lt;br /&gt;Oracle provides alerts and advisors to identify memory sizing problems and to help you determine appropriate values for memory parameters.&lt;br /&gt;A Program Global Area (PGA) is a memory region which contains data and control information for each server process. A server process is a process that services a client’s request. Each server process has it own private PGA area that is created when the server process is started. Access to it is exclusive to that server process, and is read and written only by Oracle code acting on behalf of it.&lt;br /&gt;The amount of PGA memory used and its content depends on weather the instance is configured in shared server mode. Generally, the PGA contains the following:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Private SQL area: Contains data such as bind information and run-time memory structures. Each session that issues a SQL statement has a private SQL area.&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Session memory: Memory allocated ti hold session variables and other information related to the session.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/522132438700478092-2665215751332240025?l=anovian.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anovian.blogspot.com/feeds/2665215751332240025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anovian.blogspot.com/2008/12/oracle-memory-structure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/2665215751332240025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/2665215751332240025'/><link rel='alternate' type='text/html' href='http://anovian.blogspot.com/2008/12/oracle-memory-structure.html' title='Oracle Memory Structure'/><author><name>Vian</name><uri>http://www.blogger.com/profile/15568804063024476872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_BNgU2_h6ygA/SUHKta4t_QI/AAAAAAAAANo/tdQ1VQ_tWIs/S220/imgp6621_1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-522132438700478092.post-6443301856960109212</id><published>2008-12-11T10:04:00.004+07:00</published><updated>2008-12-11T10:07:03.274+07:00</updated><title type='text'>Oracle Instance Management</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://anovian.files.wordpress.com/2008/05/oracle-instance-management1.jpg?w=300&amp;amp;h=193"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 299px; height: 193px;" src="http://anovian.files.wordpress.com/2008/05/oracle-instance-management1.jpg?w=300&amp;amp;h=193" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;An Oracle database server consists of an Oracle database and Oracle instance. An Oracle instance is made up of memory buffers known as the System Global Area (SGA) and background process that handle much of the behind-the-scenes work involved in running an instance.&lt;br /&gt;The instance is idle(nonexistent) until it is started. When the instance is started, an initialization parameter file is read and the instance is configured according to instructions contained within the parameter file.&lt;br /&gt;After the instance is started and the database is opened, user can access the database.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/522132438700478092-6443301856960109212?l=anovian.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anovian.blogspot.com/feeds/6443301856960109212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anovian.blogspot.com/2008/12/oracle-instance-management.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/6443301856960109212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/6443301856960109212'/><link rel='alternate' type='text/html' href='http://anovian.blogspot.com/2008/12/oracle-instance-management.html' title='Oracle Instance Management'/><author><name>Vian</name><uri>http://www.blogger.com/profile/15568804063024476872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_BNgU2_h6ygA/SUHKta4t_QI/AAAAAAAAANo/tdQ1VQ_tWIs/S220/imgp6621_1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-522132438700478092.post-6631191229750003267</id><published>2008-12-11T09:49:00.001+07:00</published><updated>2008-12-11T09:51:16.505+07:00</updated><title type='text'>Optimal Flexible Architecture (OFA)</title><content type='html'>&lt;div class="entry"&gt;     &lt;div class="snap_preview"&gt;&lt;p&gt;OFA is a methode for configuring the Oracle database and other database. OFA takes the advantage of the OS and disk subsystems capabilities to create an easy-to-administer configuration that allows maximum flexibilitiy for growing and high-performance database. the methodes described here are basics of OFA.&lt;/p&gt; &lt;p&gt;OFA is designed to:&lt;/p&gt; &lt;ul&gt;&lt;li&gt; Organize large amounts of complicated software and data on disk, to avoid device bottleneck and poor performance.&lt;/li&gt;&lt;li&gt;Facilitate routine administrative tasks such as software and data backup, which are often vulnerrable to data corruption.&lt;/li&gt;&lt;li&gt;facilitate switching between multiple Oracle databases.&lt;/li&gt;&lt;li&gt;Adequately manage and administer database growth.&lt;/li&gt;&lt;li&gt;Help eliminate fragmentation of free space in the data dictionary, isolate other fragmentation, and minimize resource contention.&lt;/li&gt;&lt;/ul&gt; &lt;/div&gt;   &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/522132438700478092-6631191229750003267?l=anovian.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anovian.blogspot.com/feeds/6631191229750003267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anovian.blogspot.com/2008/12/optimal-flexible-architecture-ofa.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/6631191229750003267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/522132438700478092/posts/default/6631191229750003267'/><link rel='alternate' type='text/html' href='http://anovian.blogspot.com/2008/12/optimal-flexible-architecture-ofa.html' title='Optimal Flexible Architecture (OFA)'/><author><name>Vian</name><uri>http://www.blogger.com/profile/15568804063024476872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_BNgU2_h6ygA/SUHKta4t_QI/AAAAAAAAANo/tdQ1VQ_tWIs/S220/imgp6621_1.jpg'/></author><thr:total>0</thr:total></entry></feed>
