Solved

create external table from .dmp

Posted on 2011-03-16
3
563 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

739 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