Go ahead every day !

LoadRunner测试Oracle的10个常见问题

上一篇 / 下一篇  2009-04-16 11:42:47 / 个人分类:性能测试

Q8l5L|7~&v0使用LR8.1测试 Oracle10g性能,遇到的问题与解答:51Testing软件测试网cxOn!{\[9?+ZX'A q

3eO Iq"|J0问题1:51Testing软件测试网JxP2sO.~P,@
用LoadRunner8.1破解版测试 Oracle10g,结果遇到如下的错误信息:
[6~w*K6k}0Error... You do not have a license for this Vuser type.
tS;Gt_G,{tv0Please contact Mercury Interactive to renew your license.51Testing软件测试网7_"f~ rT&XM-I
解决方法:使用了另外一个100用户的全协议license。
;Bm C6y:t/D a"y051Testing软件测试网9q y&cmg-Yl3bP k
问题2:
6fBL'qN"awn0测试run起来之后,会有好多Vuser出现Error,具体如下:51Testing软件测试网1niA&C1ZvR
Action.c(37): Error: lrdo_ora8_exec: "OCIStmtExecute" return-code=OCI_ERROR,error-code=00054:51Testing软件测试网t$Z2X7]-Rv A
解决方法:51Testing软件测试网c8Zub%WtZ m1S
51Testing软件测试网dv7RG2ckK
lrd_ora8_exec(OraSvc1, OraStm<i>, 0, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);
/Y l L JS1]&Q0改为:51Testing软件测试网 ex;MQV
lrd_ora8_exec(OraSvc1, OraStm<i>, 0, 0, &uliRowsProcessed, 0, 0, 0, 0, 1);
az`-Uv!w Y O0
-ju{$u c9};M0问题3:Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12514:
I)`ZheQj0解决办法:开启数据库服务器监听,启动数据库服务器。

aC@N7F3n\051Testing软件测试网5_w)PtWA

问题4:
*e;A"] nB"|0用LR测试Oracle10g,启动VuGen并进行相应的设置。启动sqlplus,开始录制。51Testing软件测试网$o,o,|;i.y{)P
录制完成之后,使用Controller分发负载,但是最后测试数据只有如下4条性能曲线:
/LM ["m6Gg0Running Vusers
7H9E9dTm {+[_0Trans Response Time
Sw&W!| ~Shl0Trans/Sec(Passed)
5J C,|0f~(Z3J7F z N0Total Trans/Sec(Passed)
)kPd7k3@v0其余的 Throughput
yO6I"e%h uu7o0HTTP Responses per Second51Testing软件测试网/JeW1j2HSq^
Connections 等等
c0f `9fTzP0这些性能统计项显示为灰色,没有统计数据。是不是哪儿设置的有问题呢?
p)aqC;Hj8Na0解决:51Testing软件测试网#|z(m+f2}#Ra I@k
因为sqlplus.exe是一个win32程序,那么在测试的过程中只统计上面的四项,它不
6rLo&B p0会统计Throughput这些Web测试才有的性能曲线。51Testing软件测试网4N]Y T$[ Z
所以,如果想对数据库服务器测试的更全面,这个时候就要使用isqlplus来发出查询。
y_'zH$~J01)在DB server上启动isqlplus服务:isqlplusctl start51Testing软件测试网7G,|NBW,l K-Mq*p5` vh
2)启动VuGen,在客户端(压力机)启动isqlplus的Web页面
;}9Nbcn3Vv03)输入用户名、密码,我这里采用scott/tiger@lr
f:Z \F/tI0OK!录制完成之后,施加压力执行测试。顺利结束之后,可以看到如下曲线已经抓取出来51Testing软件测试网'bl)hDl+]5V,s
了:
$w xGD-m8YU0Throughput
3}+G]2G2]t0HTTP Responses per Second51Testing软件测试网WXHp Sv V
Connections51Testing软件测试网3I1qt-V'g @!K0y@
所剩的工作就是如何分析性能数据了。51Testing软件测试网C!Z4l8p!Y#Y
51Testing软件测试网mB1|)@a$bu
51Testing软件测试网W l8J9[a
问题5:
C vl`7x"F)NH}0Action.c(26): Error: C interpreter run time error: Action.c (26): Error -- Unresolved symbol : lrd_session_begin.51Testing软件测试网K*|N~+h M4`6Sa#L
解决:51Testing软件测试网jK [S5WU;X*W
在vuser_init中添加 #include "lrd.h"51Testing软件测试网Y:p#| H2[-t H;p
51Testing软件测试网{1q~5B:xNz
51Testing软件测试网6g0H\@;VF,la
问题6:51Testing软件测试网0L)s*~5}%~ht
Action.c(41): Error: lrdo_ora8_exec: "OCIStmtExecute" return-code=OCI_ERROR, error-code=00054:51Testing软件测试网"tN)X1p}']
解决:同问题1
!x/s%Y Ynnt L051Testing软件测试网F"]$Y"c"t'LL

7z$C4gU C0问题7:51Testing软件测试网7n(P| c.s2o4Q
Starting iteration 1.
{&g@ C4?$E(^ U0Starting action Action.
:Op.W5W O+Y#M0Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12541:51Testing软件测试网d%K-s@+zaG&q,{0x_&P
Action.c(13): Error: ORA-12541: TNS: 没有**51Testing软件测试网"VGW'?xd
Action.c(13): server_attach: ERROR, return-code=LRDE2009. ServerHandle=OraSrv1, ServerID="lr"
_5C&A-N.ZL.J0解决:
$T0K-a(bech/axd0启动数据库服务器,开启listener。如果需要使用isqlplus的话,开启服务:$isqlplusctl start
c*z ]y N5B*W051Testing软件测试网7J\ l DD)Cl7@

3xint_ y0问题8:51Testing软件测试网ql'Q5sY| e)Xk4U
Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12514:
v:q)Hb\F6j0Action.c(13): Error: ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的 SERVICE_NAME
y(GD^Nt3f0Action.c(13): server_attach: ERROR, return-code=LRDE2009. ServerHandle=OraSrv1, ServerID="lr"51Testing软件测试网)U/j7aNst
解决:51Testing软件测试网&QHN'V S/Q3m
检查压力机Oracle客户端解析文件tnsnames.ora,确保正确配置了这个文件。
OEtD9a0检查测试的数据库服务器,确保正确配置了监听,并已经开启。51Testing软件测试网NC2vD T-m|!m M

;w#W Ti0N0问题9:压力机资源监视
ZL6`;` u$I:G0Monitor name :Windows Resources. Cannot connect to machine lr071129.Reason: 找不到网络路径。51Testing软件测试网[#mN Wq/A
解决:
q"xb3P;^0在弹出的Add Machine窗口,name项输入IP地址,正确选择Platform。

q/a%L z P7wr8gf0

问题10:UNIX资源监视问题51Testing软件测试网s5Jo;TzQ Z#z
Monitor name :UNIX Resources. Cannot initialize the monitoring on 10.152.**.**. Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification). Detailed error: RPC: Failed to create RPC client.51Testing软件测试网5i"N)}$f*C _8A
RPC-TCP: Failed to establish RPC server address.
!\[sL'O+M1n0RPC-TCP: RPC Server <100001, 3, 17> is not registered on host '10.152.11.26'. (entry point: CFactory::Initialize). [MsgId: MMSG-47190]
&y,P ^:~dw_!mG)x}0解决:51Testing软件测试网)kr,GN(Ka
[root@oratest ~]# cd /etc/rc.d/init.d51Testing软件测试网 I3WW h:p\h0S
[root@oratest init.d]# ll | grep rstatd*51Testing软件测试网Y-}#rJ}-j)n
-rwxr-xr-x 1 root root 1009 May 4 2005 rstatd51Testing软件测试网d Xd1gH
[root@oratest init.d]# ./rstatd start
)u*NM)B;{{0Starting rstat services: [ OK ]
!gb&\ae6S0[root@oratest init.d]#

\iZn{8t1W0

 

"Y!r%C fhI;n%iX0

TAG:

引用 删除 sxxj   /   2009-04-29 11:40:23
问题9:压力机资源监视
6YTMV5Rm260338Monitor name :Windows Resources. Cannot connect to machine lr071129.Reason: 找不到网络路径。51Testing软件测试网\h-R6v} D
解决:51Testing软件测试网 oA B&vRFzm rZ$_
在弹出的Add Machine窗口,name项输入IP地址,正确选择Platform。51Testing


输入的IP是哪个机器的IP
是装有Loadrunner的客户端还是平台所在的服务器IP?

我这两个都试了 还是不行
 

评分:0

我来说两句

Open Toolbar