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数据源配置的更多相关文章

  1. WebSphere中配置的数据源在Web应用中引用的写法

    WebSphere中配置的数据源在Web应用中引用时名称一定要和数据源的JNDI名称保持一致,否则会出现无法找到数据源的错误. 引用WAS的数据源时只需要与JNDI名称保持一致即可. 引用Tomcat ...

  2. Spring jndi数据源配置方法

    xml配置: <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverMana ...

  3. spring 四种数据源配置方式

    1.spring自带的数据源 DriverManagerDataSource XML代码: <bean id="dataSource" class="org.spr ...

  4. 复习Spring第三课--数据源配置的多种方式

    spring数据源配置可以说分为:spring容器自带连接池.项目中创建连接池.服务器创建连接池三种 一.spring容器自带连接池   Spring本身也提供了一个简单的数据源实现类DriverMa ...

  5. JAVA spring hibernate 多数据源配置记录

    数据源配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http:// ...

  6. 基于xml的Spring多数据源配置和使用

    上一篇讲了<基于注解的Spring多数据源配置和使用>,通过在类或者方法上添加@DataSource注解就可以指定某个数据源.这种方式的优点是控制粒度细,也更灵活. 但是当有些时候项目分模 ...

  7. mysql连接超时与jndi数据源配置

    昨天有运营说添加活动不能用了,我就看了一下后台日志,发现访问数据库是报错: at java.lang.Thread.run(Thread.java:722) Caused by: com.mysql. ...

  8. 三、oracle数据库成功安装步骤 Oracle数据源配置

      安装完Oracle驱动后,如需连接远程Oracle数据库,还需进行数据源配置,类似Windows下的ODBC数据源配置. 运行"开始菜单\Oracle - OraDb11g_home1\ ...

  9. java连接数据源-读取tomcat数据源配置

    读取数据源配置,获取连接 1.配置数据源 D:\apache-tomcat-7.0.70\conf\context.xml <Resource name="jdbc/news" ...

随机推荐

  1. Cookie禁用了,Session还能用吗?

    Cookie与Session,一般认为是两个独立的东西,Session采用的是在服务器端保持状态的方案,而Cookie采用的是在客户端保持状态的方案.Cookie分为两种,一种可以叫做session ...

  2. Win7下 httpRequest带证书请求https网站

    常规情况下创建Web请求,并获取请求数据的代码如下: WebRequest req = WebRequest.Create(url); req.Timeout = 15000; WebResponse ...

  3. 在Spark中使用Kryo序列化

    spark序列化  对于优化<网络性能>极为重要,将RDD以序列化格式来保存减少内存占用. spark.serializer=org.apache.spark.serializer.Jav ...

  4. SVN客户端解决authorization failed问题

    遇到authorization failed问题 进人 [root@localhost conf]# pwd /opt/svndata/shell/conf [root@localhost conf] ...

  5. 利用JS实现的根据经纬度计算地球上两点之间的距离

      最近用到了根据经纬度计算地球表面两点间距离的公式,然后就用JS实现了一下. 计算地球表面两点间的距离大概有两种办法. 第一种是默认地球是一个光滑的球面,然后计算任意两点间的距离,这个距离叫做大圆距 ...

  6. 【easyui】--combobox--赋值和获取选中的值

    //初始化下拉选框 $('#communityIdDiv').combobox({ url:basepath+"pushController/queryCommonityName" ...

  7. MSSQL 所有表中模糊查询

    --搜索指定数据在那个对象中存在.txt(所有表中模糊查询) CREATE PROC sp_ValueSearch @value sql_variant, --要搜索的数据 @precision bi ...

  8. linux安装至少有哪两个分区,各自作用是什么?

    1.至少有/代表根分区,/swap代表的意思是交换分区. 2.swap相当于缓存的作用:

  9. Python学习教程(learning Python)--2.2.2 Python全局和局部变量

    Python的变量也有全局和局部变量之分. 1. 局部变量 用在子函数里的变量称之为局部变量,其生命周期为该函数执行周期,即函数执行完后变量即不存在.由于局部变量和某个函数直接相关,故不同子函数里可以 ...

  10. 任务管理界面添加显示RAM信息

    显示RAM信息的核心代码是大蛋的,我只不过是整理下教程而已! 大蛋应该不会介意的吧,首先你需要apktool和SystemUI.apk,framework-res.apk 然后开始加载框架和反编译.. ...