**:
安裝:
rpm -ivh oracle-instantclient
-basic
-10.2
.0.4
-1.i386.rpm
rpm -ivh oracle-instantclient
-sqlplus
-10.2
.0.4
-1.i386.rpm
rpm -ivh oracle-instantclient
-devel
-10.2
.0.4
-1.i386.rpm
新增路徑:
cd /etc/profile
export oracle_home=/usr/lib
/oracle/
11.2/client64
export tns_admin=$oracle_home/network/admin
export nls_lang='simplified chinses_china'.zhs16gbk
export ld_library_path=$oracle_home/lib
export path=/usr/bin
:/usr/sbin
:$oracle_home/bin:
修改sqlplus配置檔案:
vi /usr/lib/oracle/11.2/client64/network/admin/tnsnames.ora
orcl =
(description =
((address = (protocol = tcp)(host = *ip
*)(port = 1521i)
(connect_data =
(server = dedicated )
(server_name=*sid
*) )
)
oracle-instantclient-basic-10.2.0.4-1.i386.rpm
oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
oracle-instantclient-devel-10.2.0.4-1.i386.rpm
二、安裝rpm包
rpm -ivh oracle-instantclient
-basic
-10.2
.0.4
-1.i386.rpm
rpm -ivh oracle-instantclient
-sqlplus
-10.2
.0.4
-1.i386.rpm
rpm -ivh oracle-instantclient
-devel
-10.2
.0.4
-1.i386.rpm
三、指定sqlplus執行所需要的庫
由於是rpm包安裝的,因此,oracle客戶端預設所在的路徑為/usr/lib/oracle/10.2.0.4/client/lib/
#vi /etc/ld.so.conf
在最後加入:/usr/lib/oracle/10.2.0.4/client/lib
四、重啟ldconfig
ldconfig
五、啟動sqlplus
sqlplus /nolog
一、配置oracle環境變數
#vi /etc/profile最後加入
export oracle_home=/usr/lib/oracle/10.2.0.4/client
export ld_library_path=:$oracle_home/lib:/usr/local/lib:$ld_library_path:.
export tns_admin=$oracle_home
export path=$path:$oracle_home/bin:.
六、配置連線tnsnames.ora
#cd
$oracle_home加入
test =
(description =
(address_list =
(address = (protocol = tcp)(host = ip)(port = 1521))
)(connect_data =
(sid = test )
(server=dedicated )
)) ```七、啟動
```c++
sqlplus 使用者名稱/密碼@/
/ip:port/會話id
linux sqlplus 安裝配置
二 安裝rpm包 rpm ivh oracle instantclient basic 10.2.0.4 1.i386.rpm rpm ivh oracle instantclient sqlplus 10.2.0.4 1.i386.rpm rpm ivh oracle instantclient ...
linux sqlplus 安裝配置
linux 64位作業系統,oracle安裝包位址 oracle instantclient12.1 sqlplus 12.1.0.2.0 1.x86 64.rpm oracle instantclient12.1 basic 12.1.0.2.0 1.x86 64.rpm 二 安裝rpm包 rpm...
Linux sqlplus執行 sql檔案
利用 sqlplus 登入資料庫之後 鍵入 檔名 全路徑 即可執行 sql 文 件例 假設有乙個 test.sql 檔案 所在路徑是 home oracle 現在要執行它 1 登入資料庫 sqlplus system manager 2 在提示符 sql 之後鍵入 sql home oracle t...