Microsoft T-SQL to Oracle SQL translation

后端 未结 12 1235
醉酒成梦
醉酒成梦 2020-12-01 05:28

I\'ve worked with T-SQL for years but I\'ve just moved to an organisation that is going to require writing some Oracle stuff, probably just simple CRUD operations at least u

相关标签:
12条回答
  • 2020-12-01 06:05

    jOOQ has a publicly available, free translator, which can be accessed from the website here: https://www.jooq.org/translate

    It supports DML, DDL, and a few procedural syntax elements. If you want to run the translation locally via command line, a license can be purchased and the command line works as follows:

    $ java -cp jooq-3.11.9.jar org.jooq.ParserCLI -t ORACLE -s "SELECT substring('abcde', 2, 3)"
    select substr('abcde', 2, 3) from dual;
    

    See: https://www.jooq.org/doc/latest/manual/sql-building/sql-parser/sql-parser-cli

    (Disclaimer, I work for the vendor)

    0 讨论(0)
  • 2020-12-01 06:06

    If you're doing a one-off conversion, rather than trying to support two versions, you must look at Oracle Migration Workbench. This tool works with Oracle's SQLDeveloper (which you really should have if you are working with Oracle). This does a conversion of the schema, data, and some of the T-SQL to PL/SQL. Knowing both well, I found it did about an 80% job. Good enough to make it worth while to convert the bulk of procedures, and hand convert the remainder "tougher" unknown parts.

    0 讨论(0)
  • 2020-12-01 06:12

    It's not trivial to map them back and forth, so I doubt there's a tool that does it automatically. But this link might help you out: http://vyaskn.tripod.com/oracle_sql_server_differences_equivalents.htm

    0 讨论(0)
  • 2020-12-01 06:16

    In Oracle SQL Developer, there is a tool called Translation Scratch Editor. You can find it from Tools > Migration.

    The Oracle SQL Developer is a free download from Oracle and it is an easy install.

    0 讨论(0)
  • 2020-12-01 06:16

    Not cheap ($995) but this tool works great: http://www.swissql.com/products/sql-translator/sql-converter.html

    0 讨论(0)
  • 2020-12-01 06:17

    A few people have mentioned here converting back and forward. I do not know of a tool to convert from MSSQL to Oracle, but I used the free MS tool to convert a Oracle db to MSSQL and it worked for me and converted a large db with no problems I can call. It is similar to the Access to MSSQL tool that MS also provide for free. Enjoy

    0 讨论(0)
提交回复
热议问题