|
修改了:设定联接数据库地址、设定连接数据库的用户名和密码、设定查询条件
报错啊,
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(13): lrd.c/fjInitDB: Cannot load the ORACLE library (DLL), "ora805.dll", specified after a "+" in the "805" entry in section [ORACLE_WINNT] in the "lrd.ini" file. - 找不到指定的模块。
Processing continues
Action.c(13): lrd.c/fjInitDB: Using the "816" entry in section [ORACLE_WINNT] in the "lrd.ini" file ("C:\Program Files\Mercury\LoadRunner\bin\lrdo32.dll" / "oci.dll")
Action.c(19): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=06401:
Action.c(19): Error: ORA-06401: NETCMN: 无效的驱动程序指示符
Action.c(19): server_attach: ERROR, return-code=LRDE2009. ServerHandle=OraSrv1, ServerID="10.10.20.48:db9i"
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
数据库是Oracle 9G的
修改内容如下:
//设定联接数据库地址
lrd_server_attach(OraSrv1, "10.10.20.48:db9i", -1, 0, 0);
lrd_ora8_attr_set_from_handle(OraSvc1, SERVER, OraSrv1, 0, 0);
//设定连接数据库的用户名和密码
lrd_ora8_attr_set(OraSes1, USERNAME, "myfd", -1, 0);
lrd_ora8_attr_set(OraSes1, PASSWORD, "myfd", -1, 0);
//设定查询条件
lrd_ora8_stmt(OraStm1, "select * from mng_user", 1, 0, 0);
[ 本帖最后由 兰色犹豫 于 2007-11-6 17:27 编辑 ] |
|