You will need to download the following components
JDK/JRE/JVM | | |
1.1 | opljdbc.jar | openlink.jdbc.Driver |
1.2 or 1.3 | opljdbc2.jar | openlink.jdbc2.Driver |
1.4 or 1.5 | opljdbc3.jar | openlink.jdbc3.Driver |
1.6 | opljdbc4.jar | openlink.jdbc4.Driver |
1.7 | opljdbc4_1.jar | openlink.jdbc4.Driver |
1.8 | opljdbc4_2.jar | openlink.jdbc4.Driver |
Note: You should only have one of the above JDBC Drivers in the CLASSPATH at any time. It is usually best to use the latest driver supported by the active JVM.
./coldfusion-701-lin.bin
NOTE: This may take several minutes.
/opt/coldfusionmx7/bin/coldfusion start
http://coldfusion_server:8500/CFIDE/administrator
/opt/coldfusionmx7/openlink/jars
http://coldfusion_server:8500/CFIDE/administrator
/opt/coldfusionmx7/openlink/jars
/opt/coldfusionmx7/bin/coldfusion restart
http://coldfusion_server:8500/CFIDE/administrator
jdbc:openlink://192.168.0.150:5000/SVT=Odbc/Database=sqlserver/UID=sa/PWD=sa
openlink.jdbc.Driver
Repeat the above process for each datasource, editing the URLs as appropriate for your environment --
Data Source Name | Driver Class | URL |
---|---|---|
o32opljdbc1 | openlink.jdbc.Driver | jdbc:openlink://192.168.0.150:5000/SVT=Odbc/Database=sqlserver/UID=sa/PWD=sa |
m32opljdbc1 | openlink.jdbc.Driver | jdbc:openlink://192.168.0.150:5000/SVT=SQLServer 2000/Database=Northwind/options=-H 192.168.0.150/UID=sa/PWD=sa |
o32opljdbc2 | openlink.jdbc2.Driver | jdbc:openlink://192.168.0.150:5000/SVT=Odbc/Database=sqlserver/UID=sa/PWD=sa |
m32opljdbc2 | openlink.jdbc2.Driver | jdbc:openlink://192.168.0.150:5000/SVT=SQLServer 2000/Database=Northwind/options=-H 192.168.0.150/UID=sa/PWD=sa |
o32opljdbc3 | openlink.jdbc3.Driver | jdbc:openlink://192.168.0.150:5000/SVT=Odbc/Database=sqlserver/UID=sa/PWD=sa |
m32opljdbc3 | openlink.jdbc3.Driver | jdbc:openlink://192.168.0.150:5000/SVT=SQLServer 2000/Database=Northwind/options=-H 192.168.0.150/UID=sa/PWD=sa |
/opt/coldfusionmx7/wwwroot/opltest.cfm
<html> <head> <title>Hello World!!</title> </head> <body> <cfquery name = "query_o32opljdbc1" dataSource = "o32opljdbc1" dbtype = "query"> select EmployeeID, FirstName, LastName, Title from Employees </cfquery> <cfquery name = "query_m32opljdbc1" dataSource = "m32opljdbc1" dbtype = "query"> select EmployeeID, FirstName, LastName, Title from Employees </cfquery> <cfquery name = "query_o32opljdbc2" dataSource = "o32opljdbc2" dbtype = "query"> select EmployeeID, FirstName, LastName, Title from Employees </cfquery> <cfquery name = "query_m32opljdbc2" dataSource = "m32opljdbc2" dbtype = "query"> select EmployeeID, FirstName, LastName, Title from Employees </cfquery> <cfquery name = "query_o32opljdbc3" dataSource = "o32opljdbc3" dbtype = "query"> select EmployeeID, FirstName, LastName, Title from Employees </cfquery> <cfquery name = "query_m32opljdbc3" dataSource = "m32opljdbc3" dbtype = "query"> select EmployeeID, FirstName, LastName, Title from Employees </cfquery> <h1>OpenLink - ColdFusion MX 7 test</h1> <h2>Using: o32opljdbc1 - openlink.jdbc.Driver</h2> <table> <cfoutput query="query_o32opljdbc1"> <tr> <td>#EmployeeID#</td> <td>#FirstName#</td> <td>#LastName#</td> <td>#Title#</td> </tr> </cfoutput> </table> <h2>Using: m32opljdbc1 - openlink.jdbc.Driver</h2> <table> <cfoutput query="query_m32opljdbc1"> <tr> <td>#EmployeeID#</td> <td>#FirstName#</td> <td>#LastName#</td> <td>#Title#</td> </tr> </cfoutput> </table> <h2>Using: o32opljdbc2 - openlink.jdb2.Driver</h2> <table> <cfoutput query="query_o32opljdbc2"> <tr> <td>#EmployeeID#</td> <td>#FirstName#</td> <td>#LastName#</td> <td>#Title#</td> </tr> </cfoutput> </table> <h2>Using: m32opljdbc2 - openlink.jdbc2.Driver</h2> <table> <cfoutput query="query_m32opljdbc2"> <tr> <td>#EmployeeID#</td> <td>#FirstName#</td> <td>#LastName#</td> <td>#Title#</td> </tr> </cfoutput> </table> <h2>Using: o32opljdbc3 - openlink.jdbc3.Driver</h2> <table> <cfoutput query="query_o32opljdbc3"> <tr> <td>#EmployeeID#</td> <td>#FirstName#</td> <td>#LastName#</td> <td>#Title#</td> </tr> </cfoutput> </table> <h2>Using: m32opljdbc3 - openlink.jdbc3.Driver</h2> <table> <cfoutput query="query_m32opljdbc3"> <tr> <td>#EmployeeID#</td> <td>#FirstName#</td> <td>#LastName#</td> <td>#Title#</td> </tr> </cfoutput> </table> </body> </html>
http://coldfusion_server:8500/CFIDE/opltest.cfm