ODBC throwsqlException error

I am trying to communicate between an Oracle 9.2.0.4 database on AIX 5.2 and applications sitting on Windows 2000 Professional, using the Oracle ODBC driver.
I have tried a number of the drivers but they bring back the message
'oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java.180)'
and there is an error message in my logs of 'invalid column type'.
Does anyone know a way around this... (I've checked the data types and they look fine).
I believe there is a driver 9.2.0.0 available which might help - does anyone know where I could obtain this driver from ( it's not on the regular driver download list on Oracle)
Many thanks for any replies.

From the error message you're seeing, it appears that you're trying to use JDBC, not ODBC, to connect to the database. What version of the Oracle client and Oracle JDBC driver do you have on the Windows 2000 database?
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • OBIEE 11g ODBC connectivity error

    Hi all,
    I am getting the following error when I tried to access a simple query through Answers.
    "*Odbc driver returned an error (SQLExecDirectW).*
    *Error Details*
    *Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P*
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM002 code: 0 message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. (HY000)*
    *SQL Issued: SELECT s_0, s_1, s_2 FROM ( SELECT 0 s_0, "BISample"."Product"."BRAND" s_1, "BISample"."Target"."REVENUE" s_2 FROM "BISample" ) djm*"
    What I did was
    1. Create a DSN 'orcl', 32 bit Oracle ODBC driver. Tested and worked against the Oracle database.
    2. Import metadata using Local, ODBC 3.5 and DSN = orcl
    3. Build a simple BMM and subject area
    4. In the phyiscal layer, right click on a table, and select view data/update row count. Error with message "The connection has failed"
    5. Hoping for the best, create a simple query in answer and got the above odbc driver error in results tab.
    Interestingly, if I edit the connection pool and use OCI (my SID is also orcl), then everything works fine.
    I'm new to OBIEE and hope someone can tell me if I have missed a step or make any mistakes!
    Thanks!
    Regards
    Han Kiat

    Hi All,
    I am able to connect SQL Server database with OBIEE 11g RPD offline and imported metadata and verified update row count/view data but when i was trying to publish the same RPD the data is not returning also "update row count/view data" is giving and error "The connection has failed."
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified. (HY000)
    Environment:
    OBIEE 11g/WLS 10.3.3/Oracle database 11g installed on RHL 5
    Client tools are installed on local Vista 32 bit system.
    Oracle database is working fin, where as SQL Server is giving issues.
    You want me to create a ODBC connection in RHL 5 server to connect to SQL Server ? i am little bit confused here how to create !
    same time i have created ODBC for oracle apps database and imported and able to view data in RPD when i am in Online mode.
    When i open RPD in online mode and trying to import the data i dont have access to local machine ODBC's which is expected and if i change to "Remote Server" nothing is showing here.
    Appreciate your comments on the above.
    Thanks

  • DataExport problem-ODBC Layer Error: [21S01]-ORA-00947

    Hi,
    I have one planning application from which I want to transfer data to Oracle DB in the table "t". I have 11 dimension in the planning application, so I have created 12 columns in the table "t"(11 for dimension-members and 1 col for value) with the following script---
    create table t (
    a varchar2(100),
    b varchar2(100),
    c varchar2(100),
         d varchar2(100),
         e varchar2(100),
    f varchar2(100),
         g varchar2(100),
         h varchar2(100),
    i varchar2(100),
    j varchar2(100),
         k varchar2(100),
         l number)
    I have created a wire protocol dsn. But when I execute the following calcscript ---
    fix (jan,budget,fy08)
    DATAEXPORT "DSN" "xz" "t" "tstschma" "password" ;
    ENDFIX
    then it is showing error below---
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021000)
    Connection With SQL Database Server is Established
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1012695)
    DataExport can not do batch insert to relational table. The ODBC driver and/or RDBMS doesn't support batch insert. Using record by record SQL export
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021013)
    ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-00947: not enough values]
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021014)
    ODBC Layer Error: Native Error code [947]
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Error(1012085)
    Unable to export data to SQL table [t]. Check the Essbase server log and the system console to determine the cause of the problem.
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021002)
    SQL Connection is Freed
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Warning(1080014)
    Transaction [ 0x920001( 0x4a5a097a.0x7918 ) ] aborted due to status [1012085].
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1012579)
    Total Calc Elapsed Time for [datexprt.csc] : [0.062] seconds
    [Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1013274)
    Calculation executed
    Please guide me if I am doing anything wrong...
    Thanks & Regards.

    Hi,
    It all depends on you dense dimension being used in your export, it will use a column for each member.
    For example if the dense dimension on the export was period and you were doing a level 0 export (level0 members of time are Jan:Dec)
    Then there would need to be a column for each dimension and 12 columns for each of the periods (Jan:Dec)
    The best way to work it out is to export to a file first in column format and you will see how the table needs to look.
    The columns have to exactly match the data being exported.
    Take a look at this post, it something you may experience as well :- Re: DATAEXPORT command- Periods in the columns when sparse
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • "This entry is already exists in tables(JDT1)(ODBC-2035)" Error.

    Hi experts,
    My Production_DB Database was got into  Suspect mode due to power problem,the users unable to open SAP. so  run the script file so production_db came into normal mode and sap opened.
    But which documents were posted at the time of database going to Suspect mode that documents are not visible and then users repost the documents they are getting "This Entry is already exists in Table(JDT1) (ODBC-2035)" Error.
    so we run the select query for JDT1 table in sql server 2005,we got "Msg 605, Level 21, State 3, Line 1
    Attempt to fetch logical page (1:394560) in database 7 failed. It belongs to allocation unit 72057596881666048 not to 72057596584198144".
    I am using SAP PL 20 and SQL server 2005.
    I am waiting for your response ASAP.
    Thanks & Regards.
    Srinu Boddeti.

    Hi Srinu,
    please refer below link for details..
    http://forums.sdn.sap.com/thread.jspa?threadID=1636430
    Thanks and Regards,
    kaviprashu

  • Odbc layer error 01004

    Using Essbase 7.0.1 I have several load rules calling SQL data I copied from one server to another.
    On the new server some rule files work fine but some dont .
    I am getting the following error message in the log file.
    ODBC Layer Error: 01004 ==> [[microsoft] [ODBC Sql server Driver]String data, right truncation]
    ODBC Layer Error: Native Error code [0] Info (1021014)
    can anyone help me in solving this issue
    and where I have to make necessary changes....
    Thanks

    I always kind of work backwards on these sorts of issues until I can isolate where the problem is.
    1. Is it a view or a table you are trying to load from?
    2. Using Query Analyzer or the current SQL Server admin tool, can you query the same table/view that your load rule is trying to load data from?
    3. Can you still query it when you login as the same user that the load rule is running as?
    4. Is there some sort of "weird" data type in the view/table that might be tripping things up?
    5. If you omit that particular column from the load rule, does it start working again?
    6. Does it work if you use CAST or something similar in the SQL query or in the construction of the View itself, in order to make it a more "basic" data type?
    These are all probably different things I would try to see if I can isolate where the problem is. Good luck --
    Jason
    [jasons hyperioni blog|http://www.jasonwjones.com]

  • Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

    Getting the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    [Microsoft][ODBC driver for Oracle]Wrong number of parameters
    I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
    oConnEngineer.CursorLocation = 3
         oConnEngineer.Open sConnectionString
         oCmdEngineer.ActiveConnection = oConnEngineer
         oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
         oCmdEngineer.CommandType = 1
         Set rsEngineers = oCmdEngineer.Execute()
    Any suggestions?

    Getting the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
    [Microsoft][ODBC driver for Oracle]Wrong number of parameters
    I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
    oConnEngineer.CursorLocation = 3
         oConnEngineer.Open sConnectionString
         oCmdEngineer.ActiveConnection = oConnEngineer
         oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
         oCmdEngineer.CommandType = 1
         Set rsEngineers = oCmdEngineer.Execute()
    Any suggestions?

  • Copy Express -  ODBC-2028 Error

    Hai to All,
    I am using SAP B1 2005B . I want to Transfer Data From One Data Base To Another Data Base . I am using to Copy Express to Transfer. I am using Replace All Method in Copy Express. While I am Copying the Users from One DB to Another DB , i got the Error  "No Matching Records Found(ODBC-2028) " for Some user ..
    Thanks & Regards
    Madhu

    Hey ,
                I just transfer the User Master Only. I am not able to transfer ,  same problem ODBC-2028 Error is comming.
    Please help me out from this issue.
    thanks & regards
    Madhu

  • Informix ODBC driver error while creating a view in Designer

    I nedd to ceate a view in a universe (Business Objects XI R2) that is connected to an Informix database. I use the 3.34 ODBC Informix driver.
    When I write the select statement (select column from table) and check the syntax I have the following error:
    "Exception: DBD, [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.State: 42000"
    Is there anybody who has solved this problem??
    Thanks in advance to anyone who can give me hints on how to solve problem.
    Fabrizio

    Hi Fabrizio,
    The error state 42000 indicates that there is a syntax error or access violation. If you are using an Informix native client connection then add the following parameter <Parameter Name>"Force SQLExecute">Always</Parameter> in the informix.sbo file. Restart Designer and then try to create a derived table with a simple select statement.
    If you are using an ODBC connection, then add the above mentioned parameter in the Generic section of odbc.sbo file.
    Regards
    Arun Sasi

  • Oracle ODBC  - Internal Error - unable to initialize NLS during driver load

    I'm having some trouble with my ODBC connections which I hope someone can please help me with!
    About 6 weeks ago all was working as normal.
    As far as I know there have been no updates to the ORacle DB, the Windows XP operating system or the ODBC Drivers.
    Today when I opened access and visual case 2 to connect to Oracle I was at first greeted with a:
    unable to connect SQLState=IM004 SQL_HANDLE_ENV
    error. ODBC also kept crashing.
    I restarted the computer and was confronted with a different error:
    odbc SQLSTate 08004 ORA 12154 TNS could not resolve the connect identifier specified
    I was able to fix this error by setting the environment variable TNS_ADMIN in windows xp environment variables. I'm extremely confused about how this happened though as it was working and I don't think anything has changed.
    I was then able to connect to the database via Microsoft Access but when I opened Visual Case 2 and tried to make an update, I was confronted with the following error:
    Oracle ODBC Driver - internal error - unable to initialize NLS during driver load
    I looked in the registry at:
    HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraClient10g_home1
    HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraClient10g_home2
    HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraDb10g_home1
    and NLS_LANG was set to "AMERICAN_AMERICA.WE8MSWIN1252" in all 3 places.
    (Though KEY_OraClient10g_home2 only had 4 entries as opposed to KEY_OraClient10g_home1's 13 entries)...
    Since I made those changes I can no longer connect through Access.
    I just receive a ODBC - connection to 'xxx' failed
    Advice greatly appreciated!!!!
    Edited by: user11150264 on Aug 25, 2009 10:21 PM

    Actually it sort of does...
    I switched the ODBC connection to use instant client and now it's all working again.
    The biggest mystery is what changed to make it suddenly stop working the old way...

  • Odbc driver error while OBIEE instal on LINUX tries to access Datawarehouse

    Hi All,
    I have installed OBI Apps on a LINUX machine.The ETL too ran successfully.As we can't install BI tool on LINUX I modified the OracleBIAnalyticsApps.rpd file on a Windows machine and copied it back to the LINUX machine.After modifying the NSQConfig.ini file I could see all the OBI Apps answers and Dashboards ie OBI Apps was installed on LINUX.But whwnever I try to access some data from OLAP i get the following error:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
    SQL Issued: SELECT Time."Year" FROM "Human Resources - Workforce Profile" ORDER BY 1
    Probably this is because all the DSN specified in the rpd file were present on the Windows machine.I don't know how to modify these values for LINUX.Please help.Nothing is mentioned in the install docc as far as LINUX installation is concerned.
    regards,
    Soumya.

    I think when your BI Server is running on linux, you would use native drivers to connect to your data warehouse database and not ODBC. If your data warehouse is on a oracle db server, change the call interfact in the RPD connection pool to OCI and give the tnsname for the db server connection in the connection pool.

  • Odbc driver error while connecting with Oracle BI in Linux

    I have Oracle BI Server, Presentation Service and Oracle 11g Client installed in RHEL 5. Oracle BI client is installed in Windows so that I can use Admin tool.
    I have created a repository in Windows for sh schema(by creating ODBC). After that I transferred this repository to the ..server/repository in the linux server.
    I have installed Oracle ODBC Driver from EASYSOFT and added one odbc data source for sh schema in the ../setup/odbc.ini.
    My ODBC setting is as follows.
    [ODBC Data Sources]
    sh=Oracle in OraDb11g_home1
    [sh]
    Driver=/usr/local/easysoft/oracle/libesoracle.so
    Database=//ipaddress_of_ORACLE_SERVER:port/database_service_name
    UID=sh
    PWD=sh
    When I am trying to query through Oracle Answers I am getting the following error.
    Odbc driver returned an error (SQLExecDirectW).
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down. (HY000)
    SQL Issued: SELECT Customers."Cust First Name" saw_0 FROM SH ORDER BY saw_0
    I have enabled tracing, but I am not getting any clue from trace output.
    Can anybody please help.
    If it is because of wrong driver, can anybody suggest a proper ODBC Driver for Oracle and how to configure it. If the driver is OK and configuration is wrong, can anybody tell me how to create system dsn in linux?
    Thanking you in advance.

    don't use ODBC for Oracle, use OCI
    search on the forum, there's plenty of information about it.

  • Oracle ODBC version error on windows server 2008 64 bit

    We had installed oracle 10g standard edition on windows server 2008 64 bit. After one hour use of ODBC connection, we are getting a error message like 'Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed'
    Find the link for error message. http://www.google.co.in/imgres?newwindow=1&biw=1600&bih=1075&tbm=isch&tbnid=zc1Vas4O9Eqj4M:&imgrefurl=http://social.tech…
    Please give solution for the said issue. Thanks in advance.

    SAP said it is Oracle not support windows server 2008.

  • Oracle BI Odbc connection error : Mysql

    Hi,
    I use Oracle BI 11g on linux 64, but can not connect Mysql by ODBC when I create an analysis and look at the analysis result.
    I am getting the following error:
    Error
    View Display Error
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 12010] Communication error connecting to remote end point: address = <IP>; port = 9703. (HY000)*
    Odbc Trace:
    ppid=20539:pid= 5051:433e8940   ENTER SQLSetConnectOption
    HDBC                0x10c19e80
    UWORD                      108
    UDWORD                     2
    ppid=20539:pid= 5051:433e8940   EXIT  SQLSetConnectOption  with return code 0 (SQL_SUCCESS)
    HDBC                0x10c19e80
    UWORD                      108
    UDWORD                     2
    ppid=20539:pid= 5051:433e8940   ENTER SQLDriverConnectW
    HDBC                0x10c19e80
    HWND                0x00000000
    WCHAR 0xb1e29098 [4294967293] "******"*
    SWORD                       -3
    WCHAR 0xb1e29098*
    SWORD                        6
    SWORD 0x433dcb3e*
    UWORD                        0 <SQL_DRIVER_NOPROMPT>
    I can connect Mysql via isql on linux.
    Odbc.ini config:
    *[ODBC Data Sources]*
    mysqlDb = libmyodbc5.so
    *[mysqlDb]*
    Driver = /home/mysql_connector/lib/libmyodbc5.so
    Description = MySql
    Server =  <IP>
    Port = 3306
    User = <user>
    Password = <password>
    Database = <database>
    user.sh config:
    LD_LIBRARY_PATH_64=$MYSQL_DRIVER_HOME/lib:$LD_LIBRARY_PATH_64
    export LD_LIBRARY_PATH_64
    Could you please help me for this issue?
    Thanks a lot.
    Edited by: 930841 on 2012-4-28 上午1:32
    Edited by: 930841 on 2012-4-28 上午1:34

    Hi,
    1.) Make sure firewall open for that server.
    2) Try to enable TCP/IP via MYSQL configuration manager.
    3) then try to connect it.
    Thanks
    Deva

  • Jdbc-odbc java error using SQL adapter in o9iASWireless

    I've used the SQL adapter in the previous releases of wireless without any problem. Most of the time I would use it for all the wireless PLSQL applications in the Oracle database and it works very OK.
    I have also used it to connect with a SQLserver database to try out some queries. In this case I would use the standard JDBC/ODBC bridge driver from SUN.
    In release 2.0 I can't connect with this SQL Server database anymore.
    I've added a system DSN to the ODBC configuration of the Windows 2000 server. This will give access to a internal SQL server database via TCP. A password username is required.
    When I try to add a SQLservice in the service designer using the SQL adapter I will use the following parameters:
    JDBC connect string: JDBC:ODBC:<DSNNAME>
    JDBC driver: sun.jdbc.odbc.JdbcOdbcDriver
    un: <username>
    pw: password>
    Query (without ';'): select count(*) from <tablename>
    Minimum number of Database connections in the pool 5
    Maximum number of Database connections in the pool 100
    Increment size for the connection pool 1
    Idle Timeout (in minutes) 30
    Now I get the following error:
    2/8/03 2:27:59 PM ERROR : [ApplicationServerThread] webtool.common.PtgErrorLog.outputError(PtgErrorLog.java:28)
    oracle.cabo.servlet.event.PageEventException: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection,page=Page[name=designer/MasterServiceInitCreate],event=PageEvent[name=goto,source=wizardNav,fromPage=designer/MasterServiceInitCreate,JDBC_DRIVER=sun.jdbc.odbc.JdbcOdbcDriver,JDBC_CONNECT_STRING=jdbc:odbc:<DSNNAME>,CONNPOOL_INC=1,CONNPOOL_MIN=5,CONNPOOL_IDLETIMEOUT=30,USERNAME=<USERNAME>,value=4,SQLTYPE=QUERY,CONNPOOL_MAX=100,STATEMENT=select count(*) from bedrijven,PASSWORD=<PASSWORD>],rootCause=oracle.panama.adapter.AdapterException: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection
    at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
    at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
    at oracle.panama.webtool.common.PtgPageBroker.handleRequest(PtgPageBroker.java:152)
    at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
    at oracle.cabo.servlet.BajaServlet.doGet(Unknown Source)
    at oracle.cabo.servlet.BajaServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:633)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:235)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:695)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:248)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    I got the error 'java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection' in my log and tried to find out the meaning of this error at java.sun.com. It's stil not clear what exactly causes the error but it looks like a data formatting error.
    java.lang.ClassCastException
    (Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:
    Object x = new Integer(0);
    System.out.println((String)x); )
    Is it just a data formatting problem or has it something to do with the JDBC/ODBC driver version of the JDK from the appliction server release 2.0.
    I remember that I was always able to connect to the SQL server database with previous releases also with a count query. I've also used JDK 1.3.1 with o9iAS release 1.0.2.1.
    Any suggestions for a solution?
    Thanks in advance for your help.

    try this link:
    http://community.eapps.com/showthread.php?p=8

  • Ms ODBC driver error -- How to solve

    when I run a java code that has JDBC-ODBC link sometimes is sucessful but sometimes failed. Please give some advise!!!! Thanks
    error msg :
    SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
    source code :
    import java.sql.*;
    import java.util.*;
         public class CreateCustomer {
         public static void main(String args[]) {
              String url = "jdbc:odbc:rd";
         Connection con;
         String createString;
         createString = "create table CUSTOMER " +
         "(CUST_CODE VARCHAR(10), " +
                   "CUST_NAME VARCHAR(40), " +
                   "CUST_ADD VARCHAR(40))";
              Statement stmt;
         try {
              Class driverClass = Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    DriverManager.registerDriver((Driver)driverClass.newInstance());
              catch (Exception t) {
                        t.printStackTrace(System.out);
         try {
         con = DriverManager.getConnection(url, info);
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
              catch(SQLException ex)
         {  System.err.println("SQLException: " + ex.getMessage());
    }

    DriverManager.registerDriver((Driver)driverClass.newInstance());Have you tried it without this line?
    Kind regards,
      Levi

Maybe you are looking for