• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1988
  • Last Modified:

Importing a .dmp into SQL

Hi,

I've just received a .dmp from a client. That's all I have.

Now, I need to import that .dmp onto my MS SQL Server. But I have no clue on how to do that.

Please note that accessing the Oracle Database and exporting the data directly to the SQL Server is *not* an option (due to the client's very strict rules on database). So, I need to get this solved using the .dmp only.

Any suggestions are greatly appreciated. Thanks in advance,

Helder
0
HelderConde
Asked:
HelderConde
  • 2
1 Solution
 
johnsoneSenior Oracle DBACommented:
Assuming this is a .dmp file created with Oracle's exp utility, the only thing you can do is use Oracle's imp utility to import it into Oracle.  From there you can move it to SQL Server.  The .dmp file is a proprietary format that is not very readable, and actually in raw form for most fields.
0
 
HelderCondeAuthor Commented:
Oh, man.

That's not good news.

Ok. I'm thinking of another approach. I know that the client has access to the database. So I can ask him to export it for me in a format that is easier for me to read and import into SQL.

Do you have any suggestions on what's the best approach to export a database (table structures and data) from Oracle to SQL Server?

Thanks in advance,

Helder
0
 
slightwv (䄆 Netminder) Commented:
Since I doubt there is a network link between the 2 database, I think you're limited to a flat file of some type or maybe an Access solution.

You can import the tables from Oracle into Access using ODBC
or
on the Oracle system, create a CSV or some other delimited file format.

Depending on the clients tables and datatypes, the easiest way is to use SQL*Plus.

similar to:
------------------------------------
set pages 0
set linesize 2000
set trimspool on
set feedback off

spool someFile.csv
select col1 || ',' || col2 || ',' || col3 from table;
spool off
0
 
HelderCondeAuthor Commented:
I know it's been quite long since the last interaction, but I was reviewing it and I want to assign the proper points now.

I installed a copy of Oracle-free application (Oracle XP? I don't remember the name), and imported the .dmp file into an Oracle database. Then, from there, I was able to connect to my SQL Server and then export the whole data. No problem. A little difficult to accomplish, due to my complete lack of experience with Oracle... but it was doable, in the end.

So, I'll assign the points to johnsone. His suggestion worked for me. Thanks!
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now