如何在eclipse开发环境中连接数据库?oracle和db2

1、使用连接工具:eclipse-》window-》open perspective-》myeclipse database explorer

2、下图是oracle连接driver设置,需要添加两个jar包,分别是oracle.jar和ojdbc14.jar

 

3、下图是db2连接driver设置,需要添加两个jar包,分别是db2jcc.jar和db2jcc_license_cu.jar 

说明:有时候出现连接报错问题,一般是eclipse字体的原因,需要修改eclipse的配置。见安装目录下D:\MyEclipse 6.5\eclipse\eclipse.ini文件。然后重启eclipse就好了。

-clean

-showsplash

com.genuitec.myeclipse.product.ide

--launcher.XXMaxPermSize

256m

-vmargs

-Xms128m

-Xmx512m

-Duser.language=zh  (原来是en

-XX:PermSize=128M

-XX:MaxPermSize=256M

posted @ 2010-07-26 13:52  边缘雨  阅读(1122)  评论(0编辑  收藏  举报