Thread Group
Jdbc request
JDBC Connection Configuration
and i have added two listeners I am trying to connect to the data base without success getting the following error:
Cannot create PoolableConnectionFactory (ORA-00923: FROM keyword not found where expected
)
can anyone help on this issue?
thanks
You most probably didn't change the Validation Query in JDBC Connection Configuration
Change :
Select 1
to
select 1 from DUAL
Related
Could you please help me with the correct URL format to connect to Sybase using the DBCP connection pool of NiFi?
The URL format that I have tried is - jdbc:sybase:Tds://host:port
I keep getting this error - failed to create Poolable Connection Factory. Incorrect URL format.
Thank you in advance.
I'm tryng to connect jmeter and marklogic using postgresql-42.1.4.jar or mljdbc-42.1.4.jar.
My app-servers:
My Configuration of JDBC:
And i received the error: "Cannot create PoolableConnectionFactory (The connection attempt failed.)"
What i do wrong? help?
As far as I can remember the default postgresql validation query used to validate the JDBC connection is not a valid SQL statement for MarkLogic. JMeter uses apache commons dbcp for its connection pooling which in turn uses a validation query to validate the connections.
Not sure what the query is (I'm sure this is somewhere in the source code) but you need to change that.
Go to "JDBC Connection Configuration" and set "Validation Query" to select 1.
For reference the complete exception message is:
java.sql.SQLException: Cannot create PoolableConnectionFactory
(isValid() returned false)
I am trying to establish a JDBC connection to access HIVE via SQL workbenchJ. I have placed all the JARs needed for connection along with the connection URL. Am getting the error
[Amazon]HivejdbcDriver error initialized or created
transport for authentication:null
while testing the connection. Can anyone help me on this?
For JDBC request on Jmeter I have configured properly Database Connection Configuration with giving
Database Url- jdbc:mysql://developmentdb.cwwxeukesrtn.ap-southeast-1.rds.amazonaws.com;Development_DB
JDBC Driver Class- com.mysql.jdbc.Driver
Username-...
Password-...
then I create a JDBC request with Select Statementbut after run this request,on the response message got this message-
Response message:
java.sql.SQLException: Cannot create PoolableConnectionFactory (Communications link failure The last packet sent successfully to the
server was 0 milliseconds ago. The driver has not received any packets
from the server.)
Now my question is , how to solve this problem?
You need two basic things to get that done:
Tunneling
mysql.jdbc jar in JMeter lib folder.
For 1st:
Open Putty
Go to Connection >> SSH >> Tunnels
Put down the details as port: 9876
Put down the details as database URL (present in the application config file), e.g:
jdbc:mysql://developmentdb.cwwxeukesrtn.ap-southeast-.rds.amazonaws.com;Development_DB
Add it
Open JMeter >> Add JDBC Connection Configuration
Use DataBase URL as jdbc:mysql://localhost:9876 and the
other details as shown in the picture, like JDBC driver Class
For step 2. Go through this link:
https://www.blazemeter.com/blog/mysql-database-and-jmeter-how-to-test-your-connection/
Looking into Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J article:
I believe you need to replace the semicolon before Development_DB with a slash like:
jdbc:mysql://developmentdb.cwwxeukesrtn.ap-southeast-1.rds.amazonaws.com/Development_DB
For more information on databases load testing see The Real Secret to Building a Database Test Plan With JMeter article.
You might also need to open port 3306 in your operating system firewall and add the relevant Security Group to your instance in order to allow MySQL JDBC traffic.
Could someone please help me on why I received the following error while trying to connect to Oracle db from java....
The connection call is:
Connection con = DriverManager.getConnection(
"jdbc:oracle:thin:#winson.net:1522/hcrod",
"manager", "passing");
I receive the following error:
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:389)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:454)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:802)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at test_sample.main(test_sample.java:15)
in a similar case for me worked a slightly other connect string:
jdbc:oracle:thin:#winson.net:1522:hcrod
really without the // and with : instead of /
I've seen this error come up a few times when I've started the TNS listener after I started the database. When the database starts up it registers itself with the listener if the listener is running, but if the listener isn't running it can't do this.
It's possible to manually persuade the database to register itself with the listener. To do this, connect to the database as SYS and run the SQL statement ALTER SYSTEM REGISTER;.
It sounds like the port on the server isn't listening, port 1522.
Can you telnet the port successfully?
Oracle's JDBC thin URI syntax is as follows:
jdbc:oracle:thin:[USER/PASSWORD]#//[HOST][:PORT]/SERVICE
So:
jdbc:oracle:thin:#//winson.net:1522/hcrod"
Note the two slashes added after the # symbol.
i think port number for oracle is 1521