I am trying to connect to PL/SQL 8.0.4.1514 through JMeter.
In JDBC connection configuration ,I have provided the database URL as "jdbc:oracle:thin:#//01HW552780:6129))/tnsfile" and JDBC driver class as "com.plsql.jdbc.Driver"
But getting error as "No suitable driver found for jdbc:oracle:thin:#//01HW552780:6129))/tnsfile"
Could someone rectify me here regarding driver class?
I believe that you need oracle.jdbc.OracleDriver class instead.
I believe that you need to remove // from your JDBC URL
I'm not too sure regarding tnsfile (unless it is you real oracle database name) as Oracle JDBC URL takes forms:
jdbc:oracle:thin:#host:port /databaseName
jdbc:oracle:thin:#host:port :serviceName
Relevant driver can be downloaded from Oracle website or alternatively (better) take it from $ORACLE_HOME/jdbc/ folder on the machine where Oracle lives
See The Real Secret to Building a Database Test Plan With JMeter guide for more configuration and usage details for the JDBC Sampler.
Faced the same problem.
I used oracle.jdbc.OracleDriver as Driver Class.
No need to remove //. It can be present.
In database URL, it should be jdbc:oracle:thin:#//MachineName:Port/Schema
Download or better copy JDBC Jars from your DB installation and paste it under Jmeter/lib path.
For example, I presume you DB as Oracle 12c, it required ojdbc6.jar and ojdbc7.jar copied and pasted under Jmeter/lib folder.
After this activity, the problem vanished away for me.
Related
TL;DR: When I try to add the latest Athena JDBC Driver to my project my other S3 calls no longer work (this driver: https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html). I think there's a conflict, but I'm not entirely sure how to resolve it.
A short summary of what I'm doing: I have an app that does PUT calls to S3. I was using the AWS SDK for that.
I now want to be able to query that data from the same app. So I started working with AWS Athena. When I include the JDBC driver in my project to be able to start running queries at Athena it works, but it leads to conflicts with my original app functionality.
Whenever I try to do a PUT call to S3 now, I get this error:
java.lang.NoClassDefFoundError: Could not initialize class
com.amazonaws.services.s3.internal.Constants
com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1709)
It seems the driver may have introduced some kind of conflict which is causing my library references to break?
I'm just not entirely sure how to resolve this...
I am using ignite 2.8.1 and trying to see table definition from ignite web console by using command like desc table_name. But it does not work. Did a detail study but did not find any commands or any approach which helps to download table creation script or see the table definition.
Please let me know if there is any approach by which we can download table script or see table definition in ignite (preferably from ignite web console)
I'm not sure if WebConsole can do the trick, this product is not supported anymore. But you can achieve it using any DB manager with JDBC support.
For example, here is the screenshot from DBeaber that has an embedded template for Apache Ignite JDBC drier. Check this example on how to set it up (could be outdated though).
.
I have a machine on which I am storing some data in the form of json or csv.
and on same machine Apache Drill is also running.
I can access the Apache Drill using web console on different machine. and also can execute the sql query on the file that store on the machine where Apache Drill is running.
Now I want to create a program that can execute sql query as I am doing on web browser in web console of Apache Drill.
Can anyone know about the jar like webhdfs-java-client-0.0.2.jar used for Hadoop hdfs?
I am looking for such a java client jar for Apache Drill.
You can achieve this using drill-jdbc driver. Check Drill's documentation.
If you are using maven, add this dependency:
<dependency>
<groupId>org.apache.drill.exec</groupId>
<artifactId>drill-jdbc</artifactId>
<version>1.4.0</version>
</dependency>
Sample code (assuming drill running on xx.xx.xx.xx):
Class.forName("org.apache.drill.jdbc.Driver");
Connection connection =DriverManager.getConnection("jdbc:drill:drillbit=xx.xx.xx.xx");
Statement st = connection.createStatement();
ResultSet rs = st.executeQuery(<your SQL query>);
while(rs.next()){
System.out.println(rs.getString(1));
}
If you want zookeeper to start drill automatically, use:
Connection connection =DriverManager.getConnection("jdbc:drill:zk=xx.xx.xx.xx");
Note: Here xx.xx.xx.xx can be IP address or host name.
Edit: Check my github project for more details.
Good evening all, does any one know anything about this error
JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
it always appears when i start deploying mysql jar and my application fails to start on the sever HTTP Status 404 i suffered a lot from that and can't have any solution, please help me.
Note: i used mysql-connector-java-5.1.24.jar
That message gets printed because the MySQL driver is not JDBC compliant. That may seem a bit weird, but it's a long-standing known issue:
http://bugs.mysql.com/bug.php?id=62038
The problem is that to be fully JDBC compliant, the driver has to have SQL support conforming to the entry level of the SQL92 standard, but MySQL doesn't support features that are required by that. You read that right: MySQL doesn't support the most basic level of a twenty-year-old standard. Probably the most prominent example of a missing feature is check constraints. Therefore, the driver is non-compliant, and JBoss logs a message saying so.
However, this does not prevent the driver deploying correctly. As the message says, JBoss deploys it.
If your app is not working, the problem lies somewhere else.
Try using these instructions to deploy mysql driver to JBoss AS. With connector 5.1.22 as found in fedora18 I've never had a problem. Here is the module.xml
If I run Selenium-WebDriver testcase it runs with the actual database which is configured for the application. But I want to setup a separate database for Selenium-WebDriver testcase For eg. "TestDB". When running the test case WebDriver should use TestDB. Is this possible?
If it possible, Do we need to configure this in any configuration file (*.xml) or anyother way to do this?
Please help me?
Thanks in advance
You may use a copy of your application configured to your 'TestDB' for testing purpose.
Put a extra request parameter with html request. Example : http://www.abcd.com/?seleniumTest=true
seleniumTest parameter will only visible with selenium requests.
Capture this parameter in application and select the database on the basis of request parameter provided by selenium. If true map a test database, otherwise production.
Hope this works.