<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My Writings</title>
	<atom:link href="http://www.mrmarkyoung.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.mrmarkyoung.com/blog</link>
	<description>What I've done, what I'm about to do or where I am!</description>
	<lastBuildDate>Wed, 01 Sep 2010 01:04:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The RMAN dilemma</title>
		<link>http://www.mrmarkyoung.com/blog/?p=326</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=326#comments</comments>
		<pubDate>Wed, 01 Sep 2010 00:50:08 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=326</guid>
		<description><![CDATA[We have a generic RMAN script that backups up most of our database, however we noticed that on one day one of the servers archive logs was increasing in size and after some investigation we found the following issue.
The Problem
RMAN> print script full_disk_disk_backup;
printing stored global script: full_disk_disk_backup
{sql &#8216;alter system archive log current&#8217;;
sql &#8216;alter database backup [...]]]></description>
			<content:encoded><![CDATA[<p>We have a generic RMAN script that backups up most of our database, however we noticed that on one day one of the servers archive logs was increasing in size and after some investigation we found the following issue.</p>
<p><strong>The Problem</strong></p>
<p>RMAN> print script full_disk_disk_backup;<br />
printing stored global script: full_disk_disk_backup<br />
{sql &#8216;alter system archive log current&#8217;;<br />
sql &#8216;alter database backup controlfile to trace&#8217;;<br />
allocate channel d1 device type disk;<br />
set command id to &#8216;rmanbck&#8217;;<br />
backup spfile;<br />
change archivelog all crosscheck;<br />
delete noprompt expired archivelog all;<br />
backup as compressed backupset database plus archivelog not backed up;<br />
backup current controlfile;<br />
resync catalog;<br />
release channel d1;<br />
}</p>
<p>RMAN> show all;<br />
starting full resync of recovery catalog<br />
full resync complete<br />
RMAN configuration parameters are:<br />
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;<br />
CONFIGURE BACKUP OPTIMIZATION OFF; # default<br />
CONFIGURE DEFAULT DEVICE TYPE TO &#8216;DISK&#8217;;<br />
CONFIGURE CONTROLFILE AUTOBACKUP ON;<br />
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &#8216;/backup/AXIOMPRY/flash_recovery_area/AXIOMPRYCTL_%F&#8217;;<br />
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;<br />
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;<br />
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;<br />
CONFIGURE MAXSETSIZE TO UNLIMITED;<br />
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default<br />
CONFIGURE ENCRYPTION ALGORITHM &#8216;AES128&#8242;; # default<br />
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default<br />
CONFIGURE SNAPSHOT CONTROLFILE NAME TO &#8216;/backup/AXIOMPRY/flash_recovery_area/SNAP_AXIOMPRY_ctl.db&#8217;;</p>
<p>RMAN> list backupset summary;<br />
starting full resync of recovery catalog<br />
full resync complete</p>
<p>List of Backups<br />
===============<br />
Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag<br />
&#8212;&#8212;- &#8212; &#8211; &#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;<br />
3457626 B  A  A DISK        24-AUG-10       1       1       YES        TAG20100824T230154<br />
3457627 B  A  A DISK        24-AUG-10       1       1       YES        TAG20100824T230154<br />
3457628 B  A  A DISK        25-AUG-10       1       1       YES        TAG20100824T230154<br />
3457629 B  A  A DISK        25-AUG-10       1       1       YES        TAG20100824T230154<br />
3457630 B  A  A DISK        25-AUG-10       1       1       YES        TAG20100824T230154<br />
3457631 B  A  A DISK        25-AUG-10       1       1       YES        TAG20100824T230154<br />
3458063 B  A  A DISK        25-AUG-10       1       1       YES        TAG20100825T020122<br />
3465852 B  A  A DISK        25-AUG-10       1       1       YES        TAG20100825T230130<br />
3465932 B  A  A DISK        25-AUG-10       1       1       YES        TAG20100825T233814<br />
3476405 B  A  A DISK        26-AUG-10       1       1       YES        TAG20100826T230126<br />
3476486 B  A  A DISK        26-AUG-10       1       1       YES        TAG20100826T233852<br />
3489274 B  A  A DISK        27-AUG-10       1       1       YES        TAG20100827T230206<br />
3489275 B  F  A DISK        27-AUG-10       1       1       YES        TAG20100827T230854<br />
3489352 B  A  A DISK        27-AUG-10       1       1       YES        TAG20100827T233851<br />
3489428 B  F  A DISK        27-AUG-10       1       1       NO         TAG20100827T233905<br />
3498634 B  A  A DISK        28-AUG-10       1       1       YES        TAG20100828T230147<br />
3498635 B  F  A DISK        28-AUG-10       1       1       YES        TAG20100828T230434<br />
3498704 B  A  A DISK        28-AUG-10       1       1       YES        TAG20100828T233400<br />
3498766 B  F  A DISK        28-AUG-10       1       1       NO         TAG20100828T233406<br />
3498780 B  F  A DISK        28-AUG-10       1       1       NO         TAG20100828T233412<br />
3506694 B  A  A DISK        29-AUG-10       1       1       YES        TAG20100829T230135<br />
3506695 B  F  A DISK        29-AUG-10       1       1       YES        TAG20100829T230342<br />
3506763 B  A  A DISK        29-AUG-10       1       1       YES        TAG20100829T233257<br />
3506825 B  F  A DISK        29-AUG-10       1       1       NO         TAG20100829T233304<br />
3506839 B  F  A DISK        29-AUG-10       1       1       NO         TAG20100829T233310<br />
3516494 B  A  A DISK        30-AUG-10       1       1       YES        TAG20100830T230143<br />
3516495 B  F  A DISK        30-AUG-10       1       1       YES        TAG20100830T231802<br />
3516598 B  A  A DISK        30-AUG-10       1       1       YES        TAG20100830T234835<br />
3516669 B  F  A DISK        30-AUG-10       1       1       NO         TAG20100830T234855<br />
3516683 B  F  A DISK        30-AUG-10       1       1       NO         TAG20100830T234902<br />
3527815 B  A  A DISK        31-AUG-10       1       1       YES        TAG20100831T230129<br />
3527816 B  F  A DISK        31-AUG-10       1       1       YES        TAG20100831T231507<br />
3527909 B  A  A DISK        31-AUG-10       1       1       YES        TAG20100831T234505<br />
3527980 B  F  A DISK        31-AUG-10       1       1       NO         TAG20100831T234517<br />
3527994 B  F  A DISK        31-AUG-10       1       1       NO         TAG20100831T234524</p>
<p>RMAN> report obsolete;</p>
<p>RMAN retention policy will be applied to the command<br />
RMAN retention policy is set to recovery window of 3 days<br />
Report of obsolete backups and copies<br />
Type                 Key    Completion Time    Filename/Handle<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Backup Set           3489275 27-AUG-10<br />
  Backup Piece       3489279 27-AUG-10          /backup/AXIOMPRY/flash_recovery_area/AXIOMPRY/AXIOMPRM/backupset/2010_08_27/o1_mf_nnndf_TAG20100827T230854_67hg77vs_.bkp<br />
Backup Set           3489428 27-AUG-10<br />
  Backup Piece       3489430 27-AUG-10          /backup/AXIOMPRY/flash_recovery_area/AXIOMPRYCTL_c-1101749631-20100827-00<br />
Backup Set           3498766 28-AUG-10<br />
  Backup Piece       3498768 28-AUG-10          /backup/AXIOMPRY/flash_recovery_area/AXIOMPRY/AXIOMPRM/backupset/2010_08_28/o1_mf_ncnnf_TAG20100828T233406_67l42hxr_.bkp</p>
<p>As we can see from the list above, we have obsolete backups from the 27 August, however we still have retained archivelogs from before the obsolete period.</p>
<p> We can confirm the sequences are not obsolete and since this database has a logical standby the archivelogs have been applied.</p>
<p>SQL> col thr form 99<br />
col dest form 99<br />
col seq form 9999999<br />
col name form a40<br />
col MB form 99,999<br />
col &#8220;1st_time&#8221; form a21<br />
col next_time form a21<br />
col completed form a25<br />
col bk form 999SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL><br />
SQL> select<br />
2 dest_id dest,<br />
3 thread# thr, sequence# seq ,status, applied, backup_count bk, to_char(first_time,&#8217;dd-mm-yyyy hh24:mi:ss&#8217;) &#8220;1st_time&#8221;<br />
4 , to_char(next_time,&#8217;dd-mm-yyyy hh24:mi:ss&#8217;) next_time,creator , name<br />
5 from v$archived_log<br />
6 where sequence# between 28405 and 28414<br />
7 order by first_time;</p>
<p>DEST THR SEQ S APP BK 1st_time NEXT_TIME CREATOR	NAME<br />
&#8212;- &#8212; &#8212;&#8212;&#8211; &#8211; &#8212; &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;-<br />
1 1 28405 D YES 0 08-08-2010 21:00:48 08-08-2010 22:07:01 ARCH<br />
1 1 28406 D YES 0 08-08-2010 22:07:01 08-08-2010 23:01:10 ARCH<br />
1 1 28407 D YES 0 08-08-2010 23:01:10 08-08-2010 23:01:24 ARCH</p>
<p>DEST THR SEQ S APP BK 1st_time NEXT_TIME CREATOR	NAME<br />
&#8212;- &#8212; &#8212;&#8212;&#8211; &#8211; &#8212; &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;-<br />
1 1 28408 D YES 0 08-08-2010 23:01:24 08-08-2010 23:31:11 ARCH<br />
1 1 28409 D YES 0 08-08-2010 23:31:11 09-08-2010 05:02:21 ARCH<br />
1 1 28410 D YES 0 09-08-2010 05:02:21 09-08-2010 07:43:02 ARCH</p>
<p>DEST THR SEQ S APP BK 1st_time NEXT_TIME CREATOR	NAME<br />
&#8212;- &#8212; &#8212;&#8212;&#8211; &#8211; &#8212; &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;-<br />
1 1 28411 A YES 0 09-08-2010 07:43:02 09-08-2010 08:49:09 ARCH<br />
/archive/AXIOMPRY/log/1_28411_662147521.dbf</p>
<p>1 1 28412 A YES 0 09-08-2010 08:49:09 09-08-2010 09:31:35 ARCH<br />
/archive/AXIOMPRY/log/1_28412_662147521.dbf</p>
<p>1 1 28413 A YES 0 09-08-2010 09:31:35 09-08-2010 10:04:41 ARCH</p>
<p>DEST THR SEQ S APP BK 1st_time NEXT_TIME CREATOR NAME<br />
&#8212;- &#8212; &#8212;&#8212;&#8211; &#8211; &#8212; &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;-<br />
/archive/AXIOMPRY/log/1_28413_662147521.dbf</p>
<p>1 1 28414 A YES 0 09-08-2010 10:04:41 09-08-2010 10:45:15 ARCH<br />
/archive/AXIOMPRY/log/1_28414_662147521.dbf</p>
<p>10 rows selected.</p>
<p><strong>Solution</strong><br />
At the moment, why the archive logs are held onto is a mystery. However to keep the system from filling up, we can remove archivelog and backups that have exceeded the retention period.</p>
<p>RMAN> DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE &#8216;SYSDATE &#8211; 5&#8242;;<br />
RMAN> DELETE NOPROMPT BACKUP COMPLETED BEFORE &#8216;SYSDATE &#8211; 5&#8242;; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=326</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Database Downgrade?</title>
		<link>http://www.mrmarkyoung.com/blog/?p=320</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=320#comments</comments>
		<pubDate>Mon, 23 Aug 2010 00:42:11 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=320</guid>
		<description><![CDATA[Recently I upgraded a database from 10.2.0.3 to 11.1.0.7 however after testing, the customer found that their application wasn&#8217;t performing well under the new version. They had a number of other tasks on so they asked me to downgrade them back to the 10.2.0.3 version. These are the steps I took to successfully take them [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I upgraded a database from 10.2.0.3 to 11.1.0.7 however after testing, the customer found that their application wasn&#8217;t performing well under the new version. They had a number of other tasks on so they asked me to downgrade them back to the 10.2.0.3 version. These are the steps I took to successfully take them back to their original version.</p>
<p>This applies to Oracle Server &#8211; Enterprise Edition &#8211; Version: 11.1.0.6 to 11.1.0.6 &#8211; Release: 11.1 to 11.1</p>
<p>You can downgrade both major releases and patchset releases, based on the original version from which the database was upgraded. Major release downgrades are supported back to 10.2 and 10.1. you can upgrade from any patch release of 10.1 or 10.2, but you should install the latest patch release in the Oracle home you intend to use after downgrading.</p>
<p>Downgrade to 9i or lower is only possible using export/import.</p>
<p>You can only downgrade to the release from which you upgraded.</p>
<p>For example, if you upgraded from Oracle Database 10g release 1 (10.1) to Oracle Database 11g release 1 (11.1), then you could not subsequently downgrade to Oracle Database 10g release 2 (10.2); you could only downgrade to Oracle Database 10g release 1 (10.1).</p>
<p>Release 10.1.0 :  Downgrade possible to 10.1.0.5.0 and above</p>
<p>If the release number of your Oracle10g Release 1 (10.1) database is lower than 10.1.0.5, then you should install the latest patch for Oracle Database 10g release 1 (10.1) prior to downgrading.</p>
<p>Release 10.2.0 : Downgrade possible to 10.2.0.3.0 and above</p>
<p>If the release number of your Oracle 10g Release 2 (10.2) database is lower than 10.2.0.3, then you should install the latest patch release for 10.2 prior to downgrading.</p>
<p>( NOTE : If you have Messaging Gateway or Workspace Manager in your database, then be aware that neither of them are part of Oracle Database patch sets prior to release 10.1.0.6 and release 10.2.0.4. Therefore, you must separately apply all relevant patches to a release 10.2.0.3 or 10.1.0.5 Oracle home before downgrading.)</p>
<p><strong>1) Check for Incompatibilities</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
If the compatibility level of your Oracle Database 11g release 1 (11.1) database is 11.1.0 or higher, then you are not able to downgrade. Your compatibility level is determined by the setting of the COMPATIBLE initialization parameter. Check your COMPATIBLE initialization parameter setting by issuing the following SQL statement:</p>
<p><code>SQL&gt; SELECT name, value, description FROM v$parameter WHERE name=&#039;compatible&#039;; </code></p>
<p>If you are downgrading to 10.2, then the COMPATIBLE initialization parameter must be set to 10.2.0 or lower.</p>
<p>If you are downgrading to 10.1, then the COMPATIBLE initialization parameter must be set to 10.1.0.</p>
<p><strong>2) Perform Complete Backups &lt;as a precautionary measure&gt; :</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Before attempting the downgrade, perform full backups of the Database files.<br />
There is no need for software backup here, as we are not performing any changes to the software.</p>
<p><strong>3) Downgrade the database</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Complete the following steps to downgrade your Oracle Database 11g release 1 (11.1) database to a major release or a relevant patchset upgrade:</p>
<p>1) If you have enabled Oracle Database Vault on your database, then you must disable it before downgrading the database.</p>
<p>If you are downgrading a clustered RAC database, then shut down the instance completely and change the CLUSTER_DATABASE initialization parameter to false. After the downgrade, you must set this parameter back to true.</p>
<p>2 ) Log in to the system as the owner of the Oracle Database 11g release 1 (11.1) Oracle home directory.</p>
<p>3 ) This is an optional step only if the Enterprise Manager Database Control is already configured for the database<br />
Stop the Database Control, as follows:</p>
<p><code>i. Set the ORACLE_SID environment variable to the &amp;lt;SID&amp;gt; :</code></p>
<p>$ export ORACLE_SID=&lt;sid&gt; &lt;==== In UNIX</p>
<p>ii. Execute the following command:</p>
<p><code>$ $ORACLE_HOME/bin/emctl stop dbconsole </code></p>
<p>If the database being downgraded is a Real Application Clusters (RAC) database,this step should be performed for all the instances.</p>
<p>4) If you are downgrading an Oracle RAC database to 10g Release 1 (10.1), then you must remove extra voting disks before shutting down the Oracle Clusterware stack.</p>
<p>i. To see the number of voting disks used and to list voting disk paths, run the following command:</p>
<p><code>$ Oracle_Clusterware_Home/bin/crsctl query css votedisk</code></p>
<p>ii. Remove each additional voting disk you find in the previous step by running the following command, where path is a voting disk path discovered in the previous step:</p>
<p><code>$ Oracle_Clusterware_Home/bin/crsctl delete css votedisk path</code></p>
<p>5) At a system prompt, change to the ORACLE_HOME/rdbms/admin directory.</p>
<p><code>$ cd $ORACLE_HOME/rdbms/admin</code></p>
<p>Here the Oracle Home is the 11G oracle home.</p>
<p>6) Start SQL*Plus.</p>
<p><code>$ sqlplus /nolog</code></p>
<p>7) Connect to the database instance as a user with SYSDBA privileges.</p>
<p><code>SQL&amp;gt; connect &quot;/  as sysdba&quot;</code></p>
<p> <img src='http://www.mrmarkyoung.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Start up the instance in DOWNGRADE mode:</p>
<p><code>SQL&amp;gt; STARTUP DOWNGRADE</code></p>
<p>You might be required to use the PFILE option to specify the location of your initialization parameter file.</p>
<p>9) Drop the SYSMAN schema:</p>
<p><code>SQL&amp;gt; DROP USER sysman CASCADE;</code></p>
<p>Note : You cannot downgrade the database without dropping the sysman schema. If you try to downgrade the database without dropping sysman you will get the following errors.</p>
<p>*ERROR at line 1:ORA-20000: Direct downgrade of EM Database Control not supported.ORA-06512: at line 3</p>
<p>When you upgrade the database you should take a backup of the EM repository so that when you downgrade the database, the repository can be restored. You can use &#8216;emdwgrd&#8217; utility from 11g oracle home to save the Database Control files and data. Refer the Upgrade Guide for more details.</p>
<p>Ensure that all the components and objects are valid and in 11G version.</p>
<p><code>SQL&amp;gt; select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version</code></p>
<p><code>from  dba_registry order by comp_name;</code></p>
<p>SQL&gt; select owner,object_type,count(*) from dba_objects where status=&#8217;INVALID&#8217; group by owner,object_type order by owner,object_type ;</p>
<p>10) Set the system to spool results to a log file for later verification of success</p>
<p><code>SQL&amp;gt; SPOOL downgrade.log</code></p>
<p>11) Run catdwgrd.sql:</p>
<p><code>SQL&amp;gt; @catdwgrd.sql</code></p>
<p>Note:</p>
<ul>
<li>You must use the version of      the script included with Oracle Database 11g Release 1 (11.1).</li>
<li>You must run the script in      the Oracle Database 11g Release 1 (11.1) environment.</li>
<li>The script downgrades all      Oracle Database components in the database to the major release or 11g      patch release from which you originally upgraded.</li>
</ul>
<p>If you encounter any problems when you run the script, or any of the scripts in the remaining steps, then correct the causes of the problems and rerun the script.</p>
<p>If the downgrade for a component fails, then an ORA-39709 error is displayed and the SQL*Plus session terminates without downgrading the Oracle Database data dictionary. All components must be successfully downgraded before the Oracle Database data dictionary is downgraded. You must identify and fix the problem before rerunning the catdwgrd.sql script.</p>
<p>12) Turn off the spooling of script results to the log file:</p>
<p><code>SQL&amp;gt; SPOOL OFF</code></p>
<p>Check the spooled output file for any errors. Correct any problems you find in this file and rerun the downgrade script if necessary.</p>
<p>13) Shut down the instance:</p>
<p><code>SQL&amp;gt; SHUTDOWN IMMEDIATE</code></p>
<p>14) Exit SQL*Plus and shutdown the listener.<br />
&gt;lsnrctl stop</p>
<p>15) If your operating system is Linux or UNIX, then change the following environment variables to point to the directories of the release to which you are downgrading:</p>
<ul>
<li>ORACLE_HOME</li>
<li>PATH</li>
</ul>
<p>16) Restore the configuration files (for example, parameter files, password files, and so on) of the release to which you are downgrading.</p>
<p>If this is an Oracle RAC database, execute the following command to return the database to single instance mode:</p>
<p><code>SET CLUSTER_DATABASE=FALSE</code></p>
<p>17) At a system prompt, change to the ORACLE_HOME/rdbms/admin directory of the previous release.</p>
<p>You need to apply the <a href="https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6118038" target="_blank">patch 6118038</a> on 10.2.0.3 oracle home before starting the database in upgrade mode. If you do not apply this patch and go ahead an run the script catrelod.sql it will error out with the error ORA-00600:[koputilcvto2n]. To resolve this issue do the following</p>
<p>Download and apply the <a href="https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6118038" target="_blank">patch 6118038</a> on 10.2.0.3 oracle home.</p>
<p>18) Start SQL*Plus.</p>
<p>19) Connect to the database instance as a user with SYSDBA privileges.</p>
<p><code>SQL&amp;gt; connect &quot;/ as sysdba&quot;</code></p>
<p>20) Start up the instance:</p>
<p><code>SQL&amp;gt; STARTUP UPGRADE</code></p>
<p>21) Set the system to spool results to a log file for later verification of success:</p>
<p><code>SQL&amp;gt; SPOOL reload.log</code></p>
<p>22) Run catrelod.sql:</p>
<p><code>SQL&amp;gt; @catrelod.sql</code></p>
<p>23) If you are downgrading to release 10.1.0.5 and you have XDB in your database, run the following script after running catrelod.sql:</p>
<p>24) Turn off the spooling of script results to the log file:</p>
<p><code>SQL&amp;gt; SPOOL OFF</code></p>
<p>25) Run the following SQL statements to check that the database is properly downloaded</p>
<p><code>SQL&amp;gt; select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version from dba_registry order by comp_name;</code></p>
<p>SQL&gt; select owner,object_type,count(*) from dba_objects where status=&#8217;INVALID&#8217; group by owner,object_type order by owner,object_type ;</p>
<p>Some components may show INVALID status after reload.</p>
<p>26) Shut down and restart the instance for normal operation:</p>
<p><code>SQL&amp;gt; SHUTDOWN IMMEDIATE</code><br />
<code>SQL&amp;gt; STARTUP</code></p>
<p>Run the utlrp.sql script from $ORACLE_HOME/rdbms/admin :</p>
<p><code>SQL&amp;gt; @utlrp.sql</code></p>
<p>The utlrp.sql script recompiles all existing PL/SQL modules that were previously in an INVALID state, such as packages, procedures, types, and so on. Check again with the SQL statements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=320</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home!</title>
		<link>http://www.mrmarkyoung.com/blog/?p=315</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=315#comments</comments>
		<pubDate>Sun, 06 Jun 2010 22:09:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=315</guid>
		<description><![CDATA[It&#8217;s so cold at home!
more images are available at http://www.mrmarkyoung.com
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s so cold at home!</p>
<p>more images are available at <a title="Photography by Mark Young" href="http://wp.me/sx03M-home" target="_blank">http://www.mrmarkyoung.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=315</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phuket (Last Day)</title>
		<link>http://www.mrmarkyoung.com/blog/?p=312</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=312#comments</comments>
		<pubDate>Sun, 06 Jun 2010 09:40:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=312</guid>
		<description><![CDATA[We woke up to the sound of rain and it&#8217;s only the second day of rain we have had since in Phuket. We needed to get some final shopping done before coming back home, so back to Jungceylon and then we wandered back along the markets in the rain.

The hotel gave us a late check [...]]]></description>
			<content:encoded><![CDATA[<p>We woke up to the sound of rain and it&#8217;s only the second day of rain we have had since in Phuket. We needed to get some final shopping done before coming back home, so back to Jungceylon and then we wandered back along the markets in the rain.</p>
<p><img title="Mercure Hotel" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9094.jpg" alt="Mercure Patong, Thailand" width="400" height="267" /></p>
<p>The hotel gave us a late check out which gave us more time to pack and get ready to leave. After checking out, we all met for lunch at Oasis and enjoyed our last official Thai meal together.</p>
<p>We farewelled Sue and Janette and waited for our pickup which was 20 minutes earlier than booked and we had to sit at the airport for a few hours before our flight. We arrived in Bangkok and walked to the gate to wait for our next flight. Our flight to Melbourne wasn&#8217;t that busy and Bron and I moved to a seat where we had ample leg room.</p>
<p>The flight left 1/2 hour late, but we managed to catch up the time and arrived in Melbourne on schedule. A long drive home due to road works on the Tulla freeway and an early night. Another great holiday with great people.  Bron and I will travel to Bangkok in October.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=312</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>James Bond Island and Sea Caves</title>
		<link>http://www.mrmarkyoung.com/blog/?p=304</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=304#comments</comments>
		<pubDate>Fri, 04 Jun 2010 02:02:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=304</guid>
		<description><![CDATA[Another early-ish start and we were all off on our tour to Pang Nga Bay. We took a speed boat out, which was a great way to to do it as it was so much quicker than the big slow boats.
We arrived at James Bond Island first and had an hour to look around the [...]]]></description>
			<content:encoded><![CDATA[<p>Another early-ish start and we were all off on our tour to Pang Nga Bay. We took a speed boat out, which was a great way to to do it as it was so much quicker than the big slow boats.</p>
<p>We arrived at James Bond Island first and had an hour to look around the island, at the &#8220;rock&#8221; and the cave. Then we took off again and made our way to Koh Panyi, a muslim village on stilts.</p>
<p><img title="James Bond Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8979.jpg" alt="James Bond Island" width="400" height="267" /></p>
<p><img title="James Bond Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8995.jpg" alt="James Bond Island" width="400" height="267" /></p>
<p><img title="James Bond Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9005.jpg" alt="Stalls at James Bond Island" width="400" height="267" /></p>
<p><img title="James Bond Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9007.jpg" alt="Long Boat at James Bond Island" width="400" height="267" /></p>
<p>We had a fantastic lunch at the restaurant there over the water and then had time to explore through t he village and look at there stalls &#8211; everything the same, same, not different. It was great to see how these people live.</p>
<p><img title="Fishing Village" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9022.jpg" alt="Local Fishing Village" width="400" height="267" /></p>
<p>Back on the the boat and to Hong Island, where we met our &#8220;canoes&#8221;. There was two of us to one canoe, with our &#8220;paddler&#8221;. They took us through the caves and into a beautful, tranquil inlet, or, as they called it &#8220;honeymoon room&#8221;, and pointed out many rock formations along the way. We all had a good laugh with our boys, especially Sue and Jeanette with &#8220;Zuzu&#8221; who wanted to have &#8220;honeymoon&#8221; with them!!! Next, and last stop, was Naka Island, where we hired deck chairs and relaxed on the beach with a couple of beers and a lovely swim, before our short trip back to the pier. A very enjoyable, and full, day was had by all.</p>
<p><img title="Shrimp Paste" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9013.jpg" alt="Shrimp Paste" width="400" height="267" /></p>
<p><img title="Hong Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9041.jpg" alt="Hong Island" width="400" height="267" /></p>
<p><img title="Hong Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9043.jpg" alt="Hong Island" width="400" height="267" /></p>
<p><img title="Hong Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9050.jpg" alt="Hong Island Cave" width="400" height="267" /></p>
<p><img title="Hong Island Cave" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9064.jpg" alt="Hong Island Cave" width="400" height="267" /></p>
<p><img title="Hong Island - Bob Marley" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9078.jpg" alt="Bob Marley?" width="400" height="267" /></p>
<p><img title="Hong Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9069.jpg" alt="Hong Island" width="400" height="267" /></p>
<p><img title="Come on Sue!" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_9076.jpg" alt="Come on Sue!" width="400" height="267" /></p>
<p>For our last dinner we head up the hill towards Kamala to &#8220;Pan Yaah&#8221; restaurant, overlooking the whole of  Patong Beach. We had a lovely meal. Greg had the biggest prawns you could ever see (as big as a lobster).</p>
<p>Then we got the tuk tuk back to Bangla Road and all made our way spearately back down the beach road (with quite a few stops along the way at the shops) to Porn&#8217;s bar for a final drink together.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=304</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phuket Diving</title>
		<link>http://www.mrmarkyoung.com/blog/?p=300</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=300#comments</comments>
		<pubDate>Fri, 04 Jun 2010 00:16:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=300</guid>
		<description><![CDATA[Bron and Ibooked ourselves in a Discovery Diving trip to Phi Phi Island. We started the day by being collected from the Hotel at 7.30 and we made our way down to the pier at Chalong Bay.

No time wasted, the boat head off on our three hour cruise (a three hour cruise!!!!). We arrived at [...]]]></description>
			<content:encoded><![CDATA[<p>Bron and Ibooked ourselves in a Discovery Diving trip to Phi Phi Island. We started the day by being collected from the Hotel at 7.30 and we made our way down to the pier at Chalong Bay.</p>
<p><img title="Trip to Phi Phi Island" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8951.jpg" alt="Trip to Phi Phi Island" width="400" height="267" /></p>
<p>No time wasted, the boat head off on our three hour cruise (a three hour cruise!!!!). We arrived at the first small island and readied ourselves into our wetsuits, vests and tanks, fins and goggles.</p>
<p><img title="Dive Site" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8952.jpg" alt="Dive Site" width="400" height="267" /></p>
<p>The adrenalin pumping, we followed Roger, our instructor, into the water and then there was no turning back. Bron struggled to get co-ordinated and found the first submerge a bit tough, but we succeeded on the second attempt and soon found ourselves amongst the most beautiful corals, sea life and fish imaginable.</p>
<p>The water was not fantastically clear, but the abundance of aquatic life made up for it. The 40 minutes passed so quick and before we knew it dive number 1 was all over. Back on the boat and a great Thai lunch and then we made our way to the second dive site. Again it was a scurry into our gear and in we go. The second dive was also fantastic and we even swam through an underwater cave &#8211; awesome! Once again, 40 minutes and it was all over. Back on the boat and headed back (3 hours again) to the dock. A fantastic day, and a great experience.</p>
<p><img title="Diving Team" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/diving.jpg" alt="(from the left) Mark, Roger, Bron" width="400" height="267" /></p>
<p>We didn&#8217;t get back to the hotel until around 7pm, and as the others had already left for dinner, we went to the Ban Yin Dee restaurant, oveerlooking Patong Beach. We had a lovely dinner and cocktails, but we were both spent so we headed home, had lovely massage and then to bed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=300</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phuket June 1</title>
		<link>http://www.mrmarkyoung.com/blog/?p=293</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=293#comments</comments>
		<pubDate>Tue, 01 Jun 2010 23:19:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=293</guid>
		<description><![CDATA[This morning I decided to get up and try and take some pictures. I haven&#8217;t taken many for some time and thought it might be a good opportunity.  Bron and I walked down to the river and watched a number of local fishermen going out for the day.

Above: Fishermen takening their boat out for a [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I decided to get up and try and take some pictures. I haven&#8217;t taken many for some time and thought it might be a good opportunity.  Bron and I walked down to the river and watched a number of local fishermen going out for the day.</p>
<p><img title="Fisherman at Patong" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8879.jpg" alt="Fishermen" width="400" height="267" /></p>
<p>Above: Fishermen takening their boat out for a day of fishing.</p>
<p><img title="Local Fishing Village" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8885.jpg" alt="Local Fishing Village" width="400" height="267" /></p>
<p>Above: Fishermen get ready for a day of fishing.</p>
<p><img title="Fishing Village at Patong" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8887.jpg" alt="Fishing Village at Patong" width="400" height="267" /></p>
<p>After breakfast, the rest of the gang sat by the pool, while Bron and I went to the Le Meredian for our Suba Diving introduction. At first, Bron had trouble with the breathing, but after a few trips around the pool, she got the hang of it and nailed it.</p>
<p>The afternoon was spent relaxing with a bit of shopping and laying by the pool.  Dinner at The Small View Point Restaurant which is on the coastal road from Kata to Rawai.<br />
<span style="font-size: 11pt; font-family: &amp;amp;quot; color: black;"></span></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 954px; width: 1px; height: 1px;"><strong><span style="font-family: Arial; color: #f9fbb9;">The Small View Point Restaurant  			is on the coastal road from Kata to Rawai, its up the first hill on  			your right hand side overlooking the ocean</span></strong></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=293</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Phuket &#8211; May 30</title>
		<link>http://www.mrmarkyoung.com/blog/?p=290</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=290#comments</comments>
		<pubDate>Tue, 01 Jun 2010 00:27:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=290</guid>
		<description><![CDATA[Another interesting day in Patong! We went to Phuket Town to explore, however the hotel bus only went to the shopping centre which we had already been to, so we decided to catch a taxi to the city centre. Once arriving there, we found not much around, and we were approached by a local taxi [...]]]></description>
			<content:encoded><![CDATA[<p>Another interesting day in Patong! We went to Phuket Town to explore, however the hotel bus only went to the shopping centre which we had already been to, so we decided to catch a taxi to the city centre. Once arriving there, we found not much around, and we were approached by a local taxi driver who wanted to take us around the island for THB40 which I felt was too cheap and maybe there was some catch.</p>
<p>We left Geoff and Rosie with the taxi driver and they went off with him. Bron and myself just walked around for a bit and caught a taxi back to the shopping centre were we caught the bus back to the hotel.</p>
<p>We ate lunch at one of our favourite restaurants at the back of O Top and back to the hotel to arrange our diving in Phi Phi Island for Wednesday.</p>
<p>A swim in the pool followed by drinks at the bar, after we went to Sue and Jeanette’s room for further drinks and after that we wanted down to one of the bars, followed by dinner at Loma on the beach.</p>
<p>Another early night for some!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=290</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Phuket (30th May)</title>
		<link>http://www.mrmarkyoung.com/blog/?p=287</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=287#comments</comments>
		<pubDate>Mon, 31 May 2010 02:49:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=287</guid>
		<description><![CDATA[Another magnificent day in Paradise and another sunny day. After breakfast, we spent the morning by the pool followed by lunch at Oasis next door. Sue recommend we hire some Tuk-Tuk&#8217;s and travel south along the island and we can do a beach hop. We first went to Karon beach, we went through the market, [...]]]></description>
			<content:encoded><![CDATA[<p>Another magnificent day in Paradise and another sunny day. After breakfast, we spent the morning by the pool followed by lunch at Oasis next door. Sue recommend we hire some Tuk-Tuk&#8217;s and travel south along the island and we can do a beach hop. We first went to Karon beach, we went through the market, but it was so hot and we hit the beach and all went for a swim.<br />
<img title="Karon Beach" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8748.jpg" alt="Karon Beach" width="400" height="267" /></p>
<p>The sand and water was so much cleaner than Patong. From there we travelled further south down to Kata beach. We didn&#8217;t swim there, however the girls were content on haggling with the beach vendors and they purchased many items from them. After that, we all enjoyed a pancake from one of the local vendors.</p>
<p><img title="Pancakes at Kata" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8818.jpg" alt="Pacakes at Kata" width="400" height="267" /></p>
<p>We travelled up the steep hill to the After Beach Bar where we sipped on cocktails and waited for the sunset. This spot is breath-taking, and we all agreed well worth another visit, maybe for dinner.  The waitress were the worst lady boy&#8217;s we have seen!</p>
<p><img title="After Beach Bar" src="http://www.mrmarkyoung.com/blog/wp-content/uploads/2010/Phuket/_MG_8842.jpg" alt="After Beach Bar" width="400" height="267" /></p>
<p>We then jumped back in our tuk-tuk and headed back to Patong, through the streets of Kata and Karon, which is also very pretty by night. Back at the “home” a few of us headed for a quiet dinner and then an early night all round.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=287</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Phuket Day 2-5</title>
		<link>http://www.mrmarkyoung.com/blog/?p=284</link>
		<comments>http://www.mrmarkyoung.com/blog/?p=284#comments</comments>
		<pubDate>Sat, 29 May 2010 11:24:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mrmarkyoung.com/blog/?p=284</guid>
		<description><![CDATA[Phuket hasn&#8217;t changed much since we were hear last year. We have done the usual things, shop, massage, swim, eat and drink, but not in that order. We have been back to see most of the people  we have met.
Greg had a big night with Danny from Lekey&#8217;s bar and hasn&#8217;t been out of bed [...]]]></description>
			<content:encoded><![CDATA[<p>Phuket hasn&#8217;t changed much since we were hear last year. We have done the usual things, shop, massage, swim, eat and drink, but not in that order. We have been back to see most of the people  we have met.</p>
<p>Greg had a big night with Danny from Lekey&#8217;s bar and hasn&#8217;t been out of bed in two days.</p>
<p>Today (day 5) was the first day we have seen rain and it rained nearly all day.</p>
<p>Prices for Phuket are as follows:</p>
<p>Sunglasses THB150<br />
T-Shirts THB150<br />
Singlets THB130<br />
Mens Boxers THB80<br />
Mens Shorts THB250-350<br />
Baseball Cap THB250<br />
Jeans THB700</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrmarkyoung.com/blog/?feed=rss2&amp;p=284</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
