如何在Windows7 x64上安裝oracle10g安裝Oracle for x64 vista
Windows7安裝Oracle 10g x64版的時候出現:
解決方案:
1、 直接有效辦法:
修改\10204_vista_w2k8_x64_production_client\client\install\oraparam.ini檔案。在其中:
[Certified Versions] #You can customise error message shown for failure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE Windows=5.0,5.1,5.2,6.0,6.1 |
在最後補上6.1,再次運行setup.exe,就成功了。
提示:如何找到問題的根源?
開啟C:\Program Files (x86)\Oracle\Inventory\logs下的日誌記錄,如果有錯誤,則能夠較快發現問題。
2、 按照網上說法:(我試了無效,但是我也改了,可能對後續的步驟有協助)
在安裝目錄下,搜尋refhost.xml
針對每個refhost.xml,增加一項
<!--Microsoft Windows 7-->
<OPERATING_SYSTEM>
<VERSION VALUE="6.1"/>
</OPERATING_SYSTEM>
安裝PL/SQL Developer
直接安裝完PL/SQL Developer後會有如下一堆問題:
Initialization error SQL*Net not properly installed
Could not load "D:\oracle\product\10.2.0\client_1\BIN\oci.dll"
ORA-12154 TNS could not resolve the connect identifier specified
可以嘗試下面的做法(來自http://carltao.blog.51cto.com/856514/196838)
由於在本機Vista X64上安裝了64位的Oracle,結果試圖使用PLSQL Developer去訪問它的時候,報告說無法載入oci.dll檔案。原來oci.dll是64位的,32位應用程式PLSQL Developer自然無法載入了。
實驗了下,解決辦法如下:
1. 下載32位Oracle InstantClient(http://download.oracle.com/otn/nt/instantclient/10204/instantclient-basic-win32-10.2.0.4.zip),並展開到某目錄,例如C:\oracle\instantclient_10_2;
2. 將系統的tnsnames.ora拷貝到該目錄下;
3. 在PLSQL Developer中設定Oracle_Home和OCI Library,如所示
4. 在PLSQL Developer目錄下編輯如下bat檔案,替換其捷徑,啟動PLSQL Developer:
@echo off set path=C:\oracle\instantclient_10_2 set ORACLE_HOME=C:\oracle\instantclient_10_2 set TNS_ADMIN=C:\oracle\instantclient_10_2 set NLS_LANG=AMERICAN_AMERICA.ZHS16GBK start plsqldev.exe |
註:NLS_LANG前半部分必須是AMERICAN_AMERICA,因為instant client不支援其他語言;而後半部分可以根據你資料庫的字元集調整,如果資料庫採用AL32UTF8,則可以設定AL32UTF8。