<?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-5608086576269426588</id><updated>2011-12-12T10:02:22.692+11:00</updated><category term='Personal'/><category term='Oracle DBA'/><category term='MySQL'/><category term='MS SQL Server'/><category term='PeopleSoft'/><category term='Oracle DBA RMAN'/><category term='unix'/><category term='Cricket'/><category term='Oracle Apex'/><category term='Oracle sqlplus'/><category term='Aquaria'/><category term='MySQL/PHP'/><category term='Shell Scripting'/><category term='Windows'/><category term='Oracle pl/sql'/><category term='TSM'/><title type='text'>NAZIM'S CRICKET BLOG</title><subtitle type='html'>A Blend of Cricket, Technical and Personal Talk!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default?start-index=101&amp;max-results=100'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>123</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6124391532681236590</id><published>2011-12-12T10:02:00.000+11:00</published><updated>2011-12-12T10:02:22.699+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA RMAN'/><title type='text'>Available db_recovery_file_dest</title><content type='html'>A gr8 script picked up somewhere along the way to check the available amount of db_recovery_file_dest space.&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;select name,
  floor(space_limit/1024/1024) "Size_MB",
  ceil(space_used/1024/1024) "Used_MB",
  floor(space_limit/1024/1024) - ceil(space_used/1024/1024) "Available_MB",
  round(ceil(space_used/1024/1024) / floor(space_limit/1024/1024) * 100)  || '%' "Percent Used"
  from v$recovery_file_dest
  order by name;
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6124391532681236590?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6124391532681236590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6124391532681236590' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6124391532681236590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6124391532681236590'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/12/available-dbrecoveryfiledest.html' title='Available db_recovery_file_dest'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4557646563219186329</id><published>2011-11-08T13:31:00.000+11:00</published><updated>2011-11-08T13:31:36.792+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>chmod</title><content type='html'>Only just found out, instead of working out the numeric settings of chmod, the following conventions can be "literally" used:&lt;br /&gt;
&lt;blockquote&gt;chmod u+rwx&lt;br /&gt;
chmod g+rwx&lt;br /&gt;
chmod o+rwx&lt;br /&gt;
&lt;p&gt;chmod u-rwx&lt;br /&gt;
chmod g-rwx&lt;br /&gt;
chmod o-rwx&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4557646563219186329?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4557646563219186329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4557646563219186329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4557646563219186329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4557646563219186329'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/11/chmod.html' title='chmod'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-9169367970675753539</id><published>2011-10-24T12:04:00.002+11:00</published><updated>2011-10-24T12:05:03.530+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Export to Pipe</title><content type='html'>Using fifo (first in first out) you can redirect your database exports through a pipe straight to gzip.&lt;br /&gt;
&lt;blockquote&gt;&lt;font color=navy&gt;make fifo pipe&lt;/font&gt;&lt;br /&gt;
mkdir fifo db.fifo&lt;br /&gt;
&lt;p&gt;&lt;font color=navy&gt;write the file output to gzip and send to background&lt;/font&gt;&lt;br /&gt;
cat db.fifo | gzip &gt; db.dmp.gz &amp;&lt;br /&gt;
&lt;p&gt;&lt;font color=navy&gt;run the export to the fifo pipe&lt;/font&gt;&lt;br /&gt;
exp username/password file=db.fifo log=db.log etc&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-9169367970675753539?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/9169367970675753539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=9169367970675753539' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9169367970675753539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9169367970675753539'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/10/export-to-pipe.html' title='Export to Pipe'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7112618423500046186</id><published>2011-10-13T15:35:00.001+11:00</published><updated>2011-10-13T15:35:02.443+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft SymbolicID</title><content type='html'>Note to self - symbolicid is stored in table:&lt;br /&gt;
&lt;blockquote&gt;PSACCESSPRFL&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7112618423500046186?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7112618423500046186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7112618423500046186' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7112618423500046186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7112618423500046186'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/10/peoplesoft-symbolicid.html' title='PeopleSoft SymbolicID'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-5349806496272173881</id><published>2011-09-27T18:04:00.000+10:00</published><updated>2011-09-27T18:04:08.962+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Ian Healy - Legen ... wait for it ... dary!!</title><content type='html'>What a generous bloke.  Signed a whole bunch of items.  Amazing stuff!!&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Vi7L99KhL0s/ToGDa-EZznI/AAAAAAAAAMo/kYWjfV1VgSk/s1600/heals.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-Vi7L99KhL0s/ToGDa-EZznI/AAAAAAAAAMo/kYWjfV1VgSk/s320/heals.jpg" width="256" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-5349806496272173881?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/5349806496272173881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=5349806496272173881' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5349806496272173881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5349806496272173881'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/09/ian-healy-legen-wait-for-it-dary.html' title='Ian Healy - Legen ... wait for it ... dary!!'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-Vi7L99KhL0s/ToGDa-EZznI/AAAAAAAAAMo/kYWjfV1VgSk/s72-c/heals.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8073158472656413379</id><published>2011-09-27T11:23:00.000+10:00</published><updated>2011-09-27T11:23:05.200+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>OEM - UDM Collection Interval</title><content type='html'>You may have noticed that User Defined Metrics (UDM) in Oracle Enterprise Manager (OEM) have a minimum collection time of 5 minutes.&lt;br /&gt;
&lt;p&gt;If you wish to change this interval, you can do so by editing a xml file on the server which is the target of the UDM.&lt;br /&gt;
&lt;blockquote&gt;On target server, navigate to $ORACLE_AGENT_HOME/sysman/emd/collection and edit file oracle_database_{SID}.{SERVER}.xml.&lt;br /&gt;
&lt;p&gt;Search for the name of the UDM and edit the IntervalSchedule tag e.g.&lt;br /&gt;
&lt;p&gt;&amp;#060;CollectionItem NAME="{UDM_NAME}"&amp;#062;&lt;br /&gt;
                &amp;#060;Schedule&amp;#062;&lt;br /&gt;
                        &amp;#060;IntervalSchedule INTERVAL="{n}"/&amp;#062;&lt;br /&gt;
                &amp;#060;/Schedule&amp;#062;&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8073158472656413379?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8073158472656413379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8073158472656413379' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8073158472656413379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8073158472656413379'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/09/oem-udm-collection-interval.html' title='OEM - UDM Collection Interval'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2958658068555194076</id><published>2011-08-13T07:35:00.000+10:00</published><updated>2011-08-13T07:35:04.803+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Check Server UpTime</title><content type='html'>&lt;blockquote&gt;&lt;pre&gt;systeminfo | find "Time"
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2958658068555194076?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2958658068555194076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2958658068555194076' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2958658068555194076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2958658068555194076'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/08/check-server-uptime.html' title='Check Server UpTime'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-5158070231659782593</id><published>2011-08-06T09:50:00.003+10:00</published><updated>2011-08-06T09:51:36.795+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Ardmona Cricket Cards</title><content type='html'>Recent inclusions to the collection are sets of Ardmona 1979 and 1980 cricket cards:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.nazimcricket.com/cigs2.php?p_link2=ard79"&gt;Ardmona 1979 Set&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.nazimcricket.com/cigs2.php?p_link2=ard80"&gt;Ardmona 1980 Set&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-5158070231659782593?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/5158070231659782593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=5158070231659782593' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5158070231659782593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5158070231659782593'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/08/ardmona-cricket-cards.html' title='Ardmona Cricket Cards'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4574358955287474395</id><published>2011-08-05T15:49:00.000+10:00</published><updated>2011-08-05T15:49:47.285+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Apex'/><title type='text'>Change Apex 4.0 Admin Password</title><content type='html'>To change the ADMIN user password on Apex 4.0 run the script &lt;b&gt;apxxepwd.sql&lt;/b&gt;.  This will change the encrypted password stored in table apex_040000.wwv_flow_fnd_user.&lt;br /&gt;
&lt;blockquote&gt;Rem  Copyright (c) Oracle Corporation 1999 - 2006. All Rights Reserved.&lt;br /&gt;
Rem&lt;br /&gt;
Rem    NAME&lt;br /&gt;
Rem      apxxepwd.sql&lt;br /&gt;
Rem&lt;br /&gt;
Rem    DESCRIPTION&lt;br /&gt;
Rem      Changes the password for the INTERNAL ADMIN user&lt;br /&gt;
Rem&lt;br /&gt;
Rem    NOTES&lt;br /&gt;
Rem      Assumes the SYS user is connected.&lt;br /&gt;
Rem&lt;br /&gt;
Rem    REQUIRENTS&lt;br /&gt;
Rem      - Oracle 10g&lt;br /&gt;
Rem&lt;br /&gt;
Rem&lt;br /&gt;
Rem    MODIFIED   (MM/DD/YYYY)&lt;br /&gt;
Rem      jstraub   08/01/2006 - Created&lt;br /&gt;
Rem      jkallman  09/29/2006 - Adjusted current_schema to FLOWS_030000&lt;br /&gt;
Rem      jkallman  08/02/2007 - Change FLOWS_030000 references to FLOWS_030100&lt;br /&gt;
Rem      jkallman  07/08/2008 - Change FLOWS_030100 references to FLOWS_040000&lt;br /&gt;
Rem      jkallman  10/02/2008 - Change FLOWS_040000 references to APEX_040000&lt;br /&gt;
&lt;br /&gt;
Rem&lt;br /&gt;
&lt;br /&gt;
set define '&amp;'&lt;br /&gt;
&lt;br /&gt;
set verify off&lt;br /&gt;
&lt;br /&gt;
alter session set current_schema = APEX_040000;&lt;br /&gt;
&lt;br /&gt;
prompt ...changing password for ADMIN&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
    wwv_flow_security.g_security_group_id := 10;&lt;br /&gt;
    wwv_flow_security.g_user := 'ADMIN';&lt;br /&gt;
    wwv_flow_security.g_import_in_progress := true;&lt;br /&gt;
&lt;br /&gt;
    for c1 in (select user_id&lt;br /&gt;
                 from wwv_flow_fnd_user&lt;br /&gt;
                where security_group_id = wwv_flow_security.g_security_group_id&lt;br /&gt;
                  and user_name = wwv_flow_security.g_user) loop&lt;br /&gt;
&lt;br /&gt;
        wwv_flow_fnd_user_api.edit_fnd_user(&lt;br /&gt;
            p_user_id       =&gt; c1.user_id,&lt;br /&gt;
            p_user_name     =&gt; wwv_flow_security.g_user,&lt;br /&gt;
            p_web_password  =&gt; '&amp;1',&lt;br /&gt;
            p_new_password  =&gt; '&amp;1');&lt;br /&gt;
    end loop;&lt;br /&gt;
&lt;br /&gt;
    wwv_flow_security.g_import_in_progress := false;&lt;br /&gt;
&lt;br /&gt;
end;&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4574358955287474395?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4574358955287474395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4574358955287474395' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4574358955287474395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4574358955287474395'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/08/change-apex-40-admin-password.html' title='Change Apex 4.0 Admin Password'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8504143112513099567</id><published>2011-07-07T11:07:00.000+10:00</published><updated>2011-07-07T11:07:43.099+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Added to the Site</title><content type='html'>Donated by my friend Jack ...&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-hBMC_kstiUU/ThUGxc6wVII/AAAAAAAAALk/aqCiXGVbfXQ/s1600/walshy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="184" src="http://3.bp.blogspot.com/-hBMC_kstiUU/ThUGxc6wVII/AAAAAAAAALk/aqCiXGVbfXQ/s320/walshy.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8504143112513099567?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8504143112513099567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8504143112513099567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8504143112513099567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8504143112513099567'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/07/added-to-site.html' title='Added to the Site'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-hBMC_kstiUU/ThUGxc6wVII/AAAAAAAAALk/aqCiXGVbfXQ/s72-c/walshy.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4588538846029900613</id><published>2011-07-04T19:00:00.000+10:00</published><updated>2011-07-04T19:00:08.562+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Been A Good Book Week</title><content type='html'>Have had a decent week of autograph hunting at second hand book shops.  Picked up Max Walker for $9, Keith Stackpole for $20 and the bargain of the year, Brian Booth for 50¢&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/-71ak1iDv4xg/ThGA5Lm9BRI/AAAAAAAAALg/7WIevji-3x0/s1600/sgndbooks.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-71ak1iDv4xg/ThGA5Lm9BRI/AAAAAAAAALg/7WIevji-3x0/s320/sgndbooks.jpg" width="203" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4588538846029900613?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4588538846029900613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4588538846029900613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4588538846029900613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4588538846029900613'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/07/been-good-book-week.html' title='Been A Good Book Week'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-71ak1iDv4xg/ThGA5Lm9BRI/AAAAAAAAALg/7WIevji-3x0/s72-c/sgndbooks.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4727587443893423936</id><published>2011-06-25T23:57:00.000+10:00</published><updated>2011-06-25T23:57:28.468+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Trade Section</title><content type='html'>Added a Trade Section to the cricket website ...&lt;br /&gt;
&lt;p&gt;&lt;a href="http://www.nazimcricket.com/trade.php"&gt;NAZIM'S CRICKET PAGE (Trade Section)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4727587443893423936?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4727587443893423936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4727587443893423936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4727587443893423936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4727587443893423936'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/06/trade-section.html' title='Trade Section'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-5076255422046078282</id><published>2011-06-14T21:17:00.002+10:00</published><updated>2011-06-14T21:24:43.430+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Autographed Caricatures</title><content type='html'>The latest addition to the collection is a range of signed caricatures by John Ireland:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-uYwfaZlVWo0/TfdE9CLk_QI/AAAAAAAAALc/9gTcuhpR40g/s1600/autographs.jpg" imageanchor="1" style="clear:left; float:left;margin-right:1em; margin-bottom:1em"&gt;&lt;img border="0" height="166" width="200" src="http://2.bp.blogspot.com/-uYwfaZlVWo0/TfdE9CLk_QI/AAAAAAAAALc/9gTcuhpR40g/s200/autographs.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-5076255422046078282?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/5076255422046078282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=5076255422046078282' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5076255422046078282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5076255422046078282'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/06/autographed-caricatures.html' title='Autographed Caricatures'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-uYwfaZlVWo0/TfdE9CLk_QI/AAAAAAAAALc/9gTcuhpR40g/s72-c/autographs.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1050642559680681719</id><published>2011-04-17T23:22:00.000+10:00</published><updated>2011-04-17T23:22:33.839+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Latest Acquisition</title><content type='html'>Lucky pick up from a library booksale&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.nazimcricket.com/images/waughs13.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="331" width="400" src="http://www.nazimcricket.com/images/waughs13.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1050642559680681719?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1050642559680681719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1050642559680681719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1050642559680681719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1050642559680681719'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/04/latest-acquisition.html' title='Latest Acquisition'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6041464031891549977</id><published>2011-04-04T23:13:00.000+10:00</published><updated>2011-04-04T23:13:03.334+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Aquaria'/><title type='text'>Couple of Pics from the new setup</title><content type='html'>Frontosa Colony and Albino Pleco&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/-CZJwYvwUyIo/TZnDwGXgWMI/AAAAAAAAALU/wRkR0_e5TSI/s1600/frontosacolony.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="217" r6="true" src="http://1.bp.blogspot.com/-CZJwYvwUyIo/TZnDwGXgWMI/AAAAAAAAALU/wRkR0_e5TSI/s320/frontosacolony.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-MAVJJKOEwwo/TZnDrsrIreI/AAAAAAAAALQ/Fm7wwtv_dDM/s1600/albinopleco.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="146" r6="true" src="http://2.bp.blogspot.com/-MAVJJKOEwwo/TZnDrsrIreI/AAAAAAAAALQ/Fm7wwtv_dDM/s320/albinopleco.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6041464031891549977?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6041464031891549977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6041464031891549977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6041464031891549977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6041464031891549977'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/04/couple-of-pics-from-new-setup.html' title='Couple of Pics from the new setup'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-CZJwYvwUyIo/TZnDwGXgWMI/AAAAAAAAALU/wRkR0_e5TSI/s72-c/frontosacolony.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1070796121580725163</id><published>2011-03-30T08:04:00.002+11:00</published><updated>2011-03-30T08:04:51.099+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Check Uptime on Oracle Database (Unix)</title><content type='html'>&lt;blockquote&gt;ps -ef | grep pmon&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1070796121580725163?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1070796121580725163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1070796121580725163' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1070796121580725163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1070796121580725163'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/03/check-uptime-on-oracle-database-unix.html' title='Check Uptime on Oracle Database (Unix)'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-392044896642027838</id><published>2011-03-29T12:31:00.003+11:00</published><updated>2011-03-29T20:18:30.201+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>DOS Script to Email Results of a Database Export</title><content type='html'>Had to write a batch script to check on the status of a nightly database export and email status.  Some of what I've done may not be perfect, but it does the job nicely and portions can be reused, hence it's appearance on this blog for future reference.&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
@ECHO OFF&lt;br /&gt;
&lt;font color=green&gt;REM Enable local environments to be changed without affecting anything else.&lt;/font&gt;&lt;br /&gt;
SETLOCAL&lt;br /&gt;
&lt;br /&gt;
&lt;font color=green&gt;REM check the export.log file for the filedate and pass it into a variable. Done by doing a directory listing on the file, returning just the filename and then looping through and capturing the file's timestamp into a variable&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
for /f "tokens=* delims=" %%a in ('dir/b export.log') do (&lt;br /&gt;
for /f "tokens=1 delims=" %%i in ("%%a") do (&lt;br /&gt;
set _fdt=%%~Ti&lt;br /&gt;
)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;font color=green&gt;REM Write the logfile contents to a secondary file.  This is only done to allow us to append the results of a TSM tape backup of the export.dmp to a logfile and email it in the email body.&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
type export.log &gt; bkup.log&lt;br /&gt;
&lt;br /&gt;
&lt;font color=green&gt;REM set a variable _status with a default of ERRORS.  If the process has a status of SUCCESS, the following commands will overwrite this variable.  If not, it will report it as ERRORS in the email&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
SET _status=ERRORS&lt;br /&gt;
&lt;br /&gt;
&lt;font color=green&gt;REM Loop through the earlier generated secondary logfile and find the string "Export terminated successfully without warnings" which is a standard Oracle output found in export logs&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
for /f "tokens=*" %%s in ('type bkup.log ^| find /i "Export terminated successfully without warnings"') do (SET _status=SUCCESS)&lt;br /&gt;
&lt;br /&gt;
&lt;font color=green&gt;REM Processes to follow a SUCCESS which includes sending the export.dmp to TSM tape storage.  Append the TSM results to the secondary logfile generated earlier.&lt;/font&gt;&lt;br /&gt;
if %_status%==SUCCESS ( &lt;br /&gt;
cd \TSM\baclient\&lt;br /&gt;
dsmc archive -des="TSM Archive Name %_fdt%" -archmc=ARCH14D export.dmp &gt;&gt; bkup.log&lt;br /&gt;
&lt;br /&gt;
&lt;font color=green&gt;Use a third party application, postie to email the results&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
c:\postie\postie -host:mailhost -to:sender@email.com -s:"SUCCESS:ExportDaily (%USERDOMAIN%) for %_fdt%" -nomsg -from:sender@email.com -file:bkup.log&lt;br /&gt;
)   &lt;br /&gt;
&lt;br /&gt;
&lt;font color=green&gt;REM Email as ERRORS if the above step fails&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
if %_status%==ERRORS c:\postie\postie -host:mailhost -to:recipient@email.com -s:"ERRORS:ExportDaily (%USERDOMAIN%) for %_fdt%" -nomsg -from:sender@email.com -file:D:\backup\obj_live\bkup.log&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-392044896642027838?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/392044896642027838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=392044896642027838' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/392044896642027838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/392044896642027838'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/03/dos-script-to-email-result-of-database.html' title='DOS Script to Email Results of a Database Export'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2207161635733176767</id><published>2011-03-18T16:51:00.000+11:00</published><updated>2011-03-18T16:51:32.861+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Alter Database Open Resetlogs Upgrade</title><content type='html'>Had to restore a database to a point-in-time from a hotbackup.&amp;nbsp; Followed Steps:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Copied datafiles to target&lt;/li&gt;
&lt;li&gt;Created a New Controlfile&lt;/li&gt;
&lt;li&gt;Recovered using syntax: &lt;span style="color: navy;"&gt;RECOVER DATABASE UNTIL TIME 'YYYY-MM-DD:HH:MI' USING BACKUP CONTROLFILE;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Ran &lt;span style="color: navy;"&gt;ALTER DATABASE OPEN RESETLOGS;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;... and that's when the wheels fell off, with the database instance terminated and errors in the alert log advising startup upgrade needs to be done.&lt;br /&gt;
&lt;br /&gt;
The reason for this is that the target database was upgraded sometime after the point in time recovery date.&lt;br /&gt;
&lt;br /&gt;
In the past, when faced with this situation, I was able to point the database and the /etc/oratab entries to the old Oracle Home and recover that way, but in this instance the old home had been removed and well a more elegant solution needed to be found.&lt;br /&gt;
&lt;br /&gt;
Resolution:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Copied datafiles to target&lt;/li&gt;
&lt;li&gt;Created a New Controlfile&lt;/li&gt;
&lt;li&gt;Recovered using syntax: &lt;span style="color: navy;"&gt;RECOVER DATABASE UNTIL TIME 'YYYY-MM-DD:HH:MI' USING BACKUP CONTROLFILE;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Ran &lt;span style="color: navy;"&gt;ALTER DATABASE OPEN RESETLOGS UPGRADE;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;The next step is to then apply the upgrade scripts and breathe a sigh of relief!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2207161635733176767?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2207161635733176767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2207161635733176767' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2207161635733176767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2207161635733176767'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/03/alter-database-open-resetlogs-upgrade.html' title='Alter Database Open Resetlogs Upgrade'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1762573631683999864</id><published>2011-03-11T23:45:00.000+11:00</published><updated>2011-03-11T23:45:45.229+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Meeting Jeff Thomson</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;em&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;strong&gt;"Ashes to ashes, dust to dust; if Lillee don't get you Thommo must!"&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;Had the opportunity today of meeting Jeff Thomson at a function, where he was guest speaker.&amp;nbsp; At 60 years of age, Thomson is an unassuming, very likeable, down-to-earth bloke.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;The first half of the evening was rather a let down, as Thomson delivered jokes that wouldn't have been much funnier at the hands of a professional stand-up comedian.&amp;nbsp; However, he more than made up for the light hearted banter with some insightful comments about his career.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;His anecdotes relating to his good friend Len Pascoe were hilarious, though I shan't bother repeating them here, as "you had to be there".&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;Most interesting was the Q&amp;amp;A session, where a lot of interesting information was gleaned.&amp;nbsp; I personally asked him two questions (paraphrasing):&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;strong&gt;Q&lt;/strong&gt;.&amp;nbsp; Did you&amp;nbsp;ever feel like you were&amp;nbsp;playing second string to Dennis Lillee and what was&amp;nbsp;your relationship with Lillee like?&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;strong&gt;A.&lt;/strong&gt;&amp;nbsp; Lillee and I were good mates.&amp;nbsp; I used to scare the sh*t out of batsmen and then Lillee would do his thing and get the wickets.&amp;nbsp; It was a great partnership, which later on was mirrored in the partnership between McGrath and Warne.&amp;nbsp; All I ever wanted to do was bowl fast.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;strong&gt;Q.&lt;/strong&gt;&amp;nbsp; Who do you think will win the world cup this year?&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;strong&gt;A.&amp;nbsp; &lt;/strong&gt;I reckon Australia are a good chance.&amp;nbsp; They've not lost anything so far and if Hussey is in form, they should do well.&amp;nbsp; India are not that special.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;Other snippets of information gleaned from the Q&amp;amp;A included the following.&amp;nbsp; Please note, I did not take notes and am just recalling from memory what was said.&amp;nbsp; Some of what was mentioned, may have been misinterpreted by myself, so if you want Thomson's personal opinion on any of these matters, don't quote me, ask the man yourself (Is that a decent enough disclaimer for the dirt I'm about to dish out?)&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="text-align: left;"&gt;Hilditch is likely to be offered another 2 year extension of contract as Selector, which is bad news for Australian cricket.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style="text-align: left;"&gt;Ponting has his favourites and as a result talented players like Brad Hodge have not had a decent run in the team.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style="text-align: left;"&gt;Michael Clarke is not liked by the players and the selectors would rather have as captain someone such as Tim Paine.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style="text-align: left;"&gt;Thomson doesn't rate Phil Hughes as a test calibre batsman and would rather see someone like David Warner given a chance to play test cricket.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style="text-align: left;"&gt;From the current crop of players, he rates Brett Lee the highest.&amp;nbsp; Does not appear to have any time for the likes of Tait, Siddle or&amp;nbsp;Mitchell.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style="text-align: left;"&gt;In his opinion, most bowlers don't spend enough time honing their craft on the cricket pitch.&amp;nbsp; As an example, Steve Finn when not picked for England, was sent off for strength and conditioning instead of playing cricket for his county side.&amp;nbsp; Thomson feels that the only way to get the best out of bowlers is to have them bowl a lot.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style="text-align: left;"&gt;His role model was "his dad" and guys such as Fred Trueman.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="text-align: center;"&gt;&lt;em&gt;Pardon&amp;nbsp;the paunch - I should've worn black, as I'm told it's more slimming (doubt it would've helped much though)&lt;/em&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-8LMuggc2UQc/TXoX88W1NpI/AAAAAAAAAK4/pRxM32bb_6M/s1600/thommo_me.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" q6="true" src="https://lh3.googleusercontent.com/-8LMuggc2UQc/TXoX88W1NpI/AAAAAAAAAK4/pRxM32bb_6M/s320/thommo_me.jpg" width="224" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-MbuxPS0TOmo/TXoX_hDiwpI/AAAAAAAAAK8/HQAI5GM-5T4/s1600/thommo1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" q6="true" src="https://lh3.googleusercontent.com/-MbuxPS0TOmo/TXoX_hDiwpI/AAAAAAAAAK8/HQAI5GM-5T4/s320/thommo1.jpg" width="244" /&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="https://lh3.googleusercontent.com/-mHvgEm7CGE8/TXoYBu0CrsI/AAAAAAAAALA/j2ypvdMMQ8U/s1600/thommo2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="182" q6="true" src="https://lh3.googleusercontent.com/-mHvgEm7CGE8/TXoYBu0CrsI/AAAAAAAAALA/j2ypvdMMQ8U/s320/thommo2.jpg" width="320" /&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="https://lh5.googleusercontent.com/-cD_IOMGitY0/TXoYDWNJEVI/AAAAAAAAALE/YrRZq73iTcs/s1600/thommo3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" q6="true" src="https://lh5.googleusercontent.com/-cD_IOMGitY0/TXoYDWNJEVI/AAAAAAAAALE/YrRZq73iTcs/s1600/thommo3.jpg" /&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="https://lh4.googleusercontent.com/-fDiFLwER5EY/TXoYFFaB2HI/AAAAAAAAALI/L_SK0hILC04/s1600/thommo4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" q6="true" src="https://lh4.googleusercontent.com/-fDiFLwER5EY/TXoYFFaB2HI/AAAAAAAAALI/L_SK0hILC04/s1600/thommo4.jpg" /&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="https://lh6.googleusercontent.com/-LDtOAlVRMdQ/TXoYGyLMurI/AAAAAAAAALM/uptVCZfSCVY/s1600/thommo5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" q6="true" src="https://lh6.googleusercontent.com/-LDtOAlVRMdQ/TXoYGyLMurI/AAAAAAAAALM/uptVCZfSCVY/s1600/thommo5.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1762573631683999864?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1762573631683999864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1762573631683999864' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1762573631683999864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1762573631683999864'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/03/meeting-jeff-thomson.html' title='Meeting Jeff Thomson'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-8LMuggc2UQc/TXoX88W1NpI/AAAAAAAAAK4/pRxM32bb_6M/s72-c/thommo_me.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1640171077251710924</id><published>2011-03-11T16:48:00.007+11:00</published><updated>2011-10-05T16:09:54.031+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>MySQL Spool File</title><content type='html'>Thanks to my friend LW for helping sort this one out.&lt;br /&gt;
&lt;p&gt;You can increase the verboseness (is that a word?) of a batch output logfile in MySQL, by repeating the "-v" switch.&lt;br /&gt;
&lt;p&gt;This is amazingly useful if for example you are running some DML and wish to capture in your output logfile the number of rows being inserted/deleted/updated.&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;mysql -u user -ppassword database_name -v -v &amp;lt; test.sql &amp;gt; test.log
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1640171077251710924?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1640171077251710924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1640171077251710924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1640171077251710924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1640171077251710924'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/03/mysql-spool-file.html' title='MySQL Spool File'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2899272590878902607</id><published>2011-03-10T08:52:00.000+11:00</published><updated>2011-03-10T08:52:40.638+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Aquaria'/><title type='text'>Lightening Strikes Thrice!! (Warning: Disturbing Images)</title><content type='html'>AAARRRGGG!!!! Today for the third time, in a lifetime of keeping fish, I've lost my entire colonies of happy, healthy, breeding fish. This time to equipment failure. Murphy's Law being what it is, these things always happen in the dead of night when no one is around to notice of course.&lt;br /&gt;
&lt;p&gt;My primary air-filter stopped working and the secondary didn't have enough juice to keep the fish alive, as the population in my tank, through breeding was starting to get out of control. My own fault of course, for not thinning them out and there is only so much equipment that can be added to a tank!&lt;br /&gt;
&lt;p&gt;Anyhow, just lost an array of fantastic fish including Frontosas, Duboisies, Mainganos, Electric Yellows. The only survivors, my clown loaches, bristlenose catfish and one or two hybrid cichlids, which may not live through the day :(&lt;br /&gt;
&lt;p&gt;Not sure what to do now, may just give the survivors to a friend and call it a day!&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-W0ug05s7qOE/TXf2QEEARBI/AAAAAAAAAKs/I7P64jwu4VM/s1600/bucket1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="316" q6="true" src="https://lh4.googleusercontent.com/-W0ug05s7qOE/TXf2QEEARBI/AAAAAAAAAKs/I7P64jwu4VM/s320/bucket1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-HMzk6Qfb1XM/TXf2WZYyxyI/AAAAAAAAAKw/_9pp47-Y8a0/s1600/trashbag1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="230" q6="true" src="https://lh3.googleusercontent.com/-HMzk6Qfb1XM/TXf2WZYyxyI/AAAAAAAAAKw/_9pp47-Y8a0/s320/trashbag1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-TAp_4weYTpk/TXf2YCXK5NI/AAAAAAAAAK0/ZCA9hjVA8yM/s1600/bucket2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="317" q6="true" src="https://lh6.googleusercontent.com/-TAp_4weYTpk/TXf2YCXK5NI/AAAAAAAAAK0/ZCA9hjVA8yM/s320/bucket2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2899272590878902607?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2899272590878902607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2899272590878902607' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2899272590878902607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2899272590878902607'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/03/lightening-strikes-thrice-warning.html' title='Lightening Strikes Thrice!! (Warning: Disturbing Images)'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-W0ug05s7qOE/TXf2QEEARBI/AAAAAAAAAKs/I7P64jwu4VM/s72-c/bucket1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2534335303245355363</id><published>2011-02-24T22:07:00.000+11:00</published><updated>2011-02-24T22:07:27.789+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Obtaining a Cricket Postmark</title><content type='html'>Thanks to some fabulous advice from Colleen of &lt;a href="http://ozpictormarks.blogspot.com/" target="new"&gt;Australian PictorMarks&lt;/a&gt; I was able to obtain this awesome cricket postmark through Australia Post on an Ashes Cover.&lt;br /&gt;
&lt;p&gt;I think the end result is quite pleasing to the eye.&lt;br /&gt;
&lt;p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.nazimcricket.com/mypmk.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="184" l6="true" src="http://www.nazimcricket.com/mypmk.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2534335303245355363?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2534335303245355363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2534335303245355363' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2534335303245355363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2534335303245355363'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/02/obtaining-cricket-postmark.html' title='Obtaining a Cricket Postmark'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7511726630456570043</id><published>2011-02-24T19:38:00.000+11:00</published><updated>2011-02-24T19:38:35.563+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>The Great Forgery!!</title><content type='html'>As the Sydney Cricket Ground turned pink for Jane McGrath this summer, I found myself the lucky recipient of a signed and framed Test Shirt from Phil Hughes, courtesy of the McGrath Foundation.&lt;br /&gt;
&lt;p&gt;Whilst awaiting my prize, I asked my daughter to illustrate the shirt for my work newsletter. Looking at her handiwork alongside the now received shirt, I feel quite satisfied that should she fall upon hard times in the future, she may well have a decent career in forgery!&lt;br /&gt;
&lt;p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.nazimcricket.com/pjh.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" j6="true" src="http://www.nazimcricket.com/pjh.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7511726630456570043?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7511726630456570043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7511726630456570043' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7511726630456570043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7511726630456570043'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/02/great-forgery.html' title='The Great Forgery!!'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4848605072443012302</id><published>2011-02-21T10:52:00.000+11:00</published><updated>2011-02-21T10:52:06.241+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><title type='text'>SQL Server - Query Backups Taken</title><content type='html'>Note to self ...  Good place to check backups taken:&lt;br /&gt;
&lt;br /&gt;
dbo.backupset&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4848605072443012302?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4848605072443012302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4848605072443012302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4848605072443012302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4848605072443012302'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/02/sql-server-query-backups-taken.html' title='SQL Server - Query Backups Taken'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-760784971675260343</id><published>2011-02-18T12:48:00.000+11:00</published><updated>2011-02-18T12:48:55.177+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft - Access Log Table</title><content type='html'>A good place to check login/logout activity&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;PSACCESSLOG
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-760784971675260343?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/760784971675260343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=760784971675260343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/760784971675260343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/760784971675260343'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/02/peoplesoft-access-log-table.html' title='PeopleSoft - Access Log Table'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4227756490104806532</id><published>2011-02-03T13:53:00.001+11:00</published><updated>2011-02-03T13:54:04.024+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>MySQL Global Options File - Storing Password</title><content type='html'>New to MySQL, but will make notes for my benefit, and for the odd person who stumbles on this post via Google.  I need to write a few cron scripts for a MySQL database and I don't think I should put the connect string in them for the world to see.&lt;br /&gt;
&lt;p&gt;A reasonable solution found is to simply store the password in the /etc/my.cnf (options) file.&lt;br /&gt;
&lt;p&gt;Added the following text to achieve this.  Also decided to store the default database name as well to make life simpler.&lt;br /&gt;
&lt;blockquote&gt;[client]&lt;br /&gt;
password={password}&lt;br /&gt;
database={dbname}&lt;br /&gt;
&lt;/blockquote&gt;For this setting to take affect, just had to restart the database.  So now the cron script can simply connect to the correct database by typing in "mysql".&lt;br /&gt;
&lt;p&gt;Need to assess security implications of this decision as I proceed to learn the nuances of MySQL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4227756490104806532?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4227756490104806532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4227756490104806532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4227756490104806532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4227756490104806532'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/02/mysql-global-options-file-storing.html' title='MySQL Global Options File - Storing Password'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-5687460601117185892</id><published>2011-02-02T09:39:00.001+11:00</published><updated>2011-02-02T11:15:33.128+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>Check O/S Version</title><content type='html'>uname -a&lt;br /&gt;
&lt;br /&gt;
Also .....&lt;br /&gt;
&lt;br /&gt;
LINUX:&lt;br /&gt;
cat /etc/issue&lt;br /&gt;
&lt;br /&gt;
AIX:&lt;br /&gt;
oslevel&lt;br /&gt;
oslevel -r (shows technology level)&lt;br /&gt;
oslevel -s (shows service pack)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-5687460601117185892?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/5687460601117185892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=5687460601117185892' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5687460601117185892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5687460601117185892'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2011/02/check-os-version.html' title='Check O/S Version'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-733483676079286447</id><published>2010-10-30T09:19:00.000+11:00</published><updated>2010-10-30T09:19:46.566+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle 9 - Manually Create Standby DB from Hotbackup</title><content type='html'>This is basically a "Note-To-Self".&lt;br /&gt;
&lt;p&gt;High Level Steps for Reference, are:&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;&lt;li&gt; Copy Datafiles across.&lt;br /&gt;
&lt;li&gt; On Target, set up env variables, password file, oratab entry etc.&lt;br /&gt;
&lt;li&gt; In the init.ora, pay particular attention to parameters:&lt;br /&gt;
- db_name -&gt; Same as the Primary Database to match the Controlfile&lt;br /&gt;
- log_archive_format&lt;br /&gt;
- log_archive_dest&lt;br /&gt;
- log_file_name_convert&lt;br /&gt;
- db_file_name_convert&lt;br /&gt;
- fal_client&lt;br /&gt;
- fal_server&lt;br /&gt;
&lt;li&gt; Use a standby controlfile from the hotbackup, or create one manually&lt;br /&gt;
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-733483676079286447?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/733483676079286447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=733483676079286447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/733483676079286447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/733483676079286447'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/10/oracle-9-manually-create-standby-db.html' title='Oracle 9 - Manually Create Standby DB from Hotbackup'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6028847739144848085</id><published>2010-10-30T09:12:00.002+11:00</published><updated>2010-11-15T11:19:45.816+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Recovery Time</title><content type='html'>It's quite useful sometimes to be able to see the timestamp associated with a Database Recovery.  &lt;br /&gt;
&lt;blockquote&gt;select to_char((max(TIME_DP)),'DD MON YYYY HH24:MI') FROM SMON_SCN_TIME;&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6028847739144848085?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6028847739144848085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6028847739144848085' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6028847739144848085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6028847739144848085'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/10/scn-time.html' title='Recovery Time'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2271008921339362001</id><published>2010-10-29T09:24:00.003+11:00</published><updated>2010-11-10T15:46:31.056+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><title type='text'>SQLServer - Check Mirror Status</title><content type='html'>A handy SQL contributed by Andrew R.&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;SELECT left(a.name,50) 'Database'
      , CASE b.status WHEN 0 THEN 'Suspended'
        WHEN 1 THEN 'Disconnected'
        WHEN 2 THEN 'Synchronizing'
               WHEN 3 THEN 'Pending Failover'
               WHEN 4 THEN 'Synchronized'
               ELSE 'Investigate status'
         END 'Mirror_Status'
      , local_time 'Time'
   from master.sys.databases a
      , msdb.dbo.dbm_monitor_data b
  where a.database_id = b.database_id
    and b.local_time = (select max(A_ED.local_time) 
                   from msdb.dbo.dbm_monitor_data A_ED
                  where b.database_id = A_ED.database_id
                             and A_ED.local_time &lt;= GETDATE())
       group by a.name, b.database_id, b.status, b.local_time
       order by 1,3;
&lt;/pre&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2271008921339362001?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2271008921339362001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2271008921339362001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2271008921339362001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2271008921339362001'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/10/sqlserver-check-mirror-status.html' title='SQLServer - Check Mirror Status'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3227843408231618072</id><published>2010-09-08T19:48:00.000+10:00</published><updated>2010-09-08T19:48:01.164+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Undo Tablespace Usage</title><content type='html'>&lt;blockquote&gt;&lt;pre&gt;select sum(blocks)
     , sum(bytes)/1024/1024
  from dba_undo_extents;
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3227843408231618072?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3227843408231618072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3227843408231618072' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3227843408231618072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3227843408231618072'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/09/undo-tablespace-usage.html' title='Undo Tablespace Usage'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-5078538193655900300</id><published>2010-09-02T09:12:00.001+10:00</published><updated>2010-09-02T09:12:37.577+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><title type='text'>Check Version of SQL Server Database</title><content type='html'>select @ @ version&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-5078538193655900300?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/5078538193655900300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=5078538193655900300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5078538193655900300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5078538193655900300'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/09/check-version-of-sql-server-database.html' title='Check Version of SQL Server Database'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3476742214576502392</id><published>2010-06-28T15:26:00.001+10:00</published><updated>2011-03-25T15:00:38.693+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><title type='text'>Truncate and Shrink Database</title><content type='html'>On SQLServer I've learnt that we can't take for granted that a table truncate will reuse storage. Therefore to reclaim empty space following the truncate of a large table, I ran:&lt;br /&gt;
&lt;blockquote&gt;DBCC SHRINKDATABASE (DBNAME, TRUNCATEONLY)&lt;br /&gt;
GO&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3476742214576502392?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3476742214576502392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3476742214576502392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3476742214576502392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3476742214576502392'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/06/truncate-and-shrink-database.html' title='Truncate and Shrink Database'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6008208149959131674</id><published>2010-06-18T09:56:00.001+10:00</published><updated>2010-06-18T09:56:54.512+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>Unix Yesterday's Date</title><content type='html'>date -d '1 day ago'&lt;br /&gt;
&lt;p&gt;date -d 'yesterday'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6008208149959131674?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6008208149959131674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6008208149959131674' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6008208149959131674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6008208149959131674'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/06/unix-yesterdays-date.html' title='Unix Yesterday&apos;s Date'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-9083113879963599704</id><published>2010-06-08T15:53:00.003+10:00</published><updated>2010-06-08T16:15:07.055+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSM'/><title type='text'>TSM - Command Line Restore</title><content type='html'>dsmc restore "/path/file*" -pick -inactive -subdir=y&lt;br /&gt;
&lt;p&gt;to pick files - enter line number followed by +, separated by colons for example 1:2+&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-9083113879963599704?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/9083113879963599704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=9083113879963599704' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9083113879963599704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9083113879963599704'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/06/tsm-command-line-restore.html' title='TSM - Command Line Restore'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4595501318918186183</id><published>2010-06-01T16:04:00.005+10:00</published><updated>2010-06-16T17:00:31.080+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>cmdline stop/start/check-status of a service remotely</title><content type='html'>Using the sc utility ...&lt;br /&gt;
&lt;blockquote&gt;sc \\servername stop ServiceName&lt;br /&gt;
sc \\servername start ServiceName&lt;br /&gt;
&lt;br /&gt;
sc \\servername query ServiceName&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
Inspired by this, I decided to create a little DOS program which an end-user could use to stop/start a service.&lt;br /&gt;
&lt;blockquote&gt;@ECHO OFF&lt;br /&gt;
SETLOCAL enableextensions&lt;br /&gt;
&lt;br /&gt;
for /f "tokens=4" %%s in ('sc query OracleServiceXE ^| find /i "state"') do (SET _state=%%s)&lt;br /&gt;
&lt;br /&gt;
for /f "tokens=2" %%t in ('sc query OracleServiceXE ^| find /i "service_name"') do (SET _service_name=%%t)&lt;br /&gt;
&lt;br /&gt;
ECHO ================================&lt;br /&gt;
ECHO %_service_name% is %_state%&lt;br /&gt;
ECHO ================================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if %_state%==RUNNING goto SRVC-R&lt;br /&gt;
if %_state%==STOPPED goto SRVC-S&lt;br /&gt;
&lt;br /&gt;
:SRVC-R&lt;br /&gt;
echo %_service_name% Is RUNNING, would you like to STOP it? Y/N&lt;br /&gt;
set /p Input1=&lt;br /&gt;
if /i "%Input1%"=="y" sc stop OracleServiceXE&lt;br /&gt;
echo. &lt;br /&gt;
sleep 10&lt;br /&gt;
&lt;br /&gt;
for /f "tokens=4" %%s in ('sc query OracleServiceXE ^| find /i "state"') do (echo %_service_name% is %%s)&lt;br /&gt;
&lt;br /&gt;
pause&lt;br /&gt;
exit /b&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:SRVC-S&lt;br /&gt;
echo %_service_name% Is STOPPED, would you like to START it? Y/N&lt;br /&gt;
set /p Input1=&lt;br /&gt;
if /i "%Input1%"=="y" sc start OracleServiceXE&lt;br /&gt;
echo.&lt;br /&gt;
sleep 10&lt;br /&gt;
&lt;br /&gt;
for /f "tokens=4" %%s in ('sc query OracleServiceXE ^| find /i "state"') do (echo %_service_name% is %%s)&lt;br /&gt;
&lt;br /&gt;
pause&lt;br /&gt;
exit /b&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4595501318918186183?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4595501318918186183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4595501318918186183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4595501318918186183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4595501318918186183'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/06/cmdline-stopstart-service-remotely.html' title='cmdline stop/start/check-status of a service remotely'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8946509363885367504</id><published>2010-05-07T14:47:00.003+10:00</published><updated>2010-05-07T14:47:50.838+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Check Oracle Blocking Locks</title><content type='html'>&lt;blockquote&gt;SELECT to_char(sysdate,'yyyy-mm-dd hh24:mi') dttm&lt;br /&gt;
     , ' --- BLOCKER --- '&lt;br /&gt;
     , lo.session_id &lt;br /&gt;
     , lo.process&lt;br /&gt;
     , lo.os_user_name&lt;br /&gt;
     , dob.object_name&lt;br /&gt;
     , dob.object_type &lt;br /&gt;
     , ' --- BLOCKING --- '&lt;br /&gt;
     , s.sid&lt;br /&gt;
     , s.username&lt;br /&gt;
     , s.status&lt;br /&gt;
     , s.schemaname&lt;br /&gt;
     , s.osuser&lt;br /&gt;
     , s.process&lt;br /&gt;
     , s.machine&lt;br /&gt;
     , s.terminal&lt;br /&gt;
     , s.program&lt;br /&gt;
     , s.sql_hash_value&lt;br /&gt;
     , s.logon_time&lt;br /&gt;
     , p.spid&lt;br /&gt;
     , l.id2&lt;br /&gt;
     , l.ctime&lt;br /&gt;
  FROM v$session s&lt;br /&gt;
     , v$process p&lt;br /&gt;
     , v$lock l&lt;br /&gt;
     , v$locked_object lo&lt;br /&gt;
     , dba_objects dob&lt;br /&gt;
 WHERE s.lockwait is not null&lt;br /&gt;
   AND p.addr(+) = s.paddr&lt;br /&gt;
   AND l.sid = s.sid&lt;br /&gt;
   AND l.type='TX'&lt;br /&gt;
   AND l.id2 = lo.xidsqn&lt;br /&gt;
   AND lo.object_id = dob.object_id&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8946509363885367504?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8946509363885367504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8946509363885367504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8946509363885367504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8946509363885367504'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/05/check-oracle-blocking-locks.html' title='Check Oracle Blocking Locks'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7280024069522238096</id><published>2010-05-05T13:33:00.002+10:00</published><updated>2010-05-05T13:38:00.311+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Count network connections</title><content type='html'>&lt;b&gt;Task:&lt;/b&gt;&lt;p&gt;Get a count of number of network connections on a Windows server.&lt;br /&gt;
&lt;p&gt;&lt;b&gt;My Solution:&lt;/b&gt;&lt;p&gt;Create a batch file containing the following lines:&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;&lt;font color=navy&gt;REM list network connections and write them to a file&lt;/font&gt;
netstat -n &gt; netstat_count.txt

&lt;font color=navy&gt;REM search for non-existant string in file and return line count instead&lt;/font&gt;
find /v /c "zzz" netstat_count.txt

&lt;p&gt;&lt;font color=navy&gt;This returns something like ...&lt;/font&gt;
&lt;p&gt;---------- NETSTAT_COUNT.TXT: nnn
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7280024069522238096?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7280024069522238096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7280024069522238096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7280024069522238096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7280024069522238096'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/05/count-network-connections.html' title='Count network connections'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7650252947748878050</id><published>2010-04-28T14:18:00.003+10:00</published><updated>2010-04-29T10:53:47.955+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle / SQL Server Equivalent</title><content type='html'>This post shall define the equivalent views between Oracle and SQLServer.&lt;br /&gt;
&lt;table border="1" cellpadding="2"&gt;&lt;tr&gt;&lt;th&gt;Oracle&lt;/th&gt;&lt;th&gt;SQLServer&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sys.dba_tables&lt;/td&gt;&lt;td&gt;information_schema.tables&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;sys.dba_tab_columns&lt;/td&gt;&lt;td&gt;information_schema.columns&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7650252947748878050?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7650252947748878050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7650252947748878050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7650252947748878050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7650252947748878050'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/oracle-sql-server-equivalent.html' title='Oracle / SQL Server Equivalent'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7472026048634159457</id><published>2010-04-27T13:27:00.008+10:00</published><updated>2011-07-27T11:23:26.173+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>OEM Repository Scripts</title><content type='html'>This Blog will be a running compilation of useful Enterprise Manager Repository scripts (run as the SYSMAN user).&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="color: navy;"&gt;&lt;b&gt;Database Sizes&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
SELECT target_name, ROUND (SUM (FILE_SIZE) / 1024 / 1024 / 1024) GB&lt;br /&gt;
FROM MGMT$db_datafiles_all&lt;br /&gt;
GROUP BY target_name&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: navy;"&gt;&lt;b&gt;Datafile Sizes - A good way to find datafiles incorrectly set to autoextend to Unlimited, i.e. growing to 32768M&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
SELECT target_name&lt;br /&gt;
, file_name&lt;br /&gt;
, sum (file_size) / 1024 / 1024&lt;br /&gt;
FROM mgmt$db_datafiles_all&lt;br /&gt;
HAVING sum(file_size)/1024/1024 &amp;gt; 15000&lt;br /&gt;
GROUP BY target_name, file_name&lt;br /&gt;
ORDER BY 3 desc;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: navy;"&gt;&lt;b&gt;Tablespace Allocated and Used Space Query&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
select A.RT&lt;br /&gt;
, A.ALLOCATED&lt;br /&gt;
, B.USED&lt;br /&gt;
from (&lt;br /&gt;
SELECT TO_CHAR(ROLLUP_TIMESTAMP,'YYYY-MM') RT&lt;br /&gt;
, AVG(AVERAGE) ALLOCATED&lt;br /&gt;
FROM MGMT$METRIC_DAILY &lt;br /&gt;
WHERE TARGET_NAME LIKE {database_name} &lt;br /&gt;
AND METRIC_NAME='tbspAllocation' &lt;br /&gt;
and key_value={tablespace_name}&lt;br /&gt;
and METRIC_COLUMN='spaceAllocated' &lt;br /&gt;
group by TO_CHAR(ROLLUP_TIMESTAMP,'YYYY-MM')&lt;br /&gt;
) a,&lt;br /&gt;
(&lt;br /&gt;
SELECT TO_CHAR(ROLLUP_TIMESTAMP,'YYYY-MM') RT&lt;br /&gt;
, AVG(AVERAGE) USED&lt;br /&gt;
FROM MGMT$METRIC_DAILY &lt;br /&gt;
WHERE TARGET_NAME LIKE {database_name}&lt;br /&gt;
AND METRIC_NAME='tbspAllocation' &lt;br /&gt;
and key_value={tablespace_name}&lt;br /&gt;
and METRIC_COLUMN='spaceUsed' &lt;br /&gt;
group by TO_CHAR(ROLLUP_TIMESTAMP,'YYYY-MM')&lt;br /&gt;
) b&lt;br /&gt;
where a.rt = b.rt&lt;br /&gt;
order by a.rt DESC;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: navy;"&gt;&lt;b&gt;Clear Alerts&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
select 'execute em_severity.delete_current_severity(p_target_guid =&amp;gt;'''||sev.target_guid||''', p_metric_guid =&amp;gt;'''||sev.metric_guid||''', p_key_value =&amp;gt;'''||key_value||''');' as command&lt;br /&gt;
from MGMT_TARGETS tgt, MGMT_CURRENT_SEVERITY sev&lt;br /&gt;
where TGT.TARGET_NAME like '%{TGT_NAME}%';&lt;br /&gt;
&lt;span style="color: green;"&gt;For older severities - just a straight delete from MGMT_SEVERITY will do the trick.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: navy;"&gt;&lt;b&gt;User Defined Metrics&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
select *&lt;br /&gt;
  from mgmt$metric_current&lt;br /&gt;
 where metric_name like '%UDM%';&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7472026048634159457?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7472026048634159457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7472026048634159457' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7472026048634159457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7472026048634159457'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/oem-repository-scripts.html' title='OEM Repository Scripts'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7230236244601037661</id><published>2010-04-20T10:28:00.002+10:00</published><updated>2010-04-20T10:28:44.185+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><title type='text'>Syntax for Impersonating a User</title><content type='html'>execute as user='username'&lt;br /&gt;
go&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7230236244601037661?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7230236244601037661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7230236244601037661' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7230236244601037661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7230236244601037661'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/syntax-for-impersonating-user.html' title='Syntax for Impersonating a User'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2986385320611549645</id><published>2010-04-19T20:57:00.003+10:00</published><updated>2011-11-23T15:49:40.394+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle 10g Log Mining</title><content type='html'>&lt;b&gt;Please note the database parameter log_parallelism needs to be set at 1 for this to work&lt;/b&gt;&lt;br /&gt;
&lt;p&gt;In this day and age of flashback configuration, log mining almost seems like an out-dated process, never to see the light of day.  However, today it came in handy.&lt;br /&gt;
&lt;p&gt;I was asked to check for any transactional rollbacks which may have been issued on the database during a certain time period.  Unfortunately flashback was only configured for a short duration on the database and the time I had to check was out of bounds.&lt;br /&gt;
&lt;p&gt;I therefore ....&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;
&lt;li&gt;Copied across the archive log files from backup tape to the archive log directory.&lt;p&gt;&lt;br /&gt;
&lt;li&gt;I then added to log miner the archive log files I wanted mined:&lt;br /&gt;
exec SYS.DBMS_LOGMNR.ADD_LOGFILE('pathname/filename.arc');&lt;p&gt;&lt;br /&gt;
&lt;li&gt;The next step was to start log-mining based on the timestamps&lt;br /&gt;
BEGIN&lt;br /&gt;
SYS.DBMS_LOGMNR.START_LOGMNR(&lt;br /&gt;
STARTTIME =&gt; TO_DATE('13-Apr-2010 08:00', 'DD-MON-YYYY HH24:MI')&lt;br /&gt;
,ENDTIME =&gt; TO_DATE('13-Apr-2010 16:00', 'DD-MON-YYYY HH24:MI')&lt;br /&gt;
,OPTIONS =&gt; SYS.DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG + SYS.DBMS_LOGMNR.CONTINUOUS_MINE&lt;br /&gt;
);&lt;br /&gt;
END;&lt;br /&gt;
/&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;
&lt;li&gt;This then gave me the information I needed:&lt;br /&gt;
SELECT timestamp, sql_redo FROM v$logmnr_contents&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;
&lt;li&gt;I concluded the task by clearing out logminer:&lt;br /&gt;
exec SYS.DBMS_LOGMNR.END_LOGMNR;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2986385320611549645?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2986385320611549645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2986385320611549645' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2986385320611549645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2986385320611549645'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/oracle-10g-log-mining.html' title='Oracle 10g Log Mining'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6728393777988857348</id><published>2010-04-15T18:12:00.001+10:00</published><updated>2010-04-15T18:14:04.539+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Trigger to Create Public Synonyms</title><content type='html'>We have an application which creates dynamic temporary tables, which require public synonymns generated to enable users to access these tables.  The solution which came to mind was to create a DDL trigger.  However, once I'd finished writing the trigger, I discovered the following limitation:&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;ORA-30511 invalid DDL operation in system triggers. 
Cause
An attempt was made to perform an invalid DDL operation in a system trigger. Most DDL operations currently are not supported in system triggers. The only currently supported DDL operations are table operations and ALTER?COMPILE operations. 
&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;I tried a few different options such as playing around with my favourite pragma autonomous_transaction method, but couldn't get the trigger to execute the "create public synonym" command.&lt;br /&gt;
&lt;p&gt;Therefore, I decided to create a stored procedure which would accept the parameters (objowner and objname) and wrote the trigger to execute a background job which would run the procedure in a minute - nice and easy solution.&lt;br /&gt;
&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;font color=navy&gt;&lt;b&gt;The Stored Procedure&lt;/b&gt;&lt;/font&gt;
CREATE OR REPLACE PROCEDURE SYN_PROC (objname in varchar2, objowner in varchar2) IS

begin

execute immediate 'create public synonym  ' || objname || '  for ' || objowner || '.' || objname;

end;
/
&lt;/pre&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;font color=navy&gt;&lt;b&gt;The Trigger&lt;/b&gt;&lt;/font&gt;
CREATE OR REPLACE TRIGGER SYN_TRIG
AFTER create ON SCHEMA
declare

jobnum   number;

BEGIN 

IF ORA_DICT_OBJ_OWNER='SCHEMA_OWNER' AND ORA_DICT_OBJ_NAME LIKE 'TABLENAME%' THEN

   SYS.DBMS_JOB.SUBMIT (jobnum, 'ORACLE_DBA.SYN_PROC(''' || ORA_DICT_OBJ_NAME || ''',''' || ORA_DICT_OBJ_OWNER || ''');' , sysdate+(1/24/60));

END IF;

END;
/
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6728393777988857348?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6728393777988857348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6728393777988857348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6728393777988857348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6728393777988857348'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/trigger-to-create-public-synonyms.html' title='Trigger to Create Public Synonyms'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3205034156058307466</id><published>2010-04-14T16:38:00.002+10:00</published><updated>2010-04-14T16:42:12.738+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><title type='text'>Recreate Users and Roles</title><content type='html'>At my workplace, there is often a need to capture user and role information prior to performing a database refresh, to allow existing user accounts and permissions to be re-created post-refresh.&lt;br /&gt;
&lt;p&gt;I have come up with the following scripts to assist with this task:&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;&lt;b&gt;&lt;font color=navy&gt;List and generate scripts to recreate accounts with Domain Authenticaton:&lt;/b&gt;&lt;/font&gt;
select 'CREATE LOGIN [DOMAIN\' + name + '] FROM WINDOWS WITH DEFAULT_DATABASE=[ceinfraprd]' from dbo.sysusers where isntname=1  


&lt;font color=navy&gt;&lt;b&gt;List and generate scripts to reinstate the roles:&lt;/b&gt;&lt;/font&gt;
select distinct 'exec sp_addrolemember ' + '''' + y.name + ''', ' + '''' + x.name + ''''
  from
(select uid, name, groupuid
  from dbo.sysusers a
     , dbo.sysmembers b
 where a.uid = b.memberuid) as x,
(select uid, name, groupuid
  from dbo.sysusers a
     , dbo.sysmembers b
 where a.uid = b.groupuid) as y
where x.groupuid = y.uid&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3205034156058307466?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3205034156058307466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3205034156058307466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3205034156058307466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3205034156058307466'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/recreate-users-and-roles.html' title='Recreate Users and Roles'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3246497774462945255</id><published>2010-04-13T09:16:00.000+10:00</published><updated>2010-04-13T09:16:31.038+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><title type='text'>Oracle Shell Script - Emailing the Logfile</title><content type='html'>An example of a shell script which connects to multiple unix hosted databases and runs a simple SQL.  This version emails the logfile to people on the mailing list.&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;#!/bin/ksh
#
# Shell script that connects to multiple database servers and runs a SQL
#

MAIL_LIST="nazim@nazimcricket.com"

# Server List
SERVERS='server1 server2 server3'

LOG="/tmp/logfile.log"

&gt; $LOG

for SERVER in $SERVERS
do

sqlplus -s username/password@$SERVER &lt;&lt; EOF | tee -a $LOG
select * from global_name;
exit;
EOF

done

uuencode ${LOG} ${LOG} | mail -s "Results Log" ${MAIL_LIST}
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3246497774462945255?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3246497774462945255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3246497774462945255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3246497774462945255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3246497774462945255'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/oracle-shell-script-emailing-logfile.html' title='Oracle Shell Script - Emailing the Logfile'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-9174490683436362309</id><published>2010-04-12T15:31:00.000+10:00</published><updated>2010-04-12T15:31:56.761+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL Server'/><title type='text'>MS SQL Server user script</title><content type='html'>I don't have much experience with SQLServer, so I'm sure there are better ways of doing this.  This is the way I've worked out how to list users and their granted roles ....&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;select distinct x.uid, x.name, y.name
  from
(select uid, name, groupuid
  from dbo.sysusers a
     , dbo.sysmembers b
 where a.uid = b.memberuid) as x,
(select uid, name, groupuid
  from dbo.sysusers a
     , dbo.sysmembers b
 where a.uid = b.groupuid) as y
where x.groupuid = y.uid
order by x.name&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-9174490683436362309?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/9174490683436362309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=9174490683436362309' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9174490683436362309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9174490683436362309'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/ms-sql-server-user-script.html' title='MS SQL Server user script'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3865286744095744109</id><published>2010-04-12T09:29:00.001+10:00</published><updated>2010-04-12T09:30:16.460+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><title type='text'>Oracle Shell Script with Password Prompts</title><content type='html'>An example of a shell script which connects to multiple unix hosted databases and runs a simple SQL.  This version prompts for the username/password.&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;#!/bin/ksh
#
# Shell script that connects to multiple database servers and runs a SQL
#

# Script expects the username and password to be parsed as arguments.
# If not found, it will error with message ...

if [[ $# -lt 2 ]]
then
        print "\nUSAGE: script_name.ksh username password\n"
        print "\nExample: script_name.ksh scott tiger\n"
        exit 0
fi

username=$1
password=$2

# Server List
SERVERS='server1 server2 server3'

LOG="/tmp/logfile.log"

&gt; $LOG

for SERVER in $SERVERS
do

sqlplus -s $username/$password@$SERVER &lt;&lt; EOF | tee -a $LOG
select * from global_name;
exit;
EOF

done&lt;/pre&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3865286744095744109?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3865286744095744109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3865286744095744109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3865286744095744109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3865286744095744109'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/04/oracle-shell-script-with-password.html' title='Oracle Shell Script with Password Prompts'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7381695934681514205</id><published>2010-03-31T11:03:00.002+11:00</published><updated>2010-04-01T15:33:51.564+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><title type='text'>Oracle Shell Script</title><content type='html'>An example of a shell script which connects to multiple unix hosted databases and runs a simple SQL.&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;#!/bin/ksh
#
# Shell script that connects to multiple database servers and runs a SQL
#

# Server List
SERVERS='server1 server2 server3'

LOG="/tmp/logfile.log"

&gt; $LOG

for SERVER in $SERVERS
do

sqlplus -s username/password@$SERVER &lt;&lt; EOF | tee -a $LOG
select * from global_name;
exit;
EOF

done&lt;/pre&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7381695934681514205?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7381695934681514205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7381695934681514205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7381695934681514205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7381695934681514205'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/03/oracle-shell-script.html' title='Oracle Shell Script'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3243353653513323782</id><published>2010-02-25T13:49:00.001+11:00</published><updated>2010-02-25T13:50:32.607+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Check Oracle Database Size</title><content type='html'>A good way to check the size of your database is to add up the size of your tablespaces (including Temp) and the redo logs as follows:&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;select sum(megabytes) 
 from (
select sum(bytes)/1024/1024 megabytes from dba_temp_files
union
select sum(bytes)/1024/1024 megabytes from dba_data_files
union
select sum(bytes)/1024/1024 megabytes from v$log
);&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3243353653513323782?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3243353653513323782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3243353653513323782' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3243353653513323782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3243353653513323782'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/02/check-oracle-database-size.html' title='Check Oracle Database Size'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-564109397748101894</id><published>2010-02-06T16:54:00.003+11:00</published><updated>2010-03-03T15:22:05.560+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA RMAN'/><title type='text'>RMAN Archivelog Deletions</title><content type='html'>Note to self&lt;br /&gt;
&lt;blockquote&gt;&lt;pre&gt;rman nocatalog&lt;&lt; DATA
connect target
delete noprompt archivelog until time 'SYSDATE-n';
DATA&lt;/pre&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;&lt;pre&gt;rman nocatalog&lt;&lt; DATA
connect target
delete noprompt archivelog until sequence= nnnnnnn;
DATA&lt;/pre&gt;
&lt;/blockquote&gt;&lt;p&gt;A scenario where so many archivelogs are being generated, that you have to resort to using RMAN to clear out archivelogs on the fly, can also be supported by increasing the physical space for archivelog files alongwith boosting the db_recovery_file_dest_size parameter i.e. increasing the flash recovery area.
&lt;blockquote&gt;&lt;font color=navy&gt;
ORA-19815: WARNING: db_recovery_file_dest_size of &lt;i&gt;n&lt;/i&gt; bytes is &lt;i&gt;n%&lt;/i&gt; used, and has &lt;i&gt;n&lt;/i&gt; remaining bytes available.&lt;/font&gt;
&lt;p&gt;alter system set db_recovery_file_dest_size=&lt;i&gt;n&lt;/i&gt;M/G scope=both;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-564109397748101894?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/564109397748101894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=564109397748101894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/564109397748101894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/564109397748101894'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/02/rman-archivelog-deletions.html' title='RMAN Archivelog Deletions'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1622244205986637431</id><published>2010-01-25T08:19:00.000+11:00</published><updated>2010-01-25T08:19:04.052+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Close Encounter with Pakistan Cricket team</title><content type='html'>On Saturday night, happened to be out and about in Sydney. Decided to get some takeaway from a Pakistani restaurant, but was denied service as they were playing host to the Pakistan Cricket team.&lt;br /&gt;
&lt;p&gt;I wish I had done better, but for my troubles, I was able to get autographs from Shoaib Malik, one of the Akmal brothers (Kamran I think?) and Waqar Younis.&lt;br /&gt;
&lt;p&gt;Also had some luck at a second hand book shop where I picked up for a pittance a West Indian cricket book with autographs of Michael Holding and Colin Croft.&lt;br /&gt;
&lt;p&gt;Links to photos and scans of the autographs ....&lt;br /&gt;
&lt;p&gt;&lt;a href="http://www.nazimcricket.com/me_younis.jpg"&gt;http://www.nazimcricket.com/me_younis.jpg&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.nazimcricket.com/images/younis11.jpg"&gt;http://www.nazimcricket.com/images/younis11.jpg&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.nazimcricket.com/me_malik_akmal.jpg"&gt;http://www.nazimcricket.com/me_malik_akmal.jpg&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.nazimcricket.com/images/malmal.jpg"&gt;http://www.nazimcricket.com/images/malmal.jpg&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.nazimcricket.com/images/holcroft.jpg"&gt;http://www.nazimcricket.com/images/holcroft.jpg&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1622244205986637431?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1622244205986637431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1622244205986637431' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1622244205986637431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1622244205986637431'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/01/close-encounter-with-pakistan-cricket.html' title='Close Encounter with Pakistan Cricket team'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-458463731405403948</id><published>2010-01-09T16:15:00.000+11:00</published><updated>2010-01-09T16:15:11.789+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>My Reading List for 2010</title><content type='html'>&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/S0eo-kyK2UI/AAAAAAAAAJE/1aXt2b6evN4/s1600-h/gropes.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://2.bp.blogspot.com/_5iMX0rrCk80/S0eo-kyK2UI/AAAAAAAAAJE/1aXt2b6evN4/s200/gropes.jpg" /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_5iMX0rrCk80/S0epBLPyn5I/AAAAAAAAAJM/s8kUpb5V0BM/s1600-h/dome.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://4.bp.blogspot.com/_5iMX0rrCk80/S0epBLPyn5I/AAAAAAAAAJM/s8kUpb5V0BM/s200/dome.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epDUYMHvI/AAAAAAAAAJU/DLcG2zrp-jo/s1600-h/dex1.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epDUYMHvI/AAAAAAAAAJU/DLcG2zrp-jo/s200/dex1.jpg" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epEwSWRRI/AAAAAAAAAJc/vAGFmGrthhU/s1600-h/dex2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epEwSWRRI/AAAAAAAAAJc/vAGFmGrthhU/s200/dex2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epH4SK6WI/AAAAAAAAAJk/W4nxaJXqQwc/s1600-h/exit.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epH4SK6WI/AAAAAAAAAJk/W4nxaJXqQwc/s200/exit.jpg" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epJrhnNQI/AAAAAAAAAJs/-qH-0ubqnYQ/s1600-h/drop.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epJrhnNQI/AAAAAAAAAJs/-qH-0ubqnYQ/s200/drop.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epL0NKalI/AAAAAAAAAJ0/1zZu9n98798/s1600-h/soldier.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epL0NKalI/AAAAAAAAAJ0/1zZu9n98798/s200/soldier.jpg" /&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epNRq4oqI/AAAAAAAAAJ8/lc6-9edPjCw/s1600-h/breathless.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://3.bp.blogspot.com/_5iMX0rrCk80/S0epNRq4oqI/AAAAAAAAAJ8/lc6-9edPjCw/s200/breathless.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="right" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_5iMX0rrCk80/S0esTO1JQ4I/AAAAAAAAAKM/YxoyLcK9J7I/s1600-h/ford.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" ps="true" src="http://3.bp.blogspot.com/_5iMX0rrCk80/S0esTO1JQ4I/AAAAAAAAAKM/YxoyLcK9J7I/s200/ford.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;Also looking forward to the release of:&lt;br /&gt;
&lt;li&gt;The Wilt Inheritance - Tom Sharpe&lt;br /&gt;
&lt;li&gt;Dexter Is Delicious - Jeff Lindsay&lt;br /&gt;
&lt;li&gt;War Torn - Andy McNab&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-458463731405403948?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/458463731405403948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=458463731405403948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/458463731405403948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/458463731405403948'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2010/01/my-reading-list-for-2010.html' title='My Reading List for 2010'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_5iMX0rrCk80/S0eo-kyK2UI/AAAAAAAAAJE/1aXt2b6evN4/s72-c/gropes.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6053251980735422630</id><published>2009-12-07T15:54:00.002+11:00</published><updated>2010-02-26T11:40:55.292+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Check last applied archive log</title><content type='html'>SELECT max(sequence#) from v$log_history;&lt;br /&gt;
&lt;p&gt;Also, the following &lt;br /&gt;
&lt;p&gt;archive log list;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6053251980735422630?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6053251980735422630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6053251980735422630' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6053251980735422630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6053251980735422630'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/12/check-last-applied-archive-log.html' title='Check last applied archive log'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4873102107618117654</id><published>2009-11-19T21:06:00.002+11:00</published><updated>2009-11-19T21:08:09.089+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>Houston Rockets</title><content type='html'>A few of my favourite collectables:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_5iMX0rrCk80/SwUYjN4FWAI/AAAAAAAAAHc/3zDgPFPF620/s1600/murphy.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_5iMX0rrCk80/SwUYjN4FWAI/AAAAAAAAAHc/3zDgPFPF620/s320/murphy.jpg" yr="true" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/SwUYm5UDTJI/AAAAAAAAAHk/s8Q45kiqvdE/s1600/drexler.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_5iMX0rrCk80/SwUYm5UDTJI/AAAAAAAAAHk/s8Q45kiqvdE/s320/drexler.jpg" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_5iMX0rrCk80/SwUYuMkVGvI/AAAAAAAAAH0/CPQ7rM0hl7c/s1600/mcgrady1.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_5iMX0rrCk80/SwUYuMkVGvI/AAAAAAAAAH0/CPQ7rM0hl7c/s320/mcgrady1.jpg" yr="true" /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_5iMX0rrCk80/SwUYqBsUZ-I/AAAAAAAAAHs/i9LB2Z-s4Ao/s1600/yao.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_5iMX0rrCk80/SwUYqBsUZ-I/AAAAAAAAAHs/i9LB2Z-s4Ao/s320/yao.jpg" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4873102107618117654?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4873102107618117654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4873102107618117654' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4873102107618117654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4873102107618117654'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/11/houston-rockets.html' title='Houston Rockets'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_5iMX0rrCk80/SwUYjN4FWAI/AAAAAAAAAHc/3zDgPFPF620/s72-c/murphy.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-840803084396217251</id><published>2009-11-13T14:01:00.011+11:00</published><updated>2011-11-04T17:12:22.150+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Resize Online Redo Logs - Rough Notes</title><content type='html'>To resize redo log files, we have to drop and recreate them.  The status of these files is critical.  &lt;br /&gt;
&lt;p&gt;Files with a status of: &lt;br /&gt;
&lt;li&gt; CURRENT - cannot/must not be dropped.  To change the status of a current file, we have to initiate a log switch (ALTER SYSTEM SWITCH LOGFILE;).&lt;br /&gt;
&lt;li&gt;ACTIVE - Is likely to return an error; ORA-01624: log 1 needed for crash recovery of instance.  This can be overcome by generating a checkpoint (ALTER SYSTEM CHECKPOINT GLOBAL;).&lt;br /&gt;
&lt;li&gt;INACTIVE - May be dropped.&lt;br /&gt;
&lt;li&gt;UNUSED - May be dropped. &lt;br /&gt;
&lt;p&gt;Once again, the status of these files can be changed by initiating a log switch (ALTER SYSTEM SWITCH LOGFILE;).&lt;br /&gt;
&lt;p&gt;The following SQLs assist with the task of:&lt;br /&gt;
&lt;blockquote&gt;&lt;font color=navy&gt;Checking pertinent redo log file details&lt;/font&gt;&lt;br /&gt;
&lt;pre&gt;SELECT a.group#
     , a.member
     , b.bytes / 1024 / 1024 MB
     , b.status
  FROM v$logfile a
     , v$log b 
 WHERE a.group# = b.group#
order by a.group#;&lt;/pre&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;font color=navy&gt;Dropping redo log file groups&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;ALTER DATABASE DROP LOGFILE GROUP n;&lt;/pre&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;font color=navy&gt;Resizing redo log file&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;ALTER DATABASE ADD LOGFILE GROUP n 
('/member_path/redo_logfile_name1',  
 '/member_path/redo_logfile_name2') SIZE nM REUSE;&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;For a standby database the following additional steps are needed before dropping a online redo log group ...&lt;br /&gt;
&lt;blockquote&gt;&lt;font color=navy&gt;Stop Standby Recovery&lt;/font&gt;&lt;br /&gt;
&lt;pre&gt;ALTER DATABASE RECOVER MANAGED STANDBY CANCEL;&lt;/pre&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;font color=navy&gt;Set Standby File Management to Manual&lt;/font&gt;&lt;br /&gt;
&lt;pre&gt;ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=MANUAL;&lt;/pre&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;font color=navy&gt;Clear Logfile Group&lt;/font&gt;&lt;br /&gt;
&lt;pre&gt;If the STATUS of the logfile group is CLEARING or CLEARING_CURRENT, you can set it to unused by running command ALTER DATABASE CLEAR LOGFILE GROUP n;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-840803084396217251?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/840803084396217251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=840803084396217251' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/840803084396217251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/840803084396217251'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/11/resize-online-redo-logs-rough-notes.html' title='Resize Online Redo Logs - Rough Notes'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1013489254139683736</id><published>2009-11-03T10:29:00.006+11:00</published><updated>2009-11-04T13:27:23.825+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Logon Audit Trigger</title><content type='html'>This is my version of a logon audit trigger.  It picks up every iteration of a logon, even to the point of when a session switches from ACTIVE/INACTIVE mode.
&lt;p&gt;
The more conventional way of creating a logon audit trigger would be to simply capture environment variables using the SYS_CONTEXT function, utilising USERENV, environment variables, for example ..
&lt;p&gt;
sys_context('USERENV','CURRENT_USER')&lt;br&gt;
sys_context('USERENV','CURRENT_USERID')&lt;br&gt;
sys_context('USERENV','HOST')&lt;br&gt;
sys_context('USERENV','OS_USER')&lt;br&gt;
&lt;p&gt;
&lt;font color=navy&gt;Create a table to store the information provided by the trigger&lt;/font&gt;
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
create table nazim_logon_audit 
(  sid number
 , pid number
 , spid varchar2(12)
 , process varchar2(12)
 , status varchar2(8)
 , username varchar2(30)
 , osuser varchar2(30)
 , program varchar2(48)
 , client_info varchar2(64)
 , module varchar2(48)
 , logon_time varchar2(30)
 , last_call_et varchar2(30)
);
&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
&lt;font color=navy&gt;Create the trigger&lt;/font&gt;
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
create or replace trigger
   nazim_logon_audit_trigger
AFTER LOGON ON DATABASE
BEGIN
insert into nazim_logon_audit
(select s.sid 
     , p.pid 
     , p.spid
     , s.process
     , s.status
     , s.username
     , s.osuser
     , s.program
     , s.client_info
     , s.module
     , to_char(s.logon_time,'yyyy-mm-dd hh24:mi:ss')
     , to_char(sysdate - (s.last_call_et /86400),'yyyy-mm-dd hh24:mi:ss') 
  from v$session s
     , v$process p
 where s.paddr = p.addr
   and s.username=user 
   and s.logon_time = sysdate
 );
commit;
END;
/&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1013489254139683736?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1013489254139683736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1013489254139683736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1013489254139683736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1013489254139683736'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/11/logon-audit-trigger.html' title='Logon Audit Trigger'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8330429723271035154</id><published>2009-11-02T13:35:00.002+11:00</published><updated>2009-11-02T13:37:19.415+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle Process Details with SQL Text</title><content type='html'>A useful query to check database processes alongwith the executed SQL statement:
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
select s.sid
     , p.pid
     , p.spid
     , s.process
     , s.status
     , s.username
     , s.osuser
     , s.program
     , a.name
     , s.client_info
     , s.module
     , to_char(s.logon_time,'yyyy-mm-dd hh24:mi:ss')
     , to_char(sysdate - (s.last_call_et /86400),'yyyy-mm-dd hh24:mi:ss')
     , sq.sql_text
  from v$session s
     , v$process p
     , audit_actions a
     , v$sql sq
 where s.paddr = p.addr
   and s.command = a.action
   and sq.address (+) = decode(s.sql_address,'00', s.prev_sql_addr, s.sql_address)
 order by s.status;&lt;/pre&gt;&lt;/blockquote&gt;
 
&lt;font color=navy&gt;Field Key&lt;/font&gt;
&lt;li&gt;Oracle Session ID
&lt;li&gt;Oracle Process ID
&lt;li&gt;OS Process ID
&lt;li&gt;OS Client Process ID
&lt;li&gt;Status of Session
&lt;li&gt;Oracle Username
&lt;li&gt;OS Username
&lt;li&gt;OS Program Name
&lt;li&gt;Command in Progress
&lt;li&gt;Client Info from DBMS_APPLICATION_INFO.SET_CLIENT_INFO proc
&lt;li&gt;Module Info from DBMS_APPLICATION_INFO.SET_MODULE proc
&lt;li&gt;Time of Logon
&lt;li&gt;Last Call
&lt;li&gt;SQL Text&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8330429723271035154?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8330429723271035154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8330429723271035154' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8330429723271035154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8330429723271035154'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/11/oracle-process-details-with-sql-text.html' title='Oracle Process Details with SQL Text'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7435868510659077599</id><published>2009-10-01T10:34:00.004+10:00</published><updated>2010-08-02T14:01:24.293+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle - Media Recovery</title><content type='html'>A gem of a tip from my friend Mike N. which I was unaware of.  Had a database in noarchivelog mode.  Copied it across to a new server.  Due to a minor mishap encountered "ORA-01113: file needs media recovery" on the target database. &lt;p&gt;To fix this, ran the command RECOVER DATABASE UNTIL CANCEL and when prompted to specify log, in the absence of any archivelogs, pointed it to the redo log files and was able to recover.  Following this off with a ALTER DATABASE OPEN NORESETLOGS and saved myself the hassle of recopying all the datafiles again.&lt;br /&gt;
&lt;p&gt;Another tip along the same lines provided by my mate Ken W.  Once again, performed a RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL.  Supplied the archivelogs I had available but attempting to do ALTER DATABASE OPEN RESETLOGS found it required another archivelog which I did not have.  Therefore recreated the CONTROLFILE using syntax CREATE CONTROLFILE SET DATABASE "DBNAME" RESETLOGS FORCE LOGGING NOARCHIVELOG REUSE.  Followed this up with a ALTER DATABASE OPEN RESETLOGS - problem solved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7435868510659077599?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7435868510659077599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7435868510659077599' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7435868510659077599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7435868510659077599'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/10/oracle-media-recovery.html' title='Oracle - Media Recovery'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3910731556035200682</id><published>2009-09-25T16:00:00.009+10:00</published><updated>2009-10-02T14:01:16.045+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Note to Self - Move Existing Database</title><content type='html'>To move an Oracle database from one server to another ...
&lt;p&gt;
&lt;li&gt; Shutdown source database.
&lt;li&gt; Create directories on target (/oracle/SID/datafiles, /oracle/admin/SID/sysfiles, /oracle/env/dbs, /oracle/pass)
&lt;li&gt; Copy across datafiles, tempfiles, controlfiles, pfile, spfile, password file redo logs and environment files.
&lt;li&gt; Add an entry in /etc/oratab.
&lt;li&gt; Modify the parameter db_domain (ALTER SYSTEM SET DB_DOMAIN=domain SCOPE=spfile)
&lt;li&gt; Alter database rename global_name.
&lt;li&gt; Check the parameter service_names.
&lt;li&gt; Update oracle names.
&lt;li&gt; Setup cron entries / scheduled tasks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3910731556035200682?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3910731556035200682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3910731556035200682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3910731556035200682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3910731556035200682'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/09/note-to-self-move-existing-database.html' title='Note to Self - Move Existing Database'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4322586287606251766</id><published>2009-08-31T16:41:00.006+10:00</published><updated>2009-08-31T16:55:47.370+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle 10g - Flashback (Schema)</title><content type='html'>Technically there is no schema level flashback feature available.  However, provided your recovery period does not include any data dictionary changes (DDL) then you could actually use datapump to flashback export the schema and import it back in.
&lt;p&gt;
To achieve this you would use syntax like ...
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;expdp username/password directory=data_pump_dir dumpfile=data_pump_dir:dumpfile.dmp logfile=data_pump_dir:logfile.log schemas=SCHEMA flashback_time=\"to_timestamp('timestamp', 'yyyy-mm-dd hh24:mi')\"&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
The import process would use syntax like ...
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;impdp username/password directory=data_pump_dir dumpfile=DUMPFILE.DMP remap_schema=SCHEMA:SCHEMA&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
In this instance, I'm remapping the schema to another schema, so I can keep both in play for comparison purposes.  You may choose to overwrite it instead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4322586287606251766?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4322586287606251766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4322586287606251766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4322586287606251766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4322586287606251766'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/08/oracle-10g-flashback-schema.html' title='Oracle 10g - Flashback (Schema)'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8594629794114540569</id><published>2009-08-27T16:37:00.011+10:00</published><updated>2009-08-28T12:03:25.618+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle 10g - Flashback (Table)</title><content type='html'>The ability to flashback transactions to a point in time is quite a handy feature.  Here is how it all works ....  
&lt;p&gt;
First of all, the oracle init.ora parameter &lt;i&gt;db_flashback_retention_target&lt;/i&gt; needs to be set.  This parameter specifies the upper limit (in minutes) on how far back in time the database may be flashed back. The default value is 1440 minutes (24 hours).  
&lt;p&gt;
How far back one can flash back a database depends on how much flashback data Oracle has kept in the recovery area.
&lt;p&gt;
To execute a FLASHBACK TABLE command, you need the FLASHBACK TABLE or FLASHBACK ANY TABLE privilege.  In addition, you must have INSERT, DELETE and ALTER privileges on all the specified tables.
&lt;p&gt;
&lt;b&gt;&lt;u&gt;Retrieving a Table with Flashback Query&lt;/u&gt;&lt;/b&gt;
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM PAKISTAN_CRICKET;

FIRST_NAME           LAST_NAME           
-------------------- --------------------
Khan                 Imran               
Akram                Wasim               
Younis               Waqar               
Afridi               Shahid              
Miandad              Javed               

5 rows selected.

&lt;font color=navy&gt;Drop the table.&lt;/font&gt;

SQL&gt; DR0P TABLE PAKISTAN_CRICKET;

Table dropped.

&lt;font color=navy&gt;The default action associated with the drop command in 10g is to place the object in a recycle bin.  You can view the contents in the recycle bin using ..&lt;/font&gt;

SQL&gt; SELECT * FROM RECYCLEBIN;

&lt;font color=navy&gt;You may choose to permanently delete the table by purging it from the recyclebin or you could recover it via the following flashback command .. &lt;/font&gt;

SQL&gt; FLASHBACK TABLE PAKISTAN_CRICKET TO BEFORE DROP;

Flashback successful.

&lt;font color=navy&gt;Other options available with the FLASHBACK TABLE command are illustrated below .. &lt;/font&gt;

&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/Spc6PBPUBwI/AAAAAAAAAGU/rdy2Pjtd-Ds/s1600-h/flashback_table.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 137px;" src="http://2.bp.blogspot.com/_5iMX0rrCk80/Spc6PBPUBwI/AAAAAAAAAGU/rdy2Pjtd-Ds/s320/flashback_table.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5374828709995087618" /&gt;&lt;/a&gt;

SQL&gt; SELECT * FROM PAKISTAN_CRICKET;

FIRST_NAME           LAST_NAME           
-------------------- --------------------
Khan                 Imran               
Akram                Wasim               
Younis               Waqar               
Afridi               Shahid              
Miandad              Javed               

5 rows selected.


&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8594629794114540569?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8594629794114540569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8594629794114540569' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8594629794114540569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8594629794114540569'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/08/oracle-10g-flashback-table.html' title='Oracle 10g - Flashback (Table)'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_5iMX0rrCk80/Spc6PBPUBwI/AAAAAAAAAGU/rdy2Pjtd-Ds/s72-c/flashback_table.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7318210505627624332</id><published>2009-08-27T11:33:00.037+10:00</published><updated>2009-08-27T16:19:15.056+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle 10g - Flashback (Row)</title><content type='html'>The ability to flashback transactions to a point in time is quite a handy feature.  Here is how it all works ....  
&lt;p&gt;
First of all, the oracle init.ora parameter &lt;i&gt;db_flashback_retention_target&lt;/i&gt; needs to be set.  This parameter specifies the upper limit (in minutes) on how far back in time the database may be flashed back. The default value is 1440 minutes (24 hours).  
&lt;p&gt;
How far back one can flash back a database depends on how much flashback data Oracle has kept in the recovery area.
&lt;p&gt;
&lt;b&gt;&lt;u&gt;Retrieving a Row with Flashback Query&lt;/u&gt;&lt;/b&gt;
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM AUSTRALIA_CRICKET;

FIRST_NAME           LAST_NAME
-------------------- --------------------
Ricky                Ponting
Michael              Clarke
Stuart               Clark
Brad                 Haddin
Brett                Lee

5 rows selected.

&lt;font color=navy&gt;Delete a row of data - make a note of the deletion time for the purpose of this exercise.&lt;/font&gt;

SQL&gt; DELETE FROM AUSTRALIA_CRICKET WHERE FIRST_NAME='Brett';

1 row deleted.

SQL&gt; COMMIT;

Commit complete.

SQL&gt; SELECT * FROM AUSTRALIA_CRICKET;

FIRST_NAME           LAST_NAME           
-------------------- --------------------
Ricky                Ponting             
Michael              Clarke              
Stuart               Clark               
Brad                 Haddin              

4 rows selected.

&lt;font color=navy&gt;Now to use a flashback query to view the data as it was prior to the delete.&lt;/font&gt;

SQL&gt; SELECT * FROM AUSTRALIA_CRICKET AS OF TIMESTAMP TO_TIMESTAMP('2009-08-27 15:26','YYYY-MM-DD HH24:MI');


FIRST_NAME           LAST_NAME           
-------------------- --------------------
Ricky                Ponting             
Michael              Clarke              
Stuart               Clark               
Brad                 Haddin              
Brett                Lee                 

5 rows selected.

&lt;font color=navy&gt;You may restore the deleted row as follows&lt;/font&gt;

SQL&gt; INSERT INTO AUSTRALIA_CRICKET(SELECT * FROM AUSTRALIA_CRICKET AS OF TIMESTAMP TO_TIMESTAMP('2009-08-27 15:26','YYYY-MM-DD HH24:MI') WHERE FIRST_NAME='Brett');

1 row inserted.

SQL&gt; COMMIT;

Commit complete.

SQL&gt; SELECT * FROM AUSTRALIA_CRICKET;

FIRST_NAME           LAST_NAME           
-------------------- --------------------
Ricky                Ponting             
Michael              Clarke              
Stuart               Clark               
Brad                 Haddin              
Brett                Lee                 

5 rows selected.

&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7318210505627624332?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7318210505627624332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7318210505627624332' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7318210505627624332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7318210505627624332'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/08/oracle-10g-flashback.html' title='Oracle 10g - Flashback (Row)'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6015159853553886860</id><published>2009-06-25T10:41:00.003+10:00</published><updated>2009-06-25T10:46:35.987+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft - Install as a Service</title><content type='html'>In PeopleTools 8.49 we can now install the Windows Application Servers and Process Schedulers as a Service.
&lt;p&gt;
This can easily be setup using new a menu option on psadmin.exe 4) Service Setup.
&lt;p&gt;
In my case, I only wanted to configure the Process Scheduler as a Service.  This was easily achieved by Editing the Service Configuration File (psntsrv.cfg) and commenting out the line - Application Server Domains=.
&lt;p&gt;
Once the service has been configured, use the 2) Install a Service menu option and you're ready to rock!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6015159853553886860?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6015159853553886860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6015159853553886860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6015159853553886860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6015159853553886860'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/06/peoplesoft-install-as-service.html' title='PeopleSoft - Install as a Service'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6102332384007073933</id><published>2009-06-18T12:04:00.005+10:00</published><updated>2009-06-18T15:08:37.932+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle/Unix - Pipe to Gzip</title><content type='html'>As an example, I wish to spool/pipe out an oracle export file straight to gzip on unix.
&lt;p&gt;
&lt;li&gt;Create a Pipe
&lt;blockquote&gt;mkfifo ppipe&lt;/blockquote&gt;
&lt;li&gt;In the background send the pipe contents to gzip
&lt;blockquote&gt;cat ppipe | gzip -c &gt; filename.dmp.gz &amp;&lt;/blockquote&gt;
&lt;li&gt;Run the export to the pipe
&lt;blockquote&gt;exp username/password file=ppipe log=filename.log&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6102332384007073933?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6102332384007073933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6102332384007073933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6102332384007073933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6102332384007073933'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/06/oracleunix-pipe-to-gzip.html' title='Oracle/Unix - Pipe to Gzip'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6444334605911179355</id><published>2009-06-05T15:07:00.002+10:00</published><updated>2009-06-05T15:14:49.153+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Data Pump - Dynamic List of Tables to Export</title><content type='html'>In PeopleSoft, I needed to export out all configuration/system-owned tables as a backup each week.  To achieve this, my first step was to create a view listing all these tables, by filtering out those which are not prefixed with "PS_"
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
CREATE OR REPLACE VIEW EXPORT_WEEKLY (TABLE_NAME) AS
SELECT table_name
  FROM all_tables
 WHERE owner = 'SYSADM' 
   AND NOT REGEXP_LIKE (table_name, '^PS(_)');
&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
I then used Oracle datapump to export the tables listed in this view ..
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
expdp username/password parfile=parfilename
&lt;/pre&gt;&lt;/blockquote&gt;
parfile contents
&lt;blockquote&gt;&lt;pre&gt;
DIRECTORY=dpump_dir1
DUMPFILE=dpump_dir1:dumpfile.dmp
LOGFILE=dpump_dir1:logfile.log
SCHEMAS=SCHEMANAME
INCLUDE=TABLE:"IN (SELECT TABLE_NAME FROM EXPORT_WEEKLY)"
CONTENT=DATA_ONLY
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6444334605911179355?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6444334605911179355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6444334605911179355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6444334605911179355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6444334605911179355'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/06/data-pump-dynamic-list-of-tables-to.html' title='Data Pump - Dynamic List of Tables to Export'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6668985358430198536</id><published>2009-06-04T16:37:00.003+10:00</published><updated>2009-06-04T16:41:09.622+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft List Of System Tables</title><content type='html'>To obtain a list of all "system owned" tables in PeopleSoft, i.e. those which are not prefixed by a PS_, run the following SQL:
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
SELECT table_name
  FROM all_tables
 WHERE owner = 'SCHEMA_OWNER'
   AND NOT REGEXP_LIKE (table_name, '^PS(_)');
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6668985358430198536?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6668985358430198536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6668985358430198536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6668985358430198536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6668985358430198536'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/06/peoplesoft-list-of-system-tables.html' title='PeopleSoft List Of System Tables'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1502114042912289105</id><published>2009-05-05T16:10:00.003+10:00</published><updated>2010-02-26T18:36:02.195+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Temp Tablespace Usage</title><content type='html'>A useful script to check on users/processes using up temp tablespace. &lt;blockquote&gt;&lt;pre&gt;SELECT distinct s.username
     , s.sid
     , s.serial#
     , s.osuser
     , u.tablespace
     , u.contents
     , u.segtype
     , u.extents
     , u.blocks
  FROM v$session s
     , v$sort_usage u
 WHERE s.saddr=u.session_addr
order by s.username, s.osuser;
&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;i&gt;Note: blocks * size of blocks = mbytes&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1502114042912289105?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1502114042912289105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1502114042912289105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1502114042912289105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1502114042912289105'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/05/temp-tablespace-usage.html' title='Temp Tablespace Usage'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-5155699852524250733</id><published>2009-05-05T12:08:00.009+10:00</published><updated>2009-05-16T23:15:32.808+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Create User Scripts</title><content type='html'>There are many ways of cloning a user account or two from one database to another.  Here are a few simple SQLs to dynamically generate scripts from the source database, which can then be executed on the target database.
&lt;p&gt;
I have in this example assumed that the tablespaces etc in the source and target database are identical in name and size.  I have also chosen to set all the user roles (by default) as Default.
&lt;p&gt;
&lt;blockquote&gt;
select 'CREATE USER ' ||  username || ' IDENTIFIED BY VALUES ''' || password || ''' DEFAULT TABLESPACE ' || default_tablespace || ' TEMPORARY TABLESPACE ' || temporary_tablespace || ' PROFILE ' || profile || ' ACCOUNT UNLOCK;'                                   
  from dba_users
 where username in (&amp;USERS);
&lt;p&gt;
select 'GRANT ' || granted_role || ' TO ' || grantee || decode(admin_option,'YES',' WITH ADMIN OPTION;',';')
  from dba_role_privs
 where grantee IN (&amp;USERS);
&lt;p&gt;
select 'GRANT ' || privilege || ' ON ' || owner || '.' || table_name || ' TO ' || grantee || decode(grantable,'YES',' WITH GRANT OPTION;',';')
  from dba_tab_privs
 where grantee IN (&amp;USERS);
&lt;p&gt;
select 'ALTER USER ' || username || ' QUOTA ' || decode(max_bytes,-1,'UNLIMITED ON ' || TABLESPACE_NAME || ';', max_bytes/1024 || 'K ON ' || TABLESPACE_NAME || ';')
  from dba_ts_quotas
 where username in (&amp;USERS);&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-5155699852524250733?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/5155699852524250733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=5155699852524250733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5155699852524250733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5155699852524250733'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/05/create-user-scripts.html' title='Create User Scripts'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8009571720797748184</id><published>2009-05-04T09:20:00.009+10:00</published><updated>2009-05-04T09:31:16.112+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>DAD Config - Note To Self</title><content type='html'>In Oracle 10, the modplsql Database Access Descriptors may be set in the following file:
&lt;p&gt;
&lt;blockquote&gt;$ORACLE_HOME/Apache/modplsql/conf/dads.conf
&lt;p&gt;
&amp;lt;Location &lt;font color=navy&gt;/pls/dad name&amp;gt;&lt;/font&gt;&lt;br&gt;
  SetHandler pls_handler&lt;br&gt;
  Order deny,allow&lt;br&gt;
  Allow from all&lt;br&gt;
  AllowOverride None&lt;br&gt;
  PlsqlDatabaseConnectString    &lt;font color=navy&gt;server:1521-port:dbname.server&lt;/font&gt; ServiceNameFormat&lt;br&gt;
  PlsqlAuthenticationMode       &lt;font color=navy&gt;Basic&lt;/font&gt;&lt;br&gt;
  PlsqlDefaultPage &lt;font color=navy&gt;homepage&lt;/font&gt;&lt;br&gt;
&amp;lt;/Location&amp;gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8009571720797748184?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8009571720797748184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8009571720797748184' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8009571720797748184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8009571720797748184'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/05/dad-config-note-to-self.html' title='DAD Config - Note To Self'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7474805271174366208</id><published>2009-05-01T09:44:00.003+10:00</published><updated>2009-05-07T12:19:36.974+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>Report Manager - Note to Self</title><content type='html'>Data source for Report Manager Administration page is PS_CDM_LIST_VW.
&lt;p&gt;
Data source for Report Manager List Page is PSRF_PGLET_VW.  This requires EIPs to be working.
&lt;p&gt;
Related: PSRF_REPORT_FOLDERS channel/queue.  PSRF_REPORT_xxxx messages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7474805271174366208?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7474805271174366208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7474805271174366208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7474805271174366208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7474805271174366208'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/05/report-manager-note-to-self.html' title='Report Manager - Note to Self'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2893754167877481023</id><published>2009-04-07T10:12:00.003+10:00</published><updated>2009-04-07T13:34:01.067+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft - Find Job Applicants</title><content type='html'>I have little exposure to the PeopleSoft Human Resources module, so I cannot be certain that this SQL would work globally.
&lt;p&gt;
Anyhow, to obtain information about job applicants, you could run SQL.
&lt;blockquote&gt;&lt;pre&gt;
select a.job_req_nbr
     , a.posting_title
     , c.first_name || ' ' || c.last_name   
     , a.position_nbr
  from ps_job_requisition a
     , ps_posn_appliedfor b
     , ps_names c
 where a.job_req_nbr = b.job_req_nbr
   and b.applid = c.emplid
   -- use one or more of the following conditions
   and posting_title like ?
   and c.last_name like ?
   and a.job_req_nbr= ?
   and a.position_nbr= ?
&lt;/blockquote&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2893754167877481023?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2893754167877481023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2893754167877481023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2893754167877481023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2893754167877481023'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/04/peoplesoft-find-job-applicants.html' title='PeopleSoft - Find Job Applicants'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8057291266045008591</id><published>2009-02-21T08:58:00.013+11:00</published><updated>2009-02-21T14:32:05.589+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Aquaria'/><title type='text'>Fish Pics</title><content type='html'>I've yet to learn the art of aquarium photography, but here goes nothing ....
&lt;p&gt;
Some of the fish I've got in together are technically incompatible and are a product of &lt;a href="http://nazimcricket.blogspot.com/2009/02/ups-and-downs-of-fish-keeping.html"&gt;circumstance&lt;/a&gt;.
&lt;p&gt;
&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ8rz2EBIuI/AAAAAAAAADQ/-lwywPRGSyY/s1600-h/fishy1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 226px;" src="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ8rz2EBIuI/AAAAAAAAADQ/-lwywPRGSyY/s320/fishy1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305007055751422690" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ8rz_B91EI/AAAAAAAAADI/dRwRDx4Zcp4/s1600-h/fishy2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 254px;" src="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ8rz_B91EI/AAAAAAAAADI/dRwRDx4Zcp4/s320/fishy2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305007058158736450" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ8rzo0QTLI/AAAAAAAAADA/Z18I7_ApcYU/s1600-h/fishy4.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 306px; height: 320px;" src="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ8rzo0QTLI/AAAAAAAAADA/Z18I7_ApcYU/s320/fishy4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305007052195646642" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ8rziLefSI/AAAAAAAAAC4/QjXu_nL9kqE/s1600-h/fishy3.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 277px;" src="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ8rziLefSI/AAAAAAAAAC4/QjXu_nL9kqE/s320/fishy3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305007050413997346" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://1.bp.blogspot.com/_5iMX0rrCk80/SZ9wgF6DueI/AAAAAAAAADo/HOfgisCPaRg/s1600-h/fishy7.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 253px;" src="http://1.bp.blogspot.com/_5iMX0rrCk80/SZ9wgF6DueI/AAAAAAAAADo/HOfgisCPaRg/s320/fishy7.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305082582709549538" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://1.bp.blogspot.com/_5iMX0rrCk80/SZ9wgJeneKI/AAAAAAAAADg/vJ3_EIumuUk/s1600-h/fishy6.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 212px;" src="http://1.bp.blogspot.com/_5iMX0rrCk80/SZ9wgJeneKI/AAAAAAAAADg/vJ3_EIumuUk/s320/fishy6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305082583668193442" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ9wgHK6FJI/AAAAAAAAADY/GqL5HiZn954/s1600-h/fishy5.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 237px;" src="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ9wgHK6FJI/AAAAAAAAADY/GqL5HiZn954/s320/fishy5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305082583048656018" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ91j4EPBSI/AAAAAAAAAEA/VgEF6DCr4ss/s1600-h/fishy10.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 290px; height: 320px;" src="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ91j4EPBSI/AAAAAAAAAEA/VgEF6DCr4ss/s320/fishy10.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305088145271751970" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ91jamrLdI/AAAAAAAAAD4/aWmWWF7oqZw/s1600-h/fishy9.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 248px;" src="http://2.bp.blogspot.com/_5iMX0rrCk80/SZ91jamrLdI/AAAAAAAAAD4/aWmWWF7oqZw/s320/fishy9.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305088137363140050" /&gt;&lt;/a&gt;
&lt;p&gt;
&lt;a href="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ91jFy-C_I/AAAAAAAAADw/41L8oPOGZIE/s1600-h/fishy8.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 152px;" src="http://4.bp.blogspot.com/_5iMX0rrCk80/SZ91jFy-C_I/AAAAAAAAADw/41L8oPOGZIE/s320/fishy8.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5305088131777563634" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8057291266045008591?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8057291266045008591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8057291266045008591' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8057291266045008591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8057291266045008591'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/02/fish-pics.html' title='Fish Pics'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_5iMX0rrCk80/SZ8rz2EBIuI/AAAAAAAAADQ/-lwywPRGSyY/s72-c/fishy1.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2982279051561723641</id><published>2009-02-08T10:00:00.005+11:00</published><updated>2009-02-21T08:57:49.199+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Aquaria'/><title type='text'>The Ups and Downs of Fish Keeping</title><content type='html'>I've kept tropical fish ever since I was a teenager.  I wasn't very good at it until a friend gave me a colony of Convict cichlids back in 1992.  He was using them as feeder fish for his Oscars.  With a whole colony of hardy convicts to look after, I was able to hone my skills and within a short period of time they were breeding like rabbits.  I ended up selling them a few years later when I moved to the US.
&lt;p&gt;
Upon my return to Oz, I decided to try my hand again at keeping fish.  I got myself a 4ft tank and started slowly.  However, no matter how hard I tried, I just couldn't get water chemistry and balance of it all sorted.  Fortunately a friend of mine with vastly more experience lent me a hand and got me over this hurdle.  In 2 short years, I once again had a vibrant tank full of breeding pairs of bristlenose catfish and a range of colourful cichlids.
&lt;p&gt;
Unfortunately, in 2005, during renovations to my home, we had a thunderstorm whilst a section of the roof was off.  This caused water to seep into the wiring and tripped the circuit, cutting off the air supply to my fishtank.  Overnight it wiped out my entire population of cichlids.  The bristlenose survived as they probably were able to swim to the surface and take a breath.
&lt;p&gt;
I decided to press on with the hobby and replenished with some maingano cichlids and also got myself a small ghost knife fish.  Another 3 years passed and by this time the mainganos were breeding as much as the bristlenose were and my pride and joy, the ghost knife fish had grown immensely.  I had the perfect setup when lightening struck again.  This time an appliance malfunctioned during the night and tripped the circuits.  By the morning all except the bristlenose and a handful of maingano fry (babies) died.
&lt;p&gt;
At this point it would have been easy to give up.  However, I decided to mull it over and whilst browsing at a local petshop, I came across 4 Tropheus Duboisis.  These fish, from Lake Tanganyika, are quite unlike the Lake Malawi cichlids and South American Cichlids I have been accustomed to.  They are supposedly quite difficult to look after; Finicky with diet (herbivores) and water conditions and tend to be quite expensive.  On the spur of the moment I decided to ask the petshop owner if he would trade the duboisis for a bunch of my bristlenose catfish and later on I even managed to get the details of the breeder he bought them from, so I could acquire some more.  They do better as a larger colony.
&lt;p&gt;
So I'm once again dusting myself off and getting on the saddle. I'll still miss the fantastic ghost knife fish I lost this year, but these marvellous new fish take some of the sting away. Maybe this time I'll invest in some battery powered air pumps or something!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2982279051561723641?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2982279051561723641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2982279051561723641' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2982279051561723641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2982279051561723641'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/02/ups-and-downs-of-fish-keeping.html' title='The Ups and Downs of Fish Keeping'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2533029884242044315</id><published>2009-01-01T11:29:00.002+11:00</published><updated>2009-01-01T11:30:20.000+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Latest Cricket Stamp News</title><content type='html'>&lt;a href="http://www.stampnews.com/stamps/stamps_2008/stamp_1228914658_522881.html"  target="new"&gt;StampNews.com : M.C.C. and Cricket Association of Bengal put a joint stamp on history&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2533029884242044315?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2533029884242044315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2533029884242044315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2533029884242044315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2533029884242044315'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2009/01/latest-cricket-stamp-news.html' title='Latest Cricket Stamp News'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-2512499008114679782</id><published>2008-12-31T13:24:00.005+11:00</published><updated>2008-12-31T15:42:47.156+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Excellent Find</title><content type='html'>I recently visited a large second-hand bookstore in Sydney.  On my previous visit there, after hours of searching, I came across one cricket book which was signed by Mike Atherton.  Hoping to repeat the experience, I walked in and wouldn't you know it, the first book I picked up turned out to be signed by &lt;a href="http://www.nazimcricket.com/players.php?p_link2=lillee" target="new"&gt;Dennis Lillee&lt;/a&gt; and priced at a meagre $10.  
&lt;p&gt;
Encouraged by my success, I went through a few more and within minutes found a real gem.  A book signed by &lt;a href="http://www.nazimcricket.com/players.php?p_link2=sobers" target="new"&gt;Garry Sobers&lt;/a&gt;, personalised to some guy but priced at only $15, it was an awesome find.
&lt;p&gt;
I did find one other book, signed by Kerry O'Keefe, but I decided to leave it as it was in average condition and on the other side of the signed page was a long and rather intimate note from the previous owner's girlfriend.  Felt a bit creepy to buy something so personal.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-2512499008114679782?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/2512499008114679782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=2512499008114679782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2512499008114679782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/2512499008114679782'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/12/excellent-find.html' title='Excellent Find'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-262209692659272844</id><published>2008-12-12T09:08:00.005+11:00</published><updated>2008-12-12T09:42:01.527+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Bradman Museum</title><content type='html'>Last week I had an opportunity to visit the Bradman Museum in Bowral.
&lt;p&gt;
The experience was not as fulfilling as I had hoped.  The museum is quite small, as is the attached oval and the displays whilst nice are not particularly special.  A number of items are quite commonly available modern pieces, which was especially disappointing.
&lt;p&gt;
To top things off, no photography is allowed in the museum, so what little there was to see could not be captured for future enjoyment.
&lt;p&gt;
Another issue to bear in mind is that if you happen to be travelling with family or friends who aren't interested in cricket, I'm afraid they will find little to captivate their attention in town, whilst you're in the museum.
&lt;p&gt;
To compare notes I'll need to revisit Bradman's birthplace in Cootamundra, but from memory, whilst the museum setup there is not as elegant as Bowral's, the pieces of memorabilia are certainly more fascinating.
&lt;p&gt;
&lt;a href="http://www.nazimcricket.com/bradmanmuseum.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 430px;" src="http://www.nazimcricket.com/bradmanmuseum.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-262209692659272844?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/262209692659272844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=262209692659272844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/262209692659272844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/262209692659272844'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/12/bradman-museum.html' title='Bradman Museum'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7722653740005550002</id><published>2008-11-28T15:21:00.004+11:00</published><updated>2008-11-28T15:36:19.462+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft - Find Menu Path</title><content type='html'>PDF document containing a handy mod-pl/sql based stored procedure to find the PeopleSoft Menu Path, using a Page, Process or Component as the search criteria.
&lt;blockquote&gt;
&lt;a href="http://www.nazimcricket.com/path.pdf"&gt;path.pdf&lt;/a&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7722653740005550002?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7722653740005550002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7722653740005550002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7722653740005550002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7722653740005550002'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/11/peoplesoft-find-menu-path_28.html' title='PeopleSoft - Find Menu Path'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-48415717896760833</id><published>2008-11-21T16:38:00.005+11:00</published><updated>2008-11-22T10:27:54.473+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleTools - Running Multiple Installs</title><content type='html'>Running multiple versions of PeopleTools from the same PC can sometimes be problematic.  This is caused by the fact that each version's Configuration Manager writes to the exact same Registry Entry on the computer, namely "ConnectId" and "ConnectPswd".
&lt;p&gt;
For installs where the "people" credentials are the same across different PeopleTools installs, this of course is not a problem.  The only thing is that the last Configuration Manager invoked has it's settings written to the Registry, which can be a little annoying.
&lt;p&gt;
To get around this, it's important to set the desired ConnectId and ConnectPswd prior to invoking PeopleTools. Obviously this would be tedious for users to do manually, as they would have to start up Configuration Manager and type in the correct credentials for the version of PeopleTools they wish to run. It would also, of course be a significant security risk if they knew the &lt;i&gt;people password&lt;/i&gt;.
&lt;p&gt;
Therefore, I have created a batch file which I have placed in each PeopleTools version's bin directory. When invoked it calls the Configuration Manager, imports the configuration file containing the correct (encrypted) &lt;i&gt;people&lt;/i&gt; credentials for that version, i.e. sets the Registry entries, and then invokes the Application Designer executable.
&lt;p&gt;
So instead of users double-clicking the Application Designer executable, I get them to run my batch file instead.
&lt;blockquote&gt;&lt;pre&gt;
rem invoke Configuration Manager and Import Configuration Settings File
pscfg -import:c:\path\file.cfg -quiet

rem invoke Application Designer
pside&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-48415717896760833?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/48415717896760833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=48415717896760833' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/48415717896760833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/48415717896760833'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/11/peopletools-multiple-installs.html' title='PeopleTools - Running Multiple Installs'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7981798468947892432</id><published>2008-11-20T17:35:00.001+11:00</published><updated>2008-11-20T17:37:45.723+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle OEM Mining</title><content type='html'>It can be quite useful to mine the tables stored in the Oracle Enterprise Manager repository.
&lt;p&gt;
To check the size of your databases in gigabytes, simply run:
&lt;blockquote&gt;&lt;pre&gt;
select target_name
     , to_char (sum (file_size) / 1024 / 1024 / 1024, '999,999.99') sze
  from mgmt$db_datafiles_all
group by target_name
order by 2 desc;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7981798468947892432?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7981798468947892432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7981798468947892432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7981798468947892432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7981798468947892432'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/11/oracle-oem-mining.html' title='Oracle OEM Mining'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3133395590646605593</id><published>2008-11-14T14:34:00.002+11:00</published><updated>2008-11-14T14:38:58.285+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle - Toad vs OEM: Statistics</title><content type='html'>Something I've learnt (the hard way) is that statistics generation using Toad is inferior to Oracle Enterprise Manager.  Main reason is that Toad tends to lean towards using the analyze command rather than the dbms_gather.statistics package.  For my money, the following method seems to be the panacea of all table statistics issues:
&lt;blockquote&gt;&lt;pre&gt;
dbms_stats.gather_table_stats( 
ownname=&gt; 'OWNERNAME', 
tabname=&gt; 'TABLENAME' , 
estimate_percent=&gt; DBMS_STATS.AUTO_SAMPLE_SIZE, 
cascade=&gt; TRUE);
&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3133395590646605593?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3133395590646605593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3133395590646605593' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3133395590646605593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3133395590646605593'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/11/oracle-toad-vs-oem-statistics.html' title='Oracle - Toad vs OEM: Statistics'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-363399257302123653</id><published>2008-11-06T14:48:00.006+11:00</published><updated>2010-02-22T16:53:29.584+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle Table and Index Sizes</title><content type='html'>A useful query to check your large tables and indexes. &lt;p&gt;In this case, I'm checking those with a combined size of 1gb. &lt;blockquote&gt;&lt;pre&gt;select y.table_name
     , x.tbl_size
     , y.idx_size
     , (tbl_size + idx_size) ttl_mb
  from (select segment_name
             , sum (bytes / 1024) / 1024 tbl_size
             , segment_type
          from dba_segments
         where segment_type in ('TABLE') 
           and owner = '&lt;font color=green&gt;{OWNER}&lt;/font&gt;'
        group by segment_name, segment_type) x
     , (select table_name
             , sum (bytes / 1024) / 1024 idx_size
             , segment_type
          from dba_segments a
             , dba_indexes b
         where a.segment_type in ('INDEX')
           and a.owner = '&lt;font color=green&gt;{OWNER}&lt;/font&gt;'
           and a.tablespace_name = b.tablespace_name
           and a.segment_name = b.index_name
          group by segment_type, table_name) y
 where x.segment_name = y.table_name 
   and (tbl_size + idx_size) &gt; &lt;font color=green&gt;{1000}&lt;/font&gt;
order by tbl_size + idx_size desc;&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;Another method, applicable to &lt;b&gt;auto segment space managed segments&lt;/b&gt; is to use the dbms_space package in lieu of going through dba_segments.  In this case, however, I do use dba_segments as a join in order to get a count of the extents.&lt;br /&gt;
&lt;p&gt;Unfortunately this method provided some inaccurate results in a locally managed environment.&lt;br /&gt;
&lt;blockquote&gt;set serveroutput on&lt;br /&gt;
&lt;br /&gt;
DECLARE&lt;br /&gt;
&lt;br /&gt;
su   NUMBER;&lt;br /&gt;
sa   NUMBER;&lt;br /&gt;
cp   NUMBER;&lt;br /&gt;
v_kount  NUMBER;&lt;br /&gt;
v_stmt   VARCHAR2(1000);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cursor tbl_space is&lt;br /&gt;
select a.table_name&lt;br /&gt;
, a.tablespace_name&lt;br /&gt;
, a.owner&lt;br /&gt;
, sum(b.extents) num_extents&lt;br /&gt;
from dba_tables a&lt;br /&gt;
, dba_segments b&lt;br /&gt;
where a.table_name = b.segment_name&lt;br /&gt;
and a.owner = b.owner&lt;br /&gt;
and a.owner in ('{OWNER}')&lt;br /&gt;
group by a.table_name, a.tablespace_name, a.owner;&lt;br /&gt;
&lt;br /&gt;
cursor idx_space is&lt;br /&gt;
select a.index_name&lt;br /&gt;
, a.tablespace_name&lt;br /&gt;
, a.owner&lt;br /&gt;
, sum(b.extents) num_extents&lt;br /&gt;
from dba_indexes a&lt;br /&gt;
, dba_segments b&lt;br /&gt;
where a.index_name = b.segment_name&lt;br /&gt;
and a.owner = b.owner&lt;br /&gt;
and a.owner in ('{OWNER}')&lt;br /&gt;
group by a.index_name, a.tablespace_name, a.owner;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BEGIN&lt;br /&gt;
&lt;br /&gt;
dbms_output.enable(1000000);&lt;br /&gt;
&lt;br /&gt;
dbms_output.put_line('DT_COLLECTED' || ',' || 'OWNER' || ',' || 'OBJECT_NAME' || ',' || 'OBJECT_TYPE' || ',' || 'OBJECT_TBSPC' || ',' || 'ALLOCATED_MB' || ',' || 'USED_MB' || ',' || 'PERCENT_USED' || ',' || 'NUM_EXTENTS' || ',' || 'ROW_COUNT');&lt;br /&gt;
&lt;br /&gt;
for i in tbl_space loop&lt;br /&gt;
&lt;br /&gt;
v_stmt := 'select count(*) from ' || i.owner || '.' || i.table_name;&lt;br /&gt;
&lt;br /&gt;
execute immediate v_stmt into v_kount;&lt;br /&gt;
&lt;br /&gt;
dbms_space.object_space_usage(i.owner, i.table_name, 'TABLE', NULL, su, sa, cp);&lt;br /&gt;
&lt;br /&gt;
dbms_output.put_line(sysdate || ',' || i.owner || ',' || i.table_name|| ',' || 'TABLE'|| ',' || i.tablespace_name || ',' || TO_CHAR(sa/1024/1024,'999999.99')|| ',' || TO_CHAR(su/1024/1024,'999999.99')|| ',' || to_char((su / sa)*100,'99.99') || '%'|| ',' || i.num_extents|| ',' || v_kount);  &lt;br /&gt;
&lt;br /&gt;
end loop;&lt;br /&gt;
&lt;br /&gt;
for i in idx_space loop&lt;br /&gt;
&lt;br /&gt;
dbms_space.object_space_usage(i.owner, i.index_name, 'INDEX', NULL, su, sa, cp);&lt;br /&gt;
&lt;br /&gt;
dbms_output.put_line(sysdate || ',' || i.owner || ',' || i.index_name || ',' || 'INDEX' || ',' || i.tablespace_name || ',' || TO_CHAR(sa/1024/1024,'999999.99') || ',' || TO_CHAR(su/1024/1024,'999999.99') || ',' || to_char((su / sa)*100,'99.99') || '%' || ',' || i.num_extents || ',' || 0);&lt;br /&gt;
&lt;br /&gt;
end loop;&lt;br /&gt;
&lt;br /&gt;
END;&lt;br /&gt;
/&lt;br /&gt;
&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-363399257302123653?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/363399257302123653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=363399257302123653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/363399257302123653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/363399257302123653'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/11/oracle-table-and-index-sizes.html' title='Oracle Table and Index Sizes'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4970738492716657945</id><published>2008-11-01T00:02:00.015+11:00</published><updated>2008-11-03T16:27:48.981+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL/PHP'/><title type='text'>Random Image Generator</title><content type='html'>On my &lt;a href=http://www.nazimcricket.com target=new&gt;website&lt;/a&gt; I have been using a third party PHP random image generator which scrolls through my &lt;font color=navy&gt;/images&lt;/font&gt; folder and displays a random image.  
&lt;p&gt;
This has been working fine except that my images are stored in multiple folders and as a result I've been missing out on displaying quite a few of these.  Also, I don't have any control in terms of turning the random image returned into a hyperlink to the page containing it etc.
&lt;p&gt;
To solve this problem, I decided I would use the power of SQL to return a random image, rather than use PHP.
&lt;p&gt;
Basically, I have a number of tables in my database, all of which contain a couple of common fields:&lt;br&gt;
&lt;li&gt;IMAGE - Stores the directory and name of the Image.
&lt;li&gt;URL - Stores the URL of the page on which the image appears.
&lt;p&gt;
I achieved what I was after in a couple of very simple steps:
&lt;p&gt;
Created a View to bring all the IMAGE and URL information into one place:
&lt;blockquote&gt;&lt;pre&gt;
CREATE OR REPLACE VIEW IMAGE_VW (IMAGE, URL) AS 
SELECT IMAGE, URL FROM TABLEA
UNION
SELECT IMAGE, URL FROM TABLEB;&lt;/pre&gt;&lt;/blockquote&gt;
Implemented the following SQL and PHP code:&lt;br&gt;
&lt;blockquote&gt;&lt;pre&gt;&amp;lt;?php

$queryx  = "SELECT IMAGE, URL FROM IMAGES_VW ORDER BY RAND() LIMIT 1";
$resultx = mysql_query($queryx);

while($row = mysql_fetch_row($resultx))
{
    $IMAGE = $row[0];
    $URL = $row[1];
 
    echo "&amp;lt;a href=$URL&amp;gt;&amp;lt;img src=$IMAGE&amp;gt;&amp;lt;/a&amp;gt;";

}

?&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4970738492716657945?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4970738492716657945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4970738492716657945' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4970738492716657945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4970738492716657945'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/11/random-image-generator.html' title='Random Image Generator'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-9124688544769926178</id><published>2008-10-26T18:43:00.004+11:00</published><updated>2008-10-26T18:59:06.035+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Geoff Lawson Sacking</title><content type='html'>The sacking of Geoff Lawson by the Pakistan Cricket Board has left me fuming.  When Lawson was selected over Dav Whatmore, I was amazed to say the least.  He just didn't seem to be the right choice and nothing Lawson has done to-date has changed my opinion on that.
&lt;p&gt;
However, the manner in which he has been sacked is reprehensible.  First the new PCB Chairman Ijaz Butt announces in a press conference that Lawson is useless.  He then goes on to say that whilst he isn't impressed by Lawson, he will support him for the remainder of his contract (August 2009) and then out of the blue he sacks the man.
&lt;p&gt;
According to reports, Lawson met with Butt-head, agreed to a follow up meeting and then heard about his sacking from the media.  When he attempted to contact the Chairman to clarify his position, he was stone-walled.
&lt;p&gt;
In justification of their unprofessional behaviour, statements such as these have been made:
&lt;blockquote&gt;"Lawson had not even attempted to meet the chairman even once since he took over,” said the official. “We felt it reflected poorly on his attitude that he didn’t want to meet the chairman and explain what he wanted and where he wanted the team to go.” 
&lt;p&gt;
When told that Lawson was upset that the chairman had not made any effort to meet him, the official asked simply: “Why should it be that way round? He is the chairman. The coach should seek him out.”&lt;/blockquote&gt;

This high and mighty Chairman had no problem "summoning" several people to his office, including the current captain, yet he did not have the common decency to extend the same courtesy to the coach?  What a load of garbage.
&lt;p&gt;
The Pakistan Cricket Board and it's new officials are an absolute disgrace and I for one fervently hope that Lawson is able to sue the pants off them (not that it would matter to these egotistical jerks).
&lt;p&gt;
Phew .... I did say I was fuming, didn't I? :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-9124688544769926178?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/9124688544769926178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=9124688544769926178' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9124688544769926178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/9124688544769926178'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/10/geoff-lawson-sacking.html' title='Geoff Lawson Sacking'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3215297800789756910</id><published>2008-10-18T09:40:00.003+11:00</published><updated>2008-10-18T09:57:24.898+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>How Times Have Changed</title><content type='html'>Cricket civilises people and creates good gentlemen.  I want everyone to play cricket in Zimbabwe; I want ours to be a nation of gentlemen.  &lt;i&gt;Robert Mugabe&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3215297800789756910?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3215297800789756910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3215297800789756910' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3215297800789756910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3215297800789756910'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/10/how-times-have-changed.html' title='How Times Have Changed'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6520431601255614099</id><published>2008-10-17T14:18:00.016+11:00</published><updated>2008-10-21T10:59:00.348+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft Shutdown Process Scheduler</title><content type='html'>Had a very specific task today, which I thought would be good to document for future reference.  Others may also find some parts of it useful.
&lt;p&gt;
&lt;font color=navy&gt;&lt;b&gt;Background:&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
We have a PeopleSoft Reporting database (PeopleTools Version 8.43.16) which suffers constantly from rogue nvision and excel processes hanging around on the Windows process schedulers for days on end.
&lt;p&gt;
The database is refreshed nightly from our Production environment and any reports running at the time of refresh need to be cleared out.  Simply shutting down the Windows process scheduler is not always sufficient to address the issue, as Excel spreadsheets in particular may be left hanging around.
&lt;p&gt;
The other side-effect is inspite the process scheduler being shutdown, some reports get left with a status of "Processing" on the process monitor.  These can later on impede other jobs in the queue.
&lt;p&gt;
&lt;font color=navy&gt;&lt;b&gt;3rd Party Utilities:&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
Implemented my solution with the aid of the following utilities:&lt;br&gt;
&lt;li&gt;SCHEDULED TASK MANAGER from Microsoft.
&lt;li&gt;SQLPLUS from Oracle.
&lt;li&gt;PSADMIN from PeopleSoft.
&lt;li&gt;PSKILL from SysInternals.
&lt;li&gt;BAT2EXE Shareware.
&lt;p&gt;
&lt;font color=navy&gt;&lt;b&gt;Implemented Solution - Summary:&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
Created a batchfile which:
&lt;li&gt;Executes a sqlplus script. This script parses the specified windows process scheduler server name and updates the process monitor tables, placing all reports which have a status of "Initiated" or "Processing" to a status of "Cancelled".  Results of this are written to a logfile.
&lt;li&gt;Invokes psadmin to shutdown the process scheduler.  
&lt;li&gt;Uses pskill to eliminate any Excel or Nvision processes.
&lt;li&gt;Invokes psadmin to start up the process scheduler.
&lt;li&gt;Invokes psadmin to verify the status of the process scheduler and writes this to a logfile.
&lt;p&gt;
To Finish Off:
&lt;li&gt;Converted the batchfile to an executable using BAT2EXE. This was done to mask the credentials used in the call to the sqlplus script.
&lt;li&gt;Created a Scheduled Task to run the executable nightly with the windows process scheduler server name used as a variable.  This allows me the flexibility of rolling the script out to various windows process scheduler servers.
&lt;p&gt;
&lt;font color=navy&gt;&lt;b&gt;Implemented Solution - Syntax:&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
The batchfile contains the following lines of code:
&lt;blockquote&gt;&lt;pre&gt;sqlplus username/password@DATABASE @sqlscript.sql %1% &gt; logfile.log
psadmin -p stop -d DATABASE
pskill EXCEL.exe
pskill psnvs.exe
psadmin -p start -d DATABASE
psadmin -p status -d DATABASE &gt; logfile2.log&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
The sqlplus script contains the following lines of code:
&lt;blockquote&gt;&lt;pre&gt;def server=&amp;1
update psprcsrqst set runstatus=8 where runstatus in (6,7) and servernamerun='&amp;1';
update psprcsque set runstatus=8 where runstatus in (6,7) and servernamerun='&amp;&amp;1';
commit;
exit;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
The scheduled task manager calls the executable as follows:
&lt;blockquote&gt;&lt;pre&gt;{path}\executablename servername_variable&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6520431601255614099?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6520431601255614099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6520431601255614099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6520431601255614099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6520431601255614099'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/10/peoplesoft-shutdown-process-scheduler.html' title='PeopleSoft Shutdown Process Scheduler'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8113489565875088070</id><published>2008-10-02T11:32:00.003+10:00</published><updated>2008-10-21T10:14:51.725+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle sqlplus'/><title type='text'>SQLPLUS Ignore Ampersands</title><content type='html'>In SQLPLUS when an ampersand (&amp;) is encountered, Oracle treats it as a value prompt.

For example, if you try to execute the following statement:
INSERT INTO DEPARTMENT (DEPARTMENT_NAME) VALUES ('Finance &amp; Treasury');

SQLPLUS will return a prompt:
Enter value for treasury:

To have SQLPLUS ignore the ampersand, use the following command prior to executing your query:

&lt;blockquote&gt;&lt;pre&gt;SET DEFINE OFF
INSERT INTO DEPARTMENT (DEPARTMENT_NAME) VALUES ('Finance &amp; Treasury');&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8113489565875088070?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8113489565875088070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8113489565875088070' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8113489565875088070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8113489565875088070'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/10/sqlplus-ignore-ampersands.html' title='SQLPLUS Ignore Ampersands'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-6223463045316666070</id><published>2008-10-01T16:06:00.004+10:00</published><updated>2008-10-21T10:15:35.688+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Lookup SQL Error on Unix</title><content type='html'>command is:

&lt;blockquote&gt;oerr ORA 99999&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-6223463045316666070?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/6223463045316666070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=6223463045316666070' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6223463045316666070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/6223463045316666070'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/10/lookup-sql-error-on-unix.html' title='Lookup SQL Error on Unix'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7385109499664719837</id><published>2008-10-01T10:27:00.009+10:00</published><updated>2008-10-21T11:07:51.887+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft Monitor Message</title><content type='html'>These queries replicate the Monitor Message Page.
&lt;p&gt;
&lt;font color=navy&gt;&lt;b&gt;Message Instance&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
&lt;blockquote&gt;&lt;pre&gt;
SELECT A.CHNLNAME AS "Channel Name"
     , SUM(C.APMSG_XTB_0) AS "Error"
     , SUM(C.APMSG_XTB_1) AS "New"
     , SUM(C.APMSG_XTB_2) AS "Started"
     , SUM(C.APMSG_XTB_3) AS "Working"
     , SUM(C.APMSG_XTB_4) AS "Done"
     , SUM(C.APMSG_XTB_5) AS "Retry"
     , SUM(C.APMSG_XTB_6) AS "Timeout"
     , SUM(C.APMSG_XTB_7) AS "Edited"
     , SUM(C.APMSG_XTB_8) AS "Canceled"
  FROM PSAPMSGPUBHDR A
     , PSAPMSGXTB C
WHERE A.PUBSTATUS = C.APMSG_XTB_STAT
GROUP BY A.CHNLNAME
ORDER BY A.CHNLNAME;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
&lt;font color=navy&gt;&lt;b&gt;Publication Contract&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
&lt;blockquote&gt;&lt;pre&gt;SELECT A.CHNLNAME AS "Channel Name"
     , SUM(C.APMSG_XTB_0) AS "Error"
     , SUM(C.APMSG_XTB_1) AS "New"
     , SUM(C.APMSG_XTB_2) AS "Started"
     , SUM(C.APMSG_XTB_3) AS "Working"
     , SUM(C.APMSG_XTB_4) AS "Done"
     , SUM(C.APMSG_XTB_5) AS "Retry"
     , SUM(C.APMSG_XTB_6) AS "Timeout"
     , SUM(C.APMSG_XTB_7) AS "Edited"
     , SUM(C.APMSG_XTB_8) AS "Cancelled"
  FROM PSAPMSGPUBCON A
     , PSAPMSGPUBHDR B
     , PSAPMSGXTB C
 WHERE A.PUBID = B.PUBID
   AND A.PUBNODE = B.PUBNODE
   AND A.CHNLNAME = B.CHNLNAME
   AND A.PUBCONSTATUS = C.APMSG_XTB_STAT
GROUP BY A.CHNLNAME
ORDER BY A.CHNLNAME;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
&lt;font color=navy&gt;&lt;b&gt;Subscription Contract&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
&lt;blockquote&gt;&lt;pre&gt;SELECT A.CHNLNAME AS "Channel Name"
     , SUM(C.APMSG_XTB_0) AS "Error"
     , SUM(C.APMSG_XTB_1) AS "New"
     , SUM(C.APMSG_XTB_2) AS "Started"
     , SUM(C.APMSG_XTB_3) AS "Working"
     , SUM(C.APMSG_XTB_4) AS "Done"
     , SUM(C.APMSG_XTB_5) AS "Retry"
     , SUM(C.APMSG_XTB_6) AS "Timeout"
     , SUM(C.APMSG_XTB_7) AS "Edited"
     , SUM(C.APMSG_XTB_8) AS "Canceled"
  FROM PSAPMSGSUBCON A
     , PSAPMSGPUBHDR B
     , PSAPMSGXTB C
 WHERE A.PUBID = B.PUBID
   AND A.PUBNODE = B.PUBNODE
   AND A.CHNLNAME = B.CHNLNAME
   AND A.SUBCONSTATUS = C.APMSG_XTB_STAT
GROUP BY A.CHNLNAME
ORDER BY A.CHNLNAME;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
&lt;font color=navy&gt;Note: You could use the field LASTUPDDTTM to filter by "Days"&lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7385109499664719837?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7385109499664719837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7385109499664719837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7385109499664719837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7385109499664719837'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/10/peoplesoft-monitor-message.html' title='PeopleSoft Monitor Message'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8673877605150704033</id><published>2008-09-20T20:27:00.004+10:00</published><updated>2008-10-21T10:22:24.562+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Windows Services</title><content type='html'>Reference I find useful, as some servers at my workplace have hidden Control Panel options.  To invoke Control Panel &gt; Administrative Tools &gt; Services, run:

&lt;blockquote&gt;c:\windows\system32\services.msc&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8673877605150704033?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8673877605150704033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8673877605150704033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8673877605150704033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8673877605150704033'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/09/windows-services.html' title='Windows Services'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8984947751330245257</id><published>2008-09-17T10:10:00.032+10:00</published><updated>2008-10-21T11:12:53.356+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle sqlplus'/><title type='text'>UNION [ALL], INTERSECT, MINUS Operators</title><content type='html'>The UNION operator is useful when you want to draw information from two or more tables that all have the same structure.  
&lt;p&gt;
Take for example two tables AUSTRALIA_CRICKET containing a few players from the Australian Cricket Team and KOLKATA_CRICKET containing a few players from the IPL Kolkata Cricket Team.
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM AUSTRALIA_CRICKET;

FIRST_NAME           LAST_NAME
-------------------- --------------------
Ricky                Ponting
Michael              Clarke
Stuart               Clark
Brad                 Haddin
Brett                Lee

5 rows selected.
&lt;p&gt;
SQL&gt; SELECT * FROM KOLKATA_CRICKET;

FIRST_NAME           LAST_NAME
-------------------- --------------------
Sourav               Ganguly
Shoaib               Akhtar
Ricky                Ponting
Brendon              McCullum
Chris                Gayle

5 rows selected.&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
You can see from the results that Ricky Ponting is a player common to both tables.
&lt;p&gt;
To return data from both these tables, you could write:
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM AUSTRALIA_CRICKET
  2  UNION
  3  SELECT * FROM KOLKATA_CRICKET;

FIRST_NAME                     LAST_NAME
------------------------------ -----------------------
Brad                           Haddin
Brendon                        McCullum
Brett                          Lee
Chris                          Gayle
Michael                        Clarke
Ricky                          Ponting
Shoaib                         Akhtar
Sourav                         Ganguly
Stuart                         Clark

9 rows selected.&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
You'll note Ricky Ponting was returned only once using the UNION syntax.  
&lt;p&gt;
This is what happens if you change the UNION to UNION ALL:
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM AUSTRALIA_CRICKET
  2  UNION ALL
  3  SELECT * FROM KOLKATA_CRICKET;

FIRST_NAME           LAST_NAME
-------------------- --------------------
Ricky                Ponting
Michael              Clarke
Stuart               Clark
Brad                 Haddin
Brett                Lee
Sourav               Ganguly
Shoaib               Akhtar
Ricky                Ponting
Brendon              McCullum
Chris                Gayle

10 rows selected.&lt;/pre&gt;&lt;/blockquote&gt;

This time Ricky Ponting appears twice.  Once for each table.
&lt;p&gt;
If you want only rows that appear in all tables, you would use the INTERSECT operation:
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM AUSTRALIA_CRICKET
  2  INTERSECT
  3  SELECT * FROM KOLKATA_CRICKET;

FIRST_NAME           LAST_NAME
-------------------- --------------------
Ricky                Ponting

1 row selected.&lt;/pre&gt;&lt;/blockquote&gt;

To round things off, if you wish to return data from the first table only, excluding data common between the two tables, you would use the MINUS operation:
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM AUSTRALIA_CRICKET
  2  MINUS
  3  SELECT * FROM KOLKATA_CRICKET;

FIRST_NAME           LAST_NAME
-------------------- --------------------
Brad                 Haddin
Brett                Lee
Michael              Clarke
Stuart               Clark

4 rows selected.&lt;/pre&gt;&lt;/blockquote&gt;

Or ... in Reverse:
&lt;blockquote&gt;&lt;pre&gt;
SQL&gt; SELECT * FROM KOLKATA_CRICKET
  2  MINUS
  3  SELECT * FROM AUSTRALIA_CRICKET;

FIRST_NAME           LAST_NAME
-------------------- --------------------
Brendon              McCullum
Chris                Gayle
Shoaib               Akhtar
Sourav               Ganguly

4 rows selected.&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8984947751330245257?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8984947751330245257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8984947751330245257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8984947751330245257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8984947751330245257'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/09/union-all-intersect-minus-operators.html' title='UNION [ALL], INTERSECT, MINUS Operators'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-8547525414592594356</id><published>2008-09-16T11:21:00.013+10:00</published><updated>2008-10-21T11:14:20.524+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PeopleSoft'/><title type='text'>PeopleSoft Scheduled Jobsets</title><content type='html'>A useful query to lookup "Active" scheduled jobsets.
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;select SCHEDULENAME
     , JOBNAMESRC
     , TO_CHAR(STARTDATETIME,'HH24:MI') TM
     , A.RECURNAME
     , RUNMONDAY
     , RUNTUESDAY
     , RUNWEDNESDAY
     , RUNTHURSDAY
     , RUNFRIDAY
     , RUNSATURDAY
     , RUNSUNDAY
  from ps_schdldefn a
     , psxlatitem b
     , ps_prcsrecur c
 where a.schedulestatus=b.fieldvalue
   and a.recurname = c.recurname
   and b.fieldname='SCHEDULESTATUS'
   and b.xlatshortname='Active'
order by TM;&lt;/pre&gt;&lt;/blockquote&gt;

The numeric values in the RUN{DAY} columns indicates what days of the week the jobs are scheduled to run.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-8547525414592594356?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/8547525414592594356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=8547525414592594356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8547525414592594356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/8547525414592594356'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/09/peoplesoft-scheduled-jobsets.html' title='PeopleSoft Scheduled Jobsets'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4312805159706724252</id><published>2008-09-09T14:56:00.026+10:00</published><updated>2008-10-21T11:20:18.944+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle DBA'/><title type='text'>Oracle Process Details</title><content type='html'>A useful query to check database processes:
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
select s.sid
     , p.pid
     , p.spid
     , s.process
     , s.status
     , s.username
     , s.osuser
     , s.program
     , a.name
     , s.client_info
     , s.module
     , to_char(s.logon_time,'yyyy-mm-dd hh24:mi:ss')
     , to_char(sysdate - (s.last_call_et /86400),'yyyy-mm-dd hh24:mi:ss')
  from v$session s
     , v$process p
     , audit_actions a
 where s.paddr = p.addr
   and s.command = a.action
 order by s.status;&lt;/pre&gt;&lt;/blockquote&gt;
 
&lt;font color=navy&gt;Field Key&lt;/font&gt;
&lt;li&gt;Oracle Session ID
&lt;li&gt;Oracle Process ID
&lt;li&gt;OS Process ID
&lt;li&gt;OS Client Process ID
&lt;li&gt;Status of Session
&lt;li&gt;Oracle Username
&lt;li&gt;OS Username
&lt;li&gt;OS Program Name
&lt;li&gt;Command in Progress
&lt;li&gt;Client Info from DBMS_APPLICATION_INFO.SET_CLIENT_INFO proc
&lt;li&gt;Module Info from DBMS_APPLICATION_INFO.SET_MODULE proc
&lt;li&gt;Time of Logon
&lt;li&gt;Last Call&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4312805159706724252?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4312805159706724252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4312805159706724252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4312805159706724252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4312805159706724252'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/09/oracle-process-details.html' title='Oracle Process Details'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3566858403080397812</id><published>2008-09-08T15:30:00.009+10:00</published><updated>2008-10-21T11:21:26.744+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSM'/><title type='text'>Accessing TSM through java client on UNIX</title><content type='html'>Thanks to a tip from my mate Ken W. 
&lt;p&gt;
Invoke TSM Java client on AIX 5.2:

&lt;li&gt; Start up a x-terminal program such as x-win
&lt;li&gt; Set the display using syntax &lt;font color=#660000&gt;export DISPLAY={ipaddress}:0.0&lt;/font&gt;
&lt;li&gt; Set Java Path e.g. &lt;font color=#660000&gt;export PATH=$PATH:/{java directory path}&lt;/font&gt;
&lt;li&gt; Start TSM &lt;font color=#660000&gt;dsmj&lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3566858403080397812?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3566858403080397812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3566858403080397812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3566858403080397812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3566858403080397812'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/09/accessing-tsm-through-java-client-on.html' title='Accessing TSM through java client on UNIX'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3617687774623260040</id><published>2008-08-22T15:56:00.018+10:00</published><updated>2011-03-29T09:17:03.199+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Apex'/><title type='text'>Oracle Apex Installation</title><content type='html'>Steps for Installation of Application Express using Oracle 10g Express Edition Database and Apex 3.1.1 on Windows XP - SP2. &lt;br /&gt;
&lt;b&gt;&lt;span style="color: navy;"&gt;Pre-requisites ....&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Download Oracle 10g Express Database for Windows (OracleXE.exe) from Oracle's website.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Download Oracle Application Express for Windows (apex_3.1.1.zip) from Oracle's website. &lt;b&gt;&lt;span style="color: navy;"&gt;Install the Database ....&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Install the Oracle Database by double clicking on the OracleXE.exe.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Accept the License Agreement.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Define the Installation Directory. The default is &lt;b&gt;c:\oraclexe&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Set a System password. In my case I've used &lt;b&gt;oracle&lt;/b&gt; as the password.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Review the summary information. The destination folder is c:\oraclexe, port for the database listener is 1521 and port for the http listener is 8080. Click to continue the installation process.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Click Finish at the end of the installation process. &lt;b&gt;&lt;span style="color: navy;"&gt;Configure a Database user for installation and administration of Apex. This user will require sysdba privileges ....&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Go to the database Home Page &lt;b&gt;All Programs &amp;gt; Oracle Database 10g Express Edition - Go to Database Homepage&lt;/b&gt; (Note: This is started up if the option is checked at the end of the database installation).&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;At the database login page enter Username as &lt;b&gt;sys&lt;/b&gt; and password as set earlier &lt;b&gt;oracle&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;After successful login, select the &lt;b&gt;Administration&lt;/b&gt; link, then select the &lt;b&gt;Database Users&lt;/b&gt; link. Click on the &lt;b&gt;Create&lt;/b&gt; button.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;On the &lt;b&gt;Create User&lt;/b&gt; page specify the username e.g. &lt;b&gt;admin&lt;/b&gt; and password e.g. &lt;b&gt;oracle&lt;/b&gt;. Confirm the password &lt;b&gt;oracle&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;The default tablespace is &lt;b&gt;USERS&lt;/b&gt; and temporary tablespace will be &lt;b&gt;TEMP&lt;/b&gt;. These need not be changed.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Specify the User Privilege Roles to be &lt;b&gt;Connect, Resource, DBA&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Select the &lt;b&gt;check all&lt;/b&gt; button for the directly granted system privileges section. &lt;b&gt;&lt;span style="color: navy;"&gt;Install Application Express ....&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Extract the apex_3.1.1.zip file to a desired location for the Apex Software. In my case, I have chosen to keep it with the Database Home. Therefore my extract is to &lt;b&gt;c:\oraclexe\&lt;/b&gt;. The extract will create a folder/directory called &lt;b&gt;apex&lt;/b&gt; with a number of sub-directories under it.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Start a DOS session &lt;b&gt;Start &amp;gt; Run &amp;gt; cmd &lt;/b&gt;and change directory to the Apex home &lt;b&gt;(cd c:\oraclexe\apex)&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Invoke sqlplus from the DOS prompt and login as the Database user created in the previous step i.e. &lt;b&gt;sqlplus admin/oracle as sysdba &lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;This will take you to a sqlplus prompt &lt;b&gt;SQL&amp;gt;&lt;/b&gt;. At the prompt, type in command &lt;b&gt;SQL&amp;gt;SHOW PARAMETER SHARED_POOL_SIZE&lt;/b&gt;. Set the shared pool size to 100MB using the command &lt;b&gt;SQL&amp;gt;ALTER SYSTEM SET SHARED_POOL_SIZE='100M' SCOPE=BOTH;&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Check if the value was set correctly by repeating the command &lt;b&gt;SQL&amp;gt;SHOW PARAMETER SHARED_POOL_SIZE&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Commence installation of Apex by issuing the following command at the sqlprompt &lt;b&gt;SQL&amp;gt;@apexins oracle USERS USERS TEMP /i/&lt;/b&gt;. &lt;span style="color: #660000;"&gt;This command runs a sql script called apexins.sql and passes in the parameters: Tablespace for the Apex application user (USERS), Tablespace for the Apex files user (USER), name of the Temporary Tablespace (TEMP) and virtual directory for the images folder (/i/).&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;The installation will take some time to complete and at the end of it you will be disconnected from the database.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Go to the Application Express homepage &lt;b&gt;http://localhost:8080/apex/apex_admin&lt;/b&gt; and log in with username &lt;b&gt;admin&lt;/b&gt; and password &lt;b&gt;oracle&lt;/b&gt;. &lt;b&gt;&lt;span style="color: navy;"&gt;One Last Thing .... &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
If after installation you cannot see any images on the page, you can reset the prefix /i/ by running sql &lt;b&gt;c:\oraclexe\apex\utilities\reset_image_prefix.sql&lt;/b&gt;. In my case, I was unable to get the prefix to work correctly, so I ran the following command &lt;b&gt;SQL&amp;gt;@reset_image_prefix&lt;/b&gt; at the prompt &lt;b&gt;Enter the Application Express image prefix [/i/]&lt;/b&gt; I typed in my full path i.e. &lt;b&gt;c:\oraclexe\apex\images/&lt;/b&gt; (Note the path ends with "/" which is a requirement of apex). I then left all other prompts blank and the script ran successfully and images were viewable to me.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Footnote:&amp;nbsp;&amp;nbsp;&lt;/strong&gt;I'm told&amp;nbsp;that you need to change the application images directory alias in the application properties too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3617687774623260040?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3617687774623260040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3617687774623260040' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3617687774623260040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3617687774623260040'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/08/oracle-apex-installation.html' title='Oracle Apex Installation'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-1555674728962411109</id><published>2008-08-19T16:57:00.008+10:00</published><updated>2008-10-21T11:30:34.391+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>DOS - Append DateTime to Filename</title><content type='html'>In DOS, you can append the date/time to a filename as follows:
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
SET DAY=%DATE:~4,2%
SET MTH=%DATE:~7,2%
SET YR=%DATE:~10,4%
SET HR=%TIME:~0,2%
SET HR0=%TIME:~0,1%
IF "%HR0%"==" " SET HR=0%TIME:~1,1%
SET MIN=%TIME:~3,2%
SET SEC=%TIME:~6,2%
SET MYDATE=%YR%%MTH%%DAY%-%HR%%MIN%%SEC%&lt;/pre&gt;&lt;/blockquote&gt;

The above construct sets the date and time formats and can be adjusted according to whatever format is desired
&lt;p&gt;
The variable MYDATE can then be appended to the file as follows:
&lt;blockquote&gt;&lt;pre&gt;&lt;b&gt;C:\&lt;/b&gt;dir &gt; filename_%MYDATE%&lt;/pre&gt;&lt;/blockquote&gt;
Resulting in something like:
&lt;blockquote&gt;&lt;pre&gt;filename_20080819-165818&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-1555674728962411109?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/1555674728962411109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=1555674728962411109' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1555674728962411109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/1555674728962411109'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/08/dos-append-datetime-to-filename.html' title='DOS - Append DateTime to Filename'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-3929410802331458266</id><published>2008-08-19T16:37:00.010+10:00</published><updated>2008-10-21T11:35:03.261+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle sqlplus'/><title type='text'>Oracle - Playing Around with Views</title><content type='html'>Just mucking about with some SQL to see what tables are referenced in views:
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;
select name
  from dba_dependencies 
 where type='VIEW'
   and referenced_name in ('EMP','DEPT','BONUS');&lt;/pre&gt;&lt;/blockquote&gt;

To narrow this down further to views which use all three tables, we could add:

&lt;blockquote&gt;&lt;pre&gt;&lt;b&gt;
select name
  from (&lt;/b&gt;
select name
  from dba_dependencies 
 where type='VIEW'
   and referenced_name in ('EMP','DEPT','BONUS')
           &lt;b&gt;)
having count(*) = 3 -- &lt;font color=navy&gt;Same count as the number of tables&lt;/font&gt;
group by name;&lt;/pre&gt;&lt;/b&gt;&lt;/blockquote&gt;

To then check the actual SQL script for the views returned here, we could add:

&lt;blockquote&gt;&lt;pre&gt;&lt;b&gt;select view_name
     , text
  from dba_views
 where view_name in 
( &lt;/b&gt;
select name
  from (
select name
  from dba_dependencies 
 where type='VIEW'
   and referenced_name in ('EMP','DEPT','BONUS')
           )
having count(*) = 3
group by name  
&lt;b&gt;)&lt;/pre&gt;&lt;/blockquote&gt;&lt;/b&gt;

I am sure there are better ways of doing these, but there you have it, a simple SQL to get more information about views and the tables used by them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-3929410802331458266?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/3929410802331458266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=3929410802331458266' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3929410802331458266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/3929410802331458266'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/08/oracle-playing-around-with-views.html' title='Oracle - Playing Around with Views'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-779414283936956777</id><published>2008-08-17T11:41:00.005+10:00</published><updated>2008-10-21T11:36:35.810+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle sqlplus'/><title type='text'>Oracle Create Table</title><content type='html'>To create a table identical to another table, yet without any of the data, simply use the following syntax:

&lt;blockquote&gt;&lt;pre&gt;CREATE {TABLENAMEA} AS (SELECT * FROM {TABLENAMEB} WHERE 1=2);&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-779414283936956777?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/779414283936956777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=779414283936956777' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/779414283936956777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/779414283936956777'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/08/oracle-create-table.html' title='Oracle Create Table'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-7283804234522492382</id><published>2008-08-15T16:49:00.010+10:00</published><updated>2008-10-21T11:37:54.025+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle sqlplus'/><title type='text'>Oracle Append DateTime to spool file</title><content type='html'>How to append the date/time to an output spool file in SQLPLUS:
&lt;p&gt;
&lt;font color=#660000&gt;SQL&gt;column dttm new_value v_dttm noprint;&lt;/font&gt;&lt;br&gt;
&lt;font color=navy&gt;The above construct is used to select a value into a user variable&lt;/font&gt;
&lt;p&gt;
&lt;font color=#660000&gt;SQL&gt;select to_char(sysdate,'yyyymmddhh24miss') dttm from dual;&lt;/font&gt;&lt;br&gt;
&lt;font color=navy&gt;Here we see the user variable data being passed in, i.e. the date and time format.  Note I have not used spaces, colons etc in between my date and time strings as sometimes these can lead to SP-0332 Spooling Errors.&lt;/font&gt;
&lt;p&gt;
&lt;font color=#660000&gt;SQL&gt;spool filename_&amp;v_dttm..log&lt;/font&gt;&lt;br&gt;
&lt;font color=navy&gt;Note the two fullstops (..) are deliberate&lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-7283804234522492382?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/7283804234522492382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=7283804234522492382' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7283804234522492382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/7283804234522492382'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/08/sqlplus-append-datetime-to-spool-file.html' title='Oracle Append DateTime to spool file'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-4951321849441428727</id><published>2008-08-12T10:35:00.007+10:00</published><updated>2008-10-21T11:40:25.094+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle pl/sql'/><title type='text'>Oracle Send Mail Procedure</title><content type='html'>A useful way of sending email through Oracle.
&lt;p&gt;
&lt;font color=navy&gt;Parameters such as the SMTP host servername, SMTP port may be entered in as default values or be passed in for greater flexibility&lt;/font&gt;

&lt;blockquote&gt;&lt;pre&gt;CREATE OR REPLACE PROCEDURE SEND_MAIL
(  p_smtp_host in varchar2 default {'smtp_host'} 
 , p_smtp_port in number default {smtp_port}
 , p_sender in varchar2 default null
 , p_recipient in varchar2 default null
 , p_subject in varchar2 default null
 , p_message in varchar2 default null
) IS

connection UTL_SMTP.CONNECTION;

BEGIN

 connection := utl_smtp.open_connection( p_smtp_host, p_smtp_port );

  utl_smtp.helo( connection, p_smtp_host );
  utl_smtp.mail( connection, p_sender );
  utl_smtp.rcpt( connection, p_recipient );
  utl_smtp.data( connection, 'Subject: ' || p_subject  || utl_tcp.crlf ||       p_message );
  utl_smtp.quit( connection );

EXCEPTION
WHEN OTHERS THEN
 dbms_output.put_line(SQLERRM);

END;
/&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
&lt;font color=navy&gt;The procedure may be called using syntax as follows.&lt;br&gt;
Note: Parameters which are passed in with default values on the SEND_MAIL procedure, e.g. p_smtp_host and p_smtp_port may be excluded from this call&lt;/font&gt;.
&lt;p&gt;
&lt;blockquote&gt;&lt;pre&gt;exec send_mail  ( p_smtp_host =&gt; 'smtp_host', -
                  p_smtp_port =&gt; smtp_port, -
                  p_sender    =&gt; 'sender@sender_address', -
                  p_recipient =&gt; 'recipient@recipient_address', -
                  p_subject   =&gt; 'Subject Line - Cricket Site', -
                  p_message   =&gt; 'Message Body - Check out www.nazimcricket.com' -
                );&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-4951321849441428727?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/4951321849441428727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=4951321849441428727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4951321849441428727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/4951321849441428727'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/08/oracle-send-mail-procedure.html' title='Oracle Send Mail Procedure'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5608086576269426588.post-5595464224536300251</id><published>2008-08-07T15:29:00.013+10:00</published><updated>2008-10-21T11:45:04.013+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cricket'/><title type='text'>Grenada Loves Warnie</title><content type='html'>Mobile companies aren't the only ones who adore Shane Warne!
&lt;p&gt;
First there was this homage (on stamps) for being one of Wisden's Cricketers of the Century.
&lt;p&gt;
&lt;a href="http://2.bp.blogspot.com/_5iMX0rrCk80/SJqLHthbzCI/AAAAAAAAAAk/bS_FCxWmIag/s1600-h/wisden6.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_5iMX0rrCk80/SJqLHthbzCI/AAAAAAAAAAk/bS_FCxWmIag/s400/wisden6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5231646881739426850" /&gt;&lt;/a&gt;
&lt;p&gt;
Now he's being revered on an entire stamp issue.  Designed by artist &lt;a href="http://www.philliphowe.com.au/shane_warne_stamps.html"&gt;Phillip Howe&lt;/a&gt;. These are, in my opinion, simply spectacular.
&lt;p&gt;
I must obtain a copy for my collection soon.  
&lt;p&gt;
Here is a sample.
&lt;p&gt;
&lt;a href="http://4.bp.blogspot.com/_5iMX0rrCk80/SJqMGwfwzyI/AAAAAAAAAAs/ItzUMC2myso/s1600-h/artistry_stamp_sheet.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_5iMX0rrCk80/SJqMGwfwzyI/AAAAAAAAAAs/ItzUMC2myso/s400/artistry_stamp_sheet.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5231647964869480226" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5608086576269426588-5595464224536300251?l=nazimcricket.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nazimcricket.blogspot.com/feeds/5595464224536300251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5608086576269426588&amp;postID=5595464224536300251' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5595464224536300251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5608086576269426588/posts/default/5595464224536300251'/><link rel='alternate' type='text/html' href='http://nazimcricket.blogspot.com/2008/08/grenada-loves-warnie.html' title='Grenada Loves Warnie'/><author><name>nazimcricket</name><uri>http://www.blogger.com/profile/05807028639031901359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.nazimcricket.com/me2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_5iMX0rrCk80/SJqLHthbzCI/AAAAAAAAAAk/bS_FCxWmIag/s72-c/wisden6.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
