meibaocai 发表于 2011-3-9 17:23:44

并发用户上去,rdo_server_attach: error-code=12516

并发用户上去:rdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12516
脚本如下:
        #include "lrd.h"
        static LRD_INIT_INFO InitInfo={LRD_INIT_INFO_EYECAT};
        static LRD_DEFAULT_DB_VERSION DBTypeVersion[]={{LRD_DBTYPE_NONE,LRD_DBVERSION_NONE}};
        static LRD_VAR_DESC NUM ={LRD_VAR_DESC_EYECAT, 15, 23, LRD_DBTYPE_ORACLE, {1, 1, 0},DT_NUMERIC};
        static void FAR * OraEnv1;
        static void FAR * OraSvc1;
        static void FAR * OraSrv1;
        static void FAR * OraSes1;
        static void FAR * OraStm1;
        static void FAR * OraDef1;
        static unsigned long rownum;
        static unsigned long uliFetchedRows;
        static unsigned long uliRowsProcessed;
        charROW;

vuser_init()
{
        lrd_init(&InitInfo,DBTypeVersion);
        lrd_initialize_db(LRD_DBTYPE_ORACLE,3,0);
        lrd_env_init(LRD_DBTYPE_ORACLE,&OraEnv1,0,0);
        lrd_ora8_handle_alloc(OraEnv1,SVCCTX,&OraSvc1,0);
        lrd_ora8_handle_alloc(OraEnv1,SERVER,&OraSrv1,0);
        lrd_ora8_handle_alloc(OraEnv1,SESSION,&OraSes1,0);

        lr_think_time(5);

        //设置数据库名称,我的是oracle,odbc中连接数据库名称就是这个
        lrd_server_attach(OraSrv1, "190TP_172.17.225.190", -1, 0, 0);
        lrd_ora8_attr_set_from_handle(OraSvc1,SERVER,OraSrv1,0,0);
        lr_think_time(5);
       
        //用户名和密码
        lrd_ora8_attr_set(OraSes1,USERNAME,"TP1",-1,0);
        lrd_ora8_attr_set(OraSes1,PASSWORD,"TP1",-1,0);
        lrd_ora8_attr_set_from_handle(OraSvc1,SESSION,OraSes1,0,0);
        lrd_session_begin(OraSvc1,OraSes1,1,0,0);
        lrd_ora8_handle_alloc(OraEnv1,STMT,&OraStm1,0);
        return 0;
}

meibaocai 发表于 2011-3-9 17:26:07

license:golba-1000:AEACFSJI-YASEKJJKEAHJD-BCLBR
当运行并发用户数达到100开始报以上错误,场景:每5s 上一个用户

真实的追求者 发表于 2011-3-9 17:32:27

看不明白
页: [1]
查看完整版本: 并发用户上去,rdo_server_attach: error-code=12516