Re: Restoring to a different database name

From: joel garry <joel-garry_at_home.com>
Date: Tue, 12 May 2009 10:19:33 -0700 (PDT)
Message-ID: <57258ee5-4790-4b86-b4dd-6f5e4eddfd4b_at_s1g2000prd.googlegroups.com>



On May 9, 12:23 pm, Topher <eliot.top..._at_gmail.com> wrote:
> In my development environment, I have two machines, each of which has
> a database called "C1" (that's the value we use for the SID and all
> those other things that identify the DB).
> I need to replicate one of these databases that's on the first machine
> onto the second machine, without overwriting what I already am calling
> "C1" on the second machine.  I want to call the new copy "C2".
> I used expdp to create a full database dump of C1 on the first
> machine.  On the second machine, I used dbca to create C2, and set my
> shell's environment variables to refer to that.
> I thought that when I used impdp it would import into C2.  But no, it
> complained about all these problems creating things in C1.
> So I tried impdp with the "remap_datafile=C1:C2" option, but that
> doesn't seem to fix it.
>
> Can anyone help me here?  Thanks.

Also see http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006946 (including the example it refers to
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#BGBFADEH ).

jg

--
_at_home.com is bogus.
http://www.google.com/doodle4google/vote.html
Received on Tue May 12 2009 - 12:19:33 CDT

Original text of this message