码迷,mamicode.com
首页 > Web开发 > 详细

WebSphere数据源配置

时间:2015-02-17 11:35:01      阅读:381      评论:0      收藏:0      [点我收藏+]

标签:

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.

WebSphere数据源配置

标签:

原文地址:http://www.cnblogs.com/IcanFixIt/p/4294970.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!