not a support questionWhile 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
select distinct('mkdir -p '||substr(file_name,1,instr(file_name,'/',-1,1)-1)) from dba_data_files
union
select distinct('mkdir -p '||substr(name,1,instr(name,'/',-1,1)-1)) from v$controlfile
union
select distinct('mkdir -p '||substr(member,1,instr(member,'/',-1,1)-1)) from v$logfile
union
select distinct('mkdir -p '||substr(file_name,1,instr(file_name,'/',-1,1)-1)) from dba_temp_files;
Hope this helps
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
You must log in to post.