Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Migrating from Oracle to SQL Server-urgent

Migrating from Oracle to SQL Server-urgent

Scheduled Pinned Locked Moved Database
databasesql-serveroraclesysadmintools
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pzn3xq
    wrote on last edited by
    #1

    hello, I'm currently in process of migrating Oracle db and tables to SQL Server 2005. Is there any ideas of best way to do this? My first thought was to somehow automate the db, table, views and stored procs creation. But then how tdo I run those SQL scrips in SQL Server db...since the commands are slightly different in syntax. Second, any data migration tools that will extract and map from Oracle to a SQL Server db? I'm open to any other ideas and thoughts also! Thanks

    P W 2 Replies Last reply
    0
    • P pzn3xq

      hello, I'm currently in process of migrating Oracle db and tables to SQL Server 2005. Is there any ideas of best way to do this? My first thought was to somehow automate the db, table, views and stored procs creation. But then how tdo I run those SQL scrips in SQL Server db...since the commands are slightly different in syntax. Second, any data migration tools that will extract and map from Oracle to a SQL Server db? I'm open to any other ideas and thoughts also! Thanks

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      On my last job, my first task was to "warehouse" the data in an Ingres database into an SQL Server database. I wrote an application that got the table and index schema and cobbled up the corresponding SQL Server commands and ran them on the target database. I then had another application that would copy the data over. This later became a Windows Service that copied over any changes periodically, this was not a one-time copy of the database, but an on-going warehousing process. Gotchas: On SQL Server a one-byte value (tinyint) is unsigned, but on Ingres it's signed, so I had to use smallint instead. So check to see what Oracle uses. The range of the Date type on Ingres was wider than SQL Server's, so I had to compare each Date value with SQL Server's range. What I did when I found an out-of-range Date value was log it and replace it with SQL Server's min or max as appropriate. I wound up with the ability to specify range checking for other types as well. Check Oracle's range of Dates. As for stored procedures, you're likely stuck. (Yet another reason not to use stored procedures :-D ).

      1 Reply Last reply
      0
      • P pzn3xq

        hello, I'm currently in process of migrating Oracle db and tables to SQL Server 2005. Is there any ideas of best way to do this? My first thought was to somehow automate the db, table, views and stored procs creation. But then how tdo I run those SQL scrips in SQL Server db...since the commands are slightly different in syntax. Second, any data migration tools that will extract and map from Oracle to a SQL Server db? I'm open to any other ideas and thoughts also! Thanks

        W Offline
        W Offline
        Wendelius
        wrote on last edited by
        #3

        I wouldn't do this based on scripts. Instead I would create a program that reads the schema data from Oracle and then constructs create statements to SQL Server. You could for example first create objects, then load data and then add constraints, triggers etc. This way the data won't get modified on the conversion. Also there are plenty of tools for this purpose. One (free) for example: SQL Server Migration Assistant for Oracle (SSMA for Oracle) [^]

        The need to optimize rises from a bad design.My articles[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups