create external table from .dmp

This works...
CREATE TABLE My_table_XT
  ORGANIZATION EXTERNAL
  (
     TYPE ORACLE_DATAPUMP
     default directory TEMP
     LOCATION ( 'My_table_xt.dmp' )
  )
  as
select * from all_objects;

and I can select from my_table_xt.

My question is, is it possible to take a .dmp file with several tables in it and create external tables using the single .dmp?

So, you create a dmp using exp and parameter file that defines 3 tables. You put the dmp in your directory...

is it possible to easily create 3 external tables?
gswitzAsked:
Who is Participating?
 
PilouteConnect With a Mentor Commented:
Hi,

An external table is a "flat file". An export dump is a binary file. Don't think it could work.

Cheers,
P
0
 
PilouteCommented:
PS. In your example, the ORACLE_DATAPUMP access driver creates such a "flat file"....
0
 
slightwv (䄆 Netminder)Connect With a Mentor Commented:
Confirming what was said above:  if the DMP file was created with an Oracle exp(or expdp), it is binary and can only be accessed by imp(or impdp).

Datapimp and old versions are not mix and match.  If exp created it, imp must be used to read it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.