jdbc = AdminConfig.getid('/JDBCProvider:Oracle JDBC Driver/')
AdminConfig.createDatasource(jdbc, '[-name %jdbcDS% -jndiName jdbc/%jdbcDS% -dataStoreHelperClassName com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper -componentManagedAuthenticationAlias %PROFILE_NAME%/Cramer_User -configureResourceProperties [[URL java.lang.String jdbc:oracle:thin:@%DB_HOST%:1521:%DB_SID%]]]')
给出以下错误(我已经用一些虚拟值替换了实际值):
WASX7015E: Exception running command: "AdminConfig.createDatasource(jdbc, '[-name %jdbcDS% -jndiName jdbc/%jdbcDS% -dataStoreHelperClassName com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper -componentManagedAuthenticationAlias %PROFILE_NAME%/Cramer_User -configureResourceProperties [[URL java.lang.String jdbc:oracle:thin:@%DB_HOST%:1521:%DB_SID%]]]')"; exception information:
com.ibm.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<input>", line 1, in ?
AttributeError: createDatasource