安装64位版Oracle11gR2后无法启动SQLDeveloper的解决方案

7 篇文章 0 订阅
6 篇文章 0 订阅
安装64位版Oracle11gR2后发现启动SQL Developer时弹出配置java.exe的路径,找到Oracle自带java.exe后产生的路径“C:\app\用户名\product\11.2.0\dbhome_1\jdk”却弹出错误信息:

--------------------------
Unable to find a java Virtual Machine
to point to a location of a java virtual machine,please refer to the oracle9i Jdeveloper Install guide(jdev\install.html)
--------------------------

  由于没有重新配置的机会,只好到安装目录“C:\app\用户名\product\11.2.0\dbhome_1\sqldeveloper0\sqldeveloper\bin”中找到配置文件sqldeveloper.conf,修改其中“SetJavaHome”项为“SetJavaHome C:\Program Files\Java\jdk1.6.0_21”,这是另一个单独安装的JDK,结果还是一样。

  于是,又配置成MyEclipse8.5所带的JDK路径“SetJavaHome C:\Users\用户名\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013”,一切正常,正纳闷时,到网络上搜了一下,找到“http://forums.oracle.com/forums/thread.jspa?messageID=4449178”后终于受到了启发,弄明白是怎么回事。

  原来Oracle在制造64位版的时候没注意Oracle11gR2所带的SQL Developer是1.5.5.59.69版,不支持64位版的JDK,恰好64位Oracle带的JDK和“C:\Program Files”中的JDK都是64位的。如果你单独安装的JDK中“C:\Program Files (x86)”中则说明是32位版的,是可以用的。为什么MyEclipse所带的JDK可用呢,因为MyEcipse8.5没有64位版(包括最新的8.6也一样),所以其中带的JDK当然是32位版的了。明白了吗?

  再来看看解决方案:

  既然你已经决定了要用64位版的Oracle11gR2:

(1)单独安装一个32位版的JDK就可以直接配置了;

(2)升级SQL Developer到2.1,把原来“C:\app\用户名\product\11.2.0\dbhome_1”下的的删除,下载(http://download.oracle.com/otn/java/sqldeveloper/sqldeveloper64-2.1.1.64.45-no-jre.zip)回来直接解压得到一个sqldeveloper文件夹放到同一位置即可。这时即可以配置“C:\Program Files”下的JDK,而Oracle自带的JDK,还是不能用的,因为这个2.1版的SQL Developer需要的JDK是1.6.0_04以上,而Oracle11gR2自带的JDK版本只有1.5.0_17。

  还没完哟,还有个小小的问题没有解决,“开始”菜单中的那个“SQL Developer”是指向“C:\app\用户名\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper\bin\sqldeveloper.bat”的,这个无法启动,也许你的机器可以启动,网络上有人说过这个问题,打开这个文件一看,内容是:

java -Xmx640M -Xms128M -Xverify:none -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Dsun.java2d.ddoffscreen=false -Dwindows.shell.font.languages= -XX:MaxPermSize=128M -Dide.AssertTracingDisabled=true -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Djava.util.logging.config.file=logging.conf -Dsqldev.debug=false -Dide.conf="./sqldeveloper.conf" -Dide.startingcwd="." -classpath ../../ide/lib/ide-boot.jar oracle.ide.boot.Launcher

  解决办法是:把前面的“-Xmx640M”修改为“-Xmx512M”即可。但运行这个命令,单击那个允许运行程序的“是”后,没有任何反应,但直接在资源管理器中运行这个BAT文件会弹出一上类似DOS的窗口有很多信息显示后又弹出一个窗口,这个就是了。这样运行感觉不太好,所以继续改造:

  在“开始”菜单中的“SQL Developer”上右击选属性,把目标中的“C:\app\用户名\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper\bin\sqldeveloper.bat”修改为“C:\app\用户名\product\11.2.0\dbhome_1\sqldeveloper\sqldeveloper\bin\sqldeveloperW.exe”即可。

  至于默认运行“sqldeveloper.bat”,应该有其道理,知道原理者可以补充一下。

  现在才明白2G内存运行64位版Win7后在什么情况下内存吃紧了,唉,要么再去加一条2G的内存,要么用用Oracle Database 10g Express Edition (Universal)就可以了,做开发是完全可以的,专门做服务器不行,有些限制。

说明: 这是2010年1月12日从Oracle官方网站下载的最新本,官网也就是从这一天开始才正式提供正确的下载路径,所以在此之前没有出现过这个2.1。 注意: 除非内含jdk1.6.11,否则需要在系统中安装有jdk1.6.11或以上本,否则无法正常运行。 ================================================================================================= 所有sqldeveloper的下载地址: Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-with-jdk1.6.11下载地址: part1: http://download.csdn.net/source/1988257 part2: http://download.csdn.net/source/1988297 part3: http://download.csdn.net/source/1988320 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-no-jre下载地址: part1: http://download.csdn.net/source/1990426 part2: http://download.csdn.net/source/1990448 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for 64bit-windows-no-jre下载地址: part1: http://download.csdn.net/source/1990232 part2: http://download.csdn.net/source/1990238 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for linux-noarch下载地址: part1: http://download.csdn.net/source/1990256 part2: http://download.csdn.net/source/1990265 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for mac-osx-no-jre下载地址: part1: http://download.csdn.net/source/1990322 part2: http://download.csdn.net/source/1990328 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for other-platform-no-jre下载地址: part1: http://download.csdn.net/source/1990381 part2: http://download.csdn.net/source/1990408 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 1.5.5.59.69-with-jdk6下载地址: part1: http://download.csdn.net/source/1986539 part2: http://download.csdn.net/source/1986547 ================================================================================================= There is no in-place upgrade available. To install Oracle SQL Developer 2.1 download the file and unzip into an empty folder. Select the "Use folder names" checkbox when unzipping the file. You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6_11. However, you can connect to and use any JDK 1.6.11 or above. To use an existing JDK, download the zip files listed below "with JDK already installed." Use Check for Updates to install: Third-party database drivers for Sybase, SQL Server and MySQL. For more information on setting up the third-party drivers, see Migrations: Getting Started Version control systems, Concurrent Versions System (CVS), Serena Dimensions or Perforce.
说明: 这是2010年1月12日从Oracle官方网站下载的最新本,官网也就是从这一天开始才正式提供正确的下载路径,所以在此之前没有出现过这个2.1。 注意: 除非内含jdk1.6.11,否则需要在系统中安装有jdk1.6.11或以上本,否则无法正常运行。 ================================================================================================= 所有sqldeveloper的下载地址: Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-with-jdk1.6.11下载地址: part1: http://download.csdn.net/source/1988257 part2: http://download.csdn.net/source/1988297 part3: http://download.csdn.net/source/1988320 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-no-jre下载地址: part1: http://download.csdn.net/source/1990426 part2: http://download.csdn.net/source/1990448 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for 64bit-windows-no-jre下载地址: part1: http://download.csdn.net/source/1990232 part2: http://download.csdn.net/source/1990238 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for linux-noarch下载地址: part1: http://download.csdn.net/source/1990256 part2: http://download.csdn.net/source/1990265 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for mac-osx-no-jre下载地址: part1: http://download.csdn.net/source/1990322 part2: http://download.csdn.net/source/1990328 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 2.1.0.63.73 for other-platform-no-jre下载地址: part1: http://download.csdn.net/source/1990381 part2: http://download.csdn.net/source/1990408 ------------------------------------------------------------------------------------------------- Oracle SQL Developer 1.5.5.59.69-with-jdk6下载地址: part1: http://download.csdn.net/source/1986539 part2: http://download.csdn.net/source/1986547 ================================================================================================= There is no in-place upgrade available. To install Oracle SQL Developer 2.1 download the file and unzip into an empty folder. Select the "Use folder names" checkbox when unzipping the file. You can migrate your settings from Oracle SQL Developer 1.2.1. or Oracle SQL Developer 1.5.x. See the Release Notes 2.1 for more details. JDK Support Oracle SQL Developer 2.1 is shipped with JDK1.6_11. However, you can connect to and use any JDK 1.6.11 or above. To use an existing JDK, download the zip files listed below "with JDK already installed." Use Check for Updates to install: Third-party database drivers for Sybase, SQL Server and MySQL. For more information on setting up the third-party drivers, see Migrations: Getting Started Version control systems, Concurrent Versions System (CVS), Serena Dimensions or Perforce.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值