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 ?
null

Surendra 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

Similar Messages

  • 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.
    null

    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

  • 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.
    Ramesh

    The 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 6.5 to Oracle 8

    Hi,
    I am currently converting some stored procedures from SQL Server 6.5 to Oracle 8 (PL/SQL). I am having trouble converting some nested sql statements such as the following to work in Oracle.
    Example :
    SELECT antall=COUNT(*), ulest=(SELECT ulest=COUNT(*) FROM soknad s, annonse
    a WHERE a.kundeid=13817 AND s.annonseid=a.id and lest != '1') FROM soknad s,
    annonse a WHERE a.kundeid=13817 AND s.annonseid=a.id
    The Select is first getting a count on the two tables for a particular id, the second field in the statement has a nested select which does a similar count but has a further condition on it.
    It could be done using two SELECT statements like this -
    SELECT COUNT(*) AS antall
    FROM soknad s, annonse a
    WHERE a.kundeid = 13817
    AND s.annonseid = a.id
    SELECT COUNT(*)
    FROM soknad s, annonse a
    WHERE a.kundeid=13817
    AND s.annonseid=a.id
    AND lest != '1'
    which may be workable but I would like to keep it as similar to the original as much as possible.
    Any ideas would be great!
    Thanks,
    Brad

    I have since found out subqueries in the select list are not supported by Oracle.
    Brad
    null

  • 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.
    Fabien

    Looks like the capture has gone OK but have you gone through the mapping phase?

  • 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.

  • Error migrating SQL Server 2000 database to Oracle.

    Hi,
    I am new in SQL Developer.
    I read most of the help manuals available on the net.
    I am able to create connections to both SQL Server and Oracle database.
    I am also able to create the migration repository on the Oracle database.
    SQL server connection - TestSQL
    Oracle database connection - TestOracle
    Migration Repository - Migration_Repository.
    Here is the problem am facing:
    When I start Migrate to Oracle wizard, by right clicking the TestSQL database, I followed all the required steps and enter the necessary information. -
    It starts creating the project - say, TEST but after that it gave the following error:
    Migration actions have failed. Check the migration report for more details. : ORA-01400: cannot insert null into ("MIGRATIONS"."MD_PROJECT_ID").
    Please help.

    Thanks for your reply.
    You are correct, there were some permission missing on the migration repository user.
    I have given permissions and it worked fine.
    but I can say that required permission mentioned in other posts and blogs on the Internet are not sufficient.
    One has to provide more admin priviligies to this user.

  • Migration SQL Server 6.5 to Oracle 8i

    Dear Sir,
    I download the Oracle Migration Workbench already. I install
    that software under Misrosoft Window 95 4.00.950 B. After
    Installation, I try to run the migration utilities and I got some
    error message, the message is
    "Class not found:
    oracle.mtg.migrationUI.MigC:\oracle\ora81\omwb\bin "
    Could u tell me, what happen ? and If I want to migration from
    SQL Server to Oracle, How, Could u let me know about the step of
    migration ?
    Regards
    Pongrat P.
    null

    I have just downloaded OMWB from net and was facing the same
    problem what Pongrat has faced. Thnaks for ready solution
    available. I have done the same as mentioned in this mail and
    worked.
    Rajesh Chug
    Oracle Migration Workbench Team wrote:
    : Pongrat,
    : You have come across a line length problem(see below)
    : There is some documentation included with the workbench, and
    : there is more downloadable from OTN. There is even a quick
    tour
    : for the workbench in the OTN->Technology->Migration section.
    : Hope that helps,
    : Turloch
    : Oracle Migration Workbench Team
    : The line in the omwb.bat file has gotten too long, you can
    remove
    : some bits of it that we are not useing yet, ie informix and
    db2
    : plugin classpath references. Paths differ but if for example
    you
    : have a classpath entry in the relevent jre line like:
    : C:\Program Files\Oracle\jre\1.1.7\lib\rt.jar;C:\Program
    : Files\Oracle\jre\1.1.7
    \lib\i18n.jar;C:\ORA81c\Omwb\jlib;C:\ORA81c
    \Omwb\plugins\SQLServer6.jar;C:\ORA81c\Omwb\plugins\Sybase.jar;C:
    \ORA81c\Omwb\plugins\MSAccess.jar;C:\ORA81c\Omwb\plugins\SQLAnywh
    ere.jar;C:\ORA81c\Omwb\plugins\SQLServer7.jar;C:\ORA81c\Omwb\jlib
    : \omwb-
    1_2_2_2.jar;C:\ORA81c\Omwb\jlib\oem204.jar;C:\ORA81c\Omwb\j
    lib\OemCorbaVisi.jar;C:\ORA81c\Omwb\jlib\vbj30.jar;C:\ORA81c\jlib
    : \ewt-3_1_11.jar;C:\ORA81c\jlib\share-
    1_0_6.jar;C:\ORA81c\jlib\hel
    : p-3_0_7.jar;C:\ORA81c\jlib\oracle_ice-
    4_03_3.jar;C:\ORA81c\Omwb\j
    : lib\ewtcompat-opt-3_1_11.zip;C:\ORA81c\Omwb\jlib\kodiak-opt-
    1_0_3
    : .zip;C:\ORA81c\jdbc\lib\classes111.zip
    : The entries:
    C:\ORA81c\Omwb\plugins\MSAccess.jar;C:\ORA81c\Omwb\plugins\SQLAny
    : where.jar;C:\ORA81c\Omwb\plugins\SQLServer7.jar;
    : can be removed, if you are not using sqlserver7 plugin
    (currently
    : in beta test), or MSAccess plugin (about to go to beta),
    : SQLAnywhere plugin (in development). This should shorten the
    path
    : enough, if not your could copy the jar files to somewhere with
    a
    : shorter path eg c:\omwb and change the classpath argument
    above
    : to point to the smaller path length copies.
    : Pongrat (guest) wrote:
    : : Dear Sir,
    : : I download the Oracle Migration Workbench already. I
    install
    : : that software under Misrosoft Window 95 4.00.950 B. After
    : : Installation, I try to run the migration utilities and I got
    : some
    : : error message, the message is
    : : "Class not found:
    : : oracle.mtg.migrationUI.MigC:\oracle\ora81\omwb\bin "
    : : Could u tell me, what happen ? and If I want to migration
    from
    : : SQL Server to Oracle, How, Could u let me know about the
    step
    : of
    : : migration ?
    : : Regards
    : : Pongrat P.
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Migrating SQL server 6.5 to Oracle

    Does anyone know if SQL seveloper 1.5.5 work with SQL Server 6.5? i have been trying set it up, but i get the following error every time when trying to connect to the 6.5 SQL Server:
    Status: I/O Error: Stream 0 attempting to read when no request has been sent
    BTW, i do not hav ethe option to upgrade the SQL Server at thi stime
    Any help would be greatly appreciated.
    Thanks in advance

    Hi Jacques,
    Just to be clear.
    SQL Server 6.5 is not supported by SQL Developer or the old OMWB.
    The only supported version of SQL Server, is 7,2000 and 2005 which are supported by SQL Developer.
    Having said that
    The old OMWB can be downloaded here
    http://www.oracle.com/technology/software/tech/migration/workbench/index.html
    And the old (unsupported) SQL Server 6.5 plugin can be found here
    http://download.oracle.com/otn/nt/omwb/101040/SQLServer6.jar
    Regards,
    Dermot.

  • How to migrate sql server image type to oracle BLOB

    In SQL Server table I have Image data type field. How to migrate image type field to oracle BOLB type field. I am using SQL server DTS to transfer the data.
    If we map, will it care ?
    Thanks,
    Venkataraman L

    Hi you might want to post your question in General Forum.
    General Database Discussions
    There's very few users visit this forum.

  • Migrating SQL Server SSIS package to Oracle

    Dear All,
    We are using Microsoft SQL server 2005 in our application, we have two separate Server instances where one instance synchronize data from other server table using SQL Server SSIS package. What can be the counterpart of this functionality in Oracle. I have looked into materialized views but in my case the target table will have more columns than the base table, and the query used to get data from base table will extract some values from one of the BLOB type column of base table and then populate target table multiple columns.
    Kindly suggest me any solution.
    Best Regards
    Irfan

    You can start with Oracle doc,
    Oracle® Database PL/SQL User's Guide and Reference
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm
    I don't think there's side by side comparison reference between them. Some syntax is very different.

  • Migrating SQL Server development skills to Oracle

    Hi all,
    I've been working with SQL Server in a development capacity for about 7 years now. I'm no specialist, but I'm comfortable in it and am conversant in SQL Server terminology. I need to pick up similar development skills in Oracle. I don't need to know a lot about DBA stuff, perhaps just a few considerations for performance tuning. I won't be "switching" to Oracle, but rather picking up those skills and working on both platforms for the forseeable future.
    What I'm looking for is a book/white paper/website which gives me, as quickly as possible, a direct comparison between SQL Server and Oracle. Some of the things I might want to know are (in order):
    - Syntax differences between T-SQL and PL-SQL
    - T-SQL functions and equivalent Oracle/PL-SQL functions
    - Connection and setup methods (for one, I believe everything in Oracle resides in schemas generally under a single database?)
    - An overview of the reasons people would use Oracle rather than SQL Server
    Can anyone recommend a book in this regard? Failing that, can anyone recommend a book on Oracle which is, hopefully, more on the concise side and includes a function reference?
    Sam

    You can start with Oracle doc,
    Oracle® Database PL/SQL User's Guide and Reference
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm
    I don't think there's side by side comparison reference between them. Some syntax is very different.

  • 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

  • Migrating from MS SQL Server 2005 database to Oracle 10g

    Hello,
    I wanted the full procedure or steps to Migrate the MS SQL Server 2005 database to Oracle 10g. Is there a known procedure to do this or is there a tool which is used?
    I have not done migration of database from MS SQL Server to Oracle. Any help is appreciated. Thanks a lot for the time.
    Regards,
    RPS

    Wrong forum, go to the database forum!
    cu
    Andreas

  • 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

Maybe you are looking for