相关文章推荐
儒雅的羊肉串  ·  plsql ...·  2 周前    · 
爱运动的太阳  ·  TiDB 中的 TimeStamp ...·  1 周前    · 
绅士的土豆  ·  OLAP ...·  1 年前    · 
爽快的大熊猫  ·  [Day14] Jayspt 介紹 - ...·  1 年前    · 

Reporting Services无法连接ORACLE,在服务器安装ORACLE 11客户端版本后仍然提示以下错误:

System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本

使用DOS命令是可以连接到ORACLE的

Micsoft用来连接 oracle odbc驱动

没有直接的odbc驱动,需要安装oracle客户端的,安装oracle客户端后,再用 Net Configuration Assistant 配置一个NET服务名

需要检查以下:

1.安装的ORACLE版本与操作系统版本是否一样,例如操作系统是64位,ORACLE是32位,会令ODBC驱动安装不上。需要统一位数版本

2.配置环境变量,可参考 http://book.51cto.com/art/201204/327158.htm

接字符串

Data Source="(DESCRIPTION =  ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.1.116)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SEINESCM)
)
)"

服务器监听文件: C:\app\Administrator\product\11.2.0\client_1\network\admin\tnsnames.ora

# tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\client_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

SEINESCM_32 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.1.116)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SEINESCM)
)
)

SEINESCM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.1.116)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SEINESCM)
)
)

服务器监听文件:C:\app\Administrator\product\11.2.0\client_1\network\admin\listener.ora

# listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\client_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = REPORTSERVER01.ninestar.local)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)

ADR_BASE_LISTENER = C:\app\Administrator