weblogic 12C 数据源配置出错的解决办法

驱动程序类名称:
 
11G 10.3.6与12G数据源配置有很大区别,整个一天才搞明白。
 
配置合同管理数据源的时候出错,解决办法如下,
默认的ms sqlserver 会出错,选择 其它
 
然后填写下面两项
 
驱动程序类名称:这里要 看清楚了 不用加 .microsoft
 
 
URL:
 
上述两项参见出错的数据源配置文件如下:
 

D:\Endv\Oracle_Home\user_projects\domains\XXXXX\config\jdbc

 1 <?xml version='1.0' encoding='UTF-8'?>

 2 <jdbc-data-source xmlns="http://xmlns.oracle.com/weblogic/jdbc-data-source" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/jdbc-data-source http://xmlns.oracle.com/weblogic/jdbc-data-source/1.0/jdbc-data-source.xsd">

 3   <name>EXPADMIN</name>

 4   <jdbc-driver-params>

 5     <url>jdbc:microsoft:sqlserver://192.168.3.5:1433</url>

 6     <driver-name>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-name>

 7     <properties>

 8       <property>

 9         <name>user</name>

10         <value>exp</value>

11       </property>

12       <property>

13         <name>url</name>

14         <value>jdbc:microsoft:sqlserver://192.168.3.5:1433</value>

15       </property>

16       <property>

17         <name>selectMethod</name>

18         <value>cursor</value>

19       </property>

20       <property>

21         <name>dataSourceName</name>

22         <value>SQL2000JDBC</value>

23       </property>

24       <property>

25         <name>userName</name>

26         <value>exp</value>

27       </property>

28       <property>

29         <name>databaseName</name>

30         <value>EXPADMIN</value>

31       </property>

32       <property>

33         <name>sendStringParametersAsUnicode</name>

34         <value>false</value>

35       </property>

36       <property>

37         <name>serverName</name>

38         <value>192.168.3.5</value>

39       </property>

40     </properties>

41     <password-encrypted>{AES}+4gvVDwq5z5AufMKRNTUrl2i3XfgbkIgSt/nzufJKd4=</password-encrypted>

42   </jdbc-driver-params>

43   <jdbc-connection-pool-params>

44     <test-table-name>SQL SELECT 1</test-table-name>

45   </jdbc-connection-pool-params>

46   <jdbc-data-source-params>

47     <jndi-name>jdbc/EXPADMIN</jndi-name>

48     <global-transactions-protocol>OnePhaseCommit</global-transactions-protocol>

49   </jdbc-data-source-params>

50 </jdbc-data-source>

 

你可能感兴趣的:(weblogic)