IRIX and Oracle 7 Thin JDBC drivers
I have a question I think I have the answer for, but I am just
verifying it. The Oracel 7 Thin JBDC drivers will work on any
platfrom including IRIx right? The reason I ask is the site has
a download for Solaris and NT and I am not sure what the
difference is. Anyway, if someone knows for sure it would be a
great help to know.
Thanks,
Jesse
null
Which version of Oracle's JDBC driver are you using? Have you tried using the 8.1.6 version of our JDBC driver?
Please also take a look at the FAQ:
http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#_11_
null
Similar Messages
-
Upgrade 10G to use 10G thin jdbc drivers- OCI
This is wierd...
If I upgrade 10G app server to use the 10G thin JDBC drivers, and set up a data source to use the thin drivers, is there any way that I could score a[b] ORA-01010 invalid OCI operation error when I'm not using an OCI driver?
Anyone else seen this...again, it makes no sense...You can not and should not use JDK 1.2 with 8i drivers.
If you want to use JDK 1.2 drivers, download the 8.1.6 SDK
from external site.
Please, please, please READ the FAQ at www.oracle.com/java/jdbc
before posting
Premal Mehta (guest) wrote:
: Hi,
: Sorry for multiple posting. Previous posting has incomplete
: information. Here's the whole scenerio...
: I have Oracle 8i installed on my server. I have downloaded
: JDBC drivers for Oracle 8i from Oracle site. When I try to run
a
: sample example from the demo files given, I get a Windows
: internal Error "Exception: Access Violation (0xc0000005),
: Address: 0x6ee0fb83". I am using Oracle 8i on Win NT 4.0 with
: SP4, IIS4.0 with 128 MB RAM.
: Also, I am trying to use OCI8 JDBC drivers with JDK 1.2. The
: classpath is set for classes111.zip files.
: I am unable to run applets with JDBC also. On using thin
: drivers, it gives "SO Exception" error.
: I have tried many options but it dosent seem to work.
Please
: help as this is very urgent.
Oracle Technology Network
http://technet.oracle.com
null -
Thin JDBC Drivers Insert Strings Incorrectly
Can anyone confirm or deny this.
I've downloaded the latest Oracle 8i JDBC drivers. If I create a table:
CREATE TABLE Moo (stringCol VARCHAR(10) NOT NULL);
and I try to insert an empty String into Moo.stringCol, the JDBC drivers try to insert Null instead! Yet if I try and insert a String of one character in length, it inserts it correctly.
Clearly it would seem the JDBC drivers are at fault.
Anyone come across this?No, the drivers are performing correctly. In Oracle, an empty string in a varchar or varchar2 column is considered NULL. Regardless of what protocol or language you use to access the database, this will hold true.
Justin -
Spy for oracle thin jdbc driver
Does anyone know a good spy utility to intercept the
query going to the database thru oracle thin jdbc driver?If you can post the code, I would be happy to look at. I'm not aware of any 'trapping' mechanism for JDBC, although there may be one. Are you confident that you are 'waiting' on the execute of the SQL? It's very unusual for nothing to happen. In most cases, I would expect a long running query, or that you are getting, but not catching an Exception. Code would help if that's possible...
-
JDK1.3 and Oracle thin drivers
I see that the latest version of the thin drivers (Oracle8i 8.1.6.0.1) are "validated" for jdk1.2.x use.
Now that jdk1.3 is out for both Solaris and Windows, can I assume that the drivers will function properly with jdk1.3? or will Oracle release new drivers for jdk1.3?
/MagnusI have found that the 1.3 jdk (I am using the RC for linux) works very well with the jdbc thin driver. The performance is exceptional using the hotspot server vm.
slag -
Fees related to Thin JDBC drivers
We have Oracle8. Are the JDBC drivers included. If not, how much will we have to pay to get these drivers.
If they are freely available for download, I would like to have the URL.
ThanksJDBC Drivers should come with the Oracle database (all versions - from Personal Oracle to the Enterprise Edition).
From the OTN Downloads area (Select a Utility or Driver => Oracle JDBC Driver) several different versions of the JDBC driver (and of the SQLJ translator) are freely downloadable.
You will get the JDBC thin drivers (all Java platforms) and the OCI drivers for Solaris and NT. Other platform-specific OCI drivers (if any) should come as part of the Oracle database distribution. -
Database connection encryption and integrity with ColdFusion and Oracle thin client
As ColdFusion datasource we are using the Oracle thin client to connect with the database. So, basically we are using a JDBC URL such as jdbc:oracle:thin:@... and as Driver Class oracle.jdbc.OracleDriver. This works successfully however we would like to set encryption and integrity parameters as well. In Java this is done similarly by setting a Properties object prior to getting a connection as follows:
Properties prop = new Properties();
prop.put("oracle.net.encryption_client", "REQUIRED");
prop.put("oracle.net.encryption_types_client", "( DES40 )");
prop.put("oracle.net.crypto_checksum_client", "REQUESTED");
prop.put("oracle.net.crypto_checksum_types_client", "( MD5 )");
OracleDataSource ods = new OracleDataSource();
ods.setProperties(prop);
ods.setURL("jdbc:oracle:thin:@localhost:1521:main");
Connection conn = ods.getConnection();
Is there a way that I can pass these parameters to the ColdFusion datasource. Ideally, I would love to do this centrally in such way that a change to all the cfquery or cfstoredproc is not needed.
I also know that in application servers such as Oracle AS there is an option when creating a datasource which says "Add Properties". In there you can add such properties. So, I was thinking of maybe creating a JNDI DS in the app. server and then magically connecting to it but this may have some impacts on the app.
Besides this I was also thinking of communicating with the CF datasource through the CF admin API (cfide.adminapi.administrator) and also the option of extending the Oracle driver so that when CF connects with it these params are already set.
I would love to have your professional opinion and suggestions on this.I believe the thin driver actually needs the IP address (not the DNS name). Also, is "java" the name of the Oracle instance to which you are trying to connect?
Try the following:String driver = "jdbc:oracle:thin";
String dbIP = "W2RZ1NXG01's IP address";
String dbPort = "1530";
String dbSid = "java";
String dbUser = "Admin";
String dbPswd = "apassword";
String cnctStr = driver + ":@" + dbIP + ":" + port + ":" + dbSid;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection( cnctStr, dbUser, dbPswd );
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
catch(SQLException ex)
System.err.println( "The following SQLException occurred: " + ex );
System.err.println( "Message: " + ex.getMessage() ); -
Differences between BEA's and Oracle's own drivers
I am trying to understand the various ways and technical differences to
connect to an Oracle database from WLS 6.1. As far as I can tell, here
is the list of drivers:
THIN:
1. the bundled, old Oracle thin driver in weblogic.jar
2. the latest Oracle thin driver to prepend to my classpath
OCI:
3. the bundled, old Oracle OCI driver in weblogic.jar
(+ matching Oracle DLL in PATH)
4. the latest Oracle OCI driver to prepend to my classpath
(+ latest Oracle DLL in PATH)
5. Weblogic's own OCI driver in weblogic.jar
(+ WebLogic's own DLL in PATH)
I understand that (1) and (3) are 'obsolete'. But what about the others?
Especially, what are the advantages of (5) over (4) or (2) ?
Can Joe^H^H^H anybody share some light on this? ;-)
Thanks,
ChristopheHi Christophe!
Basically, weblogic bundles 817 thin driver from oracle in 6.1
For using oracle oci driver, you have to add ocijdbc8.dll in your path.
Weblogic has its own set of jDrivers(OCI Drivers)
You need to install oracle client for that. You should use the same driver
as your client install from weblogic. As per say, if you have 817 oracle
client installed then you can use weblogic 817 driver. It is OCI driver,
hence ultimately all calls are diverted to oracle DB thorugh their oracle
oci API from weblogic driver.
If you use lots of oracle extensions in your application it is recommended
to use oracle thin driver.
However, weblogic jDrivers perform better and more XA compliant then oracle
thin driver.
Thanks,
Mitesh
Christophe Warland wrote:
I am trying to understand the various ways and technical differences to
connect to an Oracle database from WLS 6.1. As far as I can tell, here
is the list of drivers:
THIN:
1. the bundled, old Oracle thin driver in weblogic.jar
2. the latest Oracle thin driver to prepend to my classpath
OCI:
3. the bundled, old Oracle OCI driver in weblogic.jar
(+ matching Oracle DLL in PATH)
4. the latest Oracle OCI driver to prepend to my classpath
(+ latest Oracle DLL in PATH)
5. Weblogic's own OCI driver in weblogic.jar
(+ WebLogic's own DLL in PATH)
I understand that (1) and (3) are 'obsolete'. But what about the others?
Especially, what are the advantages of (5) over (4) or (2) ?
Can Joe^H^H^H anybody share some light on this? ;-)
Thanks,
Christophe -
I am using developer 3.0 on the NT server machine, with oracle 8
First of all when i start my computer one error message raise that is "one of your service is not running please check the event log". I saw the event log that service is oraclestartorc1. who can i start this service. the other oraclelistener service is also give error message in starting.
so next thing is when i click on the connection UI to make a new connection. I click on the oracle oci8 and use localhost = 127.0.0.1 and protocol = TCP and SID = orcl then error message comes that "ocijdbc8 is not in share path" who can i remove this problem also. I also use BEQ protocol to connect but the error message is same. When i use oracle thin driver then it raise message "could not establish the connection with adapter". Who can i remove this also. when i use the jdbc-odbc bridge it success the connection in test. But it does not show in connection. Who can i get driver for oci8, oci7 or for thin. Simply i want to connect my computer local database. my oracle directory is "orant" please help me thanks..
nullJawada,
Try the following:
1. Make sure your ORACLE_HOME directory is in your PATH (JDeveloper needs this so it can find the OCI driver's client-side DLL).
2. Make sure you have an alias set up for your database in your TNSNAMES.ORA file (usually located in ORACLE_HOME\network\admin). I believe previous posts to your other questions provided instructions for this.
3. Within JDeveloper, select Tools | IDE Options... from the menu. Choose the Environment Tab, and in the Oracle Home section, choose the name of your Oracle Home or choose Default Home from the Select an Oracle Home list. (this isn't really required unless you have multiple Oracle Home's installed on your machine).
4. When creating your connection within JDeveloper:
a. Choose Oracle JDBC OCI-8 from the Select a JDBC Driver list.
b. Choose Existing TNS Names from the Select a Connection Method list.
c. Choose the alias for your database from the TNS Service list (this list will not appear until you choose Existing TNS Names from the Connection Method list.
null -
CachedRowSet problem in Weblogic 6.1 and Oracle thin driver 9.0.1
Has anyone used the CachedRowSet class successfully? (this classes are
new and from the JDBC extension pack)
I am experiencing "Not in a transaction" errors when executing
cachedrowset.populate(resultset), even though I'm inside a correct
ut.begin and ut.commit transaction.
Note I don't have these problems when I don't use the CachedRowSet
classes.
If I remove the setFetchSize(50) line, then I receive the ORA-01002:
fetch out of sequence error, which is discussed in another post on
this newsgroup.
I don't have any of these problems at all, if I use the Oracle Thin
Driver directly (i.e. not using Weblogic 6.1).
-H
Example of code:
stmt = getConnection().createStatement();
stmt.setFetchSize(50);
stmt.executeQuery("SELECT * FROM ASSET");
rs = stmt.getResultSet();
crs = new CachedRowSet();
crs.populate(rs);Hi Arturo,
What kind of a problem do you have? Any stacktraces?
Regards,
Slava Imeshev
"Arturo Fernandez" <[email protected]> wrote in message
news:[email protected]..
Hi! I have a problem with CLOB column in Oracle 8.1.7. My enviroment
is:
Windows 2000, BEA WLS 6.1 and Oracle 8.1.7. I'm trying to use
'classes12.zip' provided by Oracle. I added 'classes12.zip' to
CLASSPATH after than 'weblogic.jar' in my startup server script, but
it fails when trying to retrieve a CLOB data from database. Script
includes:
setCLASSPATH=.\classes12_01.zip;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;
>
But this driver and the code runs sucessfully with the same database
and weblogic 5.1. I'm interesting in use this driver and this code
because i'm trying to migrate two applications from WLS 5.1 to WLS 6.1
I cannot find a solution.
Can everybody help me, please? It's urgent for me... -
Method getCustomDatum() and Oracle thin client
Hello All,
I am using WL6.1 and an Oracle thin driver. I am using the Oracle Intermedia classes
for Java in order to retrieve images for jsps and servlets.
Trying to use the Oracle classes caused class cast exceptions. When using the
weblogic.jdbc.vendor.oracle.OracleResultSet, I got the error
"java.sql.SQLException: getCustomDatum is not supported by the Weblogic JDBC Driver".
I was wondering if anyone else has run into this problem? Any help would be greatly
appreciated.
Thanks,
RichSlava,
Thank you for your help.
- Richard
"Slava Imeshev" <[email protected]> wrote:
Hi Richard,
"Richard Dedeyan" <[email protected]> wrote in message
news:3d2638f5
Do you mean that I need to get to get a connection directly to thedatabase using
the Thin driver instead of getting the connection via the pool?Yes, this is the first option. Note that with using thin driver directly
you loose all advantages of using weblogic JDBC subsystem like
transactions, connection pooling and caching of prepeared statements.
I'd go with a stored procedure.
Regards,
Slava Imeshev
Thanks for your help.
- Richard
"Slava Imeshev" <[email protected]> wrote:
Hi Richard,
This feature is not supported by weblogic because
oracle Datum is not serializable. In case you have a
strict requirement, you will need to switch to using
oracle thin driver directly. You could also consider
moving processing to stored procedure.
Regards,
Slava Imeshev
"Richard Dedeyan" <[email protected]> wrote in message
news:3d260294$[email protected]..
Hello All,
I am using WL6.1 and an Oracle thin driver. I am using the OracleIntermedia classes
for Java in order to retrieve images for jsps and servlets.
Trying to use the Oracle classes caused class cast exceptions. Whenusing the
weblogic.jdbc.vendor.oracle.OracleResultSet, I got the error
"java.sql.SQLException: getCustomDatum is not supported by the
Weblogic
JDBC Driver".
I was wondering if anyone else has run into this problem? Any helpwould be greatly
appreciated.
Thanks,
Rich -
License of Oracle TimesTen JDBC Drivers
Dear all
I have looking into my installation directory, but i cannot find the license file for the jdbc drivers for Oracle TimesTen:
The drivers are the following ones:
- ttjdbc5.jar
- ttjdbc6.jar
Could anybody tell me where i can found the license?
Regards
CarlosThe TimesTen JDBC drivers are covered by the same softwarer license as the rest of TimesTen; i.e. the standard Oracle software license agreement. To distribute any component of TimesTen you will need a suitbale distribution agreement with Oracle, sorry.
Note that TimesTen JDBC drivers are not pure Java drivers. They are a JDBC/ODBC bridge and rely on a properly installed and configured TimesTen ODBC client in order to operate.
Regards,
Chris -
Problem with Java 5 and Oracle 10g JDBC driver
Hi All,
Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
Thanks,sounds like a database problem...
Are you using a driver version that's supported for your database engine?
What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
So it's either your database, your driver, your network (dropping packets???), or your application.
The upgrade may just have exposed something that was already there. -
Dbping errors with Oracle8.1.5 and Oracle thin driver
I am trying to connect to Oracle 8.1.5.0.0 with Oracle thin driver 8.1.5. However I keep getting error ORA-24327. Any suggestions on how to fix this error?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jayanta Ghosh ([email protected]):
Hi,
Does XML parser for PL/SQL work with Oracle 8.1.5? Did any one install the
same and if so what are steps to follow? I ran initjvm.sql to install
JServer and then tried to load jar files using loadjava, but it's giving
error. It's working fine with Oracle8.1.6.
Any idea?
Thanks,
Jayanta<HR></BLOCKQUOTE>
Oracle XML Parser has differents distributions for 8.1.5 and 8.1.6 databases, try the correct version, then runs the oraclexmlsqlload.csh from the lib directory of XSU distribution.
Best regards, Marcelo.
null -
Hung queries, and Oracle thin driver query timeout implementation
We are seeing occasional instances of stuck threads, where the code is in Oracle thin XA driver code waiting for a socket read for a response from the database. Usually only one thread at a time. The connection never terminates and we have to shut down WebLogic to clear it. The DBAs tell us that all connections to the 11g RAC cluster members from our hosts are idle, with no hung or long-running transactions.
This happens every few days across two WebLogic 10.3.5 clustered instances in our QA environment, usually not the same time on two servers (one had four incidents, the other had only one, in the last 15 or so days). Sometimes it has resulted in a hung server, as the driver is holding a lock that blocks other threads (today we had numerous threads block in a TX rollback).
I'm guessing our WebLogic instance somehow is not getting the connection close from the remote host. BTW, there is no firewall between us and the DB. I have not got any strong suspect for the cause (although we are running Linux on a VMWare 4.0 VM, which always worries me).
Ordinarily I'd either ask the application to set a query timeout, or set the query timeout parameter for the connection pools as a workaround (we are using a MultiDatasource), so the transaction would at least abort and the application can handle it. However, while the Oracle driver does support java.sql.Statement.setQueryTimeout(), some brief investigation on my part leads me to believe the timeout is implemented on the server side and not the client side - so that if it is indeed the case that WebLogic does not see the close on the connection, it also would never see the timeout.
Two questions:
1. Is my suspicion about server-side implementation of timeout for Oracle 11g correct?
2. If so, is there some property I can set for the driver that will implement a socket timeout? Is this "safe"?
Thanks for any help!
[ Oracle WebLogic 10.3.5, HotSpot 64 bit JVM 1.6.0_29 on RHEL 5.6 on VMWare; Oracle Thin XA driver bundled with WebLogic; Oracle RAC 11g (three-node cluster)]
Edited by: SteveElkind on Dec 3, 2012 5:25 AMThanks, Joe.
My investigations were heading in this direction (e.g., http://docs.oracle.com/cd/B28359_01/java.111/b31224/apxtblsh.htm#CHDBBDDA). However, for WebLogic, is it as simple as adding the following property in the Datasource Connection properties edit box in the WebLogic console?
oracle.net.READ_TIMEOUT=300000
or do I have to edit the connection URL?
I've tried this, and the Datasource restarts OK after the change, but I have no way right now to check whether it actually "works".
(we have some long-running queries; five minutes seems to be a "safe" limita for now)
Maybe you are looking for
-
We are creating PDF files with annotations, we are using the O2 Solutions PDF Library for C#. We used to create PDFStampAnnotations, but now we want to make the images clickable, to navigate to the URL belonging to the image. Therefore, we are now us
-
How to change the color of a calendar entry
How do you change the color of a calendar entry?
-
Wireless Lobby Ambassador account errantly displays NCS home page
Hi all, I'm running a supported NCS 1.0 virtual appliance installation which functions fine for most folks, but Lobby Ambassadors with Windows 7 and IE8 or IE9 end up seeing an odd version of the NCS home page with all the graphs, etc, rather than th
-
WAP561 keeps becoming unresponsive.
Greetings, We have a Cisco WAP561 for our organization that keeps randomly going down. I can't find any commonality in each of the cases. The following are the symptoms: 1. All connections are dropped, both networks from the WAP become undiscoverable
-
Request Summary: Average Response time showing value 0 after every 5 minute
Greeting Experts, We are facing a strange problem on our portal, we have been assigned with the task of monitoring system performance of portal every one hour. But at the end of every hour, the values it was giving is 0 in the request summary tab(Sys