我正在尝试使用WLST创建Oracle WebLogic Server数据源:
<name>abcDataSource</name> <wl_JDBCDataSourceParams_GlobalTransactionsProtocol>One</wl_JDBCDataSourceParams_GlobalTransactionsProtocol> <wl_JDBCConnectionPoolParams_TestConnectionsOnReserve>true</wl_JDBCConnectionPoolParams_TestConnectionsOnReserve> <wl_JDBCConnectionPoolParams_TestTableName>SQL SELECT 1 FROM XYZ</wl_JDBCConnectionPoolParams_TestTableName> <wl_JDBCConnectionPoolParams_ShrinkFrequencySeconds>900</wl_JDBCConnectionPoolParams_ShrinkFrequencySeconds> <wl_JDBCConnectionPoolParams_MaxCapacity>20</wl_JDBCConnectionPoolParams_MaxCapacity> <wl_JDBCConnectionPoolParams_InitialCapacity>5</wl_JDBCConnectionPoolParams_InitialCapacity> <wl_JDBCConnectionPoolParams_SecondsToTrustAnIdlePoolConnection>10</wl_JDBCConnectionPoolParams_SecondsToTrustAnIdlePoolConnection> <wl_JDBCConnectionPoolParams_CapacityIncrement>1</wl_JDBCConnectionPoolParams_CapacityIncrement> <wl_JDBCConnectionPoolParams_ConnectionCreationRetryFrequencySeconds>30</wl_JDBCConnectionPoolParams_ConnectionCreationRetryFrequencySeconds> <jndi>jdbc/abcDataSource</jndi> <wl_JDBCDriverPropertiesone_user>abc_app</wl_JDBCDriverPropertiesone_user> <wl_JDBCConnectionPoolParams_Password>abc</wl_JDBCConnectionPoolParams_Password> <wl_JDBCConnectionPoolParams_ConfirmPassword>abc</wl_JDBCConnectionPoolParams_ConfirmPassword> <wl_JDBCDriverParams_Url>jdbc:oracle:thin:@ldap://abc.com:123</wl_JDBCDriverParams_Url> <wl_JDBCDriverParams_DriverName>oracle.jdbc.OracleDriver</wl_JDBCDriverParams_DriverName> <targeting> <target> <name>abcCluster</name> <type>cluster</type> </target> </targeting> </dataSource>
它接受除密码和确认密码外的所有参数。我还测试了使用:
<wl_JDBCDriverParams_Password>abc</wl_JDBCDriverParams_Password>
但是它不起作用。
所以需要建议我如何传递这两个参数。