RE: Is there an option for insert statements/DML to be captured similar to DDLs generated with import imp show=y

  • From: "Dunbar, Norman" <norman.dunbar@xxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: <sundarmahadevan82@xxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 8 Oct 2009 15:21:34 +0100

Hi Sundar,

>> ... Lets consider this example. I have
>> a dump exp.dmp I run imp system/manager file=exp.dmp . I receive an
>> error. The error is: create table emp failed.

The ORA- error code will give you a huge clue as to why the create
failed. I suspect possibly (in my experience) that the table already
exists. The answer is simple, use IGNORE=Y to ignore errors in the
CREATION of objects during an import.

>> ... Since the table is created, the next step is to load data. To
>> load data to emp table, is imp system/manager file=exp.dmp full=y the
>> only option ?

No, see above. imp system/manager fromuser=? touser=? IGNORE=Y ...

>> or is there a way to generate "insert into 
>> emp" from the exp.dmp(similar to generating DDLs with show=y).

No, because the INSERT statements use bind variables INSERT INTO table
VALUES (:1, :2, :3) so that's the only statement you could extract from
the dump file *if* it was possible to do it.


Cheers,
Norm.


Information in this message may be confidential and may be legally privileged. 
If you have received this message by mistake, please notify the sender 
immediately, delete it and do not copy it to anyone else.   We have checked 
this email and its attachments for viruses. But you should still check any 
attachment before opening it. We may have to make this message and any reply to 
it public if asked to under the Freedom of Information Act, Data Protection Act 
or for litigation.  Email messages and attachments sent to or from any 
Environment Agency address may also be accessed by someone other than the 
sender or recipient, for business purposes.  If we have sent you information 
and you wish to use it please read our terms and conditions which you can get 
by calling us on 08708 506 506.  Find out more about the Environment Agency at 
www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. 
If you have received this message by mistake, please notify the sender 
immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should 
still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under 
the Freedom of Information Act, Data Protection Act or for litigation.  Email 
messages and attachments sent to or from any Environment Agency address may 
also be accessed by someone other than the sender or recipient, for business 
purposes.

If we have sent you information and you wish to use it please read our terms 
and conditions which you can get by calling us on 08708 506 506.  Find out more 
about the Environment Agency at www.environment-agency.gov.uk
--
//www.freelists.org/webpage/oracle-l


Other related posts: