English 中文(简体)
是否有载重测试PLSQL的工具
原标题:Is there a tool to load test a PLSQL

我知道对单位测试的ut子,我是否在装饰测试我的储存程序时可以使用这种方法?

我不想使用JMeter或穿过任何JDBC的司机——只是试图分析所储存的面包车的业绩。

最佳回答

I don t think a unit test tool is the right approach, because you re not really making assertions about functionality. With a load test you want to know how a procedure runs with a large volume of data, of if it s called lots of times.

So you might want to run it in a loop or against a big table and use a profiler to find bootlenecks. If you re on 11g you should check out the built-in hierarchical profiler.

与此类似:

begin
    DBMS_HPROF.START_PROFILING (
       location    =>  PROF_DATA_FILE_DIR 
       , filename    =>  HPROF_RUN1_20111109 
       );

    some_pkg.generate_lots_of_work(p_id => 1234);

    DBMS_HPROF.STOP_PROFILING;

end;
/

或者在 lo中:

begin
    DBMS_HPROF.START_PROFILING (
       location    =>  PROF_DATA_FILE_DIR 
       , filename    =>  HPROF_RUN2_20111109 
       );

    for i in 1..1000
    loop
        some_pkg.do_this(p_num => i);
    end loop;

    DBMS_HPROF.STOP_PROFILING;

end;
/

显然,这 won有助于你为负荷测试生成数据。 这始终是最困难的部分:

问题回答

All of the classical vendor performance test tools, LoadRunner, Silk Performer, QALoad and Rational Performance Tester have direct to Database capability for executing performance tests on queries directly or against stored procedures.

The reason why these tools have this capability is because they generally existed in the market for a good half a decade when the standard for client=server was a two tier database thick client architecture. Most of the stuff which has shown up in the market since 2000 is pretty much web only.





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

How to make a one to one left outer join?

I was wondering, is there a way to make a kind of one to one left outer join: I need a join that matches say table A with table B, for each record on table A it must search for its pair on table B, ...

Insert if not exists Oracle

I need to be able to run an Oracle query which goes to insert a number of rows, but it also checks to see if a primary key exists and if it does, then it skips that insert. Something like: INSERT ALL ...

How can I store NULLs in NOT NULL field?

I just came across NULL values in NOT-NULL fields in our test database. How could they get there? I know that NOT-NULL constraints can be altered with NOVALIDATE clause, but that would change table s ...

Type reference scope

I m studying databases and am currently working on a object-relational DB project and I ve encountered a small problem with the number of possible constraints in an object table. I m using "Database ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

热门标签