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

配置Oracle10g即时客户端plsql的配置

2024/2/22 14:20:00发布22次查看
instant client package - basic: all files required to run oci, occi, and jdbc-oci applications instantclient-basic-win32-10.2.0.1-20050930.zip (34,390,521 bytes) *instant client package - basic lite: smaller version of the basic, with only
instant client package - basic:all files required to run oci, occi, and jdbc-oci applications
  instantclient-basic-win32-10.2.0.1-20050930.zip (34,390,521 bytes)
*instant client package - basic lite: smaller version of the basic, with only english error messages and unicode, ascii, and western european character set support (10.2 only)(和上面那个文件相比这个在文字方面的支持只限于西欧文字,对于中文就不支持了,所以如果数据库的字符集为中文的话最好用第一个)
  instantclient-basiclite-win32-10.2.0.1-20050930.zip (10,373,186 bytes)
*instant client package - jdbc supplement: additional support for xa, internationalization, and rowset operations under jdbc
  instantclient-jdbc-win32-10.2.0.1-20050930.zip (1,469,840 bytes)
*instant client package - sql*plus: additional libraries and executable for running sql*plus with instant client instantclient-sqlplus-win32-10.2.0.1-20050930.zip (720,691 bytes)
*instant client package - sdk: additional header files and an example makefile for developing oracle applications with instant client instantclient-sdk-win32-10.2.0.1-20050930.zip (823,201 bytes)
*instant client package - odbc: additional libraries for enabling odbc applications instantclient-odbc-win32-10.2.0.1-20050930.zip (718,159 bytes)
一般情况只要下载第一个就可以了,如果你要用sqlplus你也可以下载这个软件包
 安装步骤:
1. 为您的平台下载相应的即时客户端程序包。所有的安装都要求 basic 或 basic lite 程序包。
2. 将程序包解压缩到单个目录,如“c:\instantclient”。
3. 配置环境变量
将 c:\instantclient 添加到 path 中(位于其他 oracle 目录之前)。
例如,在 windows 2000 上,依次单击“开始”->“设置”->“控制面板”->“系统”->“高级”->“环境变量”,编辑系统变量列表中的 path。
如果使用了 tnsnames.ora 文件定义的 oracle net 服务名称,则将 tnsnames.ora 复制到 c:\instantclient,并添加用户环境变量 tns_admin 设置为你的解压目录如 c:\instantclient。(也可以在用户环境变量 local 中定义默认的服务名称。 )
设置必要的 oracle 全球化语言环境变量, nls_lang           中文对应的字符集是
simplified chinese_china.zhs16gbk 。
一共设置以下三个环境变量(以解压缩目录c:\instantclient为例)
环境变量名                              变量值
path                                            c:\instantclient
tns_admin                            c:\instantclient
nls_lang                              simplified chinese_china.zhs16gbk
4.将tnsnames.ora从服务器或其他地方拷贝过来,或者建立一个文本文档将以下内容拷贝到你的文件里面
修改其中红色的部分为你自己的配置,存盘后再改名为tnsnames.ora
localdb =
  (description =
    (address_list =
      (address = (protocol = tcp)(host = 127.0.0.1)(port = 1521))
    )
    (connect_data =
      (sid = mysid)
    )
  )
5. 启动您的应用程序并开始使用。
例如启动sqlplus为
c:\instantclient\sqlplus system/manager@localdb
5、oracle odbc 的安装
c:\instantclient\odbc_install
或者
c:\instantclient\odbc_install  zhs
至此客户端就配置完了。
该用户其它信息

VIP推荐

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