?
Solved

create external table from .dmp

Posted on 2011-03-16
3
Medium Priority
?
567 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 1600 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 400 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to recover a database from a user managed backup

719 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