惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

博客园 - zyi

Windows FTP安装 组合模式 Oracle优化 Oracle的汉字转拼音首字母的函数 创建job 建索引 加解密 代码规范工具 耦合内聚封装 Dev进度条 SQL_SERVER 连接oracle(转) win7电脑上wifi Oracle对象统计信息 关于odp.net的FetchSize属性 技巧类 linq in 语法 温习设计模式 静态与非静态(转改) 关于引擎的设计
SQL_SERVER 导oracle(转)
zyi · 2013-04-19 · via 博客园 - zyi

真没劲,又干这种没技术含量的活了!把客户一个用了N年的数据库(Sql Server 2000)要迁移到我们系统的数据库中来(选用的是Oracle 10g)。比较犹豫怎么导的问题,要么写个小JDBC程序?要么用DTS?想了想,还是不要再发明个轮子算了(其实我类似的轮子都做了N个了,只是懒得再动手改)

在DTS导入的时候会遇到几个问题:

1、导过来的表名比较古怪,都是加上双引号的,写的SQL老是说找不到表名,晕死我,对象浏览器里明明就是那个表名。一阵犯嘀咕,觉得自己没有老花眼呀。唉,所以DTS导过来的,要先改名,如:

alter table "Base" rename to base;

2、DTS在导一些表时老是会出错,后来检查发现,这个笨蛋把人家很多应该是number型的给设置了varchar2,或是date型给整成了varchar2,诸如此类了,所以在不同数据库中导数据时,要注意检查数据类型的对应关系。

3、DTS在导几个大表时,老是提示一些莫名其妙的错误。诸如:ROW-00060: Internal error: [dainsert,16],想破脑袋你也想不出来,是内存给DTS用完了(我晕倒,我是4G的内存呀!),没办法你分几次导入吧(用SQL语句来导入)