Unix Technical Forum

imp table ( overright previous data )

This is a discussion on imp table ( overright previous data ) within the Oracle Database forums, part of the Database Server Software category; --> hi all, is it possible the data which is in export dump file, overright the data of database which ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:54 AM
peter
 
Posts: n/a
Default imp table ( overright previous data )

hi all,
is it possible the data which is in export dump file, overright the
data of database which importing.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 03:54 AM
gazzag
 
Posts: n/a
Default Re: imp table ( overright previous data )

peter wrote:
> hi all,
> is it possible the data which is in export dump file, overright the
> data of database which importing.


Yes or no, depending on what you are trying to achieve.

If you tell us what you actually want to do, we can be of more help.

HTH

-g

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 03:54 AM
sybrandb
 
Posts: n/a
Default Re: imp table ( overright previous data )



On Dec 14, 12:11 pm, "peter" <hhh.datab...@gmail.com> wrote:
> hi all,
> is it possible the data which is in export dump file, overright the
> data of database which importing.


Not possible. An import is a series of INSERTS.
If there is a PK on the table the INSERT will fail.
If there is no PK on the table INSERT will create duplicates.

It strikes me you are asking such elementary questions, which could be
addressed by reading the documentation. Are you just lazy, or do you
intend to misuse this group as a free Oracle course?

--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 03:54 AM
gazzag
 
Posts: n/a
Default Re: imp table ( overright previous data )

sybrandb wrote:
> Not possible. An import is a series of INSERTS.
> If there is a PK on the table the INSERT will fail.
> If there is no PK on the table INSERT will create duplicates.


.... and if you drop/truncate first, then import with ignore=y/n ....
yada yada yayda ...

Basically we don't know what the OP wants to achieve.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com