Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Copy tables accross.

Re: Copy tables accross.

From: Uwe Schneider <us_at_webde-ag.de>
Date: Tue, 14 Nov 2000 18:21:13 +0100
Message-ID: <3A117489.255B82C6@webde-ag.de>

Florent wrote:
>
> Hi all.
>
> I hope you can help me with this problem. I am writing an application
> that connects to an oracle database using ODBC.
> I now need to have 2 databases one for test and one for production.
> How can I copy from one database to the other?
> I know the export/import function but I don't know the exact syntax to
> use and I need to transfer everything, the data, the structure, the
> indexes, the users etc.
>
> Can any one send me the syntax for the export/import function. And
> would importing a database create the schema or do I have to create it
> before I do the import.
> what else do i need to do before i import the data?
> I am using SQL plus.
>

  1. login on the source machine
  2. (sourcehost) > exp full=yes
  3. copy expdat.dmp to the target host by OS utils
  4. login on the target machine with a fresh RDBMS (same version!)
  5. (targethost) > imp full=y

On the target db you have to prepare the tablespaces before importing. Users and all objects are created automatically.

Uwe

-- 
Uwe Schneider - WEB.DE AG  - Amalienbadstr. 41  - 76227 Karlsruhe 
F&E / Database Technologies - Tel. (+49) 721 94329 832
"In a world without walls and fences, who needs windows and gates?"
Received on Tue Nov 14 2000 - 11:21:13 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US