JMeter Performance Test Method for Oracle databases

Source: Internet
Author: User
Download the jdbc database driver package for Oracle. Pay attention to the version of the Oracle database. Here we use: OracleDatabase11gEnterpriseEditionRelease11.2.

Download the jdbc Database driver package for Oracle. Pay attention to the version of the Oracle Database. Here we use: Oracle Database 11g Enterprise Edition Release 11.2.

Download the jdbc Database driver package for Oracle. Pay attention to the version of the Oracle Database. Here we use: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0-64bit Production;

Generally, the driver package file of the database is in the installation path: D: \ oracle \ product \ 10.2.0 \ db_1 \ jdbc \ lib; the database driver package is irrelevant to the operating system platform where the database is located. It is only related to the database version. For databases of the same version on Linux and Windows, the database driver package is the same;

Driver ojdbc6.jar:

Scenario: To test the performance of a server, you must check the processing capability of inserting 1000 data entries/s into the database;

Follow the previous idea: Write a java program to insert data cyclically and write a batch file to call the java program. Then, the LR system () function is used to call the batch file for stress testing.

However, JMeter is easy to implement. The process is as follows:

Prerequisites: 1. database exists; 2. Tables in the database, such as user_dyl (code, name );

Requirements: Insert a large volume of data into the database, 1000 entries/s;

1. Create a test plan and import the used database driver package

2. Add a thread group and set the number of virtual users, startup time, and number of cycles.

3. Create a JDBC Connection Configuration under the thread and set relevant information.

4. Create a JDBC Request. We need to insert the database. Note that the value includes''

5. Add a listener. Here, select "graphic result" and "view result tree", and click "run"> "start" on the menu bar to view the running result.

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.