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,
Rich
Slava,
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
Similar Messages
-
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() ); -
Connection between oracle 9i server and oracle 9i client
hi there,
i have installed both oracle 9i server and oracle 9i client in my system.how can i connect these two to have connection between these server and client?
Because i was using only 9i server for creating database and for other purposes.i have not used 9i client yet.
Please write me the answer.
Thanks in advance.Hi Balu,
If you have the Oracle 9i Client, you can just edit your TNSNAMES.ora file of your client to have a TNS Entry for your new Database & try connecting it. You just need to try TNSPING & ensure that you can reach the Listener.
Are you facing any specific problems ?
Regards,
Sandeep -
I am trying to build some code which needs oracle.ifs.beans and oracle.ifs.clients packages and classes. I have downloaded the following:
OracleAdministrativeClientUtility
OracleApplicationServer
OracleContentManagementSDK
OracleIIOPClientLibrary
OracleJDeveloper
OracleRMIClientSideLibrary
OracleSOA
OracleWebServicesClientLibrary
None of these appears to contain the oracle.ifs packages.oracle.ifs.beans and oracle.ifs.clients packages are for the Oracle Internet File System. Are the following JAR files available?
repos.jar
adk.jar -
Is it possible to install oracle 11g client 32 bit and oracle 11g client 64
Hi,
I have Windows 2008 R2 64 Bit Operating Server Installed.
Other software that are Installed :
1) Visual Studio 2010 Ultimate 32 Bit.
2) Microsoft SharePoint server 2010 64 Bit.
For my development purpose I want to install both oracle 11g client 32 bit and oracle 11g client 64 on the same machine.
Is it possible to install both 32 and 64 bit instance on the same machine.
Thanks
Sambit959211 wrote:
Hi,
I have Windows 2008 R2 64 Bit Operating Server Installed.
Other software that are Installed :
1) Visual Studio 2010 Ultimate 32 Bit.
2) Microsoft SharePoint server 2010 64 Bit.
For my development purpose I want to install both oracle 11g client 32 bit and oracle 11g client 64 on the same machine.
Is it possible to install both 32 and 64 bit instance on the same machine.
Thanks
Sambityes, possible; but minor challenge to manage dynamically
how to ensure that you actually use the flavor you desire? -
About Oracle-xe and Oracle-xe-client
Hi all,
I prefer tell you I'm french and I may do mistakes... ^^
I use Oracle database on my computer because I've a course about Oracle and PL/SQL. So I'm the single user of this database.
I would like to know if I must install oracle-xe and oracle-xe-client or If oracle-xe is enough (whithout oracle-xe-client) to test my procedures/queries/etc... ?
Thank you for your help. :DI would like to know if I must install oracle-xe and
oracle-xe-client or If oracle-xe is enough (whithout
oracle-xe-client) to test my procedures/queries/etc... ?Oracle-XE is enough for you to test your procedures/queries/etc...
Check following link , for how to install
http://st-curriculum.oracle.com/tutorial/DBXETutorial/html/module1/wininst.htm
- Virag Sharma
http://virag.sharma.googlepages.com
http://viragsharma.blogspot.com/ -
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 -
Setting up oracle thin client for 9i?
Does anyone have experience stting up data pools using oracle's 9i thin client that ships with BEA WLS 6.1? I am on a Sun Solaris box running Solaris 8 and oracle client 9i. I have followed all of the instrcutions (that I can find anyway) and it does not seem to work. Can someone please tell me exactly what to put in each field on the console for the Data Pool and in the classpath?
Thanks in advance!!
AdamHi Adam,
Configuration of a connection pool for oracle 9 is the same
as for oracle 8.
The only thing you should do is downloading a new
classes12.zip that supports oracle 9, and putting it in to
weblogic class path.
You can download classes12.zip from otn.oracle.com.
To put it to the weblogic classpath you need to modify
weblogic startup script.
Regards,
Slava Imeshev
"adam landefeld" <[email protected]> wrote in message
news:[email protected]..
Does anyone have experience stting up data pools using oracle's 9i thinclient that ships with BEA WLS 6.1? I am on a Sun Solaris box running
Solaris 8 and oracle client 9i. I have followed all of the instrcutions
(that I can find anyway) and it does not seem to work. Can someone please
tell me exactly what to put in each field on the console for the Data Pool
and in the classpath?
>
Thanks in advance!!
Adam -
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) -
Oracle thin client stop working
I just applied hotfix 3 to my MX 7 standard deployment and
all my thin client connections to Oracle database now stop working.
When I tried to verify those data source in Administration, I
received the error "java.sql.SQLException: No suitable driver
available". All the connect work fine before the hoxfix.
My configuration is:
Windows 2000 Server
Coldfusion MX server version 7,0,0,91690
Java version 1.4.2_05
Java VM Specification Version 1.0
Java VM version 1.4.2_05-b04
Java Class Version 48.0
Please help.Thank you for your assistance but my thin client connect is
still not working. I found the jvm.config file in directory
c:\ColdFusionMX7\runtime\bin. The content of the file is as follow:
# VM configuration
# Where to find JVM, if {java.home}/jre exists then that JVM
is used
# if not then it must be the path to the JRE itself
java.home=C:/CFusionMX7/runtime/jre
# If no java.home is specified a VM is located by looking in
these places in this
# order:
# 1) bin directory for java.dll (windows) or
lib/<ARCH>/libjava.so (unix)
# 2) ../jre
# 3) registry (windows only)
# 4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
# Arguments to VM
java.args=-server -DJINTEGRA_NATIVE_MODE
-DJINTEGRA_PREFETCH_ENUMS -Xmx512m -Dsun.io.useCanonCaches=false
-XX:MaxPermSize=128m -Dcoldfusion.rootDir={application.home}/../
-Dcoldfusion.libPath={application.home}/../lib -XX:+UseParallelGC
-Dcoldfusion.classPath={application.home}/../../classes,{application.home}/../lib/updates ,{application.home}/../lib/,{application.home}/../gateway/lib/,{application.home}/../wwwro ot/WEB-INF/cfform/jars,d:\\oracle9i\\jdbc\\lib\\ojdbc14.jar;C:\\CFusionMX7\\lib\\pdflib.ja r
# commas will be converted to platform specific separator and
the result will be passed
# as -Djava.ext.dirs= to the VM
java.ext.dirs={jre.home}/lib/ext
# where to find shared libraries
java.library.path={application.home}/../lib,{application.home}/../jintegra/bin,{applicatio n.home}/../jintegra/bin/international
system.path.first=false
# set the current working directory - useful for Windows to
control
# the default search path used when loading DLLs since it
comes
# before system directory, windows directory and PATH
java.user.dir={application.home}/../../lib
# JVM classpath
java.class.path={application.home}/servers/lib,{application.home}/../lib/macromedia_driver s.jar,{application.home}/lib/cfmx_mbean.jar,{application.home}/lib
Are you talking about Coldfusion classpath or JVM
classpath? -
Oracle Thin Client Error when Inserting
Cold Fusion 8 fully patched on Windows Server 2008 fully
patched
Oracle 8.1.7.1 on Linux as DB with Network Option
(encryption)
Oracle Client 10.2.0.3 Thin Client (tried with ojdbc14 and
ojdbc12 classes)
SELECT, DELETE, UPDATE statements all work just fine.
When an INSERT statement is sent to the DB it is processed
(the insert is made and committed!) but we are getting a database
error message "Typlänge größer als Höchstwert"
which translates approximately to typ length is larger than the
limit.
Several threads show this as a problem when the return from
the db is too large but this is definately not the case (a simple
insert of one small row).
The SQL that is run at the DB includes a suffix of "RETURNING
ROWID" which is not part of our SQL and is apparently added by CF
or the thin client. We do not handle the return value (we tried but
that did not help either).
Due to the fact that the INSERT is actually made and
committed, we assume the problem must be at the client end and not
in the database.
This is a blocking problem and appears to be confined to CF 8
with the Thin Client.
CF 8 with an ODBC connection to the same DB works OK.
Be very glad for any help as we want to go to production with
this environment.
Cheers
ThomasI noticed in LiveDocs for
cfquery
for CF 8 that the
result parameter is a little different than described for
CF7 in that it mentions the ROWID being returned for Oracle insert
statements.
What happens when you try including a result parameter (even
if you don't end up using the result_name.ROWID variable)?
result Optional Name for the structure in which cfquery
returns the result variables. For more information, see Usage.
The cfquery tag also returns the following result variables
in a structure. You can access these variables with a prefix of the
name you specified in the result attribute. For example, if you
assign the name myResult to the result attribute, you would
retrieve the name of the SQL statement that was executed by
accessing #myResult.sql#. The result attribute provides a way for
functions or CFCs that are called from multiple pages, possibly at
the same time, to avoid overwriting results of one call with
another. The result variable of INSERT queries contains a key-value
pair that is the automatically generated ID of the inserted row;
this is available only for databases that support this feature. If
more than one record was inserted, the value can be a list of IDs.
The key name is database-specific.
result_name.ROWID Oracle only. The ID of an inserted row.
This is not the primary key of the row, although you can retrieve
rows based on this ID.
I have a hunch that there are differences between Oracle 8i
and 10g in how the rowid value is being "returned".
Phil -
Hi,
1st server (DB Server)
OS : Windows 2000 Server
Oracle 8i Server (32 bit)
2nd server (Web Server)
OS : Windows 2003 SP2 (64 bit)
Oracle 9i client (32 bit)
After i installed, oracle 9i client (32 bit) in Windows 2003 SP2 (64 bit), i managed to install and configure tnsnames and connects using SQL Plus. However, i CANNOT see Oracle in ODBC.
Que 1 : Why? Why i cannot see any Oracle in ODBC? Is it because of 64 bit?
Que 2: If i installed Oracle 9i client (64 bit), will it solve the problem?
Que 3: Will my .Net software gives problem when application installed in IIS interacts with DB server???
thanks
ramauser632098 wrote:
I ahev Oracle 11.2 64 bit client installed on a Windows Server Now I have a reuqireemnt to install Oracle 11.1 32 bit for some SQL Server SSIS connectivity to Oracle.
I can install 11.1 in a separate HOME. Porblem I have is if I install 11.1, it will put 11.1 ORACLE_HOME\bin before 11.2. How can I sendure that 11.2 is before 11.1, so sqlplus is exceuting from 11.2. I do not wnat to deisntall 11.2 and then resinstall it.
Thanks.
establish the PATH variable to contain the desired order -
Location of tnsnames.ora for Tora and Oracle XE Client
I Googled far and wide and did not see a CLEAR answer to my question, hopefully this will help others.
I have installed the debian oracle-xe-client and tora packages (tora rebuilt for oracle) on Ubuntu 8.04.
However, I did not know where I was supposed to place the tnsnames.ora file for my databases. I have tried running Tora with the environment variable of TNS_ADMIN set to the file where I placed my tnsnames.ora, however that did not work as Tora did not 'see' the file or its entries apparently. I know this works because I copied it from a Debian Etch box with the client and server installed.
I had even added a 'network/admin' directory structure to the //usr/lib/oracle/xe/app/oracle/product/10.2.0/client (ORACLE_HOME) with the tnsnames.ora but also with no success.
Now for the solution:
Simply remember that TNS_ADMIN points to the directory where the tnsnames.ora is and it will work. :)
I do have a suggestion that both Tora and sqlplus use a config file to set these directory(s) in addition to the overriding ability of the environment variable, TNS_ADMIN as is usually the case with UNIX apps (and thus expected).
Thank you,
JasonThe ODBC Instant Client Readme that is included in the install also indicates that %ORACLE_HOME%/network/admin/tnsnames.ora is the correct default location. What about OCI?
-
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... -
Oracle 9i and Oracle 10g Client
can oracle9i and 10g client be installed on different drives of same machine...
if so how we can configure it to work.
Thanks in advance..i changed the oracle path " ;D:\oracle\product\10.2.0\CLIENT_1\BIN "
following are the steps tht i followed:
right click on mycomp--->properties-->advanced tab--->environment variables tab-->path
but oracle 9i client is not working
I gave the command 'SQLPLUS /NOLOG'
it gives the error --you may need to set oracle_home to your oracle home directory
Maybe you are looking for
-
Restriction of promotion attribute values
Does anybody know how to restict the values of attributes for promotions. For example we want to enter a rabatt (save) for promotions and need the value for further calculations. How can I avoid the user enters 25 %, 25 or 0,25. Thanks in advance. Th
-
Hi From COEP table Im trying to retrieve data from fields WTGBTR , OBJNR , KSTAR , VRGNG . But the problem is if the value in the field WTGBTR is repeated for a particular OBJNR and KSTAR Im not getting those values to the internal table . Why?
-
Animation scroll not smooth in iOS
Hi! I figured out to make parralax responsive scrolling in adobe edge animate (with great help from tim jaramillo), but the scrolling is not smooth in ios. Is there any way to make it smooth/elastic like a normal scroll in ios (ipad, iphone etc.) Thi
-
[SOLVED] SATA not working on Macbook Pro 7.1, (kernel bug 15923)
I ran into this bug while trying to install Arch as a single-os install on my new 13'' Macbook Pro 7.1: https://bugzilla.kernel.org/show_bug.cgi?id=15923 It appears there is a problem with the current kernel and the MCP89 chipset so SATA is not re
-
Error to execute cloning using EMGrid Control
Hi Guys, I need some help please..... I am really getting crazy with this Oracle Grid Control, I am working over windows server 2003, databases 9i, and 10g....I have been trying to make a clone from my PROD database so I could put it as a standby dat