0

I'm a problem in JDBC Connection Configuration. When i execute my test (only JDBC Request - insert), doesn't appear any results in report (View Results Tree):

"Cannot create JDBC driver of class 'oracle.jdbc.OracleDriver' for connect URL 'jdbc:oracle:JDTST'"

The connection is Oracle. See below the configuration:

database URL: jdbc:oracle://${myURL}

JDBC driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver

Username: ${user}

Password: ${password}

Print below: enter image description here

lister.ora file: enter image description here

My login in Oracle DB:

enter image description here

Could someone help me?

Thanks!!!

3 Answers 3

1
  1. I don't think your URL is correct, it should be something like:

    jdbc:oracle:thin:@your-oracle-hostname-or-ip-address:your-oracle-port:your-oracle-SID
    
  2. Correct JDBC Driver fully qualified name is oracle.jdbc.driver.OracleDriver

  3. The "Validation query" should be select 1 from dual

  4. You will need to download Oracle JDBC Driver and drop it to JMeter Classpath

More information:

Sign up to request clarification or add additional context in comments.

4 Comments

Dmitri T, - My URL: jdbc:oracle:thin:@${JDTST} - JDBC Driver: I tried with oracle.jdbc.driver.OracleDriver and oracle.jdbc.OracleDriver - I changed "Validation query" to select 1 from dual. Error again.. =/ See below: :java.sql.SQLException: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL ' jdbc:oracle:thin:@JDTST'
DmitriT, I added a print of the listener.ora file in description. How would I get his URL?
I added other print in description, about my login in Oracle DB!
??? =/ !!!!!!!!!
1

Refer to JDBC Developer's guide on how the JDBC connection URL is formed. The easiest way is to use the below URL. You can use DataSourceSample.java for checking the connection.

jdbc:oracle:thin:db_user/db_password@localhost:5221:orcl

4 Comments

Nirmala, I added the URL but to no avail... =/
I added other print in description, about my login in Oracle DB!
??? =/ !!!!!!!!!
Can you check tnsnames.ora on the database side and verify if the connection works through sqlplus?
1

Database SID is no longer supported; please use a service name as in Nirmala's response.

2 Comments

But it doesn't work... I tried: jdbc:oracle:thin:CAMILA_JDCCS2019/keyUser@localhost:5221:orcl
The error below: java.sql.SQLException: Cannot create PoolableConnectionFactory (Erro de ES: The Network Adapter could not establish the connection)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.