- 论坛徽章:
- 0
|
本帖最后由 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)- C:\Users\xxxx>sqlplus system/xxx@xx.xx.xx.xx:1521/xxx:POOLED
- SQL*Plus: Release 11.2.0.3.0 Production on 星期五 11月 1 15:57:35 2013
- Copyright (c) 1982, 2011, Oracle. All rights reserved.
- 连接到:
- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
- With the Partitioning, Oracle Label Security, OLAP, Data Mining,
- Oracle Database Vault and Real Application Testing options
- SQL>
复制代码 使用createConnectionPool()就不行,
如果参数conn_url设置成xx.xx.xx.xx:1521/sid OOLED,就会出现ORA-56608的错误提示,
如果参数conn_url设置成xx.xx.xx.xx:1521/sid,就没有报错,但是这个创建过程的时间很长越有5秒左右。
如果使用createStatelessConnectionPool(),就没有任何问题,创建一个10个的连接池,速度很快,这里不知道到createConnectionPool()的合理用法...
PS:
附上这两个函数的细节:
是OCCI库- ConnectionPool* createConnectionPool(
- const string &poolUserName,
- const string &poolPassword,
- const string &connectString = "",
- unsigned int minConn = 0,
- unsigned int maxConn = 1,
- unsigned int incrConn = 1)=0;
复制代码- StatelessConnectionPool* createStatelessConnectionPool(
- const string &poolUserName,
- const string &poolPassword,
- const string connectString="",
- unsigned int maxConn=1,
- unsigned int minConn=0,
- unsigned int incrConn=1,
- StatelessConnectionPool::PoolType
- pType=StatelessConnectionPool::HETEROGENEOUS);
复制代码 |
|