WebSphere数据源配置

WebSphere data source Configuration

 

  1. login http://localhost:9061/ibm/console/login.do(According to your own configuration for this URL, this is default URL).
  2. On the left navigation, click on “Environment” menu, and then spread the sum menu, click on the “WebSphere variables”.
           技术分享                
  3. On the right page shows the variables list, click “Next” button to move to next page and find “ORACLE_JDBC_DRIVER_PATH” variable.

    技术分享技术分享
  4. Edit this path, set the “Value” as the path of your Oracle driver jar file.
    技术分享
  5. After set the value, click “Apply” button, also click “Save” button to take effect.
    技术分享
  6. Click the menu as below image shows, and click “New” button.
    技术分享
  7. Step 1: Create new JDBC provider. The values set as below image shows. And then click “Next”.
    技术分享
  8. Step 2, if the oracle jar is not the same as images shows, you can change it later. This page no needs to change, click “Next”.
    技术分享
  9. Step 3, no change to click “Finish”
    技术分享
  10. Save the configuration.
    技术分享
  11. You can click name in the list to change the configuration.
    技术分享
  12. If something is wrong, you can change it. Eg.my jar name is not “ojdbc6.jar”, so change the class path as “ojdbc14-10.2.0.3.jar”, and click “Apply”, “Save” button.
    技术分享
  13. Create Data source.
    技术分享
  14. Step 1, “Date source name” can free to input, “JNDI name” is “jdbc/DataSource”.
    技术分享
  15. Step 2, select an existing JDBC provider.
    技术分享
  16. Input URL “jdbc:oracle:thin:@cndalwebdb04vl.cn.fid-intl.com:1521:D1CIA”.
    (According you own configuration).
    技术分享
  17. Setup security aliases. (Set up oracle username and password). Set later. Do nothing and next.
    技术分享
  18. Confirm page, click “Finish” button.
    技术分享
  19. Save the data source configuration.
    技术分享
  20. Add “JAAS - J2C authentication data” (oracle username and password).
    After that set “security setting”.
    技术分享
  21. Click “New” button.
    技术分享
  22. Alias is free to input, User ID and Password use to connect oracle db.
    技术分享
  23. Apply and save.
    技术分享
  24. Link to data source edit page, edit “Security settings” option.
    技术分享
  25. Apply and save.
    技术分享
  26. Test connection.
       技术分享
  27. Connect successfully if shows below page. And the entire configuration for data source has done.

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。