Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to imp a table, deleting the old data? or deleting the table (before)

jamiguel77Dec 29 2008 — edited Dec 29 2008
suppose: in my actual table tcomven i have 15 records, also suppose, i the file: h12292008.dmp exist 27 records

if i type:

imp UFIERROS/linuxx TABLES=(tcomven) fromuser=UFIERROS touser=UFIERROS file=h12292008.dmp ignore=Y

show that imported 27 records, i checked the table, and i have 15+27 records= 42 Records

my question:

before import the table is possible delte all the content of Tcomven table (note i do it first with sqlpleu and or sqldeveloper) my question is exista flag on the imp command?


or:

if i type (same command without ignore flag):

imp UFIERROS/linuxx TABLES=(tcomven) fromuser=UFIERROS touser=UFIERROS file=h12292008.dmp

say me a error: the object exists, same question: the imp command have a flag for drop first the table tcomven(or in any case, in th exp command)?


thanks
This post has been answered by Surachart Opun on Dec 29 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 26 2009
Added on Dec 29 2008
8 comments
21,551 views