jdbc各种数据库连接的格式

<span style="font-size:18px;"><strong>
</strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong>jdbc:mysql://服务器名称/数据库名称,"用户名","密码"</strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong>例"jdbc:mysql://127.0.0.1/test"."root","root"</strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong>
</strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong>Jdbc 连接 Oracle</strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong>普通SID方式:</strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;">jdbc:oracle:thin:<strong><em>username/password</em></strong>@x.x.x.1:1521:SID</span>
</strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;"><span style="line-height: 26px;">普通ServerName方式</span>
</span></strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;"><span style="line-height: 26px;"><span style="line-height: 26px; color: rgb(54, 46, 43); background-color: rgb(255, 255, 255);"><strong>jdbc:oracle:thin:username/password@//x.x.x.1:1522/ABCD</strong></span>
</span></span></strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;"><span style="line-height: 26px;"><span style="line-height: 26px; color: rgb(54, 46, 43);"><span style=" background-color: rgb(51, 102, 255);"><strong><span style="color: rgb(54, 46, 43); font-family: Arial; font-size: 14px; line-height: 26px;"><strong>3.RAC方式
<strong><em>jdbc:oracle:thin:@(DESCRIPTION=</em></strong></strong></span></strong></span></span></span></span></strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;"><span style="line-height: 26px;"><span style="line-height: 26px; color: rgb(54, 46, 43);"><span style=" background-color: rgb(51, 102, 255);"><strong><span style="color: rgb(54, 46, 43); font-family: Arial; font-size: 14px; line-height: 26px;"><strong><strong><em>(ADDRESS_LIST=</em></strong></strong></span></strong></span></span></span></span></strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;"><span style="line-height: 26px;"><span style="line-height: 26px; color: rgb(54, 46, 43);"><span style=" background-color: rgb(51, 102, 255);"><strong><span style="color: rgb(54, 46, 43); font-family: Arial; font-size: 14px; line-height: 26px;"><strong><strong><em>(ADDRESS=(PROTOCOL=TCP)</em></strong></strong></span></strong></span></span></span></span></strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;"><span style="line-height: 26px;"><span style="line-height: 26px; color: rgb(54, 46, 43);"><span style=" background-color: rgb(51, 102, 255);"><strong><span style="color: rgb(54, 46, 43); font-family: Arial; font-size: 14px; line-height: 26px;"><strong><strong><em>(HOST=x.x.x.1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.2)(PORT=1521)))</em></strong></strong></span></strong></span></span></span></span></strong></span>
<span style="font-family:Comic Sans MS;font-size:18px;color:#3366ff;"><strong><span style="line-height: 26px;"><span style="line-height: 26px;"><span style="line-height: 26px; color: rgb(54, 46, 43);"><span style=" background-color: rgb(51, 102, 255);"><strong><span style="color: rgb(54, 46, 43); font-family: Arial; font-size: 14px; line-height: 26px;"><strong><strong><em>(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=xxrac)))</em></strong></strong></span>
</strong></span></span></span></span></strong></span>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值