ubuntu安裝oracle客戶端

2021-07-26 23:41:31 字數 1866 閱讀 1748

oracle-instantclient11.2-basic-12.1.0.2.0-1.x86_64.rpm

oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm

oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm

2、安裝

sudo apt-get install alien

cd ~/downloads

sudo alien -i *.rpm

出現如下資訊說明安裝成功

dpkg --no-force-overwrite -i oracle-instantclient12.1-basic_12.1.0.2.0-2_amd64.deb

正在選中未選擇的軟體包 oracle-instantclient12.1-basic。

(正在讀取資料庫 ... 系統當前共安裝有 221756 個檔案和目錄。)

正準備解包 oracle-instantclient12.1-basic_12.1.0.2.0-2_amd64.deb  ...

正在解包 oracle-instantclient12.1-basic (12.1.0.2.0-2) ...

正在設定 oracle-instantclient12.1-basic (12.1.0.2.0-2) ...

正在處理用於 libc-bin (2.23-0ubuntu5) 的觸發器 ...

dpkg --no-force-overwrite -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb

正在選中未選擇的軟體包 oracle-instantclient12.1-devel。

(正在讀取資料庫 ... 系統當前共安裝有 221779 個檔案和目錄。)

正準備解包 oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb  ...

正在解包 oracle-instantclient12.1-devel (12.1.0.2.0-2) ...

正在設定 oracle-instantclient12.1-devel (12.1.0.2.0-2) ...

dpkg --no-force-overwrite -i oracle-instantclient12.1-sqlplus_12.1.0.2.0-2_amd64.deb

正在選中未選擇的軟體包 oracle-instantclient12.1-sqlplus。

(正在讀取資料庫 ... 系統當前共安裝有 221834 個檔案和目錄。)

正準備解包 oracle-instantclient12.1-sqlplus_12.1.0.2.0-2_amd64.deb  ...

正在解包 oracle-instantclient12.1-sqlplus (12.1.0.2.0-2) ...

正在設定 oracle-instantclient12.1-sqlplus (12.1.0.2.0-2) ...

3、新增環境變數

vim ~/.bashrc

export oracle_home=/usr/lib/oracle/12.1/client64

export path=$path:$oracle_home/bin

export ld_library_path=$oracle_home/lib:$ld_library_path

source ~/.bashrc

4、執行sqlplus

cd /usr/lib/oracle/12.1/client64/bin/ ./

sqlplus username

/password@

//dbhost:1521/sid

Ubuntu安裝Oracle客戶端

instant client ubuntu docmentation oracle instant client linux下使用oracle instant client遠端連線伺服器 網上很多資料各式各樣,而每個系統的配置也是各有不同。經歷了數不過來的失敗後終於成功了,在這裡整理一下,方便今後查...

Ubuntu下安裝oracle客戶端

在目錄 usr lib oracle 下建立檔案 tnsnames.ora 之所以在這個目錄下,是因為前面 export tns admin 的目錄是這個 sudo gedit usr lib oracle tnsnames.ora 然後新增如下內容 idc description address ...

Ubuntu下安裝Oracle 10G注意要點

現在使用ubuntu的朋友越來越多了,包括我自己也從開始徹底代替了windows作為我的唯一桌面系統來用,而正和公司是用的oracle發生了磨合,oracle在win下有很多輔助工具,而linux 不管他了,裝了個oracle datebase 10g express editon之後hq居然識別是...