DRIVER ODBC - ACCESS ERROR "WRITE CONFLICT" on numeric format

Hello
We have an Oracle (Oracle 10g) table with a NUMBER(15,2) column
We try to update it with Access 97 (we use the oracle odbc driver 10.2.0.1) and for some records it works, and for other we have the "write conflict" error.
See the example below :
SQL> desc test_number
Name Null? Type
CLE_X NOT NULL VARCHAR2(5)
NUM_01 NUMBER(15,2)
TXT_COMMENT VARCHAR2(30)
SQL>
insert into test_number values ('VAL1', 123.45, 'Ligne OK');
insert into test_number values ('VAL2', 3456.78, 'Ligne OK');
insert into test_number values ('VAL3', 1345.37, 'Ligne NOT OK');
insert into test_number values ('VAL4', 1345.38, 'Ligne OK');
commit;
=> The update with Access does not work with the 3rd record (1345.37) but there is no issue with the other records.
Could you please help ? Is it due to the driver ?
Remark : the problem does not appear with the Microsoft odbc driver.
Thanks

I don't know the internals of ODBC, but I'm having this problem only with the Microsoft driver. I neither had it with PostgreSQL, SQL Anywhere or FreeTDS.
The unixODBC documentation is not very well maintained or consistent. Once it's written that data sources are read from ODBCINI + /.odbc.ini, at another part it says ODBCINI itself must by a full path to a file. http://www.unixodbc.org/internals.html doesn't
give much more details. And actually, having a full path in ODBCINI does work (as soon as this file is writable), whereas specifying only the directory does not.
It seems drivers are doing part of the job on its own and therefor they behave differently?

Similar Messages

  • CR10 viewer : Error ODBC Access on Windows Vista with multi-JOIN

    Post Author: Stephane
    CA Forum: Data Connectivity and SQL
    Hi all,
    I've got an error using a report in CR10 viewer on Windows Vista + Access 2000 :
    "Echec de l'ouverture d'un jeu de lignes. Détails : 4200:[Microsoft][Pilote ODBC Microsoft Access] Erreur de syntaxe dans la clause FROM."
    wich can be translate :
    "4200:[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause."
    This error only appear on Vista + Access, not on Vista + SQL and not on XP + Access.
    The SQL query of my report (see details below) contains lots of INNER JOIN and 2 LEFT OUTER JOIN. If I replace those 2 LEFT OUTER JOIN by 2 INNER JOIN, the reports displays (but is wrong).
    Somebody knows this problem?
    Thanks in advance for your help.
    Stephane.
    The SQL query below :
    SELECT    TblDataCurrentValue.`ValDtaId`, TblDataCurrentValue.`ValIdShape`, TblDataCurrentValue.`ValOk`, TblDataCurrentValue.`ValMain`, TblDataCurrentValue.`ValIndex`, TblDataCurrentValue.`ValValue`, TblDataCurrentValue.`ValValueId`,    TblDataLinks.`LnkDtaIdPrimary`,    TblDataValues.`ItmValue`, TblDataValues.`ItmColor`,    TblData.`DtaLabel`,    tblGraphs.`GId`, tblGraphs.`GName`, tblGraphs.`GRef`,    TblShapesGraph.`ShTextShape`FROM    ((((`TblDataCurrentValue` TblDataCurrentValue LEFT OUTER JOIN `TblDataValues` TblDataValues ON        TblDataCurrentValue.`ValValueId` = TblDataValues.`ItmId` AND    TblDataCurrentValue.`ValDtaId` = TblDataValues.`ItmDtaId`)     INNER JOIN `TblData` TblData ON        TblDataCurrentValue.`ValDtaId` = TblData.`DtaId`)     INNER JOIN `tblGraphs` tblGraphs ON        TblDataCurrentValue.`ValIdGraph` = tblGraphs.`GId`)     INNER JOIN `TblShapesGraph` TblShapesGraph ON        TblDataCurrentValue.`ValIdShape` = TblShapesGraph.`ShIdShape`)     LEFT OUTER JOIN `TblDataLinks` TblDataLinks ON        TblDataCurrentValue.`ValDtaId` = TblDataLinks.`LnkDtaId`WHERE    TblDataCurrentValue.`ValOk` <> 0ORDER BY    tblGraphs.`GId` ASC,    TblDataCurrentValue.`ValIdShape` ASC

    Moving back to the 10_2 instant client works. Not certain why there is an issue with the 11_2 client.

  • LR 5.5 upgrade. I only get the the 32 bit set up and an error when the 64 bit set up should be created. It says not enough disk space and no access to write. The disk space is ok and the 32 bit file was indeed created.

    LR 5.5 upgrade. I only get the the 32 bit set up and an error when the 64 bit set up should be created. It says not enough disk space and no access to write. The disk space is okay and the 32 bit file was indeed created. I have Windows 7 Home edition.

    Hi Rob, Thanks for your input. The temp location is on the C drive with 228 GB free space. My other drives have 123 GB and 204 GB of free space. I can see how the 32 bit set up is perfectly extracted when it stops when coming to the 64 bit set up. I have done the exercise several times and also made new downloads. I am using Norton 360 and Malwarebytes anti-malware but the dowload from Adobe should be trusted.

  • After Upgrade OBI 10g to 11g:Odbc driver returned an error - SQLExecDirectW

    Hi all,
    for an OBI upgrade from 10g to 11g I used a RPD and Webcatalog based on a remote machine other than my local machine. Firstable I am making the tests on a Linux Virtual machine, which uses the Sample Lite version from Oracle.
    I made the following steps:
    1. I upgraded the RPD and Webcatalog. It worked without any errors.
    2. I set the static variable BI_EE_HOME via Administration Tool to the path in the Linux machine.
    --> Here I am not sure if the set path is correct. It begins with: \bi\ ...\instances\...\coreapplication_obis1 (... : I can't mention here the whole path name).
    --> When the OBI Server is installed in Windows, the mentioned static variable points to something like 'C:\<install folder>\...\coreapplication_obis1'
    --> Question: is the begin of my set path correct?. I set that pointing to the Linux OBI Server, because the OBI Server is installed on Linux.
    Problem:
    After login as the user in RPD: Administrator/<Password for my upgraded RPD> I can see the links in the Catalog and the Dashboards links. But I can not see any values, any Reports when going through the links.
    For example when trying to see a Dashboard with date 12.02.2011it happens:
    Odbc driver returned an error (SQLExecDirectW).
    Status: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] general error.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 43119] Query Failed:
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database. (HY000)
    SQL Issued: SELECT "Dimension_-_My Dimension"."MyDimension" saw_0 FROM "Accounting (ACC)" WHERE "Dimension_-_My Dimension"."MyDimension" LIKE 'J%' ORDER BY saw_0
    I think its not retrieving the data from the remote database, because I don't have the data of the remote database in my local. I think the OBI Server still is pointing to the local virtual machine Oracle database.
    Can anybody tell me what happens here and how can I solve this problem?.
    I would appreciate any help....

    Hi gerardnico,
    I've tried many things and did as in your articles, but I don't have success with that.
    These are the things I did:
    1. I searched for the file tnsnames.ora in my Linux virtual machine. I could find it in many paths:
    /.../Oracle_BI1/network/admin/samples/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/hs/admin/tnsnames.ora.sample
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/samples/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/temp/tnsnames.ora
    /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin
    in the last path I found the listener.ora as well.
    2. I took the tnsnames.ora from the last path, because the ORACLE_HOME points to /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    3. I edited the tnsnames.ora this way:
    # tnsnames.ora Network Configuration File:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host_of_the_remote_machine)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = database_name_of_the_remote_machine)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = database_SID_of_the_remote_machine)
    (PRESENTATION = RO)
    4. I made a backup of the tnsnames.ora in path /.../Oracle_BI1/network/admin/samples/tnsnames.ora
    and copied the tnsnames.ora from /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin to the Oracle_BI1 path
    5. I set the TNS_ADMIN to /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin
    6. I restarted the BI Server
    No success in what I did. The error is still there.
    7. I've tried also: sqlplus database_user_remote_machine/database_password_remote_machine@database_SID_remote_machine
    I didn't get the connection:
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 16 04:36:10 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name: database_user_remote_machine
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    What am I doing wrong here?. I am still thinking that I need the import of the database.
    Additional SID=Service-Name=Database-name in the remote machine.

  • OBIEE: Odbc driver returned an error

    Hello All,
    While creating an answers on Oracle BI Answers, we are encountering the following error:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC I2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 29275, message: ORA-29275: partial multibyte character at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)
    You can find the screenshot of the error:
    http://dl.dropbox.com/u/4734785/Image.jpg
    Thanks for your help,
    Vikram

    You have a conversion problem with your character set between the database and OBIEE.
    You have to set your NSL_LANG as you can see in this thread:
    ORA-29275: partial multibyte character
    To do this, you can do it in your connexion pool with an alter command. Check here for an image example:
    http://gerardnico.com/wiki/_detail/dat/obiee/presentation_service/obiee_connexion_alter_nls_date_format.jpg?id=dat%3Aobiee%3Acast_as_date
    Cheers
    Nico

  • MBAM 2.5 - cannot recover access to a drive (KeyRecoveryPage.aspx) error

    In my MBAM 2.5  environment (2 Servers installation) there is an issue and was wondering if you could help me. Namely when an admin, who is a member of the MBAM Advanced Helpdesk Users access group, tries
    to get a drive recovery Keys vie MBAM Portal website by entering only the mandatory fields (Key ID and Reason for Drive Unlock) the error message "An error has occurred"pops up.
    In the Application log are the following errors written:
    Log Name:      Application
    Source:        Microsoft BitLocker Administration and Monitoring Console
    Date:          19.01.2015 14:19:55
    Event ID:      0
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      SrvIISxxxxxx.infoserve.company.com
    Description:
    Fehler in Application_Error-Ereignis
    Fehler in:
    https://Srvmbamxxxxx.emea.company.com/HelpDesk/KeyRecoveryPage.aspx
    Fehlermeldung: Access is denied.
    Log Name:      Application
    Source:        ASP.NET 4.0.30319.0
    Date:          19.01.2015 14:19:55
    Event ID:      1309
    Task Category: Web Event
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      SrvIISxxxxxx.infoserve.company.com
    Description:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Any help would be greatly appreciated.
    Thanks

    You need to be member of the either Advanced Helpdesk group or Helpdesk group. It is not required to be the member of both the groups because both groups has different access to MBAM services  -->Make me correct if I am wrong :)
    Rather in MBAM 2.5, you need to be a member of the MBAM Advanced Helpdesk group and
    MBAM Report Users groups. As far as I am concerned, Dekac is not able to access information from the database. Dekac could you please confirm that you can access the reports from the MBAM console with the same user credentials.
    Also could you please post the screenshot of the pop-up.
    Gaurav Ranjan

  • What do I need to change.  I am trying to download "weather bug" to my macbook air osx.  I keep getting a third party access error.  I had it on before I tried to get access to my usb drive downloading and burning  video files.  I was in a mess then- and

    I want to download WEATHERBUG to my apple air.  Keep getting a 3rd party access error message.  Can you help?

    What is "Weatherbug" and where did you get it?
    What is the exact, complete text of the error message, and when do you see it?

  • 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

  • Oracle BI Answers Accessing Error

    Hi while accessing to answers from oracle SH schema... Iam getting the error.. I can access with colums "Calendar Month Desc", "calendar Month Name", "Prod Category", "Amount Sold(000)" ... its fine... But when adding another column "Amount Sold(000) current month".. Iam getting the error..
    The Error is
    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: 17001] Oracle Error code: 928, message: ORA-00928: missing SELECT keyword at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    SQL Issued: SELECT Calendar."Calendar Month Desc" saw_0, Calendar."Calendar Month Name" saw_1, Products."Prod Category" saw_2, "Sales Facts"."Amount Sold (000)" saw_3, "Sales Facts Current Month"."Amount Sold (000) Current Month" saw_4, AGGREGATE(saw_3 BY saw_0, saw_2) FROM SH WHERE Calendar."Calendar Month Id" between VALUEOF(maxMonthID)-11 and valueof(maxMonthID) ORDER BY saw_0, saw_1, saw_2
    Can you analyze where Iam doing wrong..?
    Thanks and Regards,
    Sri-Oracle.

    +++Administrator:2c0000:2c0013:----2011/12/06 16:12:23
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report';SELECT Calendar."Calendar Month Desc" saw_0, Calendar."Calendar Month Name" saw_1, Products."Prod Category" saw_2, "Sales Facts"."Amount Sold (000)" saw_3, "Sales Facts Current Month"."Amount Sold (000) Current Month" saw_4, AGGREGATE(saw_3 BY saw_0, saw_2) FROM SH WHERE Calendar."Calendar Month Id" between VALUEOF(maxMonthID)-11 and valueof(maxMonthID) ORDER BY saw_0, saw_4 DESC, saw_1, saw_2
    +++Administrator:2c0000:2c0013:----2011/12/06 16:12:23
    -------------------- General Query Info:
    Repository: Star, Subject Area: SH, Presentation: SH
    +++Administrator:2c0000:2c0013:----2011/12/06 16:12:23
    -------------------- Sending query to database named orcl SH (id: <<26977>>):
    select sum(T245.AMOUNT_SOLD) as c1,
    T268.CALENDAR_MONTH_DESC as c2,
    T268.CALENDAR_MONTH_NAME as c3,
    T210.PROD_CATEGORY as c4
    from
    SH.TIMES T268,
    SH.PRODUCTS T210,
    SH.SALES T245
    where ( T210.PROD_ID = T245.PROD_ID and T245.TIME_ID = T268.TIME_ID and T268.CALENDAR_MONTH_ID between 1719.0 - 11 and 1719.0 )
    group by T210.PROD_CATEGORY, T268.CALENDAR_MONTH_DESC, T268.CALENDAR_MONTH_NAME
    order by c4, c2
    +++Administrator:2c0000:2c0013:----2011/12/06 16:12:23
    -------------------- Sending query to database named orcl SH (id: <<26995>>):
    select sum(T3836.AMOUNT_SOLD) as c1,
    T2464.CALENDAR_MONTH_DESC as c2,
    T2464.CALENDAR_MONTH_NAME as c3,
    T210.PROD_CATEGORY as c4
    from
    (SELECT DISTINCT
    CALENDAR_MONTH_NUMBER
    ,CALENDAR_MONTH_DESC
    ,CALENDAR_MONTH_ID
    ,DAYS_IN_CAL_MONTH
    ,END_OF_CAL_MONTH
    ,CALENDAR_MONTH_NAME
    ,CALENDAR_QUARTER_DESC
    ,CALENDAR_QUARTER_ID
    ,DAYS_IN_CAL_QUARTER
    ,END_OF_CAL_QUARTER
    ,CALENDAR_QUARTER_NUMBER
    ,CALENDAR_YEAR
    ,CALENDAR_YEAR_ID
    ,DAYS_IN_CAL_YEAR
    ,END_OF_CAL_YEAR
    FROM TIMES) T2464 full outer join (
    SH.PRODUCTS T210 inner join SH.SALES T3836 /* SALES CurrentMonth */ On T210.PROD_ID = T3836.PROD_ID) inner join SH.TIMES T3936 /* TIMES Current Month */ On T3836.TIME_ID = T3936.TIME_ID and T3936.CALENDAR_MONTH_ID = 1719.0) On 1 = 1
    where ( T3936.CALENDAR_MONTH_ID = 1719.0 and T2464.CALENDAR_MONTH_ID between 1719.0 - 11 and 1719.0 )
    group by T210.PROD_CATEGORY, T2464.CALENDAR_MONTH_DESC, T2464.CALENDAR_MONTH_NAME
    order by c4, c2
    +++Administrator:2c0000:2c0013:----2011/12/06 16:12:24
    -------------------- Query Status: Query Failed: [nQSError: 17001] Oracle Error code: 928, message: ORA-00928: missing SELECT keyword
    at OCI call OCIStmtExecute.
    [nQSError: 17010] SQL statement preparation failed.

  • SQL Server 2000 Driver for JDBC - Error establishing sockets

    Hi there
    I am using Microsoft SQL Server 2000 Driver for JDBC to connect to SQL Sever 2000. It is just a test application to see if it would connect to the datacase successfully. But I got the following errors. I already set up the classpath and installed all SQL Server 2000 Driver for JDBC sp 3. Dont know why it still failed...can anyone help me out of this? Thanks.
    When i am using simple JDBC-ODBC bridge Driver it's working fine.
    For this Server Pack3 , i have checked every thing like--
    TCP / IP Poart is Enable.
    I am working in client machine, my MSSQLServer 2000 Placed in server Machine.
    when i am giving Telnet ServerIP 1433 it's giving following response.
    connecting to ServerIP ....... could not open connection to the host , on port 1433:connection Failed
    My Sample Code is :--
    String user="sa";
    String password="imcindia";
    Connection con1 = null;
    CallableStatement cstmt = null;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    con1=DriverManager.getConnection("jdbc:microsoft:sqlserver://ServerName:1433;DatabaseName=dmo1o2d",user,password);
    Statement st=con1.createStatement();
    st.execute("use dm0102d");
    st.execute("setuser 'dm01012'");
    cstmt = con1.prepareCall("{?=Call dms_ex_create_folder('ABC','18753','NB21','u')}");
    cstmt.execute();
    Here are Error Code :
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection refused: connect
         at java.sql.DriverManager.getConnection(Unknown Source)
         at TestConnection1.main(TestConnection1.java:24)
    one can help me to over come this problm,
    Thanks in advance.
    venkat

    hey i also have this problem i have been looking for solution for this problem for along time i tried every possible solution i tried every service pack for the SQL but it didn't connect to the port!!!
    it's a network problem ur java code is correct dont worry about it.
    finally i had to install MySQL and it's work fine now but if u insist on usning SQL u have to use the JDBC-ODBC Bridge it will work by :
    first add data source database , follow these steps
    1- go to Administrative tools
    2-Data Sources(ODBC)
    3-System DNS tab and add then choose SQL SERVER the last option then finish
    4-write the name; Note: this name is the one that u will write in ur URL for example if u write Hello the URL will be "jdbc:odbc:Hello"
    5- choose the server, its recommended to write "." or (local)
    6-change the database to its an important step to choose the database that u want to use, choose northwind if u want to use it
    finish
    second
    adding this code:
    import java.sql.*;
    class JdbcTest1 { 
    public static void main (String[] args) { 
    try { 
    // Step 1: Load the JDBC driver.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    // Step 2: Establish the connection to the database.
    String url = "jdbc:odbc:Hello";
    Connection conn = DriverManager.getConnection(url,"user1","password");
    } catch (Exception e) { 
    System.err.println("Got an exception! ");
    System.err.println(e.getMessage());
    it will work without any problems

  • MS Access error

    Hi, I have a MS Access database which i am connecting through by -
    public gui() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    String url = "jdbc:odbc:data";
    String username = "name";
    String password = "password";
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    connection = DriverManager.getConnection(url, username, password);
    catch (ClassNotFoundException cnfex) {
    System.err.println("Failed to load JDBC/ODBC driver");
    catch (SQLException sqlex) {
    //System.err.println("Unable to connect");
         sqlex.printStackTrace();
    However, when the program tries to connect to the dataase, i get the following error -
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
    It runs on certain machines but not on others. Do i need to specify a classpath or something?? And if so, where?? THanks!

    I did set up the DSN. Anyway, I tried your suggestion
    and got the following error -
    java.sql.SQLException: [Microsoft][ODBC Microsoft
    Access Driver]General error Un
    able to open registry key 'Temporary (volatile) Jet
    DSN for process 0x424 Thread
    0x878 DBC 0x18366b1c Jet'.
    Any ideas??No, none. When you print the exception, print out the SQL status and error code (there are methods on the java.sql.SQLException class to do it). That might give you more info.
    what does the DBQ stand for? Gotta admit that I don't know. Data Base Something is my guess - could the Q be for Query? Irrelevant.
    And is this exactly what the url should be? The URL that I gave was meant to be an example, nothing more. The path that I gave should have made it clear that you needed to substitute the value for your situation.
    My database is stored in the K
    drive, so I have set the url to be -
    String url = "jdbc:odbc:DRIVER={Microsoft Access
    Driver (*.mdb)};DBQ=k:\\data.mdb";
    Is this correct?
    If that's where your database is, then that's the right path. That should work if you've mapped the drive.
    MOD

  • Microsft odbc unknown error :-  request help

    hello.
    i am getting the following error and am unable to know the reason why. i have even configured system dsn i the control panel and still get the error below.
    ==========================================
    the code is as follows
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features)
    window.open(theURL,winName,features);
    //-->
    </script>
    <%
    String userName = request.getParameter ("userName");
    String password = request.getParameter ("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    ServletContext context = getServletContext ();
    String appDirRoot = context.getRealPath ("/");
    String connString = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=" + appDirRoot + "winerysystem.mdb";
    Connection connUser = DriverManager.getConnection(connString);
    Statement stmtUser = connUser.createStatement();
    String sqlUser = "SELECT * FROM employee WHERE employee.userName = '"+userName+"' AND employee.password = '"+password+"' ";
    ResultSet rsUser = stmtUser.executeQuery (sqlUser);     
    if (rsUser.next ())
    session.setAttribute ("username", userName);
    %>
    <html>
    <body onLoad="MM_openBrWindow('index.jsp','Menu','width=800,height=600,scrollbars=yes,resizable=yes')"></body>
    </html>
    <%
    else
    response.sendRedirect("login.jsp?message=incorrect");
    connUser.close ();
    %>
    =====================================================
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:82)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:193)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:54)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/4.1.31

    hi ramesh
    thanks a million for the help. i rewrote the code slightly as follows and when i run the program it gives the following message. i request help on what the message is trying to say. is the microsft database access file corrupt ??
    ===============================================
    mesaage when the class file is run
    loading Driver
    unable to connectjava.sql.SQLException: No data found
    ================================================== =
    //sample code
    import java.sql.*;
    class conntest
    public static void main(String args[]) throws SQLException
    ResultSet rs = null;
    Statement st;
    Connection con = null;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("loading Driver");
    con = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; winerysystem.mdb");
    System.out.println("Establishing connection");
    catch(ClassNotFoundException e){
    System.out.println("unable to load"+ e);
    catch(SQLException se){
    System.out.println("unable to connect" +se);
    }

  • ODBC Connection Error

    Hi,
    I try to connect the Access Database in Dreamweaver. So I put
    the DB at ..\Tomcat 5.5\webapps\ROOT and add the odbc driver
    (Microsoft Access Driver) at ODBC data source administrator (both
    system DSN and user DSN). And then I setup the connection in the
    "Databases" box in dreamweaver and test ok. However, when I preview
    the jsp page (which also placed in ..\Tomcat 5.5\webapps\ROOT), an
    error occurs and display "Data Source Not Found". What is the
    possible cause for it?
    The following are the error shown in the browser.
    <<exception >>
    org.apache.jasper.JasperException: Exception in JSP:
    /TMP6596j18tj4.jsp:9
    6: <BODY>
    7: <%
    8: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    9: Connection con =
    DriverManager.getConnection("jdbc:odbc:StudentDB,root,1234");
    10: Statement stmt = con.createStatement();
    11: ResultSet rs;
    12: rs = stmt.executeQuery("SELECT * FROM Stu");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504 )
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.ServletException: [Microsoft][ODBC Driver
    Manager] Data source name not found and no default driver specified
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
    org.apache.jsp.TMP6596j18tj4_jsp._jspService(TMP6596j18tj4_jsp.java:105)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data
    source name not found and no default driver specified
    sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
    sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
    sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
    java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.DriverManager.getConnection(Unknown Source)
    org.apache.jsp.TMP6596j18tj4_jsp._jspService(TMP6596j18tj4_jsp.java:51)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Thanks in advance!!
    Best regards,
    Terry

    Is that the "full" Client, not Instant Client?
    Anyway, possibly you have a 64/32 bit mismatch (based on the system error 193, bad exe format). Do you have a 64-bit version of Office? If that is the case, is the Oracle Client and odbc driver installed also 64-bit?

  • Aironet client utility load new firmware 59% Error Writting to Flash Memory

    always receive this error
    Error Writting to Flash Memory in 59%
    Thursday August 07 2008 17:34:30
    Start test
    `The radio's registry keys are OK.
    C:\WINDOWS\system32\drivers\PCX504.SYS File Size: 124416
    The radio driver has been installed.
    TEST 2:
    The second step is to check the radio insertion.
    The radio has been inserted.
    TEST 3:
    The third step is to check if the radio is turned on.
    Your radio is turned on.
    Current Active Profile Name: Unknown Vendor
    Auto Profile Selection is not enabled.
    TEST 4:
    The fourth step is to check your client adapter's association to an access point.
    ---------->Association Status: No receive packets
    Checking driver/firmware capabilities
    PROBLEM: Firmware version is too old.
    POSSIBLE REPAIR: Download new firmware to the radio
    or replace the radio.
    any help :(

    please any help?

  • ODBC access to an Oracle DB running on Windows Server 64 bit?

    I'm being told by a company that there is no way to connect via ODBC from my Mac to an Oracle database hosted on a Windows 64 bit server. Does anyone know whether that is true, and if not, what tool or driver one could use to make the connection?
    Thanks,
    ~Andrew

    Fabio D'Alfonso wrote:
    Hi,
    I was setting up VMware vCenter 4.1 (probably the only well known and largely used product with this lethal mix) and needed to setup an ODBC access to Oracle on the 32 bit side of Windows to setup the Update Manager server component, which is still a 32 bit application)
    The problem with Oracle configuration is that in no way I found a 32 bit ODBC registered driver after the setup (of the 32 bit client and the 64 database server). I tried some third party driver for oracle (e.g. easysoft).They registered in the 32 bit ODBC manager but they never got a successful connection.
    Also if this vCenter requirement is questionable (more questionable considering that the setup of this 32 component is not allowed on a 32 separate OS, not because it is separate but because is a 32 bit OS) I would get it working.
    Could suggest a way to get this working?
    Thanks
    Fabio D'AlfonsoWhen you install the Oracle client software on Windows (which is necessary to support ODBC, as the Oracle ODBC driver sits on top of the native client software) the ODBC driver is NOT installed by default. You have to go back and do a "custom" install and select the "Windows components".

Maybe you are looking for

  • SMARTFORM GUI_DOWNLOAD PDF error opening Adobe document

    When attempting to open Adobe document from Smartform converted to pdf using CONVERT_OTF and GUI_DOWNLOAD I get error.  The abap completed each step with no errors and oddly the final pdf file created to PC was either 10 or 15 Mb even.  The 15Mb vers

  • When does LabVIEW actually close object references?

    I wanted to find out how LabVIEW manages references to objects when a reference is distributed among more than one property node located within different structures. So I created a little test where I passed a reference into a for loop, modified the

  • Apex is not opening in Browser

    Dear All, I am new to Oracle Apex. I am trying to install Oracle Apex. I need some valuable guidance from you as I got stuck in a weird situation. I installed Apex and the listner. Then I configured the listner and the listner is running. But once wh

  • Create and Save a Photo Colllage from Light Table

    Hi Everyone, I want to create a montage of several photos that I can save as one .JPG or similar, then take and have printed as a large photo collage. I have had limited success using Apertures Light Table feature, however cannot find a way to save t

  • Cluster heartbeat message in Coherence 3.6

    Hi, We recently upgraded to Coherence 3.6 in our production environment. Occasionally in the Coherence cluster, I see the following happening. 2010-08-18 18:27:48.953/28.828 Oracle Coherence GE 3.6.0.0 <Error> (thread=Cluster, member=13): Received cl