Solved

Setting Coldfusion ClassPath for Oracle 11g client for oracle datasource

Posted on 2010-09-02
1
2,356 Views
Last Modified: 2013-12-20
I'm migrating from a w2003 server with oracle 9 client/ CF7 to a new box w2008R2 server with Oracle 11g / CF9.
I'm setting up my data sources and in the original box I had to tell CF where to find the JDBC info.  The CF classpath had:
e:\oracle\ora92\jdbc\lib\classes12.zip,"C:\CFusionMX7\lib\macromedia_drivers.jar"
Where do I find these equivalents for my new server box?
The oracle directory has both 32 and 64 bit loaded.  The sever is running 64bit OS.
The directory C:\oracle\product\64bit_11.2.0client\jdbc\lib has these jar files:
ojdbc5.jar
ojdbc5dms.jar
ojdbc5dms_g.jar
ojdbc5_g.jar
ojdbc6.jar
ojdbc6dms.jar
ojdbc6dms_g.jar
ojdbc6_g.jar
simplefan.jar

My CF datasource uses:
Other
jdbc url:  jdbc:oracle:oci:@mydb
driver class:  oracle.jdbc.OracleDriver
0
Comment
Question by:E43509
1 Comment
 

Accepted Solution

by:
E43509 earned 0 total points
ID: 33662864
I opted for this classpath
C:\oracle\product\64bit_11.2.0client\jdbc\lib\ojdbc6.jar
I'm not a java guru but this is how I came to select that jar file
Verfiy the Java Version under CF Admin/ Server Settings/ Settings Summary, in this case it was 1.6.0_14
Look under the oracle client install C:\oracle\product\64bit_11.2.0client\jdbc\readme.txt.  There will be a note as to which jar file to use based on the JDK.  The ojdbc6 was good for 1.6 java.
Under server settings/Java and JVM, in the ColdFusion Class Path add:
C:\oracle\product\64bit_11.2.0client\jdbc\lib\ojdbc6.jar

I also found the location of the old macromedia drivers C:\ColdFusion9\lib\macromedia_drivers.jar but opted not to include them in the path.  My Data source is now working.
0

Featured Post

New! My Passport Wireless Pro Wi-Fi Mobile Storage

Portable wireless storage to offload, edit, and stream anywhere.

High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now