Re: imp table by table
And if the table already exists, look to disable the constraint, and then enable them after the import. Raj "Yechiel Adar"To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> Subject: Re: imp table by table Sent by: root@fatcity. com December 10, 2002 01:35 PM Please respond to ORACLE-L Maybe you can do this: 1) imp index=n constraint=n 2) imp ignore=y rows=no Yechiel Adar Mehish - Original Message - To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 11:58 AM > Hi all, > > I have dump files (1 table 1 dump file, dump filename is tablename) > > How to create imp scripts that will import all those dump files without any referential problem > > Something like this: > > > select 'imp system/manager file=./' || object_name || '.dmp || ' fromuser=myuser touser=myuser' > from user_objects > where object_name = myuser > order by creation; > > > do you think this will work ? > > My problem is with referential > > > Thanks > > Mery X'Mas -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (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).
Re: imp table by table
Maybe you can do this: 1) imp index=n constraint=n 2) imp ignore=y rows=no Yechiel Adar Mehish - Original Message - To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 11:58 AM > Hi all, > > I have dump files (1 table 1 dump file, dump filename is tablename) > > How to create imp scripts that will import all those dump files without any referential problem > > Something like this: > > > select 'imp system/manager file=./' || object_name || '.dmp || ' fromuser=myuser touser=myuser' > from user_objects > where object_name = myuser > order by creation; > > > do you think this will work ? > > My problem is with referential > > > Thanks > > Mery X'Mas > > > -- > Please see the official ORACLE-L FAQ: http://www.orafaq.com > -- > Author: Sinardy Xing > INET: [EMAIL PROTECTED] > > Fat City Network Services-- 858-538-5051 http://www.fatcity.com > San Diego, California-- Mailing list and web hosting services > - > To REMOVE yourself from this mailing list, send an E-Mail message > to: [EMAIL PROTECTED] (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: Yechiel Adar INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (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).
Re: imp table by table
I think the logic is wrong. You could build the fact table first and then add lookup tables and the constraints. You have to know your data and order it by hand. Yechiel Adar Mehish - Original Message - To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 11:58 AM > Hi all, > > I have dump files (1 table 1 dump file, dump filename is tablename) > > How to create imp scripts that will import all those dump files without any referential problem > > Something like this: > > > select 'imp system/manager file=./' || object_name || '.dmp || ' fromuser=myuser touser=myuser' > from user_objects > where object_name = myuser > order by creation; > > > do you think this will work ? > > My problem is with referential > > > Thanks > > Mery X'Mas > > > -- > Please see the official ORACLE-L FAQ: http://www.orafaq.com > -- > Author: Sinardy Xing > INET: [EMAIL PROTECTED] > > Fat City Network Services-- 858-538-5051 http://www.fatcity.com > San Diego, California-- Mailing list and web hosting services > - > To REMOVE yourself from this mailing list, send an E-Mail message > to: [EMAIL PROTECTED] (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: Yechiel Adar INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (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).
RE: imp table by table
Most likely, you will have to run the imports to get the data and the primary keys. Then run them again with ignore=y and rows=n to get the foreign keys. > > My problem is with referential > -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stephen Lee INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (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).
Re: imp table by table
Add IGNORE=Y into imp statement JP On Tuesday 10 December 2002 10:58, you wrote: > Hi all, > > I have dump files (1 table 1 dump file, dump filename is tablename) > > How to create imp scripts that will import all those dump files without any > referential problem > > Something like this: > > > select 'imp system/manager file=./' || object_name || '.dmp || ' > fromuser=myuser touser=myuser' from user_objects > where object_name = myuser > order by creation; > > > do you think this will work ? > > My problem is with referential > > > Thanks > > Mery X'Mas -- Pruner Jan [EMAIL PROTECTED] http://jan.pruner.cz/ - Only Robinson Crusoe had all his work done by Friday -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jan Pruner INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (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).