Coldfusion JDBC driver setting

I have coldfusionmx 7 installed on red hat linux enterprise 4
How can i change the coldfusion JDBC driver to oracle 10g
JDBC driver, that's may be help me in solving problems " Net8
protocol error" which occured when a stored procedure return ref
cursor to coldfusion?

The Technotes listed
here may
help.

Similar Messages

  • Upgrade Oracle iAS 9.0.4.1 JDBC Driver to 9.2.0.8

    Hi,
    I'm using Oracle Application Server 10g R1 (9.0.4.1) for a JDBC application that connects to an Oracle 9.2.0.7 Database.
    Due to some NLS problems with JDBC connections which are out of the scope of this posting, I need to upgrade the JDBC Driver of iAS 9.0.4.1 to the latest JDBC Driver, closest to my database full version. Since there is no 9.2.0.7 JDBC Driver set, I downloaded the 9.2.0.8 JDBC Driver files for Java JRE 1.4 which is the jdk/jre of the iAS 9.0.4.1.
    This set though, contains files ojdbc14.jar, ojdbc14_g.jar and ocrs12.jar and NOT the JDBC Driver files that are found in the ORACLE_HOME\jdbc\lib path of the iAS 9.0.4.1., and of course, replacing the existing with the new ones, does not work (does not update the JDBC Driver on the server).
    How can this upgrade be archived?
    Is anyone aware of the documented JDBC upgrade procedure for Oracle iAS 9.0.4.1, to driver version 9.2.0.8?
    Why there is no classes12.zip or classes12.jar distribution in the JDBC driver 9.2.0.8 set?
    Thank you

    JspServlet: unable to dispatch to requested page: Exception:java.lang.UnsupportedClassVersionError: wfrecruit/WFRequisition (Unsupported major.minor version 49.0)
    Application is compiled with a JDK version and run with another version of JDK.
    Compile and run application with same version of JDK.

  • Cannot load JDBC Driver Class in Tomcat5.5 using struts.

    Hello to all,
    I'm working in the struts environment using Esclipse3.2 IDE.
    And I have installed Tomcat5.5 server.I have created the LoginForm
    in struts.Now i like to connect my LoginForm with MySql database.I
    have also created the database in MySql naming strutsdatabase.
    I had also download the mysql-connector-java-3.0.16-ga-bin.jar and
    save that in C:/tomcat/commons/lib directory.
    While running I have got the below error:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:598)
    at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:808)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
    Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE
    at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:812)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
    And I have attached my struts-config.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software
    Foundation//DTD Struts Configuration 1.2//EN"
    "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>
    <data-sources>
    <data-source
    type="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
    <set-property property="url"
    value="jdbc:mysql://localhost:3306/strutsdatabase?autoReconnect
    =true"/>
    <set-property property="driverClassName"
    value="com.mysql.jdbc.Driver"/>
    <set-property property="username" value=""/>
    <set-property property="password" value=""/>
    <set-property property="maxActive" value="10"/>
    <set-property property="validationQuery" value="SELECT
    COUNT(*) FROM test"/>
    <set-property property="maxWait" value="5000"/>
    <set-property property="defaultAutoCommit" value="false"/>
    </data-source>
    </data-sources>
    <form-beans>
    <form-bean name="LoginForm"
    type="fino.web.struts.action.LoginForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards/>
    <action-mappings>
    <action name="LoginForm" path="/login" scope="request"
    type="fino.web.struts.action.LoginAction" validate="true">
    <forward name="success" path="/success.jsp"/>
    <forward name="failure" path="/failure.jsp"/>
    </action>
    </action-mappings>
    <controller/>
    <message-resources null="false"
    parameter="org.apache.struts.action.ActionResources"/>
    </struts-config>
    Friends,please help me to find solution to this problem.

    Note: This thread was originally posted in the [Java Compiler|http://forums.sun.com/forum.jspa?forumID=7] forum, but moved to this forum for closer topic alignment.

  • Jdbc driver creates new thread for each statement with a query timeout set

    I am profiling a web application that is using the Microsoft JDBC driver, version 1.1 to connect to a sql server 2005 database. Each java.sql.Statement that is created, within the application, gets a query timeout value set on it ( statement.setQueryTimeout(...) ).
    I have discovered that the JDBC driver creates a new thread to monitor each Statement and the query timeout value. When the application is under load these threads are getting created faster then they are being destroyed and I am concerned that this will cause a performance problem in production.
    One option I have is to remove the query timeout value and the monitor threads will not be created, another is to change JDBC drivers.
    I'm curious is there any way to control this behavior so that these threads are not created or are managed more efficiently.  Is there a workaround that anyone is aware of?   Is this considered a bug?
    I have found a similar bug here for the 2000 driver:
    http://support.microsoft.com/default.aspx/kb/894552
    Cheers

    Hi,
    Thank you for using the Microsoft SQL Server JDBC driver.  You are correct that a new thread is started to monitor the query timeout when a statement is executed.  This is a potential performance issue that we may look at addressing in the upcoming v1.2 release.  The current behavior is not configurable.  The only workaround with the v1.1 driver is to limit your use of query timeouts to only those statements which you reasonably might expect to actually time out.
    We do take customer feedback very seriously, so if anyone else is concerned about this particular issue, please chime in and we will be able to give it appropriate weight.
    --David Olix [MSFT]

  • Gor The result set is closed after switch to latest microsoft JDBC driver

    The same code works fine with the previous version of the microsoft JDBC driver, but throws
    com.microsoft.sqlserver.jdbc.SQLServerException: The result set is closed.
    for the JDBC driver 4.
    Please Help!
    Thanks.

    I found the same exception when dealing with ResultSetMetaData.
    Using the old driver (1.2.2828.100) it was possible to do something like:
    Statement s = con.createStatement();
    ResultSet r = s.executeQuery("select * from <table>");
    ResultSetMetaData m = r.getMetaData();
    r.close();
    s.close();
    int numCols = m.getColumnCount();
    But using the new driver (2.0.1803.100) it complains that the result set is closed.
    The solution was to keep the ResultSet and Statement open until after the ResultSetMetaData is no longer needed. It is somewhat inconvenient because before it was possible to have a utility method that would return a ResultSetMetaData object and not have to worry about keeping the Statement and ResultSet objects around.
    I was hoping for a speed increase for batch inserts by having the latest driver, sadly there is no performance gain.

  • Is it possible to set JDBC  Driver CharacterSet

    HI,
    I'm trying to learn how the data conversion is being handled in oracle (ii.e, I wanted to check the behaviour by keeping orai18n.jar & removing it). My database character set is WE8ISO8859P1, and I would like to change different client side character sets & do some R&D related to my application.
    So I want to know ....
    ->if we can set JDBC Driver Character set in any way.
    ->Is setting client character set is what is setting driver character set??
    We are using Oracle 10g and getting connections using Datsource. When I try to get the driver character set using oracle.jdbc.driver.OracleConnection.getJdbcCsId(), it returns 31 (which is WE8ISO8859P1).But I didn't find any setter..or similar method.
    I'm new to this Globalization thing.... so sorry if I'm asking dumb questions.... Could any one help me in this regard?? .
    Thanks,

    JDBC is not designed to support the notion of a driver character set. Any text data should be retrieved using ResultSet.getString() method and passed to the database using PreparedStatement.setString() method - except for CLOBs, which also accept Unicode character streams. These methods expect string data in Java Unicode encoding (UTF-16). If you need to output this data from an application is some other encoding, you should use standard Java conversion mechanisms - e.g. String.getBytes(charset) or new PrintWriter(file,charset).
    The driver character set is an internal setting relevant for intermediate character set conversions between the driver and the database. It is determined automatically by the driver based on the database character set. The method oracle.jdbc.driver.OracleConnection.getJdbcCsId() is undocumented and should not be used.
    -- Sergiusz

  • Setting options to mysql jdbc driver

    Hello All
    Well According to MYSQL setting the CLIENT_MULTI_STATEMENTS flag onto a
    connection should allow multi statements (eg more than one query pr call)
    But I have no idea how to configure BEA to call mysql with the optional
    parameters?
    (btw tried opt_flags=CLIENT_MULTI_STATEMENTS)
    Oliver Billing

    Joe Weinstein skrev:
    [email protected] wrote:
    Hello All
    Well According to MYSQL setting the CLIENT_MULTI_STATEMENTS flag onto a
    connection should allow multi statements (eg more than one query pr call)
    But I have no idea how to configure BEA to call mysql with the optional
    parameters?
    (btw tried opt_flags=CLIENT_MULTI_STATEMENTS)
    Oliver BillingHi. I assume you're using our connection pools, with the mysql driver.
    You would add the property and it's value to the driver properties list.
    JoeHey Joe
    I did
    CLIENT_MULTI_STATEMENTS = true (looked it up under mysql JDBC driver)
    Doesent work though.
    Thanks anyway

  • How to setting up the sun.jdbc driver in servlet

    in my servlet i implemens the MetaData Interface, The Sun JDBC driver was Not support the getMetaData() function .. I dont knw why it was
    Pls hel me

    http://www.apple.com/support/iphone/assistant/airprint/

  • Setting up embedded OC4J in JDev to use P6Spy jdbc driver to Oracle

    I am currently working on an OC4J application using Oracle db, with JDeveloper. I'm having some trouble with the DataSourceUserManager, in that it appears to be emitting faulty SQL, but I don't know exactly what SQL is being emitted. Today, I'm trying to see if I can interject the P6Spy JDBC driver on the database client side so I can see exactly what SQL is being emitted. I've successfully used P6Spy in the past on other projects, so I believe it can work, although I didn't use it with Oracle before.
    Unfortunately, I'm having trouble figuring out how to inform JDeveloper of the location of the driver jar. I've added P6Spy as a library to my application, and I've found several XML files in my workspace and in the JDev configuration which contain an "orion-application" element, which contains "library" sub elements, several of which I've added "library" elements to specify the location of the driver jar. Despite that, when the embedded OC4J starts up, I still get this in the messages window:
    Error initializing data-source 'jdbc/OracleDS': DriverManagerDataSource driver 'com.p6spy.engine.spy.P6SpyDriver' not found
    Note that this occurs while OC4J is trying to initialize my UserManager subclass.
    I believe there is also some facility for turning on "tracing" with Oracle, but the person who knows about that isn't here today. It would be good if I could get P6Spy working today, so I can make some progress today (which is looking more unlikely by the second).

    You must place the p6spy.jar into <oc4j_home>/j2ee/home/lib directory.
    The datasources are initialized before any deployed application is started, and thus the p6spy.jar wont be in the classpath >when the appserver is started (if you put the jar in WEB-INF/lib).That's correct.
    Another question -- have anyone managed to get p6spy to work with a ConnectionPoolManager in a BC4J-project?? I get a ClassCastException from oracle.jbo.server.OracleSQLBuilder because it tries to cast a statement into an OracleStatement.You need to build the project using SQL92 and Java Type Map.
    See
    Re: Exp problem in Oracle 10gR2
    Re: error in form10g release 2

  • Data Sources error:[Macromedia][SQLServer JDBC Driver]No more data available to read.

    I have just set up the developer edition coldfusion and a standard SQL Server. When trying to set up a datasource i recieve the following error:  [Macromedia][SQLServer JDBC Driver]No more data available to read. I have no clue what this means. I have tried to find some documentation on this but with now luck. Can anyone help?
    Here are some details:
    SQL SERVER CONNECTION MANAGER:
    Trying to connect to a localhost sql server
    I have TCP/IP Enabled
    Dynamic Ports is set to 0 under IP ALL
    127.0.0.1 is enabled and the port is set to 1433
    COLDFUSION ADMIN:
    server: 127.0.0.1
    port 1433
    username/password set to null (using windows authentication)
    Has anyone ran in to this issue?
    Thanks for helping.

    You can use domain credentials with CF.  To do so you've got to create the datasource in Windows.  Then, in ColdFusion you select ODBC mapping and point it to the Windows DS.
    If I recall correctly, there's a switch in SQL 2005 that you've got to flip to allow SA rights to log in from the network.  I could be way off base on that one though.
    You may want to consider creating a new SQL account with its own password and assigning it to your target database (usually, I grant data reader and writer - your app may vary) and use those new credentials in your JDBC mapping in CF.

  • Help installing new JDBC driver on LINUX

    Hello,
    Today, I downloaded the new SQL Server 2005 JDBC Driver onto
    my Linux Server. The path to the driver's .jar file is
    /root/sqljdbc_1.0/enu/sqljdbc.jar. I placed that path in my CF
    Adminstrator "Java and JVM" page's Class Path field. I restarted
    the app server but each time I try to establish a dsn connection I
    keep getting this error. (note: I have dsn's set up already to this
    instance of SQL Server 2005 so the communicatio is there but I
    would prefer to use this new driver)
    Connection verification failed for data source: dsnTestDB
    java.sql.SQLException: No suitable driver available for
    dsnTestDB, please check the driver setting in resources file,
    error: null
    The root cause was that: java.sql.SQLException: No suitable
    driver available for dsnTestDB please check the driver setting in
    resources file, error: null
    Any help would be greatly appreciated.
    Thanks,
    mdg1
    Houston, TX

    Try placing the jar file in the
    {cfmx-root}/runtime/servers/lib (create if not already there)
    directory if you have the server install or the
    {jrun-root}/servers/lib directory if you have the multiserver or
    j2ee install on JRun. Restart the Coldfusion applicatioin server.
    Ted Zimmerman

  • Error in Connecting to MS SQL 2005 via JDBC Driver

    Here's the setup
    CF MX7 resides on a centOS wid Apache 2.0 webserver box.
    I need to established a datasource connection between the
    Coldfusion server and a MSSQL 2005 Express+SP1 database sitting on
    a remote XP wid SP2 setup.
    I've also downloaded and installed on the /lib folder of the
    CFMX7 server the corresponding JDBC drivers (versions 1.1 and 1.0)
    for the MS SQL server.
    The thing is, this problem always occurs:
    Connection verification failed for data source:
    datasourcename
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
    JDBC]Error establishing socket.
    The root cause was that: java.sql.SQLException:
    [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing
    socket.
    The datasource connection info is as follows:
    CF Datasource Name: datasourcename_JDBCdriver
    JDBC URL:
    jdbc:microsoft:sqlserver://192.168.0.47:1433;DatabaseName=nameofdatabase
    Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Driver Name: mssql2005
    Username: sa
    Password: userdefinedpassword
    I've already tried these settings:
    * Enabled mix mode of authentication under the SQL server
    * Affix a /MSSQLSERVER instance name on the jdbc url setting
    "jdbc:microsoft:sqlserver://192.168.0.47\MSSQLSERVER:1433;DatabaseName=nameofdatabase"
    but a different error had occured:
    The root cause was that: java.sql.SQLException:
    [Microsoft][SQLServer 2000 Driver for JDBC]The requested instance
    is either invalid or not running.
    so i remove it since its only an optional setting
    * Configured the SQL 2005 Express, under the SQL Server
    Configuration Manager, to listen to protocol TCP/IP under port 1433
    (this is the ONLY ENABLE protocol)
    I've checked using Telnet and netstat and the SQL service is
    normally listening to the said port.
    * Disabled windows firewall under XP (came with SP2)
    and even tried using other JDBC drivers such as:
    * macromedia drivers
    * jtds driver
    but to no avail.
    Is the problem still within the MS SQL 2005 Express wid
    XP+SP2 box or a connecting issue on the Cf server under the
    centOS/Apache machine?
    A little help would do wonders just about now.

    I had the same problem, but do not have express version. In
    the configuration manger, I viewed the properties of the enabled
    tcp/ip protocol. On the IP addresses tab, I found that though the
    IPs were enabled, the drop down beside active was no. I changed all
    to yes, applied it and restarted my instance. Then in the cf
    datasource I left the port blank and everything worked.

  • OpenSQLException: JDBC driver not supported?

    Hi @ all,
    I need to connect to a DataSource with the WebAS 7 via SQLJ. As I try to connect to it with the SQL Engine set to "Vendor SQL" I get:
    "The given connection "com.sap.engine.services.dbpool.cci.ConnectionHandle" is not an Open SQL connection"
    As I try to get a connection to the dataSource via SQLJ with SQL Engine set to "Open SQL" or "Native SQL", I get the following Exception:
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: JDBC driver not supported for MS_SQL_SERVER database.
    How can I get the SQLJ- Support?
    Kind regards,
    Uwe
    Message was edited by:
            Uwe Kunath

    Hi Uwe, all,
    for using Native SQL/JDBC or Open SQL/JDBC, the database itself and the JDBC driver must be recognized as being in the supported set. The answer to that depends on what you mean in detail by "Web AS 7". Roughly speaking, it should be the JDBC driver released by Microsoft.
    Open SQL/SQLJ is only available with a Open SQL/JDBC data source. Hence, there is no way around using Open SQL/JDBC.
    Now, Open SQL/JDBC and Open SQL/SQLJ both requires tables (and other database objects) to be deployed via the Open SQL for Java Dictionary. Up to and including WebAS Java 7.1, the Open SQL/Dictionary supports deployment to the system database, i.e. the database (and schema) used by the installed server itself.
    Given the above, the JDBC driver for a Open SQL/JDBC data source must already be present, because it must be the driver used by the server itself. When defining data sources, it is referred to as "system driver".
    This leaves us with a Open SQL/JDBC data source to the system schema. You can then also consider to establish a data source alias to the server's system datasource.
    Hope this helps. Best Regards, Dietamr

  • Adding a JDBC driver in Sun Java System Web Server 7

    I'm trying to configure JDBC database connection pooling for a Microsoft SQL Server 2005 Express Edition though the Sun Java System Web Server 7 administration console. I don't want to use the MSSQL JDBC driver that comes bundled with the SJSWS 7. So I've downloaded the lastest MSSQL JDBC driver from the Microsoft website and put in the "lib" subdirectory of the SJSWS installation directory. So when I go to add a new JDBC resource through the administration console, the newly added MSSQL database driver doesn't appear in the "Driver Vendor" drop-down box.
    How do I add the downloaded JDBC driver to the server so that it appears in the "Driver Vendor" drop-down under "Create JDBC resource".

    Check this documentation from MS on using the JDBC driver with DataSource
    http://msdn2.microsoft.com/en-us/library/ms379052.aspx
    SJS Web Server 7.0 should work with any driver that has support for javax.sql.DataSource. The great majority of drivers do.
    So instead of using the driver name, use the DataSource class name:
    com.microsoft.sqlserver.jdbc.SQLServerDataSource
    The properties to add should be:
    user=username
    password=password
    servername=sql_server_hostname
    portnumber=sql_server_port
    databasename=databasename
    In general, all the setters required to get the datasource configured can be set as properties.

  • MSSQL JDBC driver

    Hi there, I'm attempting to creaet a java interface with an SQL database on an MSQL server but am not having much luck setting up the JDBC and MS SQL Server 2000 driver in netbeans... any help that anyone can give me will be much appreciated!
    I have netbeans setup and installed the SQL server driver, the entries for the 3 jar files that come with the driver are in my windows (NT4.0) classpath but netbeans isn't finding classes.
    a sample of the code I have written thus far is:
    try{
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    catch(ClassNotFoundException e){ }
    SQLServerConnection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://rworlddev:1433","AssetRegister","assets");
    but it is getting the following errors:
    testGUI.java [22:1] cannot resolve symbol
    symbol : class SQLServerConnection
    location: class testGUI
    SQLServerConnection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://rworlddev:1433","AssetRegister","assets");
    So it isn't finding the class, although when i right click the SQLServerConnection text and go to "Go to source" i get a text box saying:
    "Source com.microsoft.jdbc.sqlserver.SQLServerConnection not found in Filesystems"
    I have mounted all three jar files and they are appearing in the filesystems, but should i mount the jar files from the com directory? it seems like it's mounted one level 'too high' although I'm not sure if this can even be done in netbeans..
    Thanks for any help!

    You might change that "SQLServerConnection" to just be the Connection interface. This likely won't solve your problem though.
    Can you get Netbeans to tell you what classpath it's using? You might go ahead and drop the jar that contains your JDBC driver into your extension directory ($JAVA_HOME/jre/lib/ext) and see if that helps.
    Good Luck
    Lee

Maybe you are looking for

  • OS X fails to start up: kextd_watch_volumes: couldn't set up diskarb sessio

    I put my Macbook Pro to sleep (something it's not very good at) last night, and when I opened it this morning, it had shut itself down. The battery was full, though. When I attempted to boot OS X, the blue status bar under "Starting OS X" gets to the

  • Has anyone solved slow syncing?

    When I sync my iPad with my 27" iMac it is like a glacier. Friends do not have the same problem and I do not have this problem with my iPhone.

  • How to extract incremental data from SQL server to oracle tables in ODI

    HI All, In my ODI sql server is install.My Source is in SQL server and my target is in Oracle. I need to create a interface mapping where i need to extract incremental data from sql server to oracle. There is a datetime(with Timestamp) field in sql s

  • Finding std query for Time booking report in BW

    Hello,   Time booking for service engineers are done in CRM Service. Need to furnish report on this time booking in BI portal.Can anyone help me in finding std. query built in BI on time booking. Regards Devika.S

  • Time capsule not visible

    My laptop can't seem to find my time capsule. I have used an Airport in the past and the laptop has no trouble finding it. I have also used the time capsule strictly as a hard drive connected directly to my laptop. Now I would like to make the time c