Migrating SQL Server 7 to O8i
Please refer to TAR # 2005705.995 for more details.
I am unable to migrate SQL Server 7.0 database into oracle 8i . While in the
capturing stage I get the following errors shown in the attachment . It hangs
while tyring to make indices. I tried aborting the operation but it wouldn't
let me do it . it says cannot abort the application.
After waiting for ages, I therfore use TASK MANAGER in NT I kill me OMWB
application.
I get plenty of EXECEPTION ERRORS failed to map tables and then it gets stuck while trying to create indices.
Please refer to TAR # 2005705.995 for more details.
Hi,
You can perform this action with the Oracle Migration Workbench. Just install the Workbench on the same machine as your SQL Server database.
You can then configure the workbench to point to the oracle database on your Sun machine.
You can use the Oracle database on your Sun machine for both your destination database (the database to which you migrate your SQL Server schema and data) and workbench repository.
In order to do this you will need to configure a tnsnames.ora entry. The tool that will do this configuration for you should be started up at the end of the workbench installation. It is a fairly straightfoward process.
You then need to create a user in your oracle database that will store the workbench repository.
Once you have comleted these steps you will be able to migrate SQL Server on NT to Oracle on Sun.
It is exactly the same process as migrating to Oracle on NT except you are pointing the Workbench to Oracle on a Sun box.
Regards
John
Similar Messages
-
Migrating SQL Server DB to Oracle DB - probably EASY answer
I completed the tutorial on migrating SQL Server DB to Oracle. When I try on my own database, it all migrated well except anything containing a datetime. When I run the oracle_ctl.bat file and view any of the log files, I see Record 1: Rejected - Error on table DBO_RIVERSIDEDB_NCWCD_TEST.TS6HOUR_TAIN, column DATE_TIME.
ORA-01843: not a valid month. Do I need to change the first line of the file set NLS_DATE_FORMAT=Mon dd YYYY HH:mi:ssAM ? In the .dat file created from the unload_script.bat, the data starts out 1275<EOFD>2007-05-11 00:00:00.000<EOFD>74.900000000000006<EOFD><EOFD><EORD>1275<EOFD>. So my questions is about the date_format - is that the same for all SQL Server databases or do I need to enter something based on MY database? I am definitely a newbie so this is probably a super easy question. Thanks so much for any help!Hello,
There are two different date format in SQL Server.
1] DateTime : 2010-08-03 12:48:15.170
2] SmallDateTime: 2010-08-03 12:48:00
Both the date will be inserted in Oracle Date column.
Is there any automated way to generate datamove script to tackle these differences? I've around 200 tables to be migrated and there may be many such cases.
The issue with Oracle SQL Developer setting i.e. Tools >Preferences> (Under) Migration> Data Move Option, there are two masks we can specify, one for Date Mask and other for Timestamp. How can I set both of these for converting data into Date, not in timestamp.
Below is my .CTL file, none of below fields are timestamp, but since incoming data in in timestamp format, it is applying timestamp mask and eventually failing to insert data into table
load data
infile '[PARTSORDER].dat'
"str '<EORD>'"
into table admin.PARTSORDER
fields terminated by '<EOFD>'
trailing nullcols
ORDERID ,
GenDate "TO_TIMESTAMP(:GenDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
Status "DECODE(:Status, CHR(00), ' ', :Status)",
StatusBy ,
StatusDate "TO_TIMESTAMP(:StatusDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
Approved ,
ApprovedBy ,
ApprovedDate "TO_TIMESTAMP(:ApprovedDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
TrackingNumber "DECODE(:TrackingNumber, CHR(00), ' ', :TrackingNumber)",
SVOther "DECODE(:SVOther, CHR(00), ' ', :SVOther)",
ShippedVia "DECODE(:ShippedVia, CHR(00), ' ', :ShippedVia)",
ShippedBy "DECODE(:ShippedBy, CHR(00), ' ', :ShippedBy)",
ShippedDate "TO_TIMESTAMP(:ShippedDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
CompletedBy "DECODE(:CompletedBy, CHR(00), ' ', :CompletedBy)",
CompletedDate "TO_TIMESTAMP(:CompletedDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
ORDERType "DECODE(:ORDERType, CHR(00), ' ', :ORDERType)",
RMAID ,
RMANumber "DECODE(:RMANumber, CHR(00), ' ', :RMANumber)",
BackOrdered ,
XORDERID ,
PARTSORDERSENT "DECODE(:PARTSORDERSENT, CHR(00), ' ', :PARTSORDERSENT)",
SHIPMENTID "DECODE(:SHIPMENTID, CHR(00), ' ', :SHIPMENTID)"
Any help in this regard will be highly appreciated!
Thanks
Vinod -
Migrate SQL Server 7.0 to Oracle 8i - Any known issues??
Hi,
I am in the process of migrating SQL Server database to Oracle 8i for testing purpose. When I do migrate SQL Server database to Oracle 8i, am I doing any harm to the exiting SQL Server database? Would the users be able to use SQL Server database as usual?? Are there any known issues in this regard?
Please reply.
Thanks.
RameshThe Migration Workbench copys the information it requires from the source database and stores it in the Migration Workbench Repository, which is separate from the Source database. So, to answer your question, yes, the users can continue to use the SQL Server database. The data move may cause some system performance degradation. It may also be an idea to replicate the SQL Server database, in case any complication should arise.
Hope this helps
Dan -
Migrating SQL Server 7.0 to Oracle 8i in Different Operating Systems
I am migrating SQL Server 7.0 Databases on NT to Oracle 8i on Sun 2.6. Is there is any other way other then Migration Workbench.
If Mig Workbench is OK. What are the steps to do Migration.
nullHi,
You can perform this action with the Oracle Migration Workbench. Just install the Workbench on the same machine as your SQL Server database.
You can then configure the workbench to point to the oracle database on your Sun machine.
You can use the Oracle database on your Sun machine for both your destination database (the database to which you migrate your SQL Server schema and data) and workbench repository.
In order to do this you will need to configure a tnsnames.ora entry. The tool that will do this configuration for you should be started up at the end of the workbench installation. It is a fairly straightfoward process.
You then need to create a user in your oracle database that will store the workbench repository.
Once you have comleted these steps you will be able to migrate SQL Server on NT to Oracle on Sun.
It is exactly the same process as migrating to Oracle on NT except you are pointing the Workbench to Oracle on a Sun box.
Regards
John -
Migrating SQL Server database to Oracle 8i - any known issues
Hi,
I am in the process of migrating SQL Server database to Oracle 8i for testing purpose.
When I do migrate SQL Server database to Oracle 8i, am I doing any harm to the exiting
SQL Server database? Would the users be able to use SQL Server database as usual?? Are
there any known issues in this regard?
Please reply.
Thanks.
RameshHi,
I am in the process of migrating SQL Server database to Oracle 8i for testing purpose.
When I do migrate SQL Server database to Oracle 8i, am I doing any harm to the exiting
SQL Server database? Would the users be able to use SQL Server database as usual?? Are
there any known issues in this regard?
Please reply.
Thanks.
Ramesh Hi Ramesh!
The Migration Workbench does not make any modifications to the SQL Server database. It only reads information from it. Your users should be able to use the SQL Server database as usual.
Please note however that if you migrate the data over to Oracle using the Migration Workbench and your users continue to enter/update data in the exiting SQL Server database then you may need to move all that data over again in order to have the most up to date data in the Oracle database.
thanks
- Garry -
Where did the tutorial to migrate SQL Server go?
Hi,
There was a great tutorial on how to do this on:
http://st-curriculum.oracle.com/obe/db/hol08/sqldev_migration/mssqlserver/migrate_microsoft_sqlserver_otn.htm
Where did it go? I cannot get to this link anymore.
Thanks,
ScottWelcome to the forum!
Whenever you post provide your 4 digit Oracle version.
>
There was a great tutorial on how to do this on:
>
On how to do what? Migrate sql server to what? To Oracle? To mysql?
Here is a link with info on using sql develoer to migrate from sql server to Oracle
http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
Here is a link with a doc on how to migrate sql server to mysql
http://www.oracle.com/us/corporate/press/1715479
You need to explain specifically what you are trying to do and what tools you are trying to do it with. -
Quick Migrate: SQL Server database to Oracle
When I try Quick Migrate: SQL Server database to Oracle, I get the following error messages:
1. Locating source plugin...failed
2. Checking multi-schema privileges...Privilege 'CREATE ROLE" is not granted with admin option.
Error #1 I do not understand.
Error #2: I created the user as follows:
DROP USER GRAINTEST CASCADE
CREATE USER GRAINTEST
IDENTIFIED BY SQL
DEFAULT TABLESPACE SMARTSOFT_DATA
TEMPORARY TABLESPACE TEMP
QUOTA UNLIMITED ON SMARTSOFT_DATA
QUOTA UNLIMITED ON SMARTSOFT_INDEX
GRANT CONNECT,
RESOURCE,
CREATE ROLE,
CREATE VIEW,
CREATE SESSION,
ALTER ANY TRIGGER TO GRAINTEST
DROP ROLE R_GRAINTST
CREATE ROLE R_GRAINTST NOT IDENTIFIED
GRANT R_GRAINTST TO GRAINTEST
WITH ADMIN OPTION
Thanks
MurrayMurray,
Apologies for referring to the 1.5 documentation but the 2.1 documentation still has the same information about creating a user to hold the repository.
You initially reported 2 problems -
1. Locating source plugin...failed
2. Checking multi-schema privileges...Privilege 'CREATE ROLE" is not granted with admin option.
For the first error have you installed the necessary JDBC driver ? I have just installed SQL*Developer 2.1 on a new laptop and could successfully connect following the documentation steps -
Oracle® SQL Developer
User’s Guide
Release 2.1
2.5.2 Before Migrating From Microsoft SQL Server or Sybase Adaptive Server
To configure a Microsoft SQL Server or Sybase Adaptive Server database for
migration:
1. Ensure that the source database is accessible by the Microsoft SQL Server or
Sybase Adaptive Server user that is used by SQL Developer for the source
connection. This user must be able to see any objects to be captured in the
Microsoft SQL Server or Sybase Adaptive Server database; objects that the user
cannot see are not captured. For example, if the user can execute a stored
procedure but does not have sufficient privileges to see the source code, the stored
procedure cannot be captured.
2. Ensure that you can connect to the Microsoft SQL Server or Sybase Adaptive
Server database from the system where you have installed SQL Developer.
3. Ensure that you have downloaded the JTDS JDBC driver from
http://jtds.sourceforge.net/.
4. In SQL Developer, if you have not already installed the JTDS driver using Check
for Updates (on the Help menu), do the following:
a. Click Tools, then Preferences, then Database, then Third Party JDBC Drivers.
b. Click Add Entry.
c. Select the jar file for the JTDS driver you downloaded from
http://jtds.sourceforge.net/.
d. Click OK.
========
The second error is again documented in the 2.1 documentation -
5.99 Privilege Warning for Migration
This dialog box is displayed if you click Verify in the Quick Migrate box and the
database user for the connection does not have all privileges necessary for a
multischema migration. For multischema migrations, this user must granted the
RESOURCE role with the ADMIN option; and this user must also be granted the
CREATE ROLE, CREATE USER, and ALTER ANY TRIGGER privileges, all with the
ADMIN option.
If you are performing a single-schema migration, you can ignore this warning.
=====
Which errors are you now seeing and which user was used to hold the repository ?
If you are using GRAINTEST for the repository then create it using this syntax -
CREATE USER GRAINTEST IDENTIFIED BY password <=== change password as necessary
DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp; <=== change tablespaces as necessary
GRANT CONNECT, RESOURCE, CREATE VIEW, CREATE PUBLIC SYNONYM TO
GRAINTEST WITH ADMIN OPTION;
GRANT ALTER ANY ROLE, ALTER ANY SEQUENCE, ALTER ANY TABLE, ALTER TABLESPACE,
ALTER ANY TRIGGER, COMMENT ANY TABLE, CREATE ANY SEQUENCE, CREATE ANY TABLE,
CREATE ANY TRIGGER, CREATE ROLE, CREATE TABLESPACE, CREATE USER, DROP ANY
SEQUENCE, DROP ANY TABLE, DROP ANY TRIGGER, DROP TABLESPACE, DROP USER, DROP ANY
ROLE, GRANT ANY ROLE, INSERT ANY TABLE, SELECT ANY TABLE, UPDATE ANY TABLE TO
GRAINTEST with admin option ;
then when making the migration make sure the Oracle connection is to this user.
Please update the thread with the errors you get after following these steps.
Regards,
Mike -
Migration sql server 2000 to oracle 9i
Hi
I migrate sql server 2000 to oracle 9i
when i capture Microsoft Sql Server it gives an error
oracle.dbtools.metadata.persistence.PersistenceException: ORA-04098: trigger 'MIGRATIONS.MD_PROJECTS_TRG' is invalid and failed re-validation
I try it again and it starts but it doesn't stop until clicking cancel or close
what is the wrong?
ThanksHi,
You are hitting a know issue using a repository created in 9.2.
To show this is the case do the following -
SQL> alter trigger MD_PROJECTS_TRG compile ;
Warning: Trigger altered with compilation errors.
SQL> show errors
Errors for TRIGGER MD_PROJECTS_TRG:
LINE/COL ERROR
3/9 PL/SQL: Statement ignored
3/20 PLS-00905: object MIGREP.MD_META is invalid
Compiling md_meta -
SQL> alter package md_meta compile ;
Warning: Package altered with compilation errors.
SQL> show errors
Errors for PACKAGE MD_META:
LINE/COL ERROR
0/0 PLS-00908: The stored format of MD_META is not supported by this
release
21/4 PLS-00114: identifier 'PUTBAIFZKA3IHSJ5AC4ZXWYAWG41KN' too long
21/4 PLS-00707: unsupported construct or internal error [2702]
SQL>
==
If you get this then the only alternative is to create the SQL*Developer repository in a 10.2 database.
Regards,
Mike -
Migrating SQL server 2000 to Oracle9i/10g
hi
i want to migrate SQL server 2000 database to Oracle9i database,
and i have downloaded the file OMWB.Zip from OTN.
but i did not find the Sql sever2000 plug-in.
plz send the link where i can get sqlserver plug-in. (SqlServer2k.jar file)
or anyone plz mail me this SqlServer2k.jar file,my mail id is:
[email protected]
its very urgent. plz help me out.
Dwaipayan DasHi Dwaipayan,
SQL Server migrations are not supported by the (old)OMWB anymore.
This functionality has been moved into the SQL Developer Migration Workbench.
SQL Server migrations are a built in feature of SQL Developer, which you can download for free here.
http://www.oracle.com/technology/products/database/sql_developer/index.html
Before downloading you can take a look at this viewlet demonstrating the migration of SQL Server Northwind database.
http://www.oracle.com/technology/tech/migration/workbench/viewlets/sqlserver.html
All the new migration features are based around SQL Developer.
Heres are new page
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
Regards,
Dermot. -
Migrate sql server data to oracle
Hello
I want to migrate data in sql developer but not all the tables. Because my sql server schema has a lot of tables and datas. So it takes much times.
i have already captured model and converted model but just i want to migrate 3 table data.
Thanksyou can drop all unwanted tables from the Oracle model before doing the data migration.
-
Migrating Sql server to oracle
Hi All,
Where can i get documentation/tools about migrating microsoft sql server database to oracle database.Where can i get documentation/tools about migrating
microsoft sql server database to oracle database.Oracle SQL Developer is very good for start.
Tool:
http://www.oracle.com/technology/software/products/sql/index.html
Doc:
http://download.oracle.com/docs/cd/E12151_01/doc.150/e12156/toc.htm
Cheers! -
How to migrate sql server 2000 user defined function returns table
Hi,
How do I capture the SQL Server 200 user defined function that returns table? Is this supported in the current version of Oracle Migration Workbench? I am using the latest version - Release 9.2.0.1.0 with SQL SERVER 2000 plug-in.
I was able to capture the SQL Server 2000 user defined function that returns string and smalldatetime but not the functions return table during the migrate data source stage.
Thanks in Advance,
SusanSusan,
This is not currently supported. The next release of the Oracle Migration Workbench (due very soon), will do a better job of catching this mad reporting an error. We are looking into a suitable mapping and have created bug # 2355073 - TABLE DEFINITIONS NOT ACCEPTED FOR TABLE FUNCTIONS to track this issue.
Once possible solution we are looking into is using the object type to emulate. Here is an example from the bug:
Original table
SQL> create table tabela (a number, b number, c number, d number);
SQL> insert some values...
SQL> select * from tabela;
A B C D
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
SQL Server 2000 code
CREATE FUNCTION FUNCRETORNATABELA()
RETURNS TABLE
AS
RETURN SELECT A,B,C,D FROM TABELA
SELECT A,B,C,D
FROM FUNCRETORNATABELA()
ORDER BY A
Oracle code (workaround)
SQL> create or replace type MyObjType as object (
2 a number, b number, c number, d number);
3 /
Type created.
SQL> create or replace type MyTabType as table of MyObjType;
2 /
Type created.
SQL> create or replace function teste return Mytabtype pipelined as
2 aa MyObjType := MyObjType(null, null, null, null);
3 cursor c1 is select a,b,c,d from tabela;
4 begin
5 open c1;
6 loop
7 fetch c1 into aa.a, aa.b, aa.c, aa.d;
8 exit when c1%NOTFOUND;
9 pipe row (aa);
10 end loop;
11 close c1;
12 return;
13 end;
14 /
Function created.
SQL> select * from table(teste);
A B C D
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
SQL> select a, c from table(teste) order by c desc;
A C
4 4
3 3
2 2
1 1
Donal -
Migration SQL Server 7.0 to Oracle 8i
Hi,
I am trying to migrate a SQL Server 7.0 database to Oracle 8i using the latest version of the Migration Workbench tool. The source model is normally generated (I see my tables and other objects) but nothing is generated in the Oracle Model... What would be an explanation for this issue and how could I fix it ?
Thanks in advance.
FabienLooks like the capture has gone OK but have you gone through the mapping phase?
-
Getting error in migrating SQL server SP's having case statements
Hello Sir,
using migration workbench tool for converting SQL server database to Oracle Databse.Getting error message in converting below SP with Case Structure.
Please help me in solving this problem
****** Object: Stored Procedure dbo.SP_Sec_GetScreenFieldAccessLevel
Procedure Name : SP_Sec_GetScrnFldAccessLevel
Notes :
This procedure selects data from E_E_C_field_Access_level table
CREATE PROCEDURE SP_Sec_GetScrnFldAccessLevel
AS
Select Screen_ID + '-' + FieldDescription as ScreenFieldName
,Level=
CASE
WHEN Len(IsNull(E_E_C_field_Access_level.ein_code,''))= 1 THEN campus_name
WHEN Len(E_E_C_field_Access_level.ein_code)> 1 THEN ein_name
END,
ein_name,campus_name,Urole,
IsLocked=case IsLocked
when 1 then 'Yes'
when 0 then 'No'
End
from E_E_C_field_Access_level,Field_Name_Field_Description,User_Roles_Master,EIN,Campus
where
E_E_C_field_Access_level.Screen_Field_ID*=Field_Name_Field_Description.ID
and E_E_C_field_Access_level.User_role_Id *=User_Roles_Master.Role_Id
and E_E_C_field_Access_level.ein_code *= EIN.ein_code
and E_E_C_field_Access_level.campus_code *= Campus.campus_code
and E_E_C_field_Access_level.del_flag=0
order by E_E_C_field_Access_level.date_created desc
IF @@ERROR <> 0
RETURN @@ERROR
ELSE
RETURN 0I have since found out subqueries in the select list are not supported by Oracle.
Brad
null -
Migration SQL Server 6.5 to Oracle 8.0.5
I am migrating from SQL Server 6.5 to Oracle 8.0.5 using
migration Workbench Ver. 1.2.2. The stored procedures are not
migrated properly where temporary tables are used to store the
intermediate results of a query on SQL Server 6.5 side. I want
to look at the coding to create a temporary table with sessionid
as part of table to make it unique for the session and the user
on the oracle side using DBMS_SQL package. Any body can give me
the coding ?
nullSurendra kumar (guest) wrote:
: Oracle Migration Workbench Team wrote:
: : Surendra,
: : It seems like the workbench is trying to use 8i temporary
: tables,
: : which is the default, this option can be switched off.
: : Note that there is an option on the Procedures, Triggers and
: : Views to generate 8i temporary tables, switch this off if
you
: : want to work with 8.0 and have an additional sessionid
column.
: : This option can be set on all procedures (click on the
: procedures
: : category on the SQLServer model pane), or on a per procedure
: : basis (click on the procedure in the left hand SQLServer
model
: : pane).
: : Hope this solves your problem,
: : Turloch
: : Oracle Migration Workbench Team
: : Surendra Kumar (guest) wrote:
: : : I am migrating from SQL Server 6.5 to Oracle 8.0.5
using
: : : migration Workbench Ver. 1.2.2. The stored procedures are
: not
: : : migrated properly where temporary tables are used to store
: the
: : : intermediate results of a query on SQL Server 6.5 side. I
: want
: : : to look at the coding to create a temporary table with
: : sessionid
: : : as part of table to make it unique for the session and the
: user
: : : on the oracle side using DBMS_SQL package. Any body can
give
: me
: : : the coding ?
: : Oracle Technology Network
: : http://technet.oracle.com
I have used the correct option and the Migration Workbench is
not creating the DDL statements correctly for the creation of
table. Whatever may be the problem I want use DBMS_SQL for
creation of unique table names with session id as part of the
table name. I need a sample script to use session id as part of
table name and to vary the name of the table dynamically in
DBMS_SQL. It is not accepting the variable name for table name
in create table statement.
null
Maybe you are looking for
-
Hi, I was told that a select list cannot be bigger than 32K - is this still true or has this bug been fixed for version 3? If this is still true, then how do I avoid getting problems if the select-list becomes bigger than 32K? Thanks.
-
How to backout a VO substitution...
If after having uploaded the jpx file I need to remove the substitution, how is this accomplished? Do I use JDR_UTIL to delete the document with the substitution or do I remove the substitution from the jpx and upload it again?
-
Displaying m power 2 , eith jsf. . .
Hello people has anyone any hint about how to show thje area unit - m power two on a web page ? Thanks . Al the best
-
Photoshop elements and aperture
How do I edit using PS elements - I went to preferences, chose PS elements as the external editor, but the image stays in aperture and I can not seem to get the image in a place to edit using PSE. I have tried double clicking on the picture but that
-
How do I transfer photos and music from my laptop to ipad air
I have an ipad air and a laptop. how do I transfer music and photos from the laptop top the ipad?