码迷,mamicode.com
首页 > 数据库 > 详细

Oracle客户端的安装

时间:2016-08-09 10:45:17      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

首先Orcale的安装应该是很简单的,安装不好只是部熟悉,在其中遇见的一些问题记录下来,如果以后忘记了还可以看看。

首先最大的问题是安装客户端的时候要安装32位的,不管你的操作系统是32位还是64位的。

然后安装好后需要配置一些配置信息 E:\app\John\product\11.2.0\client_1\NETWORK\ADMIN 找到这个目录下的tnsnames.ora 文件

 tnsnames.ora Network Configuration File: D:\app\wang\product\11.1.0\client_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

ORA_6.175 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.59.6.175)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = ORCL)
    )
  )

orcl_192.168.200.146 = 
  (DESCRIPTION = 
    (ADDRESS_LIST = 
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.200.146)(PORT = 1521)) 
    ) 
    (CONNECT_DATA = 
      (SID = orcl) 
    ) 
  )


ORA_6.226 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.59.6.226)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = ORCL)
    )
  )

ORA_175 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.59.6.175)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = orclcs)
    )
  )
ORCL_110 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = orcl110)
    )
  )
ZBDBRAC =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.59.6.227)(PORT = 1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.59.6.228)(PORT = 1521))
      (LOAD_BALANCE = yes)
    )
    (CONNECT_DATA =
      (SERVICE_NAME = zbdbrac)
    )
  )

  像这样配置 将Host改成你需要连接的服务器地址。

Oracle客户端的安装

标签:

原文地址:http://www.cnblogs.com/dbqjava/p/5752094.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!