Solved

How can I create an exact copy of an oracle database in MS SQL 2008 Standard

Posted on 2011-03-23
7
275 Views
Last Modified: 2012-05-11
Or what is the best way? I had an Idea to create linked servers and that once linked I could find a stored proceedure somewhere that would run and get all the table names and data and create them on my MS SQL 2008 Server.  I only want a snapshot to be taken I do not need the data to be updated at all.
0
Comment
Question by:LorneCash
7 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35198743
What Oracle version?

There is an Oracle package: dbms_metadata and a function called get_ddl in the newer versions of Oracle.

This will extract the structures.  I've not heard of a utility that will port the code automatically.
0
 
LVL 34

Expert Comment

by:johnsone
ID: 35198971
What about CTAS?  I don't know SQL Server that well so I'm not sure it will work, but I would think it should.

You should be able to do something like:

create table <tab> ... as select * from <tab>@<link>;

You could wrap that in a procedure that did a select on user_tables@<link> to loop through all the tables.
0
 
LVL 50

Accepted Solution

by:
Lowfatspread earned 500 total points
ID: 35199636
if you are using oracle 9i or later can you not just use oracle publishing and snapshot replication to achieve a copy

http://msdn.microsoft.com/en-us/library/ms151243.aspx
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 35200837
>>How can I create an exact copy of an oracle database in MS SQL 2008 Standard<<
You will not be able to create an exact copy.  Something similar perhaps, but not exactly the same.
0
 
LVL 1

Author Comment

by:LorneCash
ID: 35200986
I think I need to be more specific... All I need is the tables populated with the data no code, no users and no permissions just tables with the same number of columns and the same number of rows that contain the same data.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35201029
If you have linked the databases then:  Then johnsone's post in http:#a35198971
or insert into table (select * from linked_table)

Do have DTS (Data Transformation Services) with sql server?

If they aren't linked you can create a delimited flat file.

0
 
LVL 1

Author Closing Comment

by:LorneCash
ID: 35201589
SSMA is the way to go in this case
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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sql server tables from access 18 18
sql how to count case when 4 16
T-SQL Default value in Select? 5 26
Problem when I run a simple storeproc - help 4 16
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…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

770 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