2个回答
展开全部
oracle数据库的监听配置一般在D:\app\product\11.1.0\db_1\NETWORK\ADMIN\tnsnames.ora
配置大概就这样
d0tcs =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.100.133.105)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = d0tcs)
)
)
配置大概就这样
d0tcs =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.100.133.105)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = d0tcs)
)
)
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你好,Java的URL也可以用集成的连接方式哦。你的oracle.url 可以这样定义:
oracle.url = jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 130.130.2.22)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = xyyhis) ) )
希望能帮助你。
oracle.url = jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 130.130.2.22)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = xyyhis) ) )
希望能帮助你。
追问
不知道怎么回事,这样连接也不行,还有什么地方出问题 弹出Connection refused(DESCRIPTION=(TMP=)(VSNNUM=186646784)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询