Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: copy database to new machine method...
I have done it in the past where I did not have the same directory structure
and/or same drive array, in these cases I edited the trace file from
"backup_controlfile_to_trace" to reflect the new locations and do a "create
database" rather than "create controlfile". I suppose that both methods have
the same end result, but I have not done it just by re creating the
controlfile
Usually if I'm just creating a clone for testing purposes I'll use files from my last hot backup and apply archive logs to get it current(if I have the time), this gives me both "practice" on restores and shows me that my online backups are working.
I have also used exp/imp, but have not had much success in importing a full export, I usually end up creating the tablespaces and users and importing using the from user clause. I do use import to refresh the test db's however.
Good point about re running the catalog/catproc scripts if new db has a newer patchset. I just received the cd set for 8.1.7 release 3 but notice that the installer still read 8.1.7.0.0 so I have to investigate further to see if indeed they sent me the correct cd's (the box does say feb-02 release)
cheers!
"Rauf Sarwar" <rsarwar_at_ifsna.com> wrote in message
news:c2d690f2.0206042151.6df7821e_at_posting.google.com...
> Glen A Stromquist <glen_stromquist_at_nospam.yahoo.com> wrote in message
news:<%kbL8.21900$qA.755398_at_news2.telusplanet.net>...
> > To move an 8.1.7 db to a newer machine with the same OS(2000 advanced
> > server) I decided to try the following rather than the usual exp/imp or
> > clone using copy datafiles etc.. and create database/controlfile from
trace
> > file:
> >
> > *installed 8.1.7 on new machine, create listener
> >
> > *shutdown db on old server
> >
> > *did cold backup
> >
> > *created identical directory structures for db on new machines drives
(drag
> > & drop)
> >
> > *copied datafiles, init.ora, control files and redo logs to new machine
> >
> > *created internal password using orapwd
> >
> > *set oracle_sid to [sid]
> >
> > *create instance on new machine using oradim -new -sid [sid] -pfile
> > ["pfile"]
> >
> > *start new instance using oradim -startup -sid [sid] -intpwd [pwd]
> > -starttype srvc -pfile'[pfile] (-starttype srvc,inst returned
ORA-12560?)
> >
> > *use net8 assistant to create tnsnames.ora with new sid
> >
> > *start up database from svrmgrl using startup pfile=[pfile]
> >
> > This almost seems to easy, at least it went much smoother than any other
> > method I've used in the past. With the datbase shutdown, one could even
> > drag the entire directories and contents to the new machine rather than
use
> > the backed up files. (this is not a large database)
> >
> > Before I put this in to production is there any possible pitfalls I may
> > have missed using this method?
> >
> > TIA
> >
>
>