Solved

Setting Coldfusion ClassPath for Oracle 11g client for oracle datasource

Posted on 2010-09-02
1
2,331 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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

744 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

15 Experts available now in Live!

Get 1:1 Help Now