<?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>Trylinux.org &#187; oracle</title>
	<atom:link href="http://trylinux.org/category/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://trylinux.org</link>
	<description>Linux tips and advocacy</description>
	<lastBuildDate>Thu, 27 May 2010 14:51:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Move Oracle data files</title>
		<link>http://trylinux.org/2008/03/29/move-oracle-data-files/</link>
		<comments>http://trylinux.org/2008/03/29/move-oracle-data-files/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 23:06:15 +0000</pubDate>
		<dc:creator>tip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://trylinux.org/2008/03/29/move-oracle-data-files/</guid>
		<description><![CDATA[The procedure below will allow you to move Oracle data and redo files.
1. It is a good idea to make a backup of the directory you are moving just in case something goes horribly wrong.  
# cp -rp {data_dir} {backup_dir}
2. log in as the oracle user
# su -l oracle
3. move the database files
# mv [...]]]></description>
			<content:encoded><![CDATA[<p>The procedure below will allow you to move Oracle data and redo files.</p>
<p>1. It is a good idea to make a backup of the directory you are moving just in case something goes horribly wrong.  <img src='http://trylinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
# cp -rp {data_dir} {backup_dir}</p>
<p>2. log in as the oracle user<br />
# su -l oracle</p>
<p>3. move the database files<br />
# mv {data_dir} {new_data_dir}</p>
<p>4. Set SID, log into database.<br />
# export ORACLE_SID={ORACLE_SID}<br />
# sqlplus /nolog<br />
SQL&gt; connect /as sysdba;</p>
<p>5. Create pfile from spfile<br />
SQL&gt; create pfile from spfile;</p>
<p>6. In another terminal, modify the newly created pfile.  It is usually called init{SID}.ora and can be in different directories.  Look in udump, dbs, and other directories until you find the newly created pfile.  Check the date to make sure it is the one you are looking for.  Now, fix the directories for the control_files variable.</p>
<p>7. Go back to the original terminal and create spfile from pfile;<br />
SQL&gt; create spfile from pfile;</p>
<p>8. Mount database.<br />
SQL&gt; startup mount;</p>
<p>9. Alter the database to look in the new location for the data files and redo logs.  Below is an example. (Do this for all data and redo logs.)<br />
SQL&gt; alter database rename file &#8216;/home/oracle/oradata/{SID}/sysaux01.dbf&#8217; to &#8216;/usr/local/app/oracle/oradata/{SID}/sysaux01.dbf&#8217;<br />
SQL&gt; alter database rename file &#8216;/home/oracle/oradata/{SID}/redo01.log&#8217; to &#8216;/usr/local/app/oracle/oradata/{SID}/redo01.log&#8217;</p>
<p>10. Open database.<br />
SQL&gt; alter database open;</p>
<p>Now it should hopefully come up properly.  You man want to shut it down and bring it up once more to make sure everything is working properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://trylinux.org/2008/03/29/move-oracle-data-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Bug : exp-00003 for LOB tables</title>
		<link>http://trylinux.org/2008/02/19/oracle-bug-exp-00003-for-lob-tables/</link>
		<comments>http://trylinux.org/2008/02/19/oracle-bug-exp-00003-for-lob-tables/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 19:48:02 +0000</pubDate>
		<dc:creator>tip</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://trylinux.org/2008/02/19/oracle-bug-exp-00003-for-lob-tables/</guid>
		<description><![CDATA[Disclaimer: This is plagiarized! See: http://www.anysql.net/en/oracle/oracle_bug_exp00003.html
When you use old version of exp to export tables with LOB column from Oracle 9.2.0.5 or higher version, you will get an error &#8220;EXP-00003 : no storage definition found for segment &#8230;..&#8221;, actually this is an Oracle bug, you could temporary get it resolved by replace a view &#8220;exu9tne&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p><font color="#ff0000"><strong><u>Disclaimer:</u></font> This is plagiarized!</strong> See: <a href="http://www.anysql.net/en/oracle/oracle_bug_exp00003.html" target="_blank">http://www.anysql.net/en/oracle/oracle_bug_exp00003.html</a></p>
<p>When you use old version of exp to export tables with LOB column from Oracle 9.2.0.5 or higher version, you will get an error &#8220;EXP-00003 : no storage definition found for segment &#8230;..&#8221;, actually this is an Oracle bug, you could temporary get it resolved by replace a view &#8220;exu9tne&#8221;, as following:</p>
<p>Before exporting, run the following SQL under sys:<br />
<code>CREATE OR REPLACE VIEW exu9tne (<br />
tsno, fileno, blockno, length) AS<br />
SELECT ts#, segfile#, segblock#, length<br />
FROM  sys.uet$<br />
WHERE  ext# = 1<br />
UNION ALL<br />
SELECT * FROM SYS.EXU9TNEB<br />
/</code><br />
After exporting, run the following to restore the view definition according to <a href="https://metalink.oracle.com/" target="_blank">Metalink</a> Notes.<br />
<code>CREATE OR REPLACE VIEW exu9tne (<br />
tsno, fileno, blockno, length) AS<br />
SELECT ts#, segfile#, segblock#, length<br />
FROM  sys.uet$<br />
WHERE  ext# = 1<br />
/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://trylinux.org/2008/02/19/oracle-bug-exp-00003-for-lob-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
