如何在Windows7 x64 上安裝oracle10g

來源:互聯網
上載者:User
如何在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。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.