JMeter Connecting the Oracle Database

Source: Internet
Author: User

First, jmeter to connect to the Oracle database, you must copy the JDBC driver jar package file Ojdbc14.jar to the JMeter Lib directory

Second, enter the JMeter bin directory run Jmeter.bat, start JMeter

Third, the JMeter software configuration is as follows:

1. Add Thread Group

2. Right-click the thread group and select "Add-Configure component--jdbc Connection Configuration"

3. Click on the JDBC Connection configuration and set the input domain to connect the Oracle database as an example:

  1. Variable Name Bound to Pool: This value should be unique throughout the test plan and will be used later

  2. Database url:jdbc:oracle:thin:@ database ip:1521: DB ID database connection string

  3. JDBC Driver class:oracle.jdbc.driver.OracleDriver Database driver

  4. Username: Database user name

  5. Password: The corresponding database user password

    650) this.width=650; "title=" JDBC Connection Configuration "alt=" wkiom1ss5ogda5loaak1b_ Eevqa325.jpg "src=" Http://s3.51cto.com/wyfs02/M00/58/41/wKiom1Ss5oGDa5loAAK1B_eEVqA325.jpg "/>

4. Click on the thread group and select "Add--sampler--jdbc Request"

5. Click JDBC Request to set the input domain:

    1. Variable Name: Enter the value of Variable name in the JDBC Connection Configuration

    2. Query: Enter the corresponding SQL

      650) this.width=650; "title=" JDBC Request "alt=" wkiol1ss53xtcw-naagsxuog_t0322.jpg "src=" Http://s3.51cto.com/wyfs02 /m01/58/3d/wkiol1ss53xtcw-naagsxuog_t0322.jpg "/>

6. Add Listener, click Thread Group, select "Add-listener-view result tree/graph result"

7. Save the Test plan

8. Start the test plan from the Run menu

JMeter Connecting the Oracle Database

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.