Solved

create external table from .dmp

Posted on 2011-03-16
3
553 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
  • 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 76

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
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.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now