Home » RDBMS Server » Server Administration » Import FKs .
Import FKs . [message #62724] Tue, 10 August 2004 23:01 Go to next message
Ach
Messages: 26
Registered: April 2004
Junior Member
Hi,

 How can one import the foreign keys of tables of a schema which is imported exactly from an other schema?

 I want to have all the FKs in destinition table as they are in source table...

thanx for your help!
Re: Import FKs . [message #62737 is a reply to message #62724] Wed, 11 August 2004 03:28 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
import the schema without data.

--
-- this will import only the tables
--
imp dba/passCode fromuser=a touser=b rows=n file=somefile.dmp

-- or

--
-- use indexfile option to get the source code.
-- myddl.sql will have the ddl for all the tables
-- u can recreate them manually

imp dba/passCode fromuser=a touser=b rows=n file=somefile.dmp indexfile=myddl.sql
Previous Topic: ora-01034
Next Topic: Manually creation of DB
Goto Forum:
  


Current Time: Fri Sep 27 08:22:31 CDT 2024