Win7/8下Oracle的安裝

來源:互聯網
上載者:User

標籤:資料庫檔案   oracle   超連結   用戶端   序號   

在64位的Win7、Win8下安裝Oracle會遇到一些麻煩,需要下載合適的安裝檔案和環境的配置才能順利的完成。

以下是筆者安裝的過程:

 

步驟1:下載需要安裝的檔案

           A. 下載64位的 Oracle 11g 資料庫檔案(約2.1G),請點擊超連結下載win64_11gR2_Oracle.zip。

           B. 下載32位的 Oracle 11g 用戶端檔案(約49.1M),請點擊超連結下載ORCALE11-instantclient-basic-win32-11.2.0.1.0.zip

           C. 下載32位的 PL/SQL V9.0安裝包(約25.6M),裡面提供漢化包,序號(在說明檔案裡提供),請點擊超連結下載PLSQL Developer V9.zip 

步驟2:按順序安裝

           A. 首先安裝Oracle資料庫,筆者安裝Oracle的基目錄是:”C:\app\lx“,按照安裝嚮導提示,完成Oracle資料庫的安裝。安裝後的目錄如所示: 

 

650) this.width=650;" style="border-bottom:medium none;border-left:medium none;width:570px;height:349px;border-top:medium none;border-right:medium none;" src="http://img.blog.csdn.net/20131010154844218" width="646" height="421" /> 

           B. 其次解壓Oracle客戶檔案到”product“檔案夾下,如所示,instantclient_11_2 就是Oracle客戶檔案 

 

650) this.width=650;" style="border-bottom:medium none;border-left:medium none;border-top:medium none;border-right:medium none;" align="middle" src="http://img.blog.csdn.net/20131010155745734" width="570" height="350" /> 

            C. 最後安裝PL/SQL,不要安裝在預設路徑”C:\Program Files (x86)“,因為PL/SQL不識別路徑”(”、“)“這些符號。筆者安裝的路徑是: ”C:\PLSQL“,如所示:

 

650) this.width=650;" style="border-bottom:medium none;border-left:medium none;border-top:medium none;border-right:medium none;" src="http://img.blog.csdn.net/20131010160622656" width="570" height="350" /> 

步驟3:配置PL/SQL的環境 

           A. 複製C:\app\lx\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora 到 C:\app\lx\product\instantclient_11_2 目錄下。tnsnames.ora檔案包含了Oracle資料庫的一些配置資訊(伺服器名稱、協議類型、資料庫、連接埠號碼等)。 

            B. 設定環境變數

 右擊"我的電腦" - "屬性" - "進階" - "環境變數" - "系統內容變數":


 1>  選擇"Path" - 點擊"編輯", 追加目錄"C:\app\lx\product\instantclient_11_2;" 到變數Path;


 2>  點擊"建立", 變數名設定為"TNS_ADMIN", "TNS_ADMIN"變數用於指明tnsnames.ora檔案的所在目錄(用戶端串連資訊來源於該檔案),變數值設定為"C:\app\lx\product\instantclient_11_2;", 點擊"確定";


 3>  點擊"建立", 變數名設定為"NLS_LANG", 變數值設定為"SIMPLIFIED CHINESE_CHINA.ZHS16GBK", 點擊"確定";


 最後點擊"確定"退出. 

             C. PL/SQL Developer 環境設定,在Tools->perferences->Connection裡面設定Oracle Home和 OCI Library。筆者的環境是:

Oracle Home=C:\app\lx\product\instantclient_11_2

OCI Library為=C:\app\lx\product\instantclient_11_2\oci.dll

 

650) this.width=650;" style="border-bottom:medium none;border-left:medium none;width:666px;height:453px;border-top:medium none;border-right:medium none;" src="http://img.blog.csdn.net/20131010165039906" width="570" height="350" />

 

到此為止,所有配置都完成了,重新啟動PL/SQL,配置成功!

 

650) this.width=650;" style="border-bottom:medium none;border-left:medium none;border-top:medium none;border-right:medium none;" src="http://img.blog.csdn.net/20131010165506968" />

 注意:

1. 由於PL/SQL還沒有提供64位的檔案,為了能夠讓PL/SQL串連到64位Oracle 11g資料庫,務必下載32位的Oracle 11g 用戶端檔案,否則PL/SQL會報錯!

2. 環境變數NLS_LANG的值不能隨便設定,可以通過如下的SQL語句查詢

 SQL> select userenv(‘language‘) from dual;
 userenv(‘language‘)
 ----------------------------------------------------
 SIMPLIFIED CHINESE_CHINA.ZHS16GBK

3. PL/SQL Development不要安裝在預設的C:\Program Files (x86)目錄下,否則會報錯,原因是不能解析這個帶()的路徑

本文出自 “智學無憂1” 部落格,請務必保留此出處http://12803871.blog.51cto.com/12793871/1914931

Win7/8下Oracle的安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.