<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>AskDBA.org Forum &#187; Tag: cloning - Recent Posts</title>
<link>http://www.forum.askdba.org/</link>
<description>Forum for Oracle DBA&#039;s</description>
<language>en</language>
<pubDate>Sat, 11 Feb 2012 10:52:16 +0000</pubDate>

<item>
<title>Anonymous on "using instr function to get filesytem structure for manual db clone"</title>
<link>http://www.forum.askdba.org/topic/using-instr-function-to-get-filesytem-structure-for-manual-db-clone#post-157</link>
<pubDate>Sat, 12 Jun 2010 11:01:52 +0000</pubDate>
<dc:creator>Anonymous</dc:creator>
<guid isPermaLink="false">157@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Thanks man for the help i was trying to get a shortcut to create the database and you have done a lot for me by providing this function
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "using instr function to get filesytem structure for manual db clone"</title>
<link>http://www.forum.askdba.org/topic/using-instr-function-to-get-filesytem-structure-for-manual-db-clone#post-78</link>
<pubDate>Wed, 19 Aug 2009 16:59:43 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">78@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;While performing a manual db cloning, you are required to create database directories. Using instr and substr function can help you with this and can list the create directory script&#60;/p&#62;
&#60;pre&#62;
select distinct('mkdir -p '&#124;&#124;substr(file_name,1,instr(file_name,'/',-1,1)-1)) from dba_data_files
union
select distinct('mkdir -p '&#124;&#124;substr(name,1,instr(name,'/',-1,1)-1)) from v$controlfile
union
select distinct('mkdir -p '&#124;&#124;substr(member,1,instr(member,'/',-1,1)-1)) from v$logfile
union
select distinct('mkdir -p '&#124;&#124;substr(file_name,1,instr(file_name,'/',-1,1)-1)) from dba_temp_files;
&#60;/pre&#62;
&#60;p&#62;Hope this helps
&#60;/p&#62;</description>
</item>

</channel>
</rss>

