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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Constraints problem

RE: Constraints problem

From: Richard Huntley <rhuntley_at_mindleaders.com>
Date: Tue, 27 Aug 2002 10:53:22 -0800
Message-ID: <F001.004C08FD.20020827105322@fatcity.com>


You can simply export, then import the tables...making sure you use fromuser/touser,ignore=y,rows=n
Since the table is already there and rows=n, the table will not be rebuilt and the constraints will
be added, but you have to make sure that ignore=y or the import will fail stating the object already exists.

-----Original Message-----
Sent: Saturday, August 24, 2002 7:13 AM
To: Multiple recipients of list ORACLE-L

Hi,

I had to copy a set of tables with data from one schema into another. I did this by using "create table <table_name> as select * from master_schema.table_name;
But the constraints ( primary key, foreign key etc) are not created in the test schema.
Is there any way to implement all the constraints (in the master_schema) into the test schema?         

Thanks in advance.

regards,
Karthik
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Karthikeyan S
  INET: skarthik_at_globalsw-in.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Richard Huntley
  INET: rhuntley_at_mindleaders.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Aug 27 2002 - 13:53:22 CDT

Original text of this message

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