从SQL Server 2008迁移到oracle数据库.

编程入门 行业动态 更新时间:2024-10-27 00:23:11
本文介绍了从SQL Server 2008迁移到oracle数据库.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的所有人, 我正在开发基于Web的项目(ASP),后端是sql server2008.我正在使用sql server 2008开发应用程序.现在,我想将数据库从sql server 2008迁移到oracle 11g.你能告诉我如何在不更改应用程序代码的情况下做到这一点吗? 谢谢!.

Dear All, I am working on the web based project(ASP) where backend is sql server 2008. i am developing the application using sql server 2008. now i want to migrate my database from sql server 2008 to oracle 11g. can u please tell me how can i do it without changing my application code. Thanks!.

推荐答案

看看这个链接: forums.oracle/forums/thread.jspa?threadID=843319& tstart = 0 [ ^ ] Have a look at this link: forums.oracle/forums/thread.jspa?threadID=843319&tstart=0[^]

我正在做一个类似的项目-我们的应用程序现在可以与MS Access和SQL Server 2000/2005一起使用,并且还必须能够与Oracle一起运行.尽管尚未完全完成该操作,但我已经可以告诉您,您将不得不更改许多代码. Oracle无法理解甚至Access都知道的许多数据类型,例如指导许多表可能都有一些自动递增的数字作为主键-使用Access或SQL Server只是相应列的一个属性,在Oracle中,您还需要一个序列和一个触发器...为了检索最后一个如果插入ID,则无法执行选择@@ Identity",但必须查询相应序列的CURRVAL.在自动迁移过程中,几个表/列被重命名,例如用户"变为"USER_".这是很多工作,并且SQL查询中的任何单词都几乎保持不变! I am just doing a similar project - our application works now with MS Access and SQL Server 2000/2005, and has to be able run with Oracle also. Though not yet having accomplished that completely, I can tell you already that you will have to change lots of your code. Oracle does not understand many data types which even Access knows, e.g. Guid. Many tables likely have some auto-incrementing number as a primary key - with Access or SQL Server that''s simply a property of the respective column, in Oracle you will need a sequence and a trigger also... And for retrieving that last inserted ID, you cannot do a "Select @@Identity" but you have to query the CURRVAL of the respective sequence. Several tables/columns were renamed during automatic migration, e.g. "User" became "USER_". It is lots of work, and hardly any word of a SQL query will remain the same!

更多推荐

从SQL Server 2008迁移到oracle数据库.

本文发布于:2023-10-16 10:14:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1497277.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据库   Server   SQL   oracle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!