手动创建数据源:
1.在创建的域找到如下目录:D:\WebLogic_12c\Middleware\user_projects\domains\csyxzm_domain\config,在该
目录下找到config.xml文件,
在<admin-server-name>AdminServer</admin-server-name>和 <saf-agent>... </saf-agent>量元素之间添加如下代
码:
<jdbc-system-resource>
<name>csyxzm</name>
<target>AdminServer</target>
<descriptor-file-name>jdbc/csyxzm-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
2.在D:\WebLogic_12c\Middleware\user_projects\domains\csyxzm_domain\config\jdbc目录下找到
csyxzm-jdbc.ml,
修改文件内容:
<?xml version='1.0' encoding='UTF-8'?>
<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.2/jdbc-data-source.xsd">
<name>csyxzm</name>
<jdbc-driver-params>
<url>jdbc:oracle:thin:@125.46.49.213:1521:ORCL</url>
<driver-name>oracle.jdbc.OracleDriver</driver-name>
<properties>
<property>
<name>user</name>
<value>ny_csyxzm</value>
</property>
</properties>
<password-encrypted>{AES}lYifgL+nW5raYpQX1SWuWcjNby3s6emwXT5m+2JFn0w=</password-encrypted>
</jdbc-driver-params>
<jdbc-connection-pool-params>
<test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<jndi-name>csyxzm</jndi-name>
<global-transactions-protocol>OnePhaseCommit</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>