Ojdbc14.jar and nls_charset
I use nls_charset12.jar and classes12.jar with JDK 1.3 and JDK1.2
When we use JDK14: ojdbc14.jar.
Nls_charset include in ojdbc14.jar?
I believe that you should use nls_charset12.jar with ojdbc14.jar for 9.2.0.3 .
This is from the JDBC FAQ - http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_03
nls_charset11.jar
Contains the classes to support all Oracle character sets in Advanced Data Types (objects) when using a Java 1.1 VM. If the database character set is one other than US7ASCII, W8DEC, or ShiftJIS, and the application uses ADTs, then you must include this class in your classpath. Or you can unzip this file and add the appropriate file to your classpath. The files are named with the Oracle character set number.
nls_charset12.jar
Same as nls_charset11.jar except for use with Java 1.2, 1.3, and 1.4 VMs. Not used with Oracle 10.1.0 and later. Use orai18n.jar instead.
Nat
Similar Messages
-
Hi all,
I 'm having issue of using both ojdbc14.jar and ojdbc6.jar in same weblogic application and same weblogic domain in weblogic 12C environment.
how can i do that?
i'm currently having application developed using jdk 1.6 and ojdbc6.jar, application developed using jdk 1.4 and ojdbc14.jar.both are currently installed at same domain.
i want to use the both ojdbc14.jar and ojdbc6.jar in same domain.
what i previously did was renaming /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar to /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar.bak and put ojdbc14.jar in the same path when i wanna use ojdbc14.jar.
i haven't use both in same environment before, but to go live i wanna match about requirement.pls help.
i know the way use this by having two domains, but in the same domain i could not find a solution yet.
Please helpHey
I have the similar requirement.. Did you managed to get an option of doing it? If yes, please provide some insights
Thanks in Advance -
Difference between ojdbc14.jar and ojdbc14_g.jar
Hello:
I see the two jar files that contain the Oracle JDBC driv er.
Can somebody explain to me how these two Jar files are different?
If I am looking for a Oracle JDBC driver, which Jar should I use? Any preference?
VenkatThe _g versions of the JDBC drivers include extra debugging code. You may want to use them for development, but production applications would use the one without the extra debugging.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Nls_charset include in ojdbc14.jar?
I use nls_charset12.jar and classes12.jar with JDK 1.3 and JDK1.2
When we use JDK14: ojdbc14.jar.
Nls_charset include in ojdbc14.jar?I believe that you should use nls_charset12.jar with ojdbc14.jar for 9.2.0.3 .
This is from the JDBC FAQ - http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_03
nls_charset11.jar
Contains the classes to support all Oracle character sets in Advanced Data Types (objects) when using a Java 1.1 VM. If the database character set is one other than US7ASCII, W8DEC, or ShiftJIS, and the application uses ADTs, then you must include this class in your classpath. Or you can unzip this file and add the appropriate file to your classpath. The files are named with the Oracle character set number.
nls_charset12.jar
Same as nls_charset11.jar except for use with Java 1.2, 1.3, and 1.4 VMs. Not used with Oracle 10.1.0 and later. Use orai18n.jar instead.
Nat -
I am using the latest xdb.jar (from xdk_java_9_2_0_5_0.zip) and ojdbc14.jar
and it appears that xdb.jar calls a method that does not exist in ojdbc14.jar.
It happens when executing
OPAQUE opaque = rset.getOPAQUE("value");
XMLType xt = XMLType.createXML(opaque); // <-- here
The exact error message is:
java.lang.NoSuchMethodError: oracle.jdbc.internal.OracleConnection.getProtocolType()Ljava/lang/String;
at oracle.xdb.XMLType.initConn(XMLType.java:2072)
at oracle.xdb.XMLType.<init>(XMLType.java:903)
at oracle.xdb.XMLType.createXML(XMLType.java:493)Hi,
There are known problems with xdb.jat that is bundled with XDK 9205.
As a workaround, you need to use an older version of xdb.jar from either XDK-9.2.0.3 or XDK-9.2.0.4 since the mentioned exception is generally thrown due to problems in xdb.jar that comes with XDK-9205.
If you do not have any of these versions of XDK, you could use the xdb.jar that comes with the database 9.2.0.3. The xdb.jar is present in <oracle_home>/rdbms/jlib folder.
Hope that helps.
Shefali -
Oracle Type4 driver (ojdbc14.jar) connection proble
Hi,
I'm trying to connect to my oracle 8i installed in my local machine through type4 driver.
I've downloaded ojdbc14.jar and included its path to classpath
The following lines are included in my code
Class.forName("oracle.jdbc.OracleDriver");
cn = DriverManager.getConnection("jdbc:oracle:thin:scott/tiger@localhost:1521:dbmsConnect ")
I've created the DSN as follows (in Windows XP)
Control Panel - Administrative Tools - Data Sources - Add - Took Oracle ODBC Driver - entered DSN name as dbmsConnect -added user id as scott
When I ran the code, Igot following exception
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)
(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Could anyone help me pleaseYou may need a later version of the driver:
http://www.dbforums.com/showthread.php?t=971271
Pl. also see:
http://forum.java.sun.com/thread.jspa?threadID=563288&messageID=2773243
http://forum.java.sun.com/thread.jspa?threadID=300137&messageID=1189780 -
Ojdbc14.jar connect to 10g so slow with JRE1.5.0_05
Our guests complained the speed is so slow that they can not stand up with this...
So I run the tests base on JRE1.5.0_05 and ojdbc14.jar and Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:thin:@//host:1521/orcl";
Date now = new Date();
Connection conn = DriverManager.getConnection(url, "user",
"password");
System.out.println(System.currentTimeMillis() - now.getTime());
conn.setAutoCommit(false);
Statement stmt = conn.createStatement();
ResultSet rset = stmt
.executeQuery("select BANNER from SYS.V_$VERSION");
while (rset.next()) {
System.out.println(rset.getString(1));
stmt.close();
System.out.println("Ok.");
} catch (Exception ex) {
ex.printStackTrace();
The output is :
4875
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Ok.
the statement Connection conn = DriverManager.getConnection(url, "user", "password") execution time is 4875 milliseconds!!!!!
so i switched to 9i the output is:
0
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
Ok.
I change the JDK version to 1.4 or 1.6 the execution time is also 0.
I walk through the internet and finally found the solution:
ProxySelector.setDefault(null);
But i am still confused when it come to the same environment the same code to connect to the 9i,10g, the getConnection() method execution time is so different without the statement ProxySelector.setDefault(null). so I suspect that this is an issue to 10g not the JDK1.5.x.
Edited by: user12084131 on 2010-9-20 上午1:46
Edited by: user12084131 on 2010-9-20 上午1:47Thanks for the reply,
One correction to the above <Corrected now in my original post>
Its connecting to " com.bea:ServerRuntime=managed03,Name=managed03,Type=JRockitRuntime"
Tried with previous version again, it works perfect. But i still have issue with new JRE version.
Regards,
Rana
Edited by: user13387204 on 02-Oct-2010 19:01 -
Is it possible to connect OJDBC14.JAR with tomcat?!
Hello,
I�m using tomcat and receiving the error bellow ...
I�m using ojdbc14.jar and I configured the tomcat like this:
URL: jdbc:oracle:thin:@localhost:1521:xe
Class: oracle.jdbc.driver.OracleDriver
There is no problem to visit pages that only show the result of searches... So the problem happend when i try to visit the pages that creates or updates a data base register...
What is the problem?! Is it possible to connect tomcat and oracleXE DB using ojdbc14.jar?!?
Please someone....help me
Gustavo Callou
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: handle de instru��o n�o foi executado: getMetaData
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17Hi,
the problem is that is I little bit dificult to debug with tomcat...
I have already read:
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=63633
and the marco�s blogs on:
http://blogs.sun.com/marcoscorner/entry/creator_2_ea_webapps_and
So I concluded that it is possible to use the ojdbc14.jar of oracle, but I still receiving the getMetaData erro... what am i supose to do?!
Is it possible to someone send me some example that works fine?!
Bellow there is a code example that i use to update the data of one row...
In the development It works fine... but with tomcat using the OJDBC14.jar does not... I�m receiving this:
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: handle de instru��o n�o foi executado: getMetaData
How can I change my code to does not receive this erro anymore with tomcat using OJDBC14.jar version 10.2.0.1.0?!
public void prerender() {
try {
getSessionBean1().getTb_setorRowSet().setObject(1,
getRequestBean1().getCodigoSetor());
tb_setorDataProvider.refresh();
} catch (Exception e) {
error("Cannot read tracks for " +
getRequestBean1().getCodigoSetor() +
": " + e.getMessage());
log("Cannot read tracks for " +
getRequestBean1().getCodigoSetor() + ": ", e);
public void destroy() {
tb_setorDataProvider.close();
public String btn_salvar_action() {
try {
tb_setorDataProvider.commitChanges();
log("update: changes committed");
info("Opera\347\343o Salva");
} catch(Exception e) {
log("update: cannot commit changes ", e);
error("Cannot commit changes: " + e.getMessage());
return null;
Please Marco or anyone help me!!!
Thanks
Gustavo -
Ojdbc14.jar OR ojdbc14.zip
The link on the download page http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html indicates that this file has a.jar extension. The readme page http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/readme_10201.html refers to this file as having a .jar extension. When I download this file from download-west.oracle.com the file has a .jar extension however some of my customers are downloading this file from download-east.oracle.com where the file has a .zip extension. The mainfest in the ojdbc14.zip file is exactly the same as that in ojdbc14.jar and contains "Implementation-Title: ojdbc14.jar". Why is there a difference?
Its a problem with the browser on windows OS. The browser changes the extension from .jar to .zip. All you would have to do is simply rename the file with .zip extension to .jar. However, you would not be able to see this in any of the unix machines. try wget << the complete URL >> from the commandline.
-
Ojdbc6.jar ojdbc14.jar anamoly and a bug
PROGRAM
PreparedStatement ps = connection.prepareStatement( "select dob from pers", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet.getString("dob");
Output:
ojdbc14.jar:
*6/1/2012 0:0:0*
ojdbc6.jar:
*2001-06-01 00:00:00*
Why the difference? Is this a bug? Is there a fix? I require ojdbc6 output to be the same as ojdbc14. How can I achieve that? (Yes, I know its good to use ResultSet.getDate(...) instead of ResultSet.getString(...) etc etc but this is legacy code and there are too many occurrences for me to change all of them.)
Edited by: 935389 on May 18, 2012 3:51 PM1. Get a Timestamp instead of a string.
2. Format the string in SQL and stop relying on the JDBC to do it.I quote again from my first post,
(Yes, I know its good to use ResultSet.getDate(...) instead of ResultSet.getString(...) etc etc but this is legacy code and there are too many occurrences for me to change all of them.)
No. Both values are correct they are just formatted differently. And the spec says nothing about how it formats strings.Java ResultSet API does not say anything about the format but this was not caused by Java6. It was ojdbc6.jar.
Also, the result is the same if I don't use,
ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLEIt is not good to simply change format even though Oracle JDBC didn't specify any format either. Does this mean I'll have to test everything that is not specified in their spec? It is a bug.
Edited by: 935389 on May 20, 2012 5:21 PM -
Usage of java.sql.Timestamp with classes12.zip and ojdbc14.jar ?
Hi all,
If i'm using java.sql.Timestamp with classes12 it is functioning perfectly,
if i'm using ojdbc14 and java.sql.Timestamp it is functioning in different way and failing to do the action..
Example : update set xxx=yy where time = my Timestamp object set in Prepared statement
Hope to see the answerhttp://forum.java.sun.com/thread.jspa?threadID=460615&messageID=2116517
Timestamp insert problem
Using the "classes12.zip" file that comes with the distribution for Oracle versions 8.1.6.x and 8.1.7.x, Oracle's DATE datatype is mapped to the "java.sql.Timestamp" class. However, the "ojdbc14.jar" driver maps DATE to "java.sql.Date", and "java.sql.Date" only holds a date (without a time), whereas "java.sql.Timestamp" holds both a date and a time. -
Ojdbc14.jar API and Oracle Database Version
Hi
Im using ojdbc14.jar for accessing an oracle 10G database.
Im trying to troubleshoot an exception -
java.sql.SQLException: Parameter Type Conflict
that seems to get thrown by the method -
OraclePreparedStatament.processCompletedBindRow
I have a couple of questions:
1. Is the documentation/source available for ojdbc14.jar in order that I can try and find out what this method is supposed to be doing?
2. Also, can anyone confirm if the jar Im using is the correct version of drivers for accessing a 10G database?
3. When I go to the JDBC support center at Oracle(http://www.oracle.com/technology/docs/tech/java/sqlj_jdbc/index.html) any support documentation/APIs refer only to the Oracle db version and dont mention Java versions. Im using ojdbc14.jar which I guess is for use with Java version 1.4 onwards - how does this relate to the Oracle database versions?
Thnaks very much in advance to anyone who can give me any suggestions on the above. This issue has stumped me for days now. Ive checked and double checked my code, and the Oracle Java types I have generated from the database, and they all seem to be fine.
Jonunzip it, and look at the MANIFEST.MF file in META-INF
If you do not know the version, you can just download appropriate one from oracle site.
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html -
JDBC 4.0 and ojdbc14.jar
Hello everyone
i need to know abt jdbc-4.0 api tutorial and abt ojdbc14.jar tutorial which one is better ojdbc or classes12
Thanksojdbc14.jar is for JDK 1.4 or higher. classes12.zip
is for JDK 1.2 and 1.3.
http://www.oracle.com/technology/software/tech/java/sq
lj_jdbc/htdocs/jdbc9201.htmlYes, although only the latest version of ojdbc14.jar (10gR2, or 10.2.0.1.0) is Oracle-approved-and-supported for Java 1.5. That doesn't mean older versions don't work with newer Java, they do, at least mostly, but Oracle does not certify-and-support them. In fact, I know that the last 8.1.7 version of classes12 works very well with Java 1.4 and an 8.1.7 DB (at lease for the driver functions my company happens to use, we're pretty "plain vanilla" on that project).
For new code, you should probably be using the latest ojdbc14.jar, unless you're using an antique version of Java. -
Differenece between ojdbc14-10.2.0.2 jar and ojdbc14
Hi as i open ojdbc14-10.2.0.2 jar i find packages - core, jdbc,jpub,net,security,sql.
and in ojdbc14.jar i find an extra package gss...
whats the main difference between this 2 jars...Ok i got some solution for this....
ojdbc14.jar has a OracleConnection class which has methos as prepareCall..etc
This methods are depricated in ojdbc14-10.2.0.2 jar
so be clear not to practice connections done by using ..... class12.jar -
Is ojdbc14.jar the correct driver to use with Java 1.6.0 and Oracle 10?
I have a customer using Oracle 10.2.0.3 and a JVM of 1.6.0. They are using ojdbc14.jar as their JDBC driver. I am confused because while ojdbc14.jar is listed as the driver for Oracle 10.2.0.3, it is not listed as compatible with JDK1.6.
the 14 part means it is for Java 1.4. You should use a driver from either the ODJBC5 (Java 5) or OJDBC6 range (Java 6). All drivers are backwards compatible, so you can use the latest drivers to connect with older Oracle releases. Just don't assume that the latest one is the best one, check Google for specific problems before using a specific driver release.
Maybe you are looking for
-
I have been trying to reset all contents and settings on my iPod nothing is happening what do I do
-
Table maintanence - display more fields
Hi everybody, I had a TABLE MAINTENANCE GENERATION transaction for my ztable Now my problem is I want to display 5 more fields which are already in my ztable in my transaction(table maintenance generated) these fields must be editable I meant when I
-
Motion 3 exports stutter in QT
Can the file size of the stills I'm using have anything to do with it? I'm trying to do a 1920x1080 export; I already reduced the stills quite a bit to be able to work with them at all in Motion but they are now well under the stated limit Running QT
-
Lost app store icon on iPod touch4
-
After data file recovery, files are red and won't open
My HD crashed so I used Data Rescue 3 to recover my files. It worked but now all the files are highlighted red and won't open. The file sizes look right but for instance when I try to open a mov file it says, this is not a movie file. My FCP projects