免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5857 | 回复: 3
打印 上一主题 下一主题

[数据库] ORA-56608: DRCP: Server Group feature is not supported(修改) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-11-01 10:31 |只看该作者 |倒序浏览
本帖最后由 c0ff 于 2013-11-01 16:30 编辑

ORA-56608: DRCP: Server Group feature is not supported
Version 11.2
Cause : Server Group attribute was set on the server handle, connected to a Database Resident connection pool.
Action : Do not set Server Group attribute on server handles while using Database Resident connection pool.

这是我查到的解释,可是却不知道如何做,action描述的server group attribute 如何修改?
错误发生在env->createConnectionPool(user, pwd, conn_url, 1u, 10u, 1u)
  1. C:\Users\xxxx>sqlplus system/xxx@xx.xx.xx.xx:1521/xxx:POOLED

  2. SQL*Plus: Release 11.2.0.3.0 Production on 星期五 11月 1 15:57:35 2013

  3. Copyright (c) 1982, 2011, Oracle.  All rights reserved.


  4. 连接到:
  5. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
  6. With the Partitioning, Oracle Label Security, OLAP, Data Mining,
  7. Oracle Database Vault and Real Application Testing options

  8. SQL>
复制代码
使用createConnectionPool()就不行,
如果参数conn_url设置成xx.xx.xx.xx:1521/sidOOLED,就会出现ORA-56608的错误提示,
如果参数conn_url设置成xx.xx.xx.xx:1521/sid,就没有报错,但是这个创建过程的时间很长越有5秒左右。
如果使用createStatelessConnectionPool(),就没有任何问题,创建一个10个的连接池,速度很快,这里不知道到createConnectionPool()的合理用法...

PS:
附上这两个函数的细节:
是OCCI库
  1. ConnectionPool* createConnectionPool(
  2. const string &poolUserName,
  3. const string &poolPassword,
  4. const string &connectString = "",
  5. unsigned int minConn = 0,
  6. unsigned int maxConn = 1,
  7. unsigned int incrConn = 1)=0;
复制代码
  1. StatelessConnectionPool* createStatelessConnectionPool(
  2. const string &poolUserName,
  3. const string &poolPassword,
  4. const string connectString="",
  5. unsigned int maxConn=1,
  6. unsigned int minConn=0,
  7. unsigned int incrConn=1,
  8. StatelessConnectionPool::PoolType
  9. pType=StatelessConnectionPool::HETEROGENEOUS);
复制代码

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
2 [报告]
发表于 2013-11-04 22:14 |只看该作者
学习了。还有这种连接方式啊。

论坛徽章:
0
3 [报告]
发表于 2013-11-05 21:12 |只看该作者
回复 2# renxiao2003


    后悔用OCCI了,没有JDBC和ODAC功能丰富,当初应该用.net 和 odac的

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
4 [报告]
发表于 2013-11-05 22:02 |只看该作者
哦。学习了,原来 这个是OCCI啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP