惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
P
Proofpoint News Feed
D
DataBreaches.Net
C
Check Point Blog
L
LangChain Blog
量子位
美团技术团队
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
腾讯CDC
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale

博客园 - cspfeng

hadoop学习之路1--centos7群集安装 wonderware historian 10安装配置 从u盘安装XP [原创]数独解答程序 再战徐州 网站投票程序 《面向对象分析与设计(uml2.0)》不懂之处 委托学习笔记[摘自msdn] 旧地重游 彼得·林奇的基金投资法则[转载] [转]项目经理必读法律法规一览表 [转]有关加薪申请资料 一周损兵又折将 [原]防火墙安装配置(日志) 再见2006,奋斗2007 防火墙安装配置(准备) 徐州项目顺利验收 悲惨的圣诞节 接近岁末,今日股市收盘大跳水
jdbc连接oracle rac服务器
cspfeng · 2010-09-29 · via 博客园 - cspfeng

徐州需要连接第三方数据库,原数据库使用windows群集的,最近改为rac方式导致jdbc连接经常报错。处理方案:

1、连接串配置为:

jdbc:oracle:thin:@(description=(address_list=(address=(host=IP地址1) (protocol=tcp)(port=1521))(address=(host=IP地址2) (protocol=tcp)(port=1521))(load_balance=yes)(failover=yes))(connect_data=(service_name=数据库服务名)))

2、修改host文件,增加服务器IP和名称

host文件地址C:\Windows\System32\drivers\etc\hosts

经过以上两步,可以正常连接RAC模式 ORACLE数据库