Solved

create external table from .dmp

Posted on 2011-03-16
3
565 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:gswitz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
Piloute earned 400 total points
ID: 35147956
Hi,

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

Cheers,
P
0
 
LVL 7

Expert Comment

by:Piloute
ID: 35148259
PS. In your example, the ORACLE_DATAPUMP access driver creates such a "flat file"....
0
 
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 100 total points
ID: 35148966
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

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question