Go ahead every day !

LoadRunner测试Oracle的10个常见问题

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

51Testing软件测试网Ulb%dD:T~;s+|

使用LR8.1测试 Oracle10g性能,遇到的问题与解答:
_ R'_1@b7eMa051Testing软件测试网"t$^"c)zfs:T-C
问题1:
/`;ka9UNq$}0用LoadRunner8.1破解版测试 Oracle10g,结果遇到如下的错误信息:
q0R+OQ2^y0Error... You do not have a license for this Vuser type.51Testing软件测试网[fFt5R$p)b!lR
Please contact Mercury Interactive to renew your license.51Testing软件测试网q~&z5FR.@W
解决方法:使用了另外一个100用户的全协议license。51Testing软件测试网0}L$t@.T*T
51Testing软件测试网"y~,Tb:]
问题2:
)`H`(BM4r0测试run起来之后,会有好多Vuser出现Error,具体如下:51Testing软件测试网,vM,u%@7w9E
Action.c(37): Error: lrdo_ora8_exec: "OCIStmtExecute" return-code=OCI_ERROR,error-code=00054:
oOX2Tb y.z0解决方法:51Testing软件测试网pbi"YFr6N
51Testing软件测试网4P"w@G)M~wD2l8^!l7k
lrd_ora8_exec(OraSvc1, OraStm<i>, 0, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);
"o"`%eZH$D!d[$d/V0改为:
cK$P?_Av2_0lrd_ora8_exec(OraSvc1, OraStm<i>, 0, 0, &uliRowsProcessed, 0, 0, 0, 0, 1);
J8j9Q r x0
Ls?{!ii_0问题3:Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12514:51Testing软件测试网1nwyrq2KU
解决办法:开启数据库服务器监听,启动数据库服务器。

3s$w vk4e:n4wD0

B!S L ?|H0问题4:51Testing软件测试网@f:v d F(F'x
用LR测试Oracle10g,启动VuGen并进行相应的设置。启动sqlplus,开始录制。
m$Y&d_gi!~0录制完成之后,使用Controller分发负载,但是最后测试数据只有如下4条性能曲线:
?1H)vu%P!{RIi0Running Vusers51Testing软件测试网)A Ey8~:h1Z` F
Trans Response Time51Testing软件测试网g e}4M8F
Trans/Sec(Passed)
y-V![K%g*{4h6CV0Total Trans/Sec(Passed)51Testing软件测试网VM)Z-yHb4v
其余的 Throughput51Testing软件测试网^9Y O`,U,tN z%Y}:@P
HTTP Responses per Second51Testing软件测试网(I~3Q'I`)R#D
Connections 等等
Ed}S)W6N$Hp.N0这些性能统计项显示为灰色,没有统计数据。是不是哪儿设置的有问题呢?51Testing软件测试网:UX dy{9p3@FF
解决:
qw+C/O K h9^_M0因为sqlplus.exe是一个win32程序,那么在测试的过程中只统计上面的四项,它不51Testing软件测试网.^ Y.E7Vp @
会统计Throughput这些Web测试才有的性能曲线。51Testing软件测试网Rf*H6gYs
所以,如果想对数据库服务器测试的更全面,这个时候就要使用isqlplus来发出查询。
\"dy4uh-Yj4x01)在DB server上启动isqlplus服务:isqlplusctl start51Testing软件测试网o'`M? l(Q
2)启动VuGen,在客户端(压力机)启动isqlplus的Web页面
k#V gC"D_&F$r03)输入用户名、密码,我这里采用scott/tiger@lr
"JHW$H ~X&@s0OK!录制完成之后,施加压力执行测试。顺利结束之后,可以看到如下曲线已经抓取出来51Testing软件测试网e3o K5E.{b
了:51Testing软件测试网S#wIE3QYi%{R
Throughput51Testing软件测试网`A+\x t%J6u
HTTP Responses per Second
#P Nl:?i0\oP#jU0Connections
)c-a K-f,N!`)F0所剩的工作就是如何分析性能数据了。51Testing软件测试网#H3W5[v!U["}b

3eXA{&T v/K051Testing软件测试网t.U-VO*p.Se
问题5:
[i {E(fj d^0Action.c(26): Error: C interpreter run time error: Action.c (26): Error -- Unresolved symbol : lrd_session_begin.51Testing软件测试网.~9GuJV:F
解决:51Testing软件测试网ux)kC&k5T0`I
在vuser_init中添加 #include "lrd.h"51Testing软件测试网 k~ELjv"gK

pRk"@$w/@XvK&sD0
e/Uy$w&a,S#v0问题6:51Testing软件测试网 eq0f:`y?k2NO"Q
Action.c(41): Error: lrdo_ora8_exec: "OCIStmtExecute" return-code=OCI_ERROR, error-code=00054:51Testing软件测试网)s9r,lJ3SD5?3v$B&^
解决:同问题151Testing软件测试网B V od)F%Pf

p~st1|p"Pi h;Re0
!y { ao*h]Z0问题7:
7e&t/h!tnv7Li0Starting iteration 1.
OFaCNJ3[u2a0Starting action Action.
)tc,L7v7N4v5CA0Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12541:
Q5mvb5L%h ~$y0Action.c(13): Error: ORA-12541: TNS: 没有**51Testing软件测试网 G7W~(Cw
Action.c(13): server_attach: ERROR, return-code=LRDE2009. ServerHandle=OraSrv1, ServerID="lr"
K z"xV {@0p m8h5fz0解决:
1f&t}:U4E.GTJR`0启动数据库服务器,开启listener。如果需要使用isqlplus的话,开启服务:$isqlplusctl start
?x.mM}e#z l0
odT.U"\3N.s4[vOh051Testing软件测试网]6ii"e#T*m$U,_
问题8:51Testing软件测试网h9p9I.f:k8f
Action.c(13): Error: lrdo_server_attach: "OCIServerAttach" return-code=OCI_ERROR, error-code=12514:
nJ'` y;R]I0Action.c(13): Error: ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的 SERVICE_NAME51Testing软件测试网0c;~;o/rP2MVn
Action.c(13): server_attach: ERROR, return-code=LRDE2009. ServerHandle=OraSrv1, ServerID="lr"51Testing软件测试网4Me&]KZK6f7I2{j
解决:51Testing软件测试网m,{ Ig/SFA/i+y:z
检查压力机Oracle客户端解析文件tnsnames.ora,确保正确配置了这个文件。
%JZT6s"`,T0检查测试的数据库服务器,确保正确配置了监听,并已经开启。
(\qxy2^FQ:uohr051Testing软件测试网`-PFj]u1w ^u
问题9:压力机资源监视
R;K lFn0Monitor name :Windows Resources. Cannot connect to machine lr071129.Reason: 找不到网络路径。51Testing软件测试网?v)~ k&\ a!p
解决:
x+@(aqg}9Q%I0在弹出的Add Machine窗口,name项输入IP地址,正确选择Platform。51Testing软件测试网$Q-P6a.\*cx/V7A\

问题10:UNIX资源监视问题51Testing软件测试网^D[|2g%qUu
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.
yF*HT(h eFVOk0RPC-TCP: Failed to establish RPC server address.
'K,z bd/a0RPC-TCP: RPC Server <100001, 3, 17> is not registered on host '10.152.11.26'. (entry point: CFactory::Initialize). [MsgId: MMSG-47190]
/Nj8S@3~\%a0解决:51Testing软件测试网B3tP n \/O7D
[root@oratest ~]# cd /etc/rc.d/init.d51Testing软件测试网R?R0i9HlG,S1[x
[root@oratest init.d]# ll | grep rstatd*
%Qh4K/J|!N+j0-rwxr-xr-x 1 root root 1009 May 4 2005 rstatd51Testing软件测试网#_*d'a/hQE
[root@oratest init.d]# ./rstatd start51Testing软件测试网 ~2E.]j3npY
Starting rstat services: [ OK ]51Testing软件测试网/S0f"Ri5WN
[root@oratest init.d]#51Testing软件测试网\$w U,KV7x t m

 

T$\?dz+J#Q"Irqh0

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