How can I migrate data from SQL Server 6,5 to Oracle 8?
We have a web site based on Microsoft SQL Server 6.5.Now we plan
to migrate the database to Oracle 8.
We have redesigned the tables structure and created tables under
Oracle 8, so we only need to migrate data from SQL Server.
We've exported data from SQL Server to text files.
How can we import data from files and restore to Oracle tables.
Is there a solution which let us to import data for particular
table columns,not all columns?
We'll be appreciated if somene can give suggestions.
Regards
Michael
null
Thank you for your reply.
I'll try the Oracle sqlloader utility first.
Regards
Micahel
Oracle Migration Workbench Team wrote:
: Michael,
: Oracle sqlloader is user for this sort of operation, see
: Oracle8i Utilities
: Release 8.1.5
: A67792-01
: available online through Oracle Technology Network.
: The Oracle Migration Workbench can be used to create bcp and
: sqlloader scripts, though since you have altered the schema
these
: scripts would need to be altered by hand after generation.
: Some thought has been put into redesigning table structures in
: the Oracle Migration Workbench, but currently it looks like
this
: reengineering will be left to be done by other tools, eg
Oracle
: Designer, once the SQLServer database has been duplicated with
as
: little change as possible onto Oracle.
: Hope that helps,
: Turloch
: Oracle Migration Workbench Team
: Michael (guest) wrote:
: : We have a web site based on Microsoft SQL Server 6.5.Now we
: plan
: : to migrate the database to Oracle 8.
: : We have redesigned the tables structure and created tables
: under
: : Oracle 8, so we only need to migrate data from SQL Server.
: : We've exported data from SQL Server to text files.
: : How can we import data from files and restore to Oracle
tables.
: : Is there a solution which let us to import data for
particular
: : table columns,not all columns?
: : We'll be appreciated if somene can give suggestions.
: : Regards
: : Michael
: Oracle Technology Network
: http://technet.oracle.com
null
Similar Messages
-
How to only migrate data from SQL Server 2008 to Oracle 11?
According to our requirement, We need to only migrate data from a SQL Server database to an existed
Oracle database user.
1) I tried to do it with SQL Developer 3.0.04 Migration Wizard, But find an issue.
My SQL Server database name is SCDS41P2, and my Oracle database user name is CDS41P2;
When I used SQL Developer to do offline move data by Migration Wizard, I found all oracle user
name in movedata files which gotten by run Migration Wizard
is dbo_SCDS41P2. If the Oracle user name is not the same as my existed Oracle user name,
the data can't be moved to my existed Oracle user when I run oracle_ctl.bat in command line window.
So I had to modify the Oracle user name in all movedata files, but it's difficult to modify them because there are many tables in
databases. So could you please tell me how to get the movedata files which the oracle user name in them is my
expected Oracle user name?
2) I also tried to use the 'copy to Oracle' function to copy the SQL Server database tables data
to the existed Oracle database user. When clicked 'copy to Oracle', I selected 'Include Data' and 'Replace' option
But I found some tables can't be copied, the error info is as below:
Table SPSSCMOR_CONTROLTABLE Failed. Message: ORA-00955: name is already used by an existing object
Could you please tell me how to deal with this kind of error?
Thanks!
Edited by: 870587 on Jul 6, 2011 2:57 AMHi,
Thanks for you replying. But the 'copy to oracle' function still can't be work well. I will give some info about the table. I also search 'SPSSCMOR_CONTROLTABLE' in the target schema, and only find one object. So why say 'name is already used by an existing object'? Could you please give me some advice? Thanks!
What is the 'Build' version of your SQL*Developer ?
[Answer]:
3.0.04
- what does describe show for the SPSSCMOR_CONTROLTABLE in SQL*Server ?
[Answer]:
USE [SCDS41P2]
GO
/****** Object: Table [dbo].[SPSSCMOR_CONTROLTABLE] Script Date: 07/18/2011 01:25:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SPSSCMOR_CONTROLTABLE](
[tablename] [nvarchar](128) NOT NULL,
PRIMARY KEY CLUSTERED
[tablename] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
- what does describe show for the SPSSCMOR_CONTROLTABLE in Oracle ?
[Answer]:
-- File created - Monday-July-18-2011
-- DDL for Table SPSSCMOR_CONTROLTABLE
CREATE TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE"
( "TABLENAME" NVARCHAR2(128)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
-- DDL for Index SYS_C009547
CREATE UNIQUE INDEX "CDS41P2"."SYS_C009547" ON "CDS41P2"."SPSSCMOR_CONTROLTABLE" ("TABLENAME")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
-- Constraints for Table SPSSCMOR_CONTROLTABLE
ALTER TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE" MODIFY ("TABLENAME" NOT NULL ENABLE);
ALTER TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE" ADD PRIMARY KEY ("TABLENAME")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ENABLE;
Edited by: 870587 on Jul 18, 2011 1:42 AM -
How can I migrate data from an old MBA to a new one without having access to the screen of the old one? The screen of the old MBA is damaged !
If your "older" MBA has a Thunderbolt port then it isn't that old. See Target Disk Mode about how it's used. Note that without a monitor you won't be able to tell from the screen when it has fully started, and if it succeeded in starting in TDM. If it did, then the hard drive should appear on the Desktop of your new computer. You can then access it to transfer your files. You can even use Migration Assistant or any backup utility to transfer data. Just don't try to transfer system files.
-
Faster way to migrate data from SQL Server to Oracle 10g
We have to migrate data from SQL Server to Oracle 10 g.
One particular table on SQL Server has records around 1.25 millions.
We tried moving data using DTS package, but looks it will take hours with current speed of 300 records/minute.
This table has TEXT column, which has XML strings stored. I am not sure, if this is the reason for slow migration.
Would you please suggest better options to migrate it faster?
Thanks in advance !!!Have you tried Migration work bench?
-
Reg. Migrating data from SQL Server 2000 to Oracle
Hi All,
I need to migrate a same data from SQL Server 2000 to Oracle 9i.In sql server Export option is there, but the problem is some 30 tables have More than one LONG datatype column in a table. That's why oracle not allow to import.
Could you guys find any tool for the same.
Please do the needful.
Thanks & Regards,
Prathaphi dermot,
it's very urgent now. Can you please give any solution for this.
and also i tried the SQL developer tool. But i got an below error,
Error starting at line 2 in command:
CREATE USER dbo_testdatalatest IDENTIFIED BY dbo_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:2 Column:45
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 3 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO dbo_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 4 in command:
CREATE USER epm_testdatalatest IDENTIFIED BY epm_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:4 Column:45
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 5 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO epm_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 6 in command:
CREATE USER lportal_testdatalatest IDENTIFIED BY lportal_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
Error at Command Line:6 Column:49
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 7 in command:
GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO lportal_testdatalatest
Error report:
SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label.
Error starting at line 8 in command:
connect dbo_testdatalatest/dbo_testdatalatest;
Error report:
Connection Failed
Commit
Regards,
Prathap.R -
How to select data from Sql server 2005 database tableinto oracle database table
Hi,
I have table text1 in sql server database and text2 in oracle database (11g). Now how to move data from SQL Server table into oracle table. So please help me how to do it.
Thanks a lot in advance.
rk
OS: Windows 7 professionalHi,
you can use export/import wizard and specify sql server as a source and oracle as destination.
I hope this is helpful.
Please Mark it as Answered if it answered your question
OR mark it as Helpful if it help you to solve your problem
Elmozamil Elamir Hamid
MCSE Data Platform
MCITP: SQL Server 2008 Administration/Development
MCSA SQL Server 2012
MCTS: SQL Server Administration/Development
MyBlog -
How to extract incremental data from SQL server to oracle tables in ODI
HI All,
In my ODI sql server is install.My Source is in SQL server and my target is in Oracle.
I need to create a interface mapping where i need to extract incremental data from sql server to oracle.
There is a datetime(with Timestamp) field in sql server .I need to pull incremental data based on dateime.
Example = tablename.DateTime > (select '1-jan-11' from dual) .....i am using this query but its not woking.the error is Invalid object name"dual".
We are not going to use Incremental in IKM and LKM.
Request you to please provide any suggestion ASAP.
Thanks,
LonyYou can do that via Variable.
In the interface mapping create a filter on Tablename.DateTime
and put the condition like this
Tablename.DateTime BETWEEN #VAR and in the variable use this query in refreshing tab with oracle schema
SELECT max(start_time)||' AND '||max(END_TIME)+1 from audit_table where ETL_JOB_CODE = '20'In the package call the above variable in refresh mode and then interface.
This way you will pass from the query between and condition date and pass to interface so that SQL Server fetches the data between those too range.
Note:- You might need to tweak the date format so that SQL Server can understand.
Hope this helps. -
Extract the data from SQL Server and Import into Oracle
Hi,
I would like to run a daily job that will export the table data from SQL server table (it will be only one or two table) and Import back into Oracle table (it might one or two table tables).
Could you please guide me that how can i do this using either sql server or oracle?
We have oracle 9.2 and sql server 2005.
Normally i do from flat file which is generated by source destination nand i dump into oracle using sql*loader but this time I have to directly extract/export the data from MS Sql server and load into Oracle table, mostly it will reload so i might doing any massaging data during the load.
If you show me the detail approach, it will be really appreciated.
I have access to Sql server but i don't how to use sql server to do this or using oracle as a daily job even becuase have to schedule the job for this as it will be a daily job.
Thanks,
poratipsUnless you can find an open source ODBC driver for SQL Server that runs on Solaris (and I wouldn't be overly hopeful there) Heterogeneous Services would require that you license something-- a third party ODBC driver, a new Oracle instance, or an Oracle Transparent Gateway.
As I stated below, you could certainly use SQL Server's ETL tool, DTS. Oracle's ETL tools would require additional licensing since you're just on 9.2. You could also write a small application (Java or otherwise) that connected to both databases and transferred the data. If you're particularly enterprising, you could load the SQL Server Type 4 JDBC driver into Oracle's JVM and write a Java stored procedure that connected to the SQL Server database via JDBC, but that's a pretty convoluted approach.
Justin -
Need help in migrating data from SQL Server to Oracle
Hi,
I've created a database link in my Oracle Database 11g Express Edition connecting to our SQL Server 2005 Enterprise Database. Now, I'm having issues on migrating some fields. Mostly Text field in SQL Server to CLOB in Oracle. I've created a PL/SQL Procedure to do this but somehow these columns don't get all the value.
For example:
In my sql server, I have a table SQLTBL with a field REMARKS of TEXT data type. It has the following value.
This is line 1.
This is line 2.
This is line 3.
Now I created a table ORCLTBL in oracle with field REMARKS of CLOB data type.
In my procedure I do something like.
begin
for i in ( select "remarks" rem from "dbo"."sqltbl"@sqldb )
loop
insert into orcltbl ( remarks ) values (i.rem);
end loop;
commit;
end;
/When I select the data from oracle it will only show "This is line 1" and disregard the values after the new line character.
Is there a way to make this work?
Thanks,
AllenAllen Sandiego wrote:
Hi,
I've created a database link in my Oracle Database 11g Express Edition connecting to our SQL Server 2005 Enterprise Database. Now, I'm having issues on migrating some fields. Mostly Text field in SQL Server to CLOB in Oracle. I've created a PL/SQL Procedure to do this but somehow these columns don't get all the value.
For example:
In my sql server, I have a table SQLTBL with a field REMARKS of TEXT data type. It has the following value.
This is line 1.
This is line 2.
This is line 3.
Does the above mean, you have Three records or it is One record spanning in Three lines?
Now I created a table ORCLTBL in oracle with field REMARKS of CLOB data type.
In my procedure I do something like.
begin
for i in ( select "remarks" rem from "dbo"."sqltbl"@sqldb )
loop
insert into orcltbl ( remarks ) values (i.rem);
end loop;
commit;
end;
/When I select the data from oracle it will only show "This is line 1" and disregard the values after the new line character.
Probably, assuming that there is only One record, SQL server is sending the data as separate rows as opposed to a Single Row.
Can you provide the Output of below when executed from Oracle terminal? (I hope you understand the motive of query, and pardon my knowledge of SQL Server if the query below does not work :) )
select count("remarks"), "remarks" rem from "dbo"."sqltbl"@sqldb group by "remarks"; -
How to retrieve nVarchat data from Sql Server DB
How can I retrieve data of NVARCHAR data type from Sql Server 2000.
Do I have to user ResultSet.getCLOB() or ResultSet.getBLOB() ?
thxI have no idea, but you can find out the classname which is mapped by JDBC at the following ways:
// Retrieve mapped class name by metadata.
ResultSetMetaData metaData = resultSet.getMetaData();
String className = metaData.getColumnClassName("columnname");
System.out.println(className); // Prints the mapped class name. I.e. java.sql.Blob or java.sql.Clob
// Or just upcast to object and lookup the instantiated class.
Object object = resultSet.getObject("columnname");
String className = object.getClass().getName();
System.out.println(className); // Prints the mapped class name. I.e. java.sql.Blob or java.sql.Clob -
Issues Migrating Data from SQL Server to Oracle
Good morning, I'm currently trying to migrate data from a SQL Server 7 Database to Oracle 11GR1.
I've followed the steps outlined in the guide that's on OTN and for the most part it worked well, the Data Model Capture, transformation and generation worked fine but when i try to do an online data migration the parallel DataMove threads stop working, i have no errors at all on the migration log they just don't pickup new tables to migrate data.
After looking at the last tables they tried to migrate i noticed that this happens when the table has a text, timestamp or image column on Sql Server which translate to CLOB, RAW[50] and BLOB columns on Oracle.
I'm i missing something here or just flat out doing something wrong with these datatypes?
Oh btw i'm using SQL Developer 2.1 December Edition plus the jtds 1.2.5 drivers for SQL Server.As you don't have an error message it is difficult to diagnose. You could perform the offline data load for those failiing tables and continue to use the online method for all others.
Another option would be to log a service request and to provide some demo data to analyse the root cause. -
Transfer data from SQL Server 7.0 to Oracle 7.3.3
Hi there,
We need to transfer some of the data (not whole database) from
a SQL Server 7.0 database to an Oracle 7.3.3 database. Are there
any tools that we can use? Which tool do you recommend?
Thanks in advance.
Catherine
nullhi Catherine,
Download the Oracle Migration Workbench for SQL Server 7.0 from
this site. It is located under the Software section of the Oracle
Migration Workbench page.
Regards
John
Catherine (guest) wrote:
: Hi there,
: We need to transfer some of the data (not whole database) from
: a SQL Server 7.0 database to an Oracle 7.3.3 database. Are
there
: any tools that we can use? Which tool do you recommend?
: Thanks in advance.
: Catherine
Oracle Technology Network
http://technet.oracle.com
null -
How to push realtime data from SQL Server
Hello,
I am looking for the best way to approach the following
situation ... 1) how to connect 2) what I will need to maintain
"realtime" updated data on the the web browser (client) side 3) and
if Flash Media Server 2 or the Flash runtime (Platform) would be
required.
I have a SQL Server database that is updated every 5 seconds
with new data and I need to have this data reflected on a Flash
webpage. For simplicity, lets just say its a table that contains 50
records with 4 fields. When/if the data changes in any of the
fields it needs to show up "realtime" on the webpage. All thoughts
would be helpful ... but unfortunately it must be done in Flash
(don't ask) ... Thanks in advance!Having a webpage designed using FLASH 8 that can
communicate with a SQL Database would be something I am looking
into also. I hope someone that really knows what he is doing
explains this to us. I would like to use this with a catalog that
would be updated when I update the SQL Data. Why use FLASH? Reason
I am using it is that one has control of their work. The typical
HTML and other programming that works with HTML seem to NOT have a
standard making your website work look really good in one browser
but look like heck in another and some browsers will just not work
like you designed it. -
How can I migrate data from old macs second harddrive in time machine backup to my new mac?
Hi,
I have a little problem migrating all my data from my old Macbook to my new Macbook. I had two harddisk installed in my Macbook and did make a backup to a USB Disk. It seems that both harddisk are included in the backup. I can see them in Time Machine.
Now I want to restore my data to the new Macbook Retina. Unfortunately the Migration Assistant only shows the system disk, but not the data disk.
How can I access the data disk in the backup to restore the data to some directory on the new Macbook? The data is mostly the iTunes Library of my old Macbook.
RegardsIf the migration assistant doesn't work and you have no backup then you will have to take another path that involves a little more manual work. Anyway in your situation a fresh start seems like a good idea. So set up your new Mac with the same username and afterwards copy your user folder from the old to the new either using your ethernet connection or an external USB drive. This will also bring your user's Library folder along and retain most of your settings at least as far as they are applicable in Mavericks.
HTH
Martin -
Using Oracle Forms Importing Data From SQL Server into Oracle Tables.
Dear All,
We are using Oracle Forms 10g in windows XP and having OAS 10g and Oracle database 9i.
How can we import data from SQL Server 2005 into Oracle tables using Oracle Forms?
Thanks & Regards
EidyI have no idea what "Oracle Hetrogenius Services" is, so I can't help you with that, sorry.
SQL Developer might also assist you. SQL Developer can connect to SQL Server as well as Oracle and has some tools for migration. See the documentation for details:
http://download.oracle.com/docs/cd/E12151_01/doc.150/e12156/toc.htm
For additional help on using SQL Developer for this task, please consult Support or the SQL Developer forum: SQL Developer
Hope this helps,
Jacob
Maybe you are looking for
-
How do you delete your credit card information from iTunes
I'm trying to delete my credit card information in iTunes off my ipad but its not giving me the option to. Yes I've tried settings>iCloud>apple I'd also I have tried settings>store>apple I'd . It just won't let me do it. Also I redeemed money from a
-
I can't open the iPhoto. it freezes and i must quit it!
I have been trying to open my iPhoto already a week. it opens but doesn't load the pictures and it freezes. I must always quit to be able to continue working. I have already reinstalled it. NO helpful. I have already reinstalled the Yosemite. No help
-
Error while defining set of books
Hello to all, I have created Currency, Calender, Structure and added valuset and values. the values in the account segment which is asssigned with natual account flexfield qualifier entered as balance sheet items: asset, liability. Now while creating
-
My iPhone 5s has stopped playing music out of the speakers. It works when I plug in my headphones but other than that there's no sound. It just randomly happened so I'm not sure if I can fix it or if I need to bring my phone in. Help?
-
BT wifi & BT Wifi with Fon connection issue
in the last 5 days I've had issues connecting to BT Wifi and BT Wifi with Fon. I'm connecting using an iPhone and iPad so when I use the BT Wifi app for logging in it constantly says check details (which are correct) and then it will connect but the