Can a SQL Server dump be loaded into oracle?
Hi All,
I'm wondering, if we have a sql server DB dump, is there anyway to load the data into Oracle? (other than loading the dump into a sql server and then using OMWB? )
Thanks in advance,
Sudheer
Yes, you can migrate just the table structure if you want. After you have sucessfully created an Oracle Model using the capture wizard. You can invoke the "Generate Migration Scripts..." from the Action menu.
This will create a SQL script, which you can modify as necessary and then execute from SQL*Plus or SQL Developer.
Donal
Similar Messages
-
Can a SQL SERVER table be accessed via Oracle Forms
My boss asked me this question today. I am pretty sure the answer is "no", but thought it better to throw it out to the crowd:
"Can a SQL SERVER table be accessed via Oracle Forms?"Yes, this is possible using Oracle's Transparent Gateway. Check out the My Oracle Support (formerly Metalink) document "How To Create A Form Based on SQL Server Table" (Doc ID: 564915.1) for all of the details. This document is based on Forms 10g (10.1.2.0.2) so you may need to upgrade your Forms version if you are not already at this version at a minimum.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Best Practice to fetch SQL Server data and Insert into Oracle Tables
Hello,
I want to read sqlserver data everry half an hour and write into oracle tables ( in two different databases). What is the best practice for doing this?
We do not have any database dblinks from oracle to sqlserver and vice versa.
Any help is highly appreciable?
ThanksWell, that's easy:
use a TimerTask to do the following every half an hour:
- open a connection to sql server
- open two connections to the oracle databases
- for each row you read from the sql server, do the inserts into the oracle databases
- commit
- close all connections -
Convert MS SQL server image data type into oracle clob
Hi all! I'm tryng to access to Microsoft SQL server with Oracle via ODBC. Oracle is not able to use the image data type of Microsoft SQL server. Do you know a way to convert this data type in an oracle format? The explicit casting converts image to long raw, but after the conversion Oracle is not able to manage these data type. Thank you very much!
Stefano.Hi you might want to post your question in General Forum.
General Database Discussions
There's very few users visit this forum. -
Insert data from SQL Server 2008 St.Ed to ORACLE 11gr2 St. Edition
Dear all,
I'm searching a solution for faster transmission of data of a db SQL Server (2008 St. edition) vs PROD db that is an ORACLE 11gr2 St. edition too.
Actually this operation spend 1,5 hours but I'd like cut this time because size of the data grow up in future and this time could be a serious problem ....
Looking on Oracle Enterprise Manager I've seen that main problem is about commit .. SQL Server every record insert into Oracle TBL generate a commit ... unfortunately I cannot insert when commit must be done ... If will be solved it probably may be solved situation ...
Thanks in advance for every idea.
AndreaNardo wrote:
SQL server is connect with Oracle DB by OLEDB, commit every record is why SQL haven't possibility of manage it ... anyway I'm sorry for delay of the answer, I've solved using sqlloader ... faster and without impact ... must be have hight attention if there will be change any field ... that's all.
REDO upgrade was done like first step because anyway it was too small.
Thanks for you answer and sorry again for delay !!!!
Thanks.
If you are depending on MS SQL server technology to do this, you are going to be stuck with the performance of that technology.
A few weeks ago we had a need to load institute a daily load of or DW from a MSSQL database. The MS-centric person responsible developed a procedure (using MS tools) that took 4.5 hours to load 1.2 million rows. I ran a session trace and the tkprof report revealed exactly what has already been described. Single row insert and commit. I knocked together a PL/SQL procedure that did a single INSERT .. (SELECT .. FROM TABLE@MSSQL). and it ran in 4 minutes. Using the Oracle transparent gateway for ODBC. -
Passing SQL Server identity attributes values into adf entity objects
Hi all.
I'm using Jdeveloper 10g for developing an ADF Swing application based on MS SQL Server DB.
Does anyone know if it is possible to pass SQL Server identity attributes values into the correspondent attrributes of adf entity objects, like we do with Oracle DB Sequence.
The problem is that i should somhow implement cascade deleting of detail view objects, so i should use the composition association. But since i cant fill the primary key attribute with appropriate value (that is actually a ms sql server db sequence value) i always get
the following exception: oracle.jbo.InvalidOwnerException: JBO-25030 as i try to create a new pair of master/detail objects.
Thanks in advance.
Alex.The approach is good. but i still dont understand how i can address the sql server db sequence (identity field) programmatically...
The code offered
SequenceImpl sequence = new SequenceImpl("PRODUCTS_SEQ",getDBTransaction());
setProdId(sequence.getSequenceNumber());
generates something like this:
select deq_name.nextval from dual
but this syntax works for oracle only... and not for sql server...
Edited by: Timin on Mar 26, 2009 6:34 AM
Edited by: Timin on Mar 26, 2009 10:25 AM -
Migrate sql server dump file to Oracle database on a network
I have a sql server dump file provided to me by DBA's. I have to migrate this dump file to Oracle database on a network. Please suggest me the steps to do this.
5c1ab566-05d1-4cc9-894a-fd1fe724c752 wrote:
That would be a text file with around 100 records. I have migrate those records to oracle database. The firewall constraints doesn't allow me to create a link to that database. Will Migration workbench would be apt for this case. How can i capture the database offline in this case ?
regardless of the tool/technique you use, those bits have to get from machine running sqlserver to the machine running Oracle. Either over the network (through the firewall) or via 'sneakernet.' What, exactly, are the firewall constraints?
If the export is a simple text file (character delimited fields? fixed length fields?) and only 100 records ... Migration Workbench may be overkill, perhaps a simple sqlldr job. But you still have to get the bits from 'there' to 'here'.
============================================================================
BTW, it would be really helpful if you would go to your profile and give yourself a recognizable name. It doesn't have to be your real name, just something that looks like a real name. Who says my name is really Ed Stevens? But at least when people see that on a message they have a recognizable identity. Unlike the system generated name of 'ed0f625b-6857-4956-9b66-da280b7cf3a2', which is like going to the pub with a bag over your head. -
Can a SQL Server stored procedure call an SAP function module?
Can a SQL Server stored procedure call an SAP function module.? The stored procedure will be called via a trigger when data records are added to a Z table.
You have two options:
- the other software can use the RFC SDK and call directly in the system
- the other software can use a database connect
Markus -
How can install SQL Server 2008 Integration Services without CD?
How can install SQL Server 2008 R2 Integration Services without CD?
The PC with Windows 7 32-bits is far away and poor bandwidth . So, I want to install SQL Server 2008 Integration Services without CD.
Does any installer for SSIS only?Copy the install media from a memory stick, portable drive or network.
Arthur My Blog -
I haven't had the opportunity to implement a SQL Server Failover Cluster Instance (FCI) for over 10 years and that was done with two physical, identical database servers way back in the day of Windows Server 2003 and SQL Server 2000 (old school).
Can a SQL Server 2008 R2 Failover Cluster Instance (FCI) be implemented between two Hyper-V hosted virtual machines? The environment in question already has Windows Server 2012 R2 Hyper-V hosts in place, so I'm just looking to see if this is even
possible and/or supported when utilizing virtual machines.
The client in question is currently using SQL Server 2008 R2 instances running on Win2008R2, Win2012, and Win2012R2, but I'd also be interested how this can be done or not with SQL Server 2012 or 2014 as well. Thanks in advance.
Bill ThackerYes, it can be done with Hyper-V guests. In fact, with Windows Server 2012 R2 Hyper-V, guests can use the Shared VHDX feature for shared storage used by Windows clusters. The guests can run Windows Server 2008 and higher provided that the Hyper-V Integration
Services are installed to support Shared VHDX. The only challenge here is making the Hyper-V hosts highly available as well, running it on WSFC.
Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
Blog |
Twitter | LinkedIn
SQL Server High Availability and Disaster Recover Deep Dive Course -
How to integrate from MS SQL SERVER 2005 and Flatfile to Oracle 10g.
Hi
I am new to ODI. I am trying to load sample data from MS SQL Server 2005 and Flatfile to Oracle 10g.
1. I have created three models.
1-1. SQL2005 (SRC_CUSTOMER table)
1-2. Flatfile (SRC_AGE_GROUP.txt & SRC_SALES_PERSON.txt)
1-3. Oracle 10g (TRG_CUSTOMER table)
You may know I got those environments from the ODI DEMO environment.
2. I could able to reverse the tables also.
3. I have created an interface which contains source table (from MSSQL 2005), Flatfile and target table from ORACLE model.
4. I have imported the knowledge modules. But I am confusing in selecting the knowledge modules to source and target tables.
I've selected LKM File to SQL for flatfile model.
I've also selected LKM SQL to SQL for MSSQL 2005 model and IKM Oracle Incremental Update for the target table (ORACLE).
I've also implemented the interface that I created. It worked without errors. But there is no data in target table which is TRG_CUSTOMER.
I really would like to know what happened and what the problems are.
You can email me [email protected]
Thanks in advance
Jason Leewhat did give for SRC_AGE_GROUP SRC_CUSTOMER join condition
if it is
(SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MAX
give it as
(SRC_CUSTOMER.AGE>SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE<SRC_AGE_GROUP.AGE_MAX -
SQL Server Long Text column to Oracle CLOB via DB Link
Does anyone know how to load a SQL Server Long Text column into an Oracle CLOB column using DB Link? When I try to Select from SQL Server table into Oracle table, I receive the error "ORA-00997: illegal use of LONG datatype".
Thanks,
SusanHi,
This is a known restriction involving long columns -
(1) LONG datatype not supported with use of DBLINK when insert or update involves a select statement
(2) LONG datatype cannot be used in a WHERE clause, in INSERT into ... SELECT ... FROM
constructs, and in snapshots.
The workround is to use a PL/SQL procedure or try the SQLPLUS COPY command.
If you have access to My Oracle Support then review these notes -
Cannot Move A Long From non Oracle database Ora-00997: Illegal Use Of Long Datatype (Doc ID 1246594.1)
How To Workaround Error: Ora-00997: Illegal Use Of Long Datatype (Doc ID 361716.1)
Regards,
Mike -
Error converting SQL Server DDL and views to Oracle
I am trying to convert SQL Serve 2008 on windows to Oracle 11g using SQL Developer 3.2.20.09. I am using the jtds-1.2.7 drivers to connect to SQL Server.
I have made several attempts to run the conversion and am getting the tables, indexes, and triggers converted with no issue. However, my Procedures and views are not coming across. All of them are giving similar errors as:
"Failed To Convert Stored Procedure get_compvision > esp3.dbo.get_compvision:unexpected end of subtree: Line 0 Column 0"
When I log into the source SQL Server environment using SQL Developer, I get an empty SQL Editor window with "null" when I try to {right-click -> "Open"} on the Procedure.
Logging into SQL Server Administrator as the same user I can see the source code, so the issue appears to be related to SQL Developer and not my user privleges. I am a dbo alias in SQL Server.
In addition, if I click on a view, I can see the data and metadata, but not the SQL that defines the view. I see tabs for column, data, triggers, and details.
In addition, if I go to the "capture" for my Migration project and drill down to procedures, I can see them listed, but each and every procedure gives me a "/* DDL not accesible */" error. I get teh same results for views, triggers and indexes.
Can someone help me? I have been googling for days!
Edited by: user4714217 on Jan 24, 2013 12:54 PMSELECT v.vnd_c, CASE v.use_parent_addr_flg WHEN 0 THEN a.str_1 ELSE pa.str_1 END AS str_1,
CASE v.use_parent_addr_flg WHEN 0 THEN a.str_2 ELSE pa.str_2 END AS str_2,
CASE v.use_parent_addr_flg WHEN 0 THEN a.str_3 ELSE pa.str_3 END AS str_3,
CASE v.use_parent_addr_flg WHEN 0 THEN a.city ELSE pa.city END AS city,
CASE v.use_parent_addr_flg WHEN 0 THEN a.state ELSE pa.state END AS state,
CASE v.use_parent_addr_flg WHEN 0 THEN a.zipcode ELSE pa.zipcode END AS zipcode,
CAST((CASE v.use_parent_addr_flg WHEN 0 THEN (CASE a.foreign_flg WHEN 1 THEN 'Y' ELSE 'N' END)
ELSE (CASE pa.foreign_flg WHEN 1 THEN 'Y' ELSE 'N' END) END) AS char(1)) AS foreign_flg,
CASE v.use_parent_addr_flg WHEN 0 THEN a.country ELSE pa.country END AS country,
CASE v.use_parent_addr_flg WHEN 0 THEN a.cre_d ELSE pa.cre_d END AS cre_d,
CASE v.use_parent_addr_flg WHEN 0 THEN a.mod_d ELSE pa.mod_d END AS mod_d,
CASE v.use_parent_addr_flg WHEN 0 THEN a.mod_by ELSE pa.mod_by END AS mod_by
FROM dbo.om_vendor AS v LEFT OUTER JOIN
dbo.om_address AS a ON a.vnd_id = v.vnd_id AND a.addr_c = 1 INNER JOIN
dbo.om_owner AS o ON v.owr_id = o.owr_id INNER JOIN
dbo.om_address AS pa INNER JOIN
dbo.primary_vendors AS pv ON pa.vnd_id = pv.vnd_id ON o.part_id = pv.part_id
WHERE (pa.addr_c = 1)
WHICH TRANSLATES TO
SELECT v.vnd_c ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.str_1
ELSE pa.str_1
END str_1 ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.str_2
ELSE pa.str_2
END str_2 ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.str_3
ELSE pa.str_3
END str_3 ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.city
ELSE pa.city
END city ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.STATE
ELSE pa.STATE
END STATE ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.zipcode
ELSE pa.zipcode
END zipcode ,
(CASE v.use_parent_addr_flg
WHEN 0 THEN (CASE a.foreign_flg
WHEN 1 THEN 'Y'
ELSE 'N'
END)
ELSE (CASE pa.foreign_flg
WHEN 1 THEN 'Y'
ELSE 'N'
END)
END) foreign_flg ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.country
ELSE pa.country
END country ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.cre_d
ELSE pa.cre_d
END cre_d ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.mod_d
ELSE pa.mod_d
END mod_d ,
CASE v.use_parent_addr_flg
WHEN 0 THEN a.mod_by
ELSE pa.mod_by
END mod_by
FROM om_vendor v
LEFT JOIN om_address a
ON a.vnd_id = v.vnd_id
AND a.addr_c = 1
JOIN om_owner o
ON v.owr_id = o.owr_id
JOIN om_address pa
JOIN primary_vendors pv
ON pa.vnd_id = pv.vnd_id
ON o.part_id = pv.part_id
WHERE ( pa.addr_c = 1 );
Edited by: user4714217 on Jan 24, 2013 1:43 PM -
Extracting explanations from planning app and loading into Oracle table
Hi All,
I had a requirement where I had to extract data from a planning application through ODI 11g and load it into Oracle RDBMS.
I used essbase as my source in technology (since planning data is stored on essbase side) and oracle as my target.
Now the data is getting extracted from essbase side and is getting loaded into Oracle table through ODI.
Now the client requires that they want to extract the explanations or text values also from planning application and load them into Oracle table.
How this can be achieved?Is there a table on the sql side(since sql database is being used at back end for planning app) which stores the explanations,if yes please let me know which table it is.
Kindly help me with this requirement.Hi,
IKM SQL Control Append is perfect if you don't need incremental updates. If you need it, go for IKM Oracle Incremental Update (MERGE) or something like that.
Regards,
JeromeFr -
How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
I need to know details. Thanks.
USE master
go
EXEC sp_addlinkedserver
@server = '{Linked Server Name}'
,@srvproduct = '{System DSN Name}'
,@provider = 'MSDASQL'
,@datasrc = '{System DSN Name}'
EXEC sp_addlinkedsrvlogin
@rmtsrvname = '{Linked Server Name}'
,@useself = 'False'
,@locallogin = NULL
,@rmtuser = '{Oracle User Name}'
,@rmtpassword = '{Oracle User Password}'You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
You should not use MSDASQL or any DSN.
Erland Sommarskog, SQL Server MVP, [email protected]
Maybe you are looking for
-
Problems with iTunes opening and closing???
I cannot get iTunes to open. It shows it is running but it won't open, I can't force quit it either by right click or from force quit in the finder. So I can't open or close I tunes. I tried to restart the computer, re-installing iTunes, nothing is w
-
I purchased a movie yesterday and started the download. The download seemed to hang up at about 90%. Finally, it showed that it was ready to watch, but the movie will not play. Download is apparently corrupt. How do I get a working version?
-
InDesign issue outputting pdf's with EPS in file.
So just recently one of my files that has an .eps placed in it was getting errors exporting to pdf, it used to work fine in one of the files I had it. I even re-created the .eps and replaced it to see if it would work. This file had the same problem
-
can anyone tell me what setting I need to change so that I don't get duplicate duplicate messages - ever since 'mobile me' went live I have been getting every message twice - its not a problem so much as extremely irritating - mind you - a lot better
-
How do I get PBS again? Please help!!!
I was able to get PBS when I first got Apple TV after putting in a code, but my cable company recently changed their channel lineup, and I can no longer get PBS on Apple TV. I used to get PBS on channel 314 on my TV, but after speaking with my cable