Solved

Setting Coldfusion ClassPath for Oracle 11g client for oracle datasource

Posted on 2010-09-02
1
2,514 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

617 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