一、针对Sybase
1 使用SAP Universe 设计工具连接Sybase数据库报错,报错如下:
“CS: Java Class not found in classpath : com.sybase.jdbc4.jdbc.SybDriver”
或者报错如下:
“CS: Java Class not found in classpath : com.sybase.jdbc3.jdbc.SybDriver”
2 我的环境如下:
操作系统:win7,安装的是:SAP BusinessObjects BI 平台 4
数据库是:Sybase SQL Anywhere 16
使用的JDBC驱动是:jconn3.jar
目的:我使用SAP Universe Designer工具通过JDBC (Sybase IQ 15)连接BPPM 默认的Sybase数据库进行报表设计
3 解决办法:
3.1 找到JDBC驱动jar包,可以使用我常用的,百度地址如下:
http://pan.baidu.com/s/1c0Aw9OG
3.2 复制该驱动jar包,到SAP驱动存放路径:
SAP jar包路径如下:<Intallation Dir of BO>\SAP BusinessObjects Enterprise XI 4.0\dataAccess\con necti onServer\drivers\java\<jar file>
3.3 修改Sybase.sbo文件
Sybase.sbo文件路径如下:<Installation dir of BO>\SAPBusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\jdbc\Sybase.sbo
在Sybase IQ 15后,添加如下内容(注意更改安装路径和最后的jar包名):
<ClassPath> <Path> <Installation directory for BO>\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers\java\<jar file> </Path> </ClassPath>
我添加完的示例如下(供参考):
<DataBase Active="Yes" Name="Sybase IQ 15"> <ClassPath> <Path>D:\Program Files\SAPBusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers\java\jconn3.jar</Path> </ClassPath> <JDBCDriver> <!-- Uncomment and edit the following lines to define java classes required by JDBC driver
……………………………………………………………………
保存后,测试可用
---------------------------------------------------------------------------------------
二、针对Oracle,报错如下:
CS: Java Class not found in classpath : oracle.jdbc.OracleDriver
解决办法同上,3.3步骤略有不同,说明如下
新3.3 修改oracle.sbo文件
oracle.sbo文件路径如下:<Installation dir of BO>\SAPBusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\jdbc\oracle.sbo
修改<Path></Path>中间的内容如下:
<Installation directory for BO>\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers\java\<jar file>
我修改后的示例如下:
<JDBCDriver> <ClassPath> <Path>D:\Program Files\SAPBusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers\java\ojdbc14.jar</Path> </ClassPath> <Parameter Name="JDBC Wrapper">com.sap.connectivity.cs.java.drivers.jdbc.wrapper.JDBCWrapper</Parameter> </JDBCDriver>
保存后测试可用
参考:JDBC Connectivity with BI Platform 4.0 and Sybase IQ 15.4 on Linux