Weblogic起步(一) - 配置数据源

1. In the my_domain domain structure, expand
the Services tab and select the Data Sources node. In the Data Sources table, click
on New and select Generic Data Source as shown in the following screenshot

 

2. In Create a New JDBC Data Source, specify a data source name and JNDI Name
(for example, jdbc/OracleDS) for the data source. The database shall be accessed
using JNDI Name lookup in the Creating a session bean facade section. Select
Database Type as Oracle and click on Next as shown in the following screenshot

 

3. In JDBC Data Source Properties, select Database Driver as Oracle's Driver (Thin
XA). Another JDBC driver may also be selected based on requirements. Refer to
the Selection of the JDBC Driver document available at http://docs.oracle.com/
cd/E14072_01/java.112/e10590/keyprog.htm#i1005587 for selecting a suitable
JDBC driver. Click on Next as shown in the following screenshot:

 

4.Specify Database Name, Host Name as localhost, Port as 1521, Database User
Name and Password, and click on Next as shown in the following screenshot

 

5. The Driver Class Name textbox and connection URL textbox get configured. Click
on the Test Configuration button to test the database connection. If a connection gets
established the message Connection test succeeded. gets displayed. Click on Next as
shown in the following screenshot

 

6. 最后成功画面

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值