Discussion:
Trying to setup test plan for Oracle Database
o haya
2016-12-06 20:21:00 UTC
Permalink
Hi,

I'm just starting to try to setup a test plan for testing Oracle Database using Jmeter 3.1. The Jmeter is running on Windows.

I have setup the test plan with:

Thread Group
- JDBC Connection Configuration
- JDBC Request
- View results in tree

I have added ojdbc.jar to the Jmeter's 'lib' directory

For the JDBC Connection Configuration, I have:
Variable Name: mydb

Validation Query: select * from dual;

Database URL: jdbc.oracle:thing:@//myhostname:myhostport/mysid
Username: <db username>
Password: <db password>



For the JDBC Request I have is:
Vraiable name: mydb
Query Type: Select
Query has: select * from departments;

Handle Result Set: Store as string (this is grayed out)



When I run the test plan I am getting:

Sampler result:
Thread Name: Thread Group 1-1
Sample Start: 2016-12-06 15:18:03 EST
Load time: 33
Connect Time: 33
Latency: 0
Size in bytes: 84
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 84
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: null 0
Response message: java.sql.SQLException: Cannot create PoolableConnectionFactory (ORA-00933: SQL command not properly ended
)

Response headers:

SampleResult fields:
ContentType: text/plain
DataEncoding: UTF-8



Request: [Select Statement] select * from departments;




Response: Cannot create PoolableConnectionFactory (ORA-00933: SQL command not properly ended
)




I have tried a bunch of things, but cannot eliminate this error. Can anyone tell me why this error is occurring?

Thanks!

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Felix Schumacher
2016-12-06 20:27:26 UTC
Permalink
Post by o haya
Hi,
I'm just starting to try to setup a test plan for testing Oracle Database using Jmeter 3.1. The Jmeter is running on Windows.
Thread Group
- JDBC Connection Configuration
- JDBC Request
- View results in tree
I have added ojdbc.jar to the Jmeter's 'lib' directory
Variable Name: mydb
Validation Query: select * from dual;
With 3.1 you can leave the validation query empty and the pool will try
to use the jdbc method isValid to validate the connection. If you want
to specify a validation query by hand, the usual query for oracle is
"select 1 from dual".
The . between jdbc and oracle looks like a typo, I think there should be
a colon and the "thing" is probably a typo and should be "thin", right?
Post by o haya
Username: <db username>
Password: <db password>
Vraiable name: mydb
Query Type: Select
Query has: select * from departments;
Handle Result Set: Store as string (this is grayed out)
Thread Name: Thread Group 1-1
Sample Start: 2016-12-06 15:18:03 EST
Load time: 33
Connect Time: 33
Latency: 0
Size in bytes: 84
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 84
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: null 0
Response message: java.sql.SQLException: Cannot create PoolableConnectionFactory (ORA-00933: SQL command not properly ended
)
ContentType: text/plain
DataEncoding: UTF-8
Request: [Select Statement] select * from departments;
Response: Cannot create PoolableConnectionFactory (ORA-00933: SQL command not properly ended
)
I have tried a bunch of things, but cannot eliminate this error. Can anyone tell me why this error is occurring?
Have you tried to remove the semicolons at the end of your statements?

Felix
Post by o haya
Thanks!
Jim
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
o haya
2016-12-06 20:34:34 UTC
Permalink
Hi,

Validation Query:

Hmm. I got a different error if I leave this out, and yes, that was a typo on my part. I already had it as:

select 1 from dual;



About the URL, yes, again, my typing error here, it was already a ":"


So still getting the same error, but don't know why. I remember doing this (Jmeter+Oracle ) a long long time ago, and don't remember it being this difficult, plus I am following most of my old notes.

Thanks,
Jim




--------------------------------------------
On Tue, 12/6/16, Felix Schumacher <***@internetallee.de> wrote:

Subject: Re: Trying to setup test plan for Oracle Database
To: ***@jmeter.apache.org
Date: Tuesday, December 6, 2016, 3:27 PM

Am 06.12.2016 um 21:21
Post by o haya
Hi,
I'm just starting
to try to setup a test plan for testing Oracle Database
using Jmeter 3.1.  The Jmeter is running on Windows.
Post by o haya
I have setup the test
Thread
Group
Post by o haya
      - JDBC Connection
Configuration
Post by o haya
      - JDBC Request
      - View results in tree
I have added
ojdbc.jar to the Jmeter's 'lib' directory
Post by o haya
For the JDBC
Connection Configuration, I have:
Variable Name: mydb
Post by o haya
Validation Query: select * from dual;
With 3.1 you can leave the validation query
empty and the pool will try
to use the jdbc
method isValid to validate the connection. If you want
to specify a validation query by hand, the
usual query for oracle is
"select 1
from dual".
Database URL:
jdbc.oracle:thing:@//myhostname:myhostport/mysid
The . between jdbc and oracle looks like a
typo, I think there should be
a colon and
the "thing" is probably a typo and should be
"thin", right?
<db username>
Post by o haya
Password: <db
password>
Post by o haya
For the JDBC Request
Vraiable name: mydb
Query Type: Select
Query has: select * from departments;
Post by o haya
Handle Result Set: 
Store as string (this is grayed out)
Post by o haya
Thread Name: Thread Group 1-1
Sample Start: 2016-12-06 15:18:03 EST
Load time: 33
Connect
Time: 33
Post by o haya
Latency: 0
Size in bytes: 84
Sent bytes:0
0
Post by o haya
Body size in bytes: 84
Sample Count: 1
Error
Count: 1
Post by o haya
Data type
("text"|"bin"|""): text
Post by o haya
Response code: null 0
Response message: java.sql.SQLException: Cannot create
PoolableConnectionFactory (ORA-00933: SQL command not
properly ended
Post by o haya
)
SampleResult
ContentType: text/plain
DataEncoding: UTF-8
Request: [Select
Statement] select * from departments;
Response: Cannot create PoolableConnectionFactory
(ORA-00933: SQL command not properly ended
Post by o haya
)
I have tried a bunch
of things, but cannot eliminate this error.  Can anyone
tell me why this error is occurring?
Have
you tried to remove the semicolons at the end of your
statements?

Felix
Post by o haya
Thanks!
Jim
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Felix Schumacher
2016-12-06 20:37:44 UTC
Permalink
Post by o haya
Hi,
select 1 from dual;
Can you post the error you get? (The isValid method is relatively new,
so you should use a recent oracle jdbc driver. I think that should be
ojdbc6.jar)
Post by o haya
About the URL, yes, again, my typing error here, it was already a ":"
So still getting the same error, but don't know why. I remember doing this (Jmeter+Oracle ) a long long time ago, and don't remember it being this difficult, plus I am following most of my old notes.
Have you removed the semicolons?

Do you have any error/warning logs in jmeter.log?

Felix
Post by o haya
Thanks,
Jim
--------------------------------------------
Subject: Re: Trying to setup test plan for Oracle Database
Date: Tuesday, December 6, 2016, 3:27 PM
Am 06.12.2016 um 21:21
Post by o haya
Hi,
I'm just starting
to try to setup a test plan for testing Oracle Database
using Jmeter 3.1. The Jmeter is running on Windows.
Post by o haya
I have setup the test
Thread
Group
Post by o haya
- JDBC Connection
Configuration
Post by o haya
- JDBC Request
- View results in tree
I have added
ojdbc.jar to the Jmeter's 'lib' directory
Post by o haya
For the JDBC
Variable Name: mydb
Post by o haya
Validation Query: select * from dual;
With 3.1 you can leave the validation query
empty and the pool will try
to use the jdbc
method isValid to validate the connection. If you want
to specify a validation query by hand, the
usual query for oracle is
"select 1
from dual".
The . between jdbc and oracle looks like a
typo, I think there should be
a colon and
the "thing" is probably a typo and should be
"thin", right?
<db username>
Post by o haya
Password: <db
password>
Post by o haya
For the JDBC Request
Vraiable name: mydb
Query Type: Select
Query has: select * from departments;
Store as string (this is grayed out)
Post by o haya
Thread Name: Thread Group 1-1
Sample Start: 2016-12-06 15:18:03 EST
Load time: 33
Connect
Time: 33
Post by o haya
Latency: 0
Size in bytes: 84
Sent bytes:0
0
Post by o haya
Body size in bytes: 84
Sample Count: 1
Error
Count: 1
Post by o haya
Data type
("text"|"bin"|""): text
Post by o haya
Response code: null 0
Response message: java.sql.SQLException: Cannot create
PoolableConnectionFactory (ORA-00933: SQL command not
properly ended
Post by o haya
)
SampleResult
ContentType: text/plain
DataEncoding: UTF-8
Request: [Select
Statement] select * from departments;
Response: Cannot create PoolableConnectionFactory
(ORA-00933: SQL command not properly ended
Post by o haya
)
I have tried a bunch
of things, but cannot eliminate this error. Can anyone
tell me why this error is occurring?
Have
you tried to remove the semicolons at the end of your
statements?
Felix
Post by o haya
Thanks!
Jim
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
o haya
2016-12-06 20:42:24 UTC
Permalink
Hi,

Thanks for your help. Got it working.

To repeat, if I leave out the Validation query, I get an error (that was just to kind of make it clear).

For Validation query, I have to have:

select 1 from dual --> with NO ending semi-colon



For the JDBC query, I have to have:

select * from departments --> with NO ending semi-colon



Now it works. Picky, picky :)!!


Now I have to setup some loops or something with different users.


Thanks!

Jim








--------------------------------------------
On Tue, 12/6/16, Felix Schumacher <***@internetallee.de> wrote:

Subject: Re: Trying to setup test plan for Oracle Database
To: ***@jmeter.apache.org
Date: Tuesday, December 6, 2016, 3:37 PM

Am 06.12.2016 um 21:34
Hi,
Hmm.  I got a
different error if I leave this out, and yes, that was a
select 1 from
dual;
Can you post the error you get? (The
isValid method is relatively new,
so you
should use a recent oracle jdbc driver. I think that should
be
ojdbc6.jar)
About the URL, yes, again, my typing error here, it was
already a ":"
So still getting the
same error, but don't know why.  I remember doing this
(Jmeter+Oracle ) a long long time ago, and don't
remember it being this difficult, plus I am following most
of my old notes.
Have you removed the
semicolons?

Do you have any
error/warning logs in jmeter.log?

Felix
Thanks,
Jim
--------------------------------------------
   Subject: Re: Trying to setup
test plan for Oracle Database
   Date: Tuesday, December 6,
2016, 3:27 PM
   
   Am 06.12.2016 um 21:21
   > Hi,
   >
   > I'm just starting
   to try to setup a test plan
for testing Oracle Database
   using Jmeter 3.1.  The
Jmeter is running on Windows.
   >
   > I have setup the test
   >
   > Thread
   Group
   >      - JDBC
Connection
   Configuration
   >      - JDBC
Request
   >      -
View results in tree
   >
   > I have added
   ojdbc.jar to the Jmeter's
'lib' directory
   >
   > For the JDBC
   Connection Configuration, I
   >
   Variable Name: mydb
   >
   > Validation Query: select
* from dual;
   With 3.1 you
can leave the validation query
   empty and the pool will
try
   to use the jdbc
   method isValid to validate
the connection. If you want
   to specify a validation query
by hand, the
   usual query
for oracle is
   "select
1
   from dual".
   >
   >
   The . between jdbc and oracle
looks like a
   typo, I think
there should be
   a colon
and
   the "thing"
is probably a typo and should be
   "thin", right?
   <db username>
   > Password: <db
   password>
   >
   >
   >
   > For the JDBC Request
   > Vraiable name: mydb
   > Query Type: Select
   >
   Query has: select * from
departments;
   >
   Store as string (this is
grayed out)
   >
   >
   >
   >
   When I run the test plan I am
   >
   > Thread Name: Thread
Group 1-1
   > Sample
Start: 2016-12-06 15:18:03 EST
   > Load time: 33
   > Connect
   Time: 33
   > Latency: 0
   > Size in bytes: 84
   >
   Sent bytes:0
   > Headers size in
   0
84
   > Sample Count: 1
   > Error
   Count: 1
   > Data type
text
null 0
   >
java.sql.SQLException: Cannot create
   PoolableConnectionFactory
(ORA-00933: SQL command not
   properly ended
   > )
   >
   >
   > SampleResult
text/plain
   >
DataEncoding: UTF-8
   >
   >
   >
   > Request: [Select
   Statement] select * from
departments;
   >
   >
   >
   >
   >
   Response: Cannot create
PoolableConnectionFactory
   (ORA-00933: SQL command not
properly ended
   > )
   >
   >
   >
   >
   > I have tried a bunch
   of things, but cannot
eliminate this error.  Can anyone
   tell me why this error is
occurring?
   Have
   you tried to remove the
semicolons at the end of your
   statements?
   
   Felix
   >
   > Thanks!
   >
   > Jim
   >
   >
   ---------------------------------------------------------------------
   > For additional commands,
   >
   
   
   ---------------------------------------------------------------------
   For additional commands,
   
   
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Felix Schumacher
2016-12-06 20:47:22 UTC
Permalink
Post by o haya
Hi,
Thanks for your help. Got it working.
To repeat, if I leave out the Validation query, I get an error (that was just to kind of make it clear).
Can you tell us, what version of ojdbc you are using? Or even better,
try with a recent one, see if it works and report back?

Felix
Post by o haya
select 1 from dual --> with NO ending semi-colon
select * from departments --> with NO ending semi-colon
Now it works. Picky, picky :)!!
Now I have to setup some loops or something with different users.
Thanks!
Jim
--------------------------------------------
Subject: Re: Trying to setup test plan for Oracle Database
Date: Tuesday, December 6, 2016, 3:37 PM
Am 06.12.2016 um 21:34
Post by o haya
Hi,
Hmm. I got a
different error if I leave this out, and yes, that was a
Post by o haya
select 1 from
dual;
Can you post the error you get? (The
isValid method is relatively new,
so you
should use a recent oracle jdbc driver. I think that should
be
ojdbc6.jar)
About the URL, yes, again, my typing error here, it was
already a ":"
Post by o haya
So still getting the
same error, but don't know why. I remember doing this
(Jmeter+Oracle ) a long long time ago, and don't
remember it being this difficult, plus I am following most
of my old notes.
Have you removed the
semicolons?
Do you have any
error/warning logs in jmeter.log?
Felix
Thanks,
Post by o haya
Jim
--------------------------------------------
Post by o haya
Subject: Re: Trying to setup
test plan for Oracle Database
Post by o haya
Date: Tuesday, December 6,
2016, 3:27 PM
Post by o haya
Am 06.12.2016 um 21:21
Post by o haya
Hi,
I'm just starting
to try to setup a test plan
for testing Oracle Database
Post by o haya
using Jmeter 3.1. The
Jmeter is running on Windows.
Post by o haya
Post by o haya
I have setup the test
Thread
Group
Post by o haya
- JDBC
Connection
Post by o haya
Configuration
Post by o haya
- JDBC
Request
Post by o haya
Post by o haya
-
View results in tree
Post by o haya
Post by o haya
I have added
ojdbc.jar to the Jmeter's
'lib' directory
Post by o haya
Post by o haya
For the JDBC
Connection Configuration, I
Variable Name: mydb
Post by o haya
Validation Query: select
* from dual;
Post by o haya
With 3.1 you
can leave the validation query
Post by o haya
empty and the pool will
try
Post by o haya
to use the jdbc
method isValid to validate
the connection. If you want
Post by o haya
to specify a validation query
by hand, the
Post by o haya
usual query
for oracle is
Post by o haya
"select
1
Post by o haya
from dual".
The . between jdbc and oracle
looks like a
Post by o haya
typo, I think
there should be
Post by o haya
a colon
and
Post by o haya
the "thing"
is probably a typo and should be
Post by o haya
"thin", right?
<db username>
Post by o haya
Password: <db
password>
Post by o haya
For the JDBC Request
Vraiable name: mydb
Query Type: Select
Query has: select * from
departments;
Post by o haya
Store as string (this is
grayed out)
Post by o haya
When I run the test plan I am
Post by o haya
Thread Name: Thread
Group 1-1
Post by o haya
Post by o haya
Sample
Start: 2016-12-06 15:18:03 EST
Post by o haya
Post by o haya
Load time: 33
Connect
Time: 33
Post by o haya
Latency: 0
Size in bytes: 84
Sent bytes:0
Post by o haya
Headers size in
0
84
Post by o haya
Post by o haya
Sample Count: 1
Error
Count: 1
Post by o haya
Data type
text
null 0
java.sql.SQLException: Cannot create
Post by o haya
PoolableConnectionFactory
(ORA-00933: SQL command not
Post by o haya
properly ended
Post by o haya
)
SampleResult
text/plain
DataEncoding: UTF-8
Post by o haya
Post by o haya
Request: [Select
Statement] select * from
departments;
Post by o haya
Response: Cannot create
PoolableConnectionFactory
Post by o haya
(ORA-00933: SQL command not
properly ended
Post by o haya
Post by o haya
)
I have tried a bunch
of things, but cannot
eliminate this error. Can anyone
Post by o haya
tell me why this error is
occurring?
Post by o haya
Have
you tried to remove the
semicolons at the end of your
Post by o haya
statements?
Felix
Post by o haya
Thanks!
Jim
---------------------------------------------------------------------
Post by o haya
For additional commands,
---------------------------------------------------------------------
For additional commands,
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
o haya
2016-12-06 20:56:35 UTC
Permalink
Hi,

It's ojdbc6.jar that I pulled from from one of our Oracle instances. Are you saying I should be looking for like an ojdb7.jar or something?

Thanks
Jim





--------------------------------------------
On Tue, 12/6/16, Felix Schumacher <***@internetallee.de> wrote:

Subject: Re: Trying to setup test plan for Oracle Database
To: ***@jmeter.apache.org
Date: Tuesday, December 6, 2016, 3:47 PM

Am 06.12.2016 um 21:42
Post by o haya
Hi,
Thanks for your
help.  Got it working.
Post by o haya
To repeat, if I leave out the Validation
query, I get an error (that was just to kind of make it
clear).
Can you tell us, what version of
ojdbc you are using? Or even better,
try
with a recent one, see if it works and report back?

Felix
Post by o haya
select 1 from
dual   --> with NO ending semi-colon
Post by o haya
For the JDBC query, I
have to have:
select * from departments   --> with NO ending
semi-colon
Post by o haya
Now it works. 
Picky, picky :)!!
Post by o haya
Now I have to setup
some loops or something with different users.
Thanks!
Post by o haya
Jim
--------------------------------------------
Post by o haya
   Subject: Re: Trying to setup
test plan for Oracle Database
Post by o haya
   Date: Tuesday, December 6,
2016, 3:37 PM
Post by o haya
   
   Am 06.12.2016 um 21:34
   > Hi,
   >
   >
   > Hmm.  I got a
   different error if I leave
this out, and yes, that was a
Post by o haya
   typo on my part.  I already
   >
   > select 1 from
   dual;
   Can you post the error you
get? (The
Post by o haya
   isValid method
is relatively new,
Post by o haya
   so
you
Post by o haya
   should use a recent
oracle jdbc driver. I think that should
Post by o haya
   be
   ojdbc6.jar)
   >
   >
   >
   >
   About the URL, yes, again, my
typing error here, it was
Post by o haya
   already a ":"
   >
   >
   > So still getting the
   same error, but don't
know why.  I remember doing this
Post by o haya
   (Jmeter+Oracle ) a long long
time ago, and don't
Post by o haya
   remember it being this
difficult, plus I am following most
Post by o haya
   of my old notes.
   Have you removed the
   semicolons?
   
   Do you have any
   error/warning logs in
jmeter.log?
Post by o haya
   
   Felix
   >
   >
   Thanks,
   > Jim
   >
   >
   >
   >
   >
   --------------------------------------------
   > On Tue, 12/6/16, Felix
   >
Re: Trying to setup
Post by o haya
   test
plan for Oracle Database
Tuesday, December 6,
Post by o haya
   2016,
3:27 PM
Post by o haya
   >
   >   Am
06.12.2016 um 21:21
Post by o haya
   >   schrieb o
   >   > Hi,
   >   >
   >   >
I'm just starting
Post by o haya
   >   to try to
setup a test plan
Post by o haya
   for
testing Oracle Database
Post by o haya
   >   using
Jmeter 3.1.  The
Post by o haya
   Jmeter
is running on Windows.
Post by o haya
   >   >
   >   > I have
setup the test
Post by o haya
   >   plan
   >   >
   >   >
Thread
Post by o haya
   >   Group
   >   >   
  - JDBC
Post by o haya
   Connection
   >   Configuration
   >   >   
  - JDBC
Post by o haya
   Request
   >   >   
  -
Post by o haya
   View results in
tree
Post by o haya
   >   >
   >   > I have
added
Post by o haya
   >   ojdbc.jar
to the Jmeter's
Post by o haya
   'lib' directory
   >   >
   >   > For
the JDBC
Post by o haya
   >   Connection
Configuration, I
Post by o haya
   >   >
   >   Variable
Name: mydb
Post by o haya
   >   >
   >   >
Validation Query: select
Post by o haya
   *
from dual;
Post by o haya
   >   With 3.1
you
Post by o haya
   can leave the
validation query
Post by o haya
   >   empty and
the pool will
Post by o haya
   try
   >   to use the
jdbc
Post by o haya
   >   method
isValid to validate
Post by o haya
   the
connection. If you want
Post by o haya
   >   to specify
a validation query
Post by o haya
   by
hand, the
Post by o haya
   >   usual
query
Post by o haya
   for oracle is
   >   "select
   1
   >   from
dual".
Post by o haya
   >   >
   >   >
   >   Database
   >   The .
between jdbc and oracle
Post by o haya
   looks like a
   >   typo, I
think
Post by o haya
   there should be
   >   a colon
   and
   >   the
"thing"
Post by o haya
   is
probably a typo and should be
Post by o haya
   >   "thin",
right?
Post by o haya
   >   >
   >   <db
username>
Post by o haya
   >   >
Password: <db
Post by o haya
   >   password>
   >   >
   >   >
   >   >
   >   > For
the JDBC Request
Post by o haya
   >   I have
   >   >
Vraiable name: mydb
Post by o haya
   >   > Query
Type: Select
Post by o haya
   >   >
select * from
Post by o haya
   departments;
   >   >
   >   > Handle
   >   Store as
string (this is
Post by o haya
   grayed
out)
Post by o haya
   >   >
   >   >
   >   >
   >   >
   >   When I run
the test plan I am
Post by o haya
   >   >
   >   >
   >   > Thread
Name: Thread
Post by o haya
   Group 1-1
   >   >
Sample
Post by o haya
   Start: 2016-12-06
15:18:03 EST
Post by o haya
   >   > Load
time: 33
Post by o haya
   >   >
Connect
Post by o haya
   >   Time: 33
   >   >
Latency: 0
Post by o haya
   >   > Size
in bytes: 84
Post by o haya
   >   >
   >   Sent
bytes:0
Post by o haya
   >   >
Headers size in
Post by o haya
   >   0
   >   > Body
   84
   >   > Sample
Count: 1
Post by o haya
   >   >
Error
Post by o haya
   >   Count: 1
   >   > Data
type
Post by o haya
   text
   >   >
   null 0
   >   >
   >   Response
   java.sql.SQLException: Cannot
create
Post by o haya
   >   PoolableConnectionFactory
   (ORA-00933: SQL command
not
Post by o haya
   >   properly
ended
Post by o haya
   >   > )
   >   >
   >   >
   >   >
   >   >
SampleResult
Post by o haya
   >   >
   text/plain
   >   >
   DataEncoding: UTF-8
   >   >
   >   >
   >   >
   >   >
Request: [Select
Post by o haya
   >   Statement]
select * from
Post by o haya
   departments;
   >   >
   >   >
   >   >
   >   >
   >   >
Cannot create
Post by o haya
   PoolableConnectionFactory
SQL command not
Post by o haya
   properly
ended
Post by o haya
   >   > )
   >   >
   >   >
   >   >
   >   >
   >   > I have
tried a bunch
Post by o haya
   >   of things,
but cannot
Post by o haya
   eliminate this
error.  Can anyone
Post by o haya
   >   tell me why
this error is
Post by o haya
   occurring?
   >   Have
   >   you tried
to remove the
Post by o haya
   semicolons
at the end of your
Post by o haya
   >   statements?
   >
   >   Felix
   >   >
   >   >
Thanks!
Post by o haya
   >   >
   >   > Jim
   >   >
   >   >
   >   ---------------------------------------------------------------------
   >   > To
   >   > For
additional commands,
Post by o haya
   >   >
   >
   >
   >   ---------------------------------------------------------------------
   >   To
   >   For
additional commands,
Post by o haya
   >
   >
   >
   >
   ---------------------------------------------------------------------
   > For additional commands,
   >
   
   
   ---------------------------------------------------------------------
   For additional commands,
   
   
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org
Felix Schumacher
2016-12-06 21:01:49 UTC
Permalink
Post by o haya
Hi,
It's ojdbc6.jar that I pulled from from one of our Oracle instances. Are you saying I should be looking for like an ojdb7.jar or something?
No ojdbc6 should be fine. What is the error message, you are seeing?

Felix
Post by o haya
Thanks
Jim
--------------------------------------------
Subject: Re: Trying to setup test plan for Oracle Database
Date: Tuesday, December 6, 2016, 3:47 PM
Am 06.12.2016 um 21:42
Post by o haya
Hi,
Thanks for your
help. Got it working.
Post by o haya
To repeat, if I leave out the Validation
query, I get an error (that was just to kind of make it
clear).
Can you tell us, what version of
ojdbc you are using? Or even better,
try
with a recent one, see if it works and report back?
Felix
Post by o haya
select 1 from
dual --> with NO ending semi-colon
Post by o haya
For the JDBC query, I
select * from departments --> with NO ending
semi-colon
Post by o haya
Now it works.
Picky, picky :)!!
Post by o haya
Now I have to setup
some loops or something with different users.
Thanks!
Post by o haya
Jim
--------------------------------------------
Post by o haya
Subject: Re: Trying to setup
test plan for Oracle Database
Post by o haya
Date: Tuesday, December 6,
2016, 3:37 PM
Post by o haya
Am 06.12.2016 um 21:34
Post by o haya
Hi,
Hmm. I got a
different error if I leave
this out, and yes, that was a
Post by o haya
typo on my part. I already
Post by o haya
select 1 from
dual;
Can you post the error you
get? (The
Post by o haya
isValid method
is relatively new,
Post by o haya
so
you
Post by o haya
should use a recent
oracle jdbc driver. I think that should
Post by o haya
be
ojdbc6.jar)
About the URL, yes, again, my
typing error here, it was
Post by o haya
already a ":"
Post by o haya
So still getting the
same error, but don't
know why. I remember doing this
Post by o haya
(Jmeter+Oracle ) a long long
time ago, and don't
Post by o haya
remember it being this
difficult, plus I am following most
Post by o haya
of my old notes.
Have you removed the
semicolons?
Do you have any
error/warning logs in
jmeter.log?
Post by o haya
Felix
Thanks,
Post by o haya
Jim
--------------------------------------------
Post by o haya
On Tue, 12/6/16, Felix
Re: Trying to setup
Post by o haya
test
plan for Oracle Database
Tuesday, December 6,
Post by o haya
2016,
3:27 PM
Post by o haya
Post by o haya
Am
06.12.2016 um 21:21
Post by o haya
Post by o haya
schrieb o
Post by o haya
Hi,
I'm just starting
Post by o haya
Post by o haya
to try to
setup a test plan
Post by o haya
for
testing Oracle Database
Post by o haya
Post by o haya
using
Jmeter 3.1. The
Post by o haya
Jmeter
is running on Windows.
Post by o haya
Post by o haya
Post by o haya
I have
setup the test
Post by o haya
Post by o haya
plan
Thread
Post by o haya
Post by o haya
Group
- JDBC
Post by o haya
Connection
Post by o haya
Configuration
- JDBC
Post by o haya
Request
-
Post by o haya
View results in
tree
Post by o haya
Post by o haya
Post by o haya
I have
added
Post by o haya
Post by o haya
ojdbc.jar
to the Jmeter's
Post by o haya
'lib' directory
Post by o haya
Post by o haya
For
the JDBC
Post by o haya
Post by o haya
Connection
Configuration, I
Post by o haya
Post by o haya
Variable
Name: mydb
Validation Query: select
Post by o haya
*
from dual;
Post by o haya
Post by o haya
With 3.1
you
Post by o haya
can leave the
validation query
Post by o haya
Post by o haya
empty and
the pool will
Post by o haya
try
Post by o haya
to use the
jdbc
Post by o haya
Post by o haya
method
isValid to validate
Post by o haya
the
connection. If you want
Post by o haya
Post by o haya
to specify
a validation query
Post by o haya
by
hand, the
Post by o haya
Post by o haya
usual
query
Post by o haya
for oracle is
Post by o haya
"select
1
Post by o haya
from
dual".
Post by o haya
Post by o haya
Database
The .
between jdbc and oracle
Post by o haya
looks like a
Post by o haya
typo, I
think
Post by o haya
there should be
Post by o haya
a colon
and
Post by o haya
the
"thing"
Post by o haya
is
probably a typo and should be
Post by o haya
Post by o haya
"thin",
right?
Post by o haya
Post by o haya
<db
username>
Password: <db
Post by o haya
Post by o haya
password>
Post by o haya
For
the JDBC Request
Post by o haya
Post by o haya
I have
Vraiable name: mydb
Post by o haya
Post by o haya
Post by o haya
Query
Type: Select
select * from
Post by o haya
departments;
Post by o haya
Post by o haya
Handle
Store as
string (this is
Post by o haya
grayed
out)
Post by o haya
Post by o haya
When I run
the test plan I am
Post by o haya
Post by o haya
Post by o haya
Thread
Name: Thread
Post by o haya
Group 1-1
Sample
Post by o haya
Start: 2016-12-06
15:18:03 EST
Post by o haya
Post by o haya
Post by o haya
Load
time: 33
Connect
Post by o haya
Post by o haya
Time: 33
Latency: 0
Post by o haya
Post by o haya
Post by o haya
Size
in bytes: 84
Post by o haya
Post by o haya
Sent
bytes:0
Headers size in
Post by o haya
Post by o haya
0
Post by o haya
Body
84
Post by o haya
Post by o haya
Sample
Count: 1
Error
Post by o haya
Post by o haya
Count: 1
Post by o haya
Data
type
Post by o haya
text
null 0
Post by o haya
Response
java.sql.SQLException: Cannot
create
Post by o haya
Post by o haya
PoolableConnectionFactory
(ORA-00933: SQL command
not
Post by o haya
Post by o haya
properly
ended
Post by o haya
Post by o haya
Post by o haya
)
SampleResult
Post by o haya
text/plain
DataEncoding: UTF-8
Request: [Select
Post by o haya
Post by o haya
Statement]
select * from
Post by o haya
departments;
Cannot create
Post by o haya
PoolableConnectionFactory
SQL command not
Post by o haya
properly
ended
Post by o haya
Post by o haya
Post by o haya
)
I have
tried a bunch
Post by o haya
Post by o haya
of things,
but cannot
Post by o haya
eliminate this
error. Can anyone
Post by o haya
Post by o haya
tell me why
this error is
Post by o haya
occurring?
Post by o haya
Have
you tried
to remove the
Post by o haya
semicolons
at the end of your
Post by o haya
Post by o haya
statements?
Felix
Thanks!
Post by o haya
Post by o haya
Post by o haya
Jim
---------------------------------------------------------------------
Post by o haya
To
For
additional commands,
Post by o haya
Post by o haya
---------------------------------------------------------------------
To
For
additional commands,
Post by o haya
---------------------------------------------------------------------
Post by o haya
For additional commands,
---------------------------------------------------------------------
For additional commands,
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@jmeter.apache.org
For additional commands, e-mail: user-***@jmeter.apache.org

Loading...