您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

免安装Oracle客户端软件

2024/4/12 7:52:14发布22次查看
1.下载oracle client package . 从http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html下载 instant client package – basic包( 标注:all files required to run oci, occi, and jdbc-oci applications)这里下载的是ver
1.下载oracle client package .
从http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html下载
instant client package – basic包( 标注:all files required to run oci, occi, and jdbc-oci applications)这里下载的是version 11.1.0.7
2.本地保存oracle client package:
创建文件夹,比如oracle_client,将下载的文件加压缩到此文件夹里.(笔者目录: d:\oracle_client\instantclient_10_2)
3.在当前目录下,新建立两个文件,sqlnet.ora和tnsnames.ora然后再手动配置sqlnet.ora和tnsnames.ora
比如这里是:
sqlnet.ora文件内容:
sqlnet.authentication_services= (nts)
names.directory_path= (tnsnames, ezconnect)
tnsnames.ora文件内容(斜体表示需要替换的内容):
orcl=
(description =
    (address_list =
      (address = (protocol = tcp)(host = 192.168.1.103)(port = 1521))
    )
    (connect_data =
      (service_name = orcl)
    )
)
4.配置环境变量
变量名: tns_admin
变量值: d:\oracle_client\instantclient_10_2
否则出现:ora-12154: tns:could not resolve the connect identifier specified错误
如果之前安装了oracle 又卸载,会遗留nls_lang=na的键值.输入regedit打开注册表hkey_local_machine/software/oracle.在右面找到nls_lang=na并删除掉
否则会报ora-12705: cannot access nls data files or invalid 错误.
5.安装pl/sql软件(过程略)
6.配置pl/sql的oracle连接参数:
选择pl/sql的工具/首选项(too/ preference/)里的连接,在右面设置oracle主目录名(即安装目录)和oci库.
oracle主目录名: d:\oracle_client\instantclient_10_2
oci库: d:\oracle_client\instantclient_10_2\oci.dll
7.登陆pl/sql测试成功
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product