Solved

Importing a .dmp into SQL

Posted on 2007-03-21
4
1,957 Views
Last Modified: 2013-11-30
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
Comment
Question by:HelderConde
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
johnsone earned 500 total points
Comment Utility
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
 

Author Comment

by:HelderConde
Comment Utility
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
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
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
 

Author Comment

by:HelderConde
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

763 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

12 Experts available now in Live!

Get 1:1 Help Now