Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting Coldfusion ClassPath for Oracle 11g client for oracle datasource

Posted on 2010-09-02
1
Medium Priority
?
2,590 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
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…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

963 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