OpenOffice and Rdb ODBC

I have the Oracle Rdb Driver v3.0.2 installed on a Windows client and a User DSN connection established in the ODBC Data Source Administrator control panel applet. I can query successfully with clients like MSQuery, Excel (with the SQLREQUEST() array function), and my terminal emulator (SmarTerm 9) which comes with built-in SQL functions. However, with OpenOffice 1.0 and 1.0.1, which comes with a query builder similar to MSQuery, I cannot get a proper list of available tables once the connection is made to the remote database.
There are 3 log files on the client which offer some clues, but it is not clear (to me) whether the Oracle driver is faulty, or it's OpenOffice that's the problem. Buried in two of the logs are SELECT statements which appear to pass invalid SQL syntax to the database, causing it to return no table names.
The first log is generated by the ODBC Data Source Administrator itself when Tracing is enabled. It's name is SQL.LOG by default. The other two logs are CLIENT.LOG and RDBODBC.LOG, generated by SQL/Services and the driver, respectively. The first, SQL.LOG, contains the following lines at the point where OpenOffice is requesting the list of tables:
scalc fff01057-fff017d7     ENTER SQLTablesW
          HSTMT 0314028C
          WCHAR * 0x00000000
          SWORD 0
          WCHAR * 0x00000000
          SWORD 0
          WCHAR * 0x0323FFE8 [      -3] "%"
          SWORD -3
          WCHAR * 0x0314067C [      -3] "VIEW,TA"
          SWORD -3
scalc fff01057-fff017d7     EXIT SQLTablesW with return code 0 (SQL_SUCCESS)
          HSTMT 0314028C
          WCHAR * 0x00000000
          SWORD 0
          WCHAR * 0x00000000
          SWORD 0
          WCHAR * 0x0323FFE8 [      -3] "%"
          SWORD -3
          WCHAR * 0x0314067C [      -3] "VIEW,TA"
          SWORD -3
The second log, produced by SQL/Services on the client, shows that the '%' wildcard has been changed to '% '. Here's the SQLTablesW call in that log:
ROUTINE LEVEL LOG at 11:19:43 on 07-Sep-2002
----SQLSRV_PREPARE
--------SQL STATEMENT
------------len: 233, value: SELECT '',rdb$flags,rdb$relation_name,rdb$system_fl
------------ag,'' FROM rdb$relations WHERE rdb$system_flag=0 AND rdb$relation_na
------------me LIKE '% ' ESCAPE '&' ORDER BY rdb$sy
------------stem_flag DESC,rdb$flags ASC,rdb$relation_name
PROTOCOL LEVEL LOG CLIENT: write (logonly) at 11:19:43 on 07-Sep-2002
----PACKET LENGTH: 245
PROTOCOL LEVEL LOG CLIENT: write (logonly) at 11:19:43 on 07-Sep-2002
----PACKET ID: 3, PACKET SEQUENCE: 0
--------SQLSRV_PREPARE
------------SQL STATEMENT
----------------SQLSRV_COUNTED_BYTES, len: 233
--------------------len: 233, value: SELECT '',rdb$flags,rdb$relation_name,rdb$s
--------------------ystem_flag,'' FROM rdb$relations WHERE rdb$system_flag=0 AND
-------------------- rdb$relation_name LIKE '% ' ES
--------------------CAPE '&' ORDER BY rdb$system_flag DESC,rdb$flags ASC,rdb$rel
--------------------ation_name
--------END OF MESSAGE
Finally, the RDBODBC.LOG driver log shows a similar change to the LIKE clause of the SELECT statement:
.0X00700138: SELECT '',rdb$flags,rdb$relation_name,rdb$system_flag,'' F
.ROM rdb$relations WHERE rdb$system_flag=0 AND rdb$relation_name LIKE '
.% ' ESCAPE '&' ORDER BY rdb$system_flag D
.ESC,rdb$flags ASC,rdb$relation_name
I'm no ODBC developer, but perhaps someone can suggest why the spaces are being added?
Thanks,
Alder

Unfortunately RDB and Oracle are two completely different animals, so I'm really out of my element.
My wild, uninformed, shot-in-the-dark guess is that this has something to do with Unicode. When Unicode data is encoded as UCS-2 (Windows default encoding), ASCII characters are stored in two bytes, [ACSII value][00]. The ODBC Driver Manager is supposed to know whether a driver supports Unicode and to translate Unicode data passed through it to ASCII if that's what the driver needs. Perhaps the translation isn't happening properly here...
If you look at the SQL.log file for the applications that work, I'm going to guess that you see the function SQLTablesA (ASCII version) being called, rather than SQLTablesW.
Justin

Similar Messages

  • RDB Odbc drivers and Visual Express 2005 !!!

    hi,
    i'm having troubles with MS Web Developper Express 2005 and RDB database ODBC driver 3102.
    When i try to declare a link to a dsn previously delared in ODBC manager (win xp sp2), i click the "test connection" then it's succesfull, but when i want to browse thru the tables within the rdb db, i receive the error : [HYC00][Oracle][ODBC] Optional feature not implemented...
    I tried to use the same dsn with MS Access and it works correctly.
    Any idea ?
    Thanks

    hi,
    i'm having troubles with MS Web Developper Express 2005 and RDB database ODBC driver 3102.
    When i try to declare a link to a dsn previously delared in ODBC manager (win xp sp2), i click the "test connection" then it's succesfull, but when i want to browse thru the tables within the rdb db, i receive the error : [HYC00][Oracle][ODBC] Optional feature not implemented...
    I tried to use the same dsn with MS Access and it works correctly.
    Any idea ?
    Thanks

  • Rdb ODBC

    I am very new to working with Oracle systems from a developer standpoint. I am currently trying to connect (using VB.NET) to a RDB database. The items I've installed from the universal installer are:
    Oracle9i Client 9.1.0.1.0
    Oracle Data Provider for .NET 9.2.0.4.01
    Oracle Provider for OLE DB 9.2.0.4.0
    Oracle ODBC Driver 9.2.0.5.4
    Oracle Objects for OLE 9.2.0.4.8
    I have MSAccess working with the RDB ODBC Driver, but cannot seem to get connected in any other way. I am working on a contract for the state, and all they have provided me with is information to use in the RDB configuration. Is there more information that I need to request to make a direct connection through the Oracle Data Provider for .NET? I understand the connection strings, and am trying to 'find' the Data Source required. I have an attach statement/server/class for the RDB connection but can't seem to decipher the Data Source from that.
    After about 6 hours of trying, I finally broke down and tried to get the RDB ODBC connection working in the application instead of fighting the .NET drivers. When I try to create a connection to the Microsoft OLEDB Provider for ODBC I can specify the Machine DSN that works in MS Access. When I 'test connection' the wizard responds that it works. But when I try to Save the Connection String I get this error message:
    The .Net Data OLE DB Provider(System.Data.OleDb) does not support the MSDASQL Provider, Microsoft OLE DB Provider for ODBC Drivers.
    I'm hoping that:
    1. Someone can tell me what I need to do to get a connection string to work for the RDB ODBC driver in VB.NET
    2. Find out if there is a way to decipher the data source from a RDB attach statement knowing the server name.
    Thanks in advance, your time and help is appreciated.
    Todd Frahm

    First, the Oracle database and the RDB database (owned by Oracle Corp), are completely separate animals. Unfortunately for you, the folks around here, myself included, are vastly more familiar with the Oracle database than with RDB, so we may not be much help.
    If you have access to Metalink, I'd start by looking at Document 225779.1 "Oracle ODBC for RDB FAQ".
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Where is Rdb ODBC v2.latest ?

    I've searched online for the latest Rdb v2.x ODBC, and all I can
    find is the download for the v3.x ODBC. I've tried the v3 ODBC,
    but my application and it don't get along. I'm currently running
    v2.10.13, and would like to get the latest (I've seen a
    reference to v2.10.18).
    Thanks.
    Gary

    Thanks for the links.
    Some of them I had already tried.
    I downloaded /installed the MDAC to the latest, 2.8.
    There was no change.
    My Oracle RDB ODBC driver was relatively recent but I decided to refresh it anyway. TaDa!
    I believe IIS and Oracle RDB SQL/Services do not quite agree about client connections. I still see executors being created on the server when I think existing one's should be free to do the execution,... but I am not completely hanging my web server, and web clients are getting some response (data).
    I'll take it. I can tune the lifetime of executors.

  • ORACLE RDB ODBC

    Hi All,
    I have a web application built using ASP.Net and communicates with a Web services which uses oracle rdb odbc driver to connect to RDB server, but after a while I started getting this error when executing simple statements like insert or update against the database:
    Data : System.Collections.ListDictionaryInternal
    Source : SQRDB3.DLL
    Message : ERROR [08S01] [Oracle][ODBC][Rdb] send() Ret -1 Err#10038 WSAENOTSOCK File descriptor not a socket
    InnerException :
    Error: System.Data.Odbc.OdbcException: ERROR [08S01] [Oracle][ODBC][Rdb] send() Ret -1 Err#10038 WSAENOTSOCK File descriptor not a socket
    at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
    at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
    at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
    at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
    Please Help Me,
    Thanks in advance..

    Hello,
    Rdb ODBC questions are easily overseen in this forum. In general we recommend to post Rdb related questions in the communities at:
    https://communities.oracle.com/portal/server.pt/community/rdb_product_family_on_openvms
    There you are getting much faster a response because that site is watched by Oracle Rdb Engineering and Support.
    In your special case: does this happen frequently, is that still a problem for you? In that case enable client logging and if the client log file contains a message like SQLSRV-E-IDLEUSERTIMEOUT then you might have just a too small idle user timeout for your SQL/Services service that you use for your ODBC connection. You can change that value easily:
    SQLSRV> ALTER SERVICE <your service> IDLE_USER_TIMEOUT <new value in seconds>;
    If that does not help then you can always log a Service Request with Oracle Support.
    Regards
    Wolfgang
    Oracle Rdb Support

  • RDB ODBC V3.0.2.0 : Sqlstate 01004 upon DB-Connect: why ?

    Hello !
    I Tried to upgrade my RDB-ODBC Driver from V 2.10.17.00 to V 3.0.2.0
    Prior to the installation I had working ODBC-Connections to 4 VMS Nodes, all of them running VMS V7.0, Oracle RDB V7.0-5. Two of these Nodes have SQLServices V7.0, two have SQLServices
    V7.1. The PC-Client is an NT4.0 Box with SP6a.
    After the installation of the V3 ODBC-Driver, I can connect to the nodes running SQLServices V7.0 but not to not to the nodes with SQLSRV 7.1. Upon __connecting__ to the latter nodes with odbctest V2.5.3.1.0, I get the following errormessages:
    "SQLSTATE: 01004
    Native Error Code:0
    Driver Message:[Microsoft][ODBC Driver manager] Die Daten wurden abgeschnitten) (=Data was truncated)"
    and subsequently:
    "SQLSTATE: 01004
    Native Error Code:0
    Driver Message:[Oracle][ODBC]String data, right truncated"
    After these messages, the Odbc-Test programme does NOT allow to execute any queries, since
    obviously the Programme did not properly connect to the server Database.
    When I Connect to the same Database with the old V2 Driver, the connect works fine.
    Could somebody please check out where this error comes from ? suggestions are welcome !
    I do not know wether this problem is due to an ODBC-Driver Error of some sort,
    or rather an Sql-Services error, a dll mismatch or dodgy Registry entries.
    Thanks in advance !
    Rudi

    First, the Oracle database and the RDB database (owned by Oracle Corp), are completely separate animals. Unfortunately for you, the folks around here, myself included, are vastly more familiar with the Oracle database than with RDB, so we may not be much help.
    If you have access to Metalink, I'd start by looking at Document 225779.1 "Oracle ODBC for RDB FAQ".
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Lotus notes and SSIS ODBC connection not working

    I have created an ODBC source.  I tried using this in SSIS workflow ODBC, when I test the connection, it crashes my Visual Studio 2010

    Hi Kathy,
    Thank you for posting in MSDN forum.
    Based on your issue, could you please tell me if you connect the
    Lotus notes and SSIS ODBC with ADO.NET like this following link.
    https://social.msdn.microsoft.com/Forums/en-US/a6c32c6b-876a-4fd5-8faa-d6498a6755c7/updatedwhere-to-post-nonadonet-datagridview-tableadapter-odbcoledb-etc-questions?forum=adodotnetdataproviders
    If possible, please share me more detailed steps about how to connect the
    Lotus notes and SSIS ODBC in the VS2010.
    In addition, could you please share me some crash error message in this VS2010 when test this connection?
    To check if this issue is related to this VS IDE, I suggest you could try to connect
    Lotus notes and SSIS ODBC on other machine and then check if you still get this issue.
    (1) If you still get this crash issue, I assume that this issue is related to this connection
    Lotus notes and SSIS ODBC.
    (2) If you did not get same error message, I suggest you could try to restart your machine and then open this VS2010 as Admin on your local machine and then connect it check this issue again.
    Please try to close the firewall software on some other progress from this Task Manager and then check this issue.
    In addition, I suggest you could try to use this process monitor tool to check which process running when you test this connect.
    https://technet.microsoft.com/en-us/library/bb896645.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What do I convert to if I only have OpenOffice and not Word?

    What do I convert my pdf files to if I only have OpenOffice and not Word?

    Hi sulezyf,
    OpenOffice and Word documents have the same extension i.e .doc
    You can convert the pdf to .doc format.

  • Apache openoffice and libreoffice

    I have seen that Oracle has given openoffice to the Apache foundation. One question I have is if the libreoffice fork still necessary. It was my understanding that Oracle prevented good development of openoffice and claim too much control. But now? What's the main reason to keep to have two versions?

    olive wrote:
    Lone_Wolf wrote:Apache Openoffice appears to target enterprise and business users, while libreoffice focuses more on individual users.
    They also use different licenses, so i doubt the 2 will merge again.
    You may be right but I can't prevent me to think that this is sad. How business users can be so different to individual users in regards of an office suite? (M$ sell basically the same office suite to both clients, apart some differences that do not justify a new product). As for the license, do we really need two projects for that? The LGPL as well as the apache license allows proprietary linking...
    I wonder if Linux distributions (and archlinux in particular) will now ship openoffice again. I thought after the fork that Libreoffice will have been just the continuation of openoffice while openoffice itself will die (recalling the Xorg fork of Xfree86). But now? We can't just say that the Apache foundation do everything wrong as we may have said with Oracle.
    The distros didn't all ship with OpenOffice before; Ubuntu and OpenSuSE both shipped with go-openoffice. Anyway, the OpenOffice brand took a pretty big hit, so I don't see any distros switching back.
    As far as licensing is concerned, Microsoft does make different versions of Office - Student, Professional, etc., targeting different segments. Feature segregation won't really apply here, so I am also not sure I buy the enterprise-consumer split either.

  • OpenOffice and Thunderbird

    Some time ago (a few months maybe), Thunderbird stopped letting me open OpenOffice document types by double clicking the attachment.
    Anyone know why this behavior changed and how to fix it? Obviously being able to open attachments by double clicking is very handy. I don't even know if it's Thunderbird's fault or Openoffice's fault at this point.
    - P

    Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com
    In article <eo8e7o$8h4$[email protected]>, [email protected] says...
    > I have recently switched from Windows to Ubuntu linux. It is simple as
    > windows. All hardware detected correctly, except my tv-tuner.
    Thanks! It looks like Ubuntu comes with most of the stuff I need
    already on the image. Since you are an Eclipse user, is it safe to
    assume that Eclipse runs ok on it as well?
    Dave
    >
    > David Kerber wrote:
    > > I'm coming from a Windows world, and am looking to set up a Linux
    > > machine for evaluation. I would need to run Eclipse, Tomcat, Firefox,
    > > Thunderbird, OpenOffice, and maybe Jajuk.
    > >
    > > What distro would you recommend for an experienced programmer/IT guy who
    > > is a Linux newbie? I played just a little bit with Redhat several years
    > > ago and got it running, but I couldn't find the apps I needed, so it
    > > never really went anywhere; they seem to be available now.
    > >
    > > It will be running on relatively wimpy hardware, if that factors into
    > > the answer.
    > >
    > > TIA!
    >
    Remove the ns_ from if replying by e-mail (but keep posts in the
    newsgroups if possible).

  • Rdb ODBC 3.3.2.4 Driver

    Hi,
    I've found the release notes for the Rdb ODBC 3.3.2.4 driver, but I can't find the download link. The only Rdb ODBC driver I can find is 3.3.2.0 which was last updated in June of 2010. Can anyone point me towards the 3.3.2.4 driver?
    Thanks,
    Sean

    Hi, the latest driver is released as a patch (19822870). The direct link is: https://support.oracle.com:443/epmos/faces/PatchSearchResults?searchdata=%3Ccontext+type%3D%22BASIC%22+search%3D%22%26lt…
    It requires an oracle support account to access it.
    Cheers,
    Cameron

  • Get the list of reports and their ODBC details

    Hi :
    We have around 20,000 objects hosted on our BOXI R2 SP3 environment. May be around 17000 of these are reports. I have a few questions >>
    1. Is their a way to get the list of all the reports and their ODBC details. I tried running the following query 'Select Top 20000 SI_ID, SI_NAME, SI_PROCESSINFO.SI_LOGON_INFO From CI_INFOOBJECTS Where SI_PROGID = 'CrystalEnterprise.Report' and SI_INSTANCE = 'False'' in the query builder. But it times out.
    2. Will running this query using the sdk affect the stability of the environment.
    3. Is there a way to spilt the query into 4-5 batches to get 3000-4000 records at a time.
    4. Can we get the min(SI_ID) and max(SI_ID), how ?
    Regards,
    Abhijit Sanas

    You can try batching on SI_ID, doing something like:
    "Select TOP 1000  SI_ID, SI_NAME, SI_PROCESSINFO.SI_LOGON_INFO From CI_INFOOBJECTS Where SI_PROGID = 'CrystalEnterprise.Report' and SI_INSTANCE = 0 and SI_ID > " + max_si_id_value + " ORDER BY SI_ID ASC"
    then update the max_si_id_value each batch.  SI_ID and SI_PROGID are indexed properties, so they help.
    Sincerely,
    Ted Ueda

  • Ora8 and Ora9 ODBC coexist

    I installed Oracle 8.1.7 first then 9.2.0, but encountered some problems while using ODBC to access remote database. I need two entries in Windows ODBC setting (using ODBC in Oracle9Home) to access two remote SID, one is working but the other isn't. My application calls the entries in Windows ODBC configuration to access DB, so the failed ODBC entry caused DB access failure.
    I really don't know where I made mistake, I can use SQL*Plus to access the two SID (supposed to mean my tnsname settings are correct) and in ODBC setting, the Test Connection is also OK. I am curious why one works but the other not. If they both don't work not suprised me much. is anyone here has ever experienced such situation please advice me, appreciation in advance

    If you have two Oracle Home's, and you have not set the TNS_ADMIN environemnt variable to point at a single tnsnames.ora file, you have two tnsnames.ora files on your machine. One tnsnames file will be used by the applications in the 8.1.7 Oracle home, the other tnsnames file will be used by the 9.2 Oracle home. I would wager that the tnsnames file in the 8.1.7 Oracle home has both of the TNS aliases, while the 9.2 Oracle home does not.
    You can either add the other alias to the 9.2 tnsnames file or you can create a TNS_ADMIN environment variable that points to a single tnsnames file.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • ODBC and RDB

    What software is needed to connect the Oracle ODBC rdb driver to a RDB database on a Alpha Open/VMS. Is it SQL/Services, SQL/Plus, or an ancient DEC product? Currently we just have the runtime version or RDG - supplied by 3rd party software vendor.

    Unfortunately RDB and Oracle are two completely different animals, so I'm really out of my element.
    My wild, uninformed, shot-in-the-dark guess is that this has something to do with Unicode. When Unicode data is encoded as UCS-2 (Windows default encoding), ASCII characters are stored in two bytes, [ACSII value][00]. The ODBC Driver Manager is supposed to know whether a driver supports Unicode and to translate Unicode data passed through it to ASCII if that's what the driver needs. Perhaps the translation isn't happening properly here...
    If you look at the SQL.log file for the applications that work, I'm going to guess that you see the function SQLTablesA (ASCII version) being called, rather than SQLTablesW.
    Justin

  • Oracle 8 and 8i ODBC drivers

    I have written a win32 client application with Visual C++ for accessing an oracle 8.0.5 server on a linux platform.I have used an ODBC connection (MFC classes CDatabase e CRecordset). In application I have used a recordset on a view for updating the view's base table. On a view I have defined an instead of update trigger. All works fine. Now I must migrating it on an oracle 8.1.7 oracle server (or on win2k or linux). End now start the problem. On 8i server, after executing the query on the view, the function SQLGetStmtOption with SQL_CONCURRENCY param return SQL_CONCUR_READ_ONLY, making the recordset read only and i don't modify the view. What's the differences between Oracle 8 and Oracle 8i ODBC driver? Why with Oracle 8i I don't modify a view?
    null

    Executed query is
    SELECT * FROM VIEW_NAME WHERE ID = value
    where ID is a primary key of the only key preserving table of the view.

Maybe you are looking for

  • Step by Step document on Guided Procedures for Benefits.......Help Needed..

    Hello Gurus, We are in process of implementing Benefits and for which we are using Guided Procedures, want to have understanding of the process can you please provide the step by step documentation and an example process that will be of great help. A

  • New Session

    hi all, I have one main report which calls another report on button click from ALV of main report. while calling this new report I am using Function module ABAP4_CALL_TRANSACTION with addition STARTING NEW TASK to open that report in a new session. t

  • Seeburger error - No matching inbound binding found

    Hi I am trying to buld a interface using Seeburger AS2 adapter. I have done all the config in XI and Seeburger level. But when customer sent the message he gets following error. HTTP/1.1 403 Forbidden^M server: SAP J2EE Engine/7.00^M content-type: te

  • Control over custom shapes

    I have been playing with this for quite some time and can't seem to get it worked out. Useing the TechTip for round buttons I can add custom shaped buttons to my panel, adding a mouse listener to the button to detect right mouse click will bring up a

  • Having troubles exporting media

    Hello everybody, I'm new to this forum and new to Premiere Pro. I'm experiencing a problem with export setting. My original video is 1008*600, recorded from my desktop with a desktop recorder. The FPR is 20. I created a project based on this video si