2019年7月4日 星期四

Oracle Client Installation 安裝Oracle Client


1.下載
Oracle Database 18c (18.3)
https://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle18c-windows-180000-5066774.html

如果是Oracle 18c Client

如果是Oracle 19c Client

  • Oracle Client檔名沒有home壓縮檔
    • LINUX.X64_193000_client.zip is a fully featured installer where you can choose what to install and where, then the installer copies the files to the destination and registers the client.是完整功能的安裝程式
  • Oracle Client檔名有home壓縮檔
    • LINUX.X64_193000_client_home.zip is an "image" of and "Administrator" type installation, that you unzip to the destination folder then register it.是管理員可以直接解壓縮到指定目錄,然後執行setup.exe進行簡短版安裝進行註冊
    • 例如: 將32位元版NT_193000_client_home.zip 的內容解壓縮到指定的Oracle本位目錄C:\app\client\{user}\product\19.0.0\client32,然後執行裡面的setup.exe

  • 可以兩種位元版本的Oracle client都裝,建議可以先安裝32-bit再安裝64-bit。
  • 例如:
    • C:\app\client\{user}\product\19.0.0\client_32
    • C:\app\client\{user}\product\19.0.0\client_64

  • 情境: 使用SSDT (Visual Studio)開發SSIS封裝時,開發工具是32-bit的程式,有安裝32-bit Oracle Driver才能在Data Source選到Oracle Driver,但Debug時預設是Run64BitRuntime,除非修改專案屬性改為False,不然就必須安裝64-bit的Oracle Driver
  • 不然錯誤訊息會是: Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ORA-12154: TNS:could not resolve the connect identifier specified".

  • 情境: 而SQL Server Database Engine則是64-bit程式,SQL Agent Job執行SSIS封裝預設沒有勾選Use 32bit runtime,所以使用64-bit的Driver,此時必須有安裝64bit Oracle driver,不然就必須勾選Use 32bit runtime

  • 情境: 而SQL Server Database Engine則是64-bit程式,必須有安裝64-bit Oracle client,設定Linked Server才能選到Oracle Driver。


2.解壓縮

3.啟動setup.exe開始安裝

PS.請注意,解壓縮client目錄的路徑不可以太深,不然無法安裝
建議解壓縮到根目錄下,例如:  C:\client
經測試有時解壓縮到C:\Temp\client或D:\xxxx\client 都無法正常啟動安裝程式

若持續發生以下狀況,Oracle Universal Installer畫面出現持續數秒後,工作管理員觀察oui.exe與setup.exe程式自動終止
解決方法: 
1.改下載有home的32位元版NT_193000_client_home.zip 壓縮檔
2.將32位元版NT_193000_client_home.zip 的內容解壓縮到C:\app\client\{user}\product\19.0.0\client32,然後執行裡面的setup.exe


4.選擇一個


5.指定Oracle本位目錄使用者

6.指定安裝位置,調整Oracle基本目錄位置,下方的軟體位置會自動替換
PS.如果是有Home的壓縮檔,解壓縮的位置就是Oracle本位目錄,所以會跳過這個步驟
如果您預計安裝32bit與64bit兩種Oracle
安裝32bit時,軟體位置的最後一個目錄可以命名為client32
安裝64bit時,軟體位置的最後一個目錄可以命名為client64

7.開始檢查安裝環境是否符合最低需求

8.若通過最低需求,就會出現安裝摘要,按下一步,就會開始安裝

9.安裝進度

11.若跳出防火牆封鎖Javaw.exe可按下允許

 12.安裝完成

沒有留言:

SQL Server Database Mirroring 資料庫鏡像

SQL Server Database Mirroring 資料庫鏡像