Import DMP file to new Table [message #648187] |
Thu, 18 February 2016 05:32  |
 |
abhayman
Messages: 37 Registered: August 2011 Location: CA
|
Member |
|
|
Hi,
I was able to export the table using below command
exp usr1/user1@tes tables=table1 file=/myfoler/export/parties.dmp log=/myfoler/export/parties.log statistics=none direct=y
But when I am trying to import this dmp into a new table on same schema I get error.
imp usr1/user1@tes file=/myfoler/export/parties.dmp buffer=131072 commit=y log=/myfoler/export/parties_imp.log feedback=1000 ignore=Y tables=export_test
I am getting below error while doing so IMP-00033: Warning: Table "EXPORT_TEST" not found in export file
Can someone help me where I am going wrong ? I want to import the dump into new table which is already created .
Regards.
|
|
|
|
|
|
|
Re: Import DMP file to new Table [message #648211 is a reply to message #648204] |
Thu, 18 February 2016 09:44   |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
No, the directory is mandatory.
Ask you DBA to create one and grant you the access.
Otherwise your solutions are to:
* import into the same table then move the data into the target one (using INSERT SELECT
* import into another account (same table) and move the data into the target one (the first part requires DBA privileges)
* and other things like that using RENAME at one time or another one, depending in the existence or not of the exported table and data in this table and target one.
[Updated on: Thu, 18 February 2016 09:44] Report message to a moderator
|
|
|
Re: Import DMP file to new Table [message #648212 is a reply to message #648211] |
Thu, 18 February 2016 09:48   |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Thinking a little bit more, I never tried it and maybe this will be a good thing you could bring to the community:
* create a synonym for the target table with the name of the source table and try to import (with ignore=yes)
Does this work?
[Updated on: Thu, 18 February 2016 09:48] Report message to a moderator
|
|
|
|