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”.
           WebSphere数据源配置_第1张图片                
  3. On the right page shows the variables list, click “Next” button to move to next page and find “ORACLE_JDBC_DRIVER_PATH” variable.

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

你可能感兴趣的:(websphere)