Websphere 6.1数据源配置

1 设置websphere环境变量
由于websphere数据源要用到oralce驱动,故将ojdbc14.jar放置于能定位到的指定目录中。

展开Environment-WebSphere Variables对websphere环境变量进行相应设置。

Websphere 6.1数据源配置
 
根据ojdbc14.jar路径,进行相应设置。


Websphere 6.1数据源配置
 
2 配置JDBC Providers(JDBC 提供者)

展开Resources-JDBC-JDBC Providers。“数据库类型”选择Oracle,实施类型选择“连接池数据源”。

Websphere 6.1数据源配置
 

3 创建数据源

展开Resources-JDBC-Data sources。输入数据源名,输入JNDI名。选择先前已配置好的Oracle JDBC Provider。

Websphere 6.1数据源配置
 

创建认证。展开Data sources-CSEND Datasource-JAAS-J2C authentication data。输入数据库登录名和密码。

Websphere 6.1数据源配置
 

在数据源配置“组件认证管理”中选择刚设置好的JAAS-J2C名

Websphere 6.1数据源配置
 
数据源连接测试
Websphere 6.1数据源配置