---
title: "Websphere中为PostgreSQL和PPAS配JDBC数据源"
author: "BeiGang"
date: "2013-04-17T17:33:57Z"
tags: []
categories: ["数据库"]
slug: "websphere-postgresql-ppas-jdbc"
draft: false
lastmod: "2013-04-17T17:38:05Z"
id: 1849038
url: "https://beigang.iteye.com/blog/1849038"
---

1

创建JDBC提供程序

![](http://dl.iteye.com/upload/attachment/0083/2940/41f9e530-6cf2-385f-afc8-00d7a8d6106f.png)  
 

Ppas的实现类名: com.edb.jdbc2.optional.ConnectionPool

Pg的实现类名: org.postgresql.jdbc2.optional.ConnectionPool

 

2

JDBC提供程序类路径

![](http://dl.iteye.com/upload/attachment/0083/2942/55868438-840f-3312-aee6-a407436cd821.png) 

Ppas类路径: C:\\Program Files\\IBM\\WebSphere\\AppServer\\lib\\ext\\edb-jdbc14.jar

pg类路径: C:\\Program Files\\IBM\\WebSphere\\AppServer\\lib\\ext\\ postgresql-9.2-1002.jdbc3.jar

 

3

Click 完成

![](http://dl.iteye.com/upload/attachment/0083/2944/1c7e37ce-a4cd-384e-a6d8-b6b8affca3a2.png)  
 

4

点击创建的 jdbc提供程序 ‘edb1 JDBC provider’.

![](http://dl.iteye.com/upload/attachment/0083/2946/b916076d-42e4-39f6-800d-6cadf5c29203.png)  
 

5

点击新建数据源

![](http://dl.iteye.com/upload/attachment/0083/2948/ab1e2ebd-3968-3ecd-b5ce-5ad0f32222a0.png)

 

6

配置数据源

![](http://dl.iteye.com/upload/attachment/0083/2950/be3795ca-a8d7-3dbb-a9d1-67ccdb24cdfe.png)

 

7

Help类名:

 

![](http://dl.iteye.com/upload/attachment/0083/2952/7af93c3c-9f7b-3715-a6c0-424dcb1bb186.png)  
 

8

点击完成

![](http://dl.iteye.com/upload/attachment/0083/2954/6ebd234a-9d0c-3008-b86e-2ca63b0b118a.png)  
 

9

配置 JAAS-J2C 认证数据，输入用户名和密码，点击完成

![](http://dl.iteye.com/upload/attachment/0083/2956/e2ad8696-5e1a-3293-99d3-b68aa472ec18.png)  
 

ppas用户标识/密码: enterprisedb/password

pg用户标识/密码: postgres/password

 

10

配置定制属性，新建databaseName，serverName和portNumber，输入相应的数据库名字，服务器IP和数据库服务端口。

![](http://dl.iteye.com/upload/attachment/0083/2958/6a106560-dd04-3619-a57c-107562d18122.png)  
 

11

在数据源上测试成功

![](http://dl.iteye.com/upload/attachment/0083/2962/79d1e10e-a6de-30ac-bebc-6b4d54bcdee8.png)