Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Cloning a database
marko mikulicic <marko_at_seul.org> wrote in news:3B80B659.9020401_at_seul.org:
> Ban Spam wrote: >> marko mikulicic <marko_at_seul.org> wrote in >> news:3B7F589A.5070701_at_seul.org: >> >>
>> >> Below is a SQL script that generate a Korne Shell script >> which I use to clone any DB. FWIW "pandora" is my test box. >> >> set pages 0 feedback off lines 255 >> spool clone-db.ksh >> select 'rcp ' || file_name || ' pandora:' || file_name || ' &' from >> dba_data_files; select 'rcp ' || name || ' pandora:' || name >> || ' &' from v $controlfile; select 'rcp ' || member || ' pandora:' >> || member || ' &' from v $logfile; spool off >> > > Can this database run on the same machine or will have conflicting > instance name ? > > (If just coping would be necessary why just not recursiveliy copy the > database directory?) > > > Marko > >
While it is possible to change the name of an instance, I consider it to me not worth while. In other words I have not been able to get a script that would do it for any arbitrary instance.
WRT recursive copy - I ALWAYS keep control files spread across multiple volumes.
FWIW - I have successfully used this on at least a half dozen different instances which contain an arbitrary number of datafiles, logfiles & control files.
With free advice you get what you paid for it. ;-)
Use at your own risk or reward. Received on Sun Aug 19 2001 - 20:59:52 CDT