WLS6.1 SP4 weblogic JDBC driver problem
Hi,
We have a big Oracle table (more than 13000000 rows). The query cost by SP2 weblogic
driver is about 200 milli-second while SP4 cost is more than 200 seconds. Does
anyone know how to fix the problem? Our Orale is 9.2.0.1. The test program is
a simple java application running on Sun 5.8, JDK 1.3.1_02-b02.
amyshuai wrote:
We are using the weblogic jdbc driver. The connection is from JDBCTxDataSource.
Problem can be solved by using oracle jdbc driver 9.0.1.4, but we are curious
why
the jdbc driver can impact the query performance so much?So all connections are coming through our pool, and you found a performance
regression in our Oracle driver between sp2 and sp4, which you work around
by using Oracle's own driver. Is that correct?
thanks,
Joe
Similar Messages
-
How can i use the weblogic jdbc driver for sqlserver?
hello
i have downloaded and installed the weblogic on my windows2000 server,then i want to use the weblogic jdbc driver for sqlserver2000 outside of the weblogic,as follow:
1 add following string to my classpath environment of the wndows2000: E:\bea\wlserver6.1\lib\mssqlserver4v65.jar
2 then i write a test program as:
import weblogic.jdbc.mssqlserver4.Driver;
import java.sql.*;
public class test{
public static void main(String argv[]){
try{ Class.forName("weblogic.jdbc.mssqlserver4.Driver");
Connection
conn=DriverManager.getConnection"jdbc:weblogic:mssqlserver4:localhost:1433","sa",""); }catch(Exception e){ System.out.println(e.getMessage()); }
4 when i execute it,it throw a exception:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/version at weblogic.jdbc.mssqlserver4.TdsStatement.getLicenseStr(TdsStatement.java:2665) at weblogic.jdbc.mssqlserver4.TdsStatement.microsoftLogin(TdsStatement.java:2474) at weblogic.jdbc.mssqlserver4.MicrosoftConnection.beginLogin(MicrosoftConnection.java:42) at weblogic.jdbc.mssqlserver4.TdsConnection.login(TdsConnection.java:57) at weblogic.jdbc.mssqlserver4.MicrosoftConnection.login(MicrosoftConnection.java:53) at weblogic.jdbc.mssqlserver4.BaseConnection.prepareConnection(BaseConnection.java:187) at weblogic.jdbc.mssqlserver4.Driver.newConnection(Driver.java:34) at weblogic.jdbc.mssqlserver4.ConnectDriver.connect(ConnectDriver.java:151) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:177) at test.main(test.java:7)
who can help me?thank you!Hi,
Mail me the jar file as I am using Weblogic 6.1 to my email id [email protected]
Else tell me the site from where u have downloaded and i will do the same.
I will test the same and let you know.
Thanks,
Seetesh -
Oracle 8.1.5 JDBC driver problem with LONGVARCHAR
Hi, I'm having problem with 8.1.5 release on Solaris with the
JDBC type 4 driver (thin). If I create the following table
create table test1 (col1 NUMBER, col2 LONG);
Using JDBC driver to insert into the second column any string
longer than 4000 characters causing run time exception. The type2
driver works fine, but type2 is slow.
String sql = "insert into test1 (col1, col2) values (1099,?)";
PreparedStatement stmt ;
stmt = conn.prepareStatement(sql);
// create a string with very long value , bigger than 4096
stmt.setString(1,string);
stmt.executeUpdate();
runtime exception:
java.sql.SQLException: Data size bigger than max size for this
type
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(Compiled Code)
at oracle.jdbc.dbaccess.DBError.check_error(Compiled
Code)
at oracle.jdbc.ttc7.TTCItem.setArrayData(Compiled Code)
at
oracle.jdbc.driver.OraclePreparedStatement.setItem(Compiled Code)
at
oracle.jdbc.driver.OraclePreparedStatement.setString(Compiled
Code)
at testi.main(Compiled Code)
Any help is appreciated.
Thanks
Steve
nullPost the full stacktrace here
Also you might want to post jdbc related questions to weblogic.developer.
interest.jdbc
Kumar
DreamNEON wrote:
Hello,
the NSAPI integration works, also the JSP files.
But I have still problems with the Jdriver for my Oracle 8.1.5.
I get the message :
Failed to invoke startup class
weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.internal.JdbcStartup
when the WebLogic Server is started.
Any ideas or hints about that?
Thanks in advance
Armin -
XA error XAER_RMERR with wls6.1 and weblogic XA driver
This error develops quickly in our designed simple test with these settings:
1) wlserver6.1 on Ultra 10 with Solaris 8;
2) XA datasource on another Ultra 10 with Oracle 8i;
3) Weblogic XA Oracle Driver;
4) Simulated 50 clients from Windows 2000 IE using Microsoft Web Stress test
suite;
5) BMT session bean;
6) Data base contains a simple table with two colomns, name and password.
7) The test business logic is to get and return the password string, could
not be simpler.
The Processing logic(high level) is as follows:
A) get UserTransaction, and begin transaction;
B) loop(30 times):
1) get connection
2) create statement
3) execute statement
4) close result set
5) close statement
6) close connection
C) commit/rollback the tx accordingly.
Note that:
1) the 50 simulated clients will generate repeated hits to stress the
server.
2) We changed to use "thin" driver, giving up the XA capability, and the
tests run OK. However, XA is what we absolutely require of. So please help
identify this problem. It needed, the complete sample code can be made
available.
Thanks.
Here comes the exception dump:
java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has
occured in the transaction branch start() failed on resource
'weblogic.jdbc.jta.DataSource' start failed for XAResource 'branchoutPool'
with error XAER_RMERR : A resource manager error has occured in the
transaction branch at
weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1113) at
weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1079) at
weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148) at
weblogic.jdbc.jta.Connection.createStatement(Connection.java:229) at
weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.jav
a:126) at
weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:56)
at simpleEJB.SimpleEJB.hitdb(SimpleEJB.java:57) at
simpleEJB.SimpleEJB_1zpe51_EOImpl.hitdb(SimpleEJB_1zpe51_EOImpl.java:79) at
simpleEJB.SimpleEJB_1zpe51_EOImpl_WLSkel.invoke(Unknown Source) at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298) at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:93) at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166) at
weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92) at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112) at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:262) at
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:229) at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at
$Proxy83.hitdb(Unknown Source) at
simpleUI.SimpleProxy.hitdb(SimpleProxy.java:31) at
jsp_servlet.__simple._jspService(__simple.java:95) at
weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:304) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200) at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495) at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)hi!
I´m facing the same problem with a similiar configuration.
Pool is large enough for an elephant! (:>))
Any other hints?
regards,
Pesca
"Richard Wallace" <[email protected]> escreveu na mensagem
news:[email protected]...
>
Hi,
What connection pool settings do you have? I assume you have enoughconnections
for this test?
Regards,
Richard Wallace
Senior Developer Relations Engineer
BEA Support.
"Yuming Liu" <[email protected]> wrote:
This error develops quickly in our designed simple test with these
settings:
>>
1) wlserver6.1 on Ultra 10 with Solaris 8;
2) XA datasource on another Ultra 10 with Oracle 8i;
3) Weblogic XA Oracle Driver;
4) Simulated 50 clients from Windows 2000 IE using Microsoft Web Stress
test
suite;
5) BMT session bean;
6) Data base contains a simple table with two colomns, name and password.
7) The test business logic is to get and return the password string,
could
not be simpler.
The Processing logic(high level) is as follows:
A) get UserTransaction, and begin transaction;
B) loop(30 times):
1) get connection
2) create statement
3) execute statement
4) close result set
5) close statement
6) close connection
C) commit/rollback the tx accordingly.
Note that:
1) the 50 simulated clients will generate repeated hits to stress the
server.
2) We changed to use "thin" driver, giving up the XA capability, and
the
tests run OK. However, XA is what we absolutely require of. So please
help
identify this problem. It needed, the complete sample code can be made
available.
Thanks.
Here comes the exception dump:
java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
has
occured in the transaction branch start() failed on resource
'weblogic.jdbc.jta.DataSource' start failed for XAResource'branchoutPool'
with error XAER_RMERR : A resource manager error has occured in the
transaction branch at
weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1113) at
weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1079)
at
weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148) at
weblogic.jdbc.jta.Connection.createStatement(Connection.java:229) atweblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.jav
a:126) atweblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:56)
at simpleEJB.SimpleEJB.hitdb(SimpleEJB.java:57) at
simpleEJB.SimpleEJB_1zpe51_EOImpl.hitdb(SimpleEJB_1zpe51_EOImpl.java:79)
at
simpleEJB.SimpleEJB_1zpe51_EOImpl_WLSkel.invoke(Unknown Source) at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:93) atweblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166)
at
weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112)
atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:262) atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:229) at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at
$Proxy83.hitdb(Unknown Source) at
simpleUI.SimpleProxy.hitdb(SimpleProxy.java:31) at
jsp_servlet.__simple._jspService(__simple.java:95) at
weblogic.servlet.jsp.JspBase.service(JspBase.java:27) atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265) atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:304) atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200) atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495) atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) -
Microsoft SQL Server JDBC Driver problem
Hi all,
I've downloaded the JDBC driver for SQL Server 2000 from Microsoft website and I
tried creating connection pool in Weblogic (WL 6.1 SP2).
Following are the configuration from the admin console,
Name - SQL2K
URL - jdbc:microsoft:sqlserver://127.0.0.1:1433
Driver Classname - com.microsoft.jdbc.sqlserver.SQLServerDriver
ACLName - sa
Password - tonypet
After creating the config, I select to chose the target server from the Servers tab
in Targets main tab in the admin console and when I click on Apply I saw in the WL
server command prompt the following error,
<16/07/2002 11:22:55> <Error> <JDBC> <Cannot startup connection pool "SQL2K" Cannot
load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have assigned the classpath env var as follows,
CLASSPATH=;.;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program
Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;c:\bea\wlserver6.1\lib\weblogic.jar
I've tried even copying the .JAR files to the ext and lib directory of bea directory
but I'm getting the same error.
Can anyone help me please.
Thanks a lot for your help
Cheers
NanikHi. You will also be wanting to add this property for the pool to apply to that driver:
SelectMethod=cursor
Joe
Nanik Tolaram wrote:
Hi all,
After fiddling around I found a solution (hope this will help those who are having
the same problem),
1. Make sure you add the complete directory of the library of the .JAR files in the
classpath in the STARTWEBLOGIC.CMD, I made a mistake of specifying the path in the
CLASSPATH and NOT IN the STARTWEBLOGIC.CMD as the classpath is overriden in the STARTWEBLOGIC.CMD
file.
2. The other thing I found was the configuration setting. I put the full settings
in the URL in admin console as follows,
jdbc:microsoft:sqlserver://127.0.0.1:1433;user=nanik;password=tonypet;databasename=scriptbuilder
When I put it individually in the Properties filed it won't work as it is not picking
it up from there but when I moved it to the URL and put it all together it worked
fine.
Whew !!! it's been a looong day, hope the info will help.
Cheers
Nanik
"Nanik Tolaram" <[email protected]> wrote:
Hi all,
I've downloaded the JDBC driver for SQL Server 2000 from Microsoft website
and I
tried creating connection pool in Weblogic (WL 6.1 SP2).
Following are the configuration from the admin console,
Name - SQL2K
URL - jdbc:microsoft:sqlserver://127.0.0.1:1433
Driver Classname - com.microsoft.jdbc.sqlserver.SQLServerDriver
ACLName - sa
Password - tonypet
After creating the config, I select to chose the target server from the
Servers tab
in Targets main tab in the admin console and when I click on Apply I saw
in the WL
server command prompt the following error,
<16/07/2002 11:22:55> <Error> <JDBC> <Cannot startup connection pool "SQL2K"
Cannot
load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have assigned the classpath env var as follows,
CLASSPATH=;.;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program
Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;c:\bea\wlserver6.1\lib\weblogic.jar
I've tried even copying the .JAR files to the ext and lib directory of bea
directory
but I'm getting the same error.
Can anyone help me please.
Thanks a lot for your help
Cheers
Nanik -
Oracle jdbc driver problems in netbeans 5.5
need help again....i'm experience a problem. the problems are :
i connect from netbeans 5.5 to oracle database express client 10g using jdbc driver ojdbc14.jar. the connection succeded (all the tables appears and i even can view the data). but when i trying to bind data to a drop down list component (with right click to the dropdown list component and then bind data), the dataprovider of that table appear in red color and there's no field appears in that. i'm so confused? i already add the ojdbc14.jar driver to the following path :
1. i create a new class library in netbeans with consist of that driver,
then added to my project (right click in my project then add library).
2. then i added the ojdbc14.jar driver to my tomcats lib at "C:\Program
Files\netbeans-5.5\enterprise3\apache-tomcat-5.5.17\common\lib".
Is there any additional settings in using oracle jdbc driver? Does anyone knows? thanks a lot for the answers...
Message was edited by:
darma_sadhaHi!
I'm using NetBeans 6.5 and I'm having some troubles to connect.
The steps I've made:
- Create the connection pool in Glassfish, nothing special, just standard parameters (Based on javax.sql.DataSource and including URL, Username and Password).
- Create the JDBC resource associated with that connection pool,let's say jdbc/test.
Now in NetBeans I register the driver:
- New driver -> Find the ojdbc14.jar and from the options that I can choose it shows: oracle.jdbc.OracleDriver and oracle.jdbc.driver.OracleDriver.
If i choose without +.driver+ I got the thin drivers (the ones i want) and if i chosse the one with the other one I got the OCI drivers. So I choose the first option oracle.jdbc.OracleDriver
- Then I go to my project and click New -> Entity Classes from Database and from Datasource I select jdbc/test and it shows the following error message:
Unable to find the driver oracle.jdbc.driver.OracleDriver. Please register this driver in the Databases.
I can fix it if while registering the ojdbc14.jar I select the second option (*oracle.jdbc.driver.OracleDriver*) but with this option I need to specity the connection to use OCI instead of the desired thin driver.
I hope you'll understand and help me somehow
Edited by: KILE on Oct 10, 2008 2:26 AM -
Oracle JDBC driver problem for Oracle 8.1.6
i am a newbee to Java, i was trying JDBC programming thru Jbuilder 4.0. now the problem is whenever i am trying the DriverManager.getconnection(), I am getting an error "NO SUITABLE DRIVER". i have downloaded jodbc14.jar(oracle 9i JDBC driver) but so result. what can i do now? any other config issues or is it due to absence of a Oracle JDBC driver of Oracle 8.1.6.
i have set the classpath as mentioned. but no solution.
the error is like this::
java.lang.NoClassDefFoundError: java/sql/Savepoint
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at DbaseTest.DbaseForm.OpenConnection(DbaseForm.java:37)
at DbaseTest.DbaseForm.jbInit(DbaseForm.java:73)
at DbaseTest.DbaseForm.<init>(DbaseForm.java:26)
at DbaseTest.Application1.<init>(Application1.java:11)
at DbaseTest.Application1.main(Application1.java:40)
i have imported
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import oracle.jdbc.*;
import java.lang.*;
the driver is registered by:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); -
Hi,
When I write code as
Resultset rs = .....
rs.last();
there is no problem for MySQL JDBC Driver, but when I use this code for Oracle, I am getting error with line 2. Why ? Do you know any Oracle JDBC Driver that supports "rs.last()" ? Or is there another way to handle it?
Thanks.Most of the JDBC Drivers can handle "rs.last()".
The question here is, how do you create a Scrollable ResultSet using DatabaseMetaData, or if this is even possible.
A thorough read of the API docs, for the Classes and methods being used here will answer this question (now that you know what the actual question is). -
How to resolve "Failed to load TTSQLDB JDBC driver" problem
Hi,
I installed timesten112140.sparc64.tar on solaris m/c.
Details of solaris m/c are
SunOS pun-ldom-rds70 5.10 Generic_139555-08 sun4v sparc SUNW,T5240
I am getting below mentioned error when trying connecting to the database through java process.
ERROR: failed to load TTSQLDB JDBC driver.
java.sql.SQLException: Problems with loading native library/missing methods: /op
t/TimesTen/ttsolaris21/lib/libttJdbc.so: ld.so.1: java: fatal: /opt/TimesTen/tts
olaris21/lib/libttJdbc.so: wrong ELF class: ELFCLASS64 (Possible cause: architec
ture word width mismatch)
at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:
1753)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:349)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:205)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at CreateConnectionDemo.createConnection(CreateConnectionDemo.java:43)
at CreateConnectionDemo.<clinit>(CreateConnectionDemo.java:26)
Exception in thread "main" java.lang.NullPointerException
at CreateConnectionDemo.closeConnection(CreateConnectionDemo.java:69)
at CreateConnectionDemo.main(CreateConnectionDemo.java:62)You are trying to open a direct mode connection to 64-bit TimesTen from a JVM running in 32-bit mode. This is not possible. Run the JVM in 64-bit mode instead and thsi issue will be resolved.
Chris -
JDBC Driver problem when using JDeveloper 10.1.2 with JDK 1.4
I hope someone can help me solve this problem (which I am sure others have encountered).
The JDK that is downloaded together with JDeveloper 10.1.2 is JDK 1.4.2. However, I believe the JDBC jar files that comes together with JDeveloper 10.1.2 are for JDK 1.2 : classes12.jar, classes12dms.jar and nls_charset12.
What I did was I replaced the JDeveloper 10.1.2 JDBC (JDK 1.2) jar files with the JDBC jar files from JDeveloper 10.1.3 download i.e. ocrs12.jar, ojdbc14.jar, ojdbc14dms.jar and orai18n.jar and then create a new JDBC Library which references these new jar files. I was able to successfully run my applications (under my modified JDeveloper 10.1.2) using this new JDBC library (instead of the original 'Oracle JDBC' library). However, when I created a Database Connection in this modified JDeveloper 10.1.2, the connection was unsuccessful. I received the error message "Unable to find driver: oracle.jdbc.driver.OracleDriver".
My organisation requires me to use JDK 1.4.2 and therefore I cannot use JDeveloper 10.1.3 (which I did not encounter any JDBC problem) as it is certified to run only on JDK 1.5.
Please help. Thanks.JDev 10.1.2 is quite old, and was never certified for Windows 2008.
No need to post multiple threads - same question as {thread:id=2271522} -
Oracle JDBC driver problem for Canada locale
Hi, there:
I have problem on Oracle JDBC thin driver with Canada locale on client side:
I'm using Oracle9i thin jdbc driver, the nls parameters in oracle database is:
NLS_LANGUAGE: AMERICAN
NLS_TERRITORY: AMERICA
NLS_NUMERIC_CHARACTERS : .,
My java client side is running on Windows NT, which using jdbc thin driver to connect oracle database. If I set the locale in client side as "English(Canada)", it seems return me "French" number format, like ",45" (comma, instead of decimal point) for "0.45". However, If I set client side locale as "English(United States)", it returns me "0.45" as expected.
So, my question: does Oracle JDBC driver always returns "French" number format evenif I set "English(Canada)" as locale? Because Canada have both English and French locale "French(Canada), and English(Canada)". How can I get "English" number format like "0.45" with "English(Canada)" locale setting?
Really appreciated any reply, and thanks a lot in advance
DavidSounds like a question for Oracle Support to me.
Anyway, the way to avoid the problem is to not ask Oracle to format numbers. Get the number directly (via ResultSet.getInt() or getDouble() or whatever) and ask Java to format it. -
Oracle 8.1.5 - jdbc driver problem
I am using Oracle8.1.5 (personal oracle) for database. I am trying to retrieve the data from JAVA(JDK 1.3). I use the following driver and its manager in the Java program:-
DriverManager.registerDriver(new Oracle.jdbc.driver.OracleDriver());
Class.forName("Oracle.jdbc.driver.OracleDriver");
However Java is not getting compiled with the following error message:-
Cannot resolve symbol:
package: driver
class: DriverManager
I would request your goodselves to help me out. Thank you in anticipation.
Regards,
SivaswamyThanks for the reply.
Have you tried manually taking the current time and
converting it to the way Oracle is expecting it? If I embed a TO_DATE and format it, it works fine, but I want to stay database independent. Is that want you mean?
Or how about using new java.util.Date() to get the
current date?Not sure I follow you:
--- insertStmt.setTimestamp(5, new java.sql.Date(System.currentTimeMillis()));
Gives an error since setTimestamp expects a java.sql.Timestamp and
--- insertStmt.setDate(5, new java.sql.Date(System.currentTimeMillis()));
Only stores the date without the time.
Thanks again,
Todd -
Couldnot connect JBuilder 6 to ORACLE 8i , JDBC driver problem
Hi guys
I am trying to connect to the oracle 8i database from jbuilder 6 using a simple select statement , but it gives the following error
Root cause:
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
at _0002ftestEmployee_0002ejsptestEmployee_jsp_1._jspService(_0002ftestEmployee_0002ejsptestEmployee_jsp_1.java:83)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
plse help me how to connect jbuilder to oracle to access the data. I followed jbuilder doc like from the menu (Tools �� enterprise setup �� database driver ��)
but could not select the driver since it is marked as red (uninstalled). How can I made jdbc driver to available to jbuilder.?. I am using oracle 8i. Will oracle 8i supports jdk 1.3 b��cos I have noticed the jbuilder supports from jdk 1.3 onwards. So plse correct me if I am wrong
waiting for reply
sumeshthanks for u'r reply.
you mean to say i need to install the new JDBC driver (Classes12.zip and nls_charset12) to the oracle/ora8i/jdbc/lib folder.currently this folder contains only classes102 and classes11.zip files and the corresponding charset only.After instaling the new classes12.zip file do i need to set the classpath?. -
I am using the weblogic driver with Allaire JRun.
Using these lines, I am trying to make my resultsets scrollable and updatable.
dbConnection.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE
ResultSet rs = queryStatement.executeQuery(query);
When I run the code, I get this error ..
java.lang.AbstractMethodError
at allaire.jrun.sql.ConnectionProxy.createStatement(../sql/ConnectionProxy.java:413)
at com.mindseye.utils.database.DBAccessor.executeQuery(DBAccessor.java:35)
at com.fao.shopping.tag.HandleShoppingCartTag.checkExists(HandleShoppingCartTag.java:635)
at com.fao.shopping.tag.HandleShoppingCartTag.doStartTag(HandleShoppingCartTag.java:90)
at jrun__jsp__shoppingbag2ejsp14._jspService(jrun__jsp__shoppingbag2ejsp14.java:45)
at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
Everything works fine when I do not try and specify attributes to the statement
object. (i.e. dbConnection.createStatement();)
Anybody know what is going on?
thanks,
randyHi. I don't see our code anywhere in the stacktrace, but I'll assume
it's there somewhere. The basic fact is that our MS SQLServer driver
implements practically zero of the JDBC 2.0 methods. There is a way
to connect to this driver that has the methods defined, but then all
the difference will be that you'll get an exception saying 'this jdbc 2.0
method not implemented'.
Joe
randy shepherd wrote:
>
I am using the weblogic driver with Allaire JRun.
Using these lines, I am trying to make my resultsets scrollable and updatable.
dbConnection.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE
ResultSet rs = queryStatement.executeQuery(query);
When I run the code, I get this error ..
java.lang.AbstractMethodError
at allaire.jrun.sql.ConnectionProxy.createStatement(../sql/ConnectionProxy.java:413)
at com.mindseye.utils.database.DBAccessor.executeQuery(DBAccessor.java:35)
at com.fao.shopping.tag.HandleShoppingCartTag.checkExists(HandleShoppingCartTag.java:635)
at com.fao.shopping.tag.HandleShoppingCartTag.doStartTag(HandleShoppingCartTag.java:90)
at jrun__jsp__shoppingbag2ejsp14._jspService(jrun__jsp__shoppingbag2ejsp14.java:45)
at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
Everything works fine when I do not try and specify attributes to the statement
object. (i.e. dbConnection.createStatement();)
Anybody know what is going on?
thanks,
randy -
Urgent Clarification - Microsoft SQL Server JDBC Driver Problem
Hi,
Can somebody tell me how to create a connection Pool in weblogic 7 using Microsoft
SQL Server Driver for JDBC.(should be XADataSource).
I mean the pool should be created using com.microsoft.jdbcx.sqlserver.SQLServerDataSource
class.
The error message i am getting is "Unknown source" during providing targets for
the connection pool.
Thanks in advance,
Rahul.<JDBCConnectionPool
DriverName="com.microsoft.jdbcx.sqlserver.SQLServerDataSource"
Name="SQL2000JDBC"
Properties="serverName=nc-answline-w2k;url=jdbc:microsoft:sqlserver;dataSourceName=SQL2000JDBC;user=test;databaseName=test;selectMethod=curosr;userName=test;password=test;portNumber=1435"
URL="jdbc:microsoft:sqlserver"/>
Try this is your config.xml and make sure you have mssqlsriver first thing in classpath.
Thanks,
Mitesh
Rahul wrote:
Hi,
Can somebody tell me how to create a connection Pool in weblogic 7 using Microsoft
SQL Server Driver for JDBC.(should be XADataSource).
I mean the pool should be created using com.microsoft.jdbcx.sqlserver.SQLServerDataSource
class.
The error message i am getting is "Unknown source" during providing targets for
the connection pool.
Thanks in advance,
Rahul.
Maybe you are looking for
-
My ipod touch isn't showing up in itunes?
It won't show. It's not the cable at all. I plugged up to the itunes on mom's computer and it showed up. I resatred my computer even installed new updates on my computer. I went as far as deleting programs I don't use. Itunes freezes up on me then I
-
FTP Adapter error: SLDAccess
Hello everyone! When XI picks up an XML using the FTP adapter (sender), I get this error message: <b><i>Error: com.sap.aii.af.ra.ms.api.ConfigException: Some of the IS access information is not available. SLDAcess property may be set to true, but SLD
-
Change VI properties for all VIs in a library simultaneously
I want to change the VI properties for all of the VIs in my library (specifically the Execution properties). Is there any quick way to do this so I can avoid opening up each VI individually? Solved! Go to Solution.
-
Hi, AIX, EMR3 Hi, I'm testing a job scheduling from OEM - startups and shutdowns of monitored databases. Immediate job execution works always, scheduled execution never works.... Any suggestions, troubleshooting .... Thx, Dobby
-
I am trying to communicate with an external database. I want to give the database a certain number and recieve back another corresponding number.The way it is currently done is with MATLAB. MATLAB opens a browser (in the background because you cannot