windows 下
plsql developer或toad不安裝
oracle客戶端連線
資料庫的方法
方法是:使用oracle instantclient連線oracle資料庫
或者instantclient-basic-win32-10.2.0.3-20061115.zip
win64位系統
2 將oracle instatnt client解壓。如,至d:\test\instantclient_10_2
3 環境變數配置: "控制面板"-"系統"-"高階"-"環境變數"-"系統變數"新增
nls_lang = american_america.zhs16gbk(或simplifiedchinese_china.zhs16gbk)
tns_admin = d:\test\instantclient_10_2
ld_library_path = d:\test\instantclient_10_2
sqlpath = d:\test\instantclient_10_2
path變數結尾新增;d:\test\instantclient_10_2
4 在d:\test\instantclient_10_2中用新增如下內容的檔案,檔名為tnsnames.ora
plus到安裝目錄中,解壓即可執行
附ora檔案內容與格式
tnsnames.ora
#d:/instantclient_10_2/tnsname.ora
orcl =
(description =
(address_list =
(address = (protocol = tcp)(host =192.168.0.47)(port = 1521))
)
(connect_data =
(server = dedicated)
(service_name = mydb1)
)
)
如果執行完以上步驟之後報錯:
ora_12705:cannot access nls data files orinvalid environment specified的錯誤
則執行nls_lang = american_america.zhs16gbk(或simplifiedchinese_china.zhs16gbk)
的時候替換另一種字符集
linux下
比如對應11gr2的
oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
oracle-instantclient11.2-devel-11.2.0.1.0-1.i386.rpm
oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm
2、 copy到linux上執行安裝
rpm -ivh ***.rpm
3、 配置環境變數
編輯vi .bashrc,追加
export oracle_home=/usr/lib/oracle/11.2/client
export tns_admin=$oracle_home/network/admin
export nls_lang='simplified chinese_china'.zhs16gbk
export ld_library_path=$oracle_home/lib
export path=$oracle_home/bin:$path
手動建立目錄$oracle_home/network/admin
並在這個目錄下建立編輯檔案tnsnames.ora
新增鏈結串
orcl =
(description =
(address_list =
(address = (protocol = tcp)(host = 192.168.9.76)(port = 1521))
)
(connect_data =
(service_name = orcl)
)
)
4、 執行命令source .bashrc生效修改內容,測試連線sqlplus
5、 如果出現sqlplus:error while loading shared libraries: libaio.so.1: cannot open shared object file: no such file or directory
簡易客戶端連線配置連線資料庫
windows 下 plsql developer或toad不安裝oracle客戶端連線資料庫的方法 方法是 使用oracle instantclient連線oracle資料庫 或者instantclient basic win32 10.2.0.3 20061115.zip win64位系統 2 ...
Oracle,客戶端遠端連線資料庫
用windows下的oracle客戶端工具 net manager遠端連線linux下的oracle資料庫。資料庫端的設定步驟 1.先確定能互相ping通。2.關閉資料庫伺服器的防火牆 root localhost service iptables stop iptables setting cha...
oracle只裝客戶端遠端連線資料庫
開啟pl sql developer,登入介面點取消,進入後選擇選單欄 tools preferences connection 配置環境變數 新增第乙個環境變數,名為tns admin,值為tnsnames.ora檔案所在路徑例如本機的為 d oracleclient network admin ...