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

Similar Messages

  • 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

  • ODBC and XA

    Hi all.
    We are thinking about using ODBC in our tuxedo services to make easy the migration
    between one database and other of a different vendor. We also need to use XA.
    Have some of you information about using ODBC and XA, (conception, problems, ...)
    and how many DB ODBC drivers support it?
    Thx in advance.

    I suspect you're not going to be able to retrieve Spatial data via ODBC. The ODBC protocol doesn't have the capability to request an Object type, so it can't retrieve Spatial. Unfortunately, the ODBC standard doesn't provide any mechanism to reasonably ask for an object or for the ODBC driver to return one.
    Justin

  • Oracle ODBC and DAO extremely slow

    Hi
    I'm using Microsoft DAO 3.6 with an Oracle ODBC connection (version 9.2) in an VB6 application.
    Opening an updateable dynaset is extremely slow, I have measured the performance with Oracle ODBC, Microsoft Oracle ODBC and Microsoft SQL-Server ODBC as follows:
    Oracle ODBC: 1952 ms
    MS Oracle ODBC: 360 ms
    MS SQL-Server ODBC: 40 ms (connection to a MS SQL-Server)
    If I use the SQLpassthrough option the result is about 10 ms in all 3 cases, but the dynaset is readonly !
    The testing program is as follows:
    Option Explicit
    Private Declare Function timeGetTime Lib "winmm.dll" () As Long
    Private Sub Form_Load()
    Dim wsdata As DAO.Workspace
    Dim db As DAO.Database
    Dim dbconn As String
    Dim rs As DAO.Recordset
    Dim start As Long
    dbconn = "ODBC;DSN=AdhocitORA;UID=adhocit;PWD=adhocit;"
    Set wsdata = DBEngine.Workspaces(0)
    Set db = wsdata.OpenDatabase("", False, False, dbconn)
    start = timeGetTime
    Set rs = db.OpenRecordset("Select * from Afdeling", dbOpenDynaset)
    rs.MoveLast
    rs.MoveFirst
    rs.Close
    Set rs = Nothing
    MsgBox "Time " & timeGetTime - start
    End Sub
    Is there any setting in the Oracle ODBC, that need to be adjusted ??
    Erling

    Why are you doing a moveLast followed by a moveFirst? That's going to force Oracle to retrieve all the records in the recordset. If there are a lot of records, you'll probably see a benefit if you increase the prefetch in the Oracle ODBC DSN configuration.
    Justin

  • ORACLE-ODBC and ACCESS2000

    Hi,
    I am working with Oracle-ODBC-Driver 8.01.61.00 (from 28.04.2000) and Access2000 under Windows2000 in a german-version.
    Access removes the comma by decimal-types.
    In Oracle I have 5.12 but access shows me 512 !!! :-((
    Who can help me ???
    This is very, very, very urgent !!!!
    Thanks !
    Hallo,
    Ich habe Oracle-ODBC-Treiber 8.01.61.00 vom 28.4.2000 dazu Access2000 und Windows2000 auf deutsch.
    Leider entfernt Access alle Dezimaltrenner bei Zahlen mit Dezimalstellen.
    In der Oracle steht 5,12 und Access zeigt mir 512 an !!!
    Wer kann helfen ??? Es ist dringend !!!
    Danke

    Note that the original poster asked the same question a day earlier in the thread "ACCESS and ODBC and Numeric's" which has received a couple of replies.
    Justin Cave
    ODBC Development

  • ODBC and OCI not working with OBIEE 11g Client on 64 bit machine

    Hi,
    I have Installed OBIEE 11g client (Admin tool) on Windows XP Professional 64 bit machine.. I have Installed 11g database on the same machine but while importing Metadata using admin tool. getting "Connection has failed" error message... Can someone tell me whats the issue..
    ODBC and OCI works fine with OBIEE 10g Admin..

    Hi,
    Oracle_BI1\network\admin folder gets installed with full obiee 11g Installlation and I have installed only 11g client as I have OBIEE 10g already Installed on my machine..
    Installation is as follows:
    ORACLE 11g CLIENT Installation is as follows:
    C:\Program Files\Oracle Business Intelligence Enterprise Edition Plus Client
    ORACLE 10g Installation is as follows:
    C Drive:
    ORACLE BI
    ORACLE BI Data ( everything is working with this)
    latest Log Info is as follows:
    [2012-02-02T11:05:00.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: ] [tid: 24fc] [nQSError: 16001] ODBC error state: 08004 code: 12154 message: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified.
    [2012-02-02T11:05:16.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: ] [tid: 2f3c] [nQSError: 16001] ODBC error state: 08004 code: 12154 message: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified.
    [2012-02-02T11:32:53.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: ] [tid: 2f3c] [nQSError: 16001] ODBC error state: 08004 code: 12154 message: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified.

  • ODBC and CLI info !

    Hi All
    This is for my knowledge sake : can someone tell me (or clear my doubts) , With Example , about ODBC and CLI ???
              What I know about ODBC is we configure data source in Windows ODBC administrator, and depending upon whether Application is 32/64 bit, 32/64 bit ODBC is invoked, am I correct ?
    Where do we use ODBC or CLI ?
    Why should we prefer CLI over ODBC ?
    Thanks a lot for the knowledge imparted, in advance.

    The release notes that accompany each download will have a pretty detailed listing of the feature changes and the bug fixes. Are you looking for more than that?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Reason to explain these performances of odbc and occi...

    I wrote some simple test programs to compare the performances of odbc and occi accessing Oracle.
    These programs were wrote in C++. The occi and odbc were given under almost the same circumstance.
    The result is: when executing query(simple select) the odbc is fast than occi. When executing insert sentences, the occi is much more fast than odbc does.
    My computer environment: Oracle 10g, Oracle instant cilent, VS 8.0.
    Do they all access oracle through OCI interface? How to explain the result?
    Someone give me some hints , please.

    Hi,
    With the limited info available, I can't offer any specific suggestions that will help here.
    Usually sqlnet tracing is a good thing to check to see if maybe it's round trips causing the discrepency, packet/buffer sizes, query differnces, etc.
    Server side sql tracing is often useful as well to check bind types, query execution, etc.
    Yes, both Oracle's ODBC driver and OCCI are written in OCI, but they have completely different implmentations: array fetching, statement caching, buffer sizes, etc. Simply because they're both written in OCI doesnt mean they share an implmentation.
    Hope it helps,
    Greg

  • MS Access, ODBC and SPs returning ref cursor

    I have some functions and procedures in a package returning ref cursors that work fine in my C++ batch applications. I would like for the GUI to be able to call these as well.
    Unfortunately, we are using Access as the front end (for now), and we have not been able to get the ref cursors to work. Is this supported? We are using Oracle 8.0.5 on Solaris, and our clients is Access 97 on NT using Intersolv's ODBC driver.
    My procedure looks something like:
    package jec is
    procedure open_sale_cur(
    p_client_id number,
    sale_curvar out sale_curtype)
    is begin
    open sale_curtype for select ... ;
    end;
    end;
    And the Access code looks like this:
    strSql = "begin jec.open_sale_cur(27, ?); end;"
    qdfTemp = conMain.CreateQueryDef("", strSql)
    qdfTemp.Parameters(0).Direction = dbParamOutput
    qdfTemp.Execute()
    This is the error when Execute() is called:
    PLS-00306: wrong number or types of arguments in call to 'OPEN_SALE_CUR'
    I am not an Access programmer; I am simply passing along this information. Any help would be greatly appreciated.

    We tried the {call...} syntax originally, but when we use it, we get an Oracle syntax error for the statement
    SELECT * FROM {call ...}
    Apparently Access prepends "SELECT..." before passing the SQL text to Oracle.
    This is also the case for procedures with normal scalars, such as numbers, returned as OUT values. When we use anon PL/SQL syntax and "?" placeholders with such procedures, they work. When we use {call ...} syntax or omit OUT placeholders, they do not.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Justin Cave ([email protected]):
    I suspect that you want to simply execute the statement
    strSql = {call open_sale_cur( 27 )}
    The ODBC driver will automatically figure out that there's an output parameter which is a ref cursor and return that as the result set. Note that you may want to download the latest 8.0.5 ODBC driver (8.0.5.10 I believe) if there are any problems.
    Justin<HR></BLOCKQUOTE>
    null

  • Newbie: Problem with jdbc-odbc and MS SQL server 2005

    I'm on win vistax64 with SQLSERVER 2005 and I have set up the odbc source as system dsn using the SQL Native Client driver with SQL authentication and the connectivity test in the end succeeds.
    I'm trying to make a simple web app that will connect to the database and perform simple querries. It's a school assignment.
    I'm using the jdbc-odbc bridge because it's the simplest way to do it and it's what we were shown in class.
    I get the following irritating error:
    "Cannot establish a connection to jdbc:odb:sstmdb using sun.jdbc.odbc.JdbcOdbcDriver ([Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifies)".
    I'm working with netbeans 5.5.1 and this error is what I get when in the runtime tab I try to connect with the jdbc-odbc. I get a similar error in the logs when I try to run the app on the j2ee server.
    This is the java class that establishes the connection.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class Connector {
        private static final String dbUrl="jdbc:odbc:sstmdb";
        private static final String user="kimon";
        private static final String password="jackohara";
        public static Connection getConnection(){
            Connection conn = null;
            try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                conn = DriverManager.getConnection(dbUrl,user,password);
            } catch (SQLException e) {
                e.printStackTrace(); 
            } catch (ClassNotFoundException e) {
                e.printStackTrace(); 
            return conn;
    }It has worked perfectly on my school PC with winXP and MSDE2000.
    What am I missing?

    Ok, help came from an other way where I was inquiring about a different problem:
    Connectivity works fine by using User DSN instead of System DSN for the ODBC source.

  • Windows 2008 R2 Terminal Services, ODBC and Oracle 10.2.0.5 32-bit client

    Hi All,
    I am setting up an application to work under windows 2008 R2 terminal services/Citrix XenApp which is 32bit. This application uses ODBC connections and not relying directly on TNSName for connection resolution.
    I installed 10.2.0.3 and patched to 10.2.0.5, and when trying to create an ODBC connection I only see "junk" in the connections list for TNS Server Name without regard to what exists in the TNSNAME.ORA file.
    We have JDE on the same server which uses TNSNAMES and work fine, so I don't think it is Oracle client related directly, but I've not seen this before.
    Has anyone seen this before and know how to resolve?
    Geoff

    Patches are only available to Oracle customers with valid support contracts. If you do have such a contract, pl contact the person in your team who has access to My Oracle Support to download the needed patch. Patches cannot be posted on public servers as this violates ones support contract
    Srini

  • Cannot access remote FoxPro dbf file using jdbc-odbc and system DSN

    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database. I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

    Laura Ren wrote:
    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database.What exception do you get? WebLogic is just like any other Java App. That code
    should work OK (though I have a better way)... Be warned that the JDBC ODBC
    bridge is specifically dangerous. It is not threadsafe.
    Joe
    I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

  • ODBC for Rdb files dissolve at root directory now

    Late Dec99, I noticed a change in behavior of Oracle Rdb driver installation files.
    For a couple years, on a Windows 95 PC, when I run the rdbwin95.exe installation program via Start > Run > and specify the -d qualifier, the installation program would first create a Win95 folder inside the current folder location and then create additional folders inside that new folder. Now, it creates the Win95 folder at the root directory, e.g., c:\ level, instead of inside the temporary installation folder.
    Likewise, when I run an older version, rdb32.exe for example, it also dissolves into multiple files, all at the root level, instead of the temporary folder where I had placed it. Rdb16.exe behaves the same way.
    Processing these 2 files can get ugly because it can exceed the maximum number of objects permitted on the c: drive, making new folder creation impossible until the install files are deleted.
    I wonder if there might be some incompatability between the zip program used to create the install files and my current PC software. Each of the PCs I've tried at my location behave the same way, but some PCs at other locations do not, while some do. I just haven't been able to figure out the common denominator.
    The only reason I call this a problem is that I have some s/w installation instructions that walk users thru example screens and it looks like I may need to cover both possible behaviors in my examples.
    Has anyone else seen this problem? Or, have any explanation for it?
    Thanks
    null

    Risa no.
    What i mean is this. This is a screenshot of my ftp server at my host(ipage.com).
    Now this is a screenshot of my program and you can see that in my program i have only the directories hello stats test but i don't have the files in the root: htaccess.config swp txt 1.txt 2.png....all this files i don't have it on my treeView.
    What i want it to be is that on my program on the treeView i will also display the files like in my ftp server.
    I see in my program only the directories and the files in the directories but i don't see the files on the root directory/node.
    I need it to be like in my ftp server i need to see in my program the htaccess 1.txt 2.png and so on.
    So what i wrote in my main question is that in the var files i see this files of the root directory i just don't know to add and display them in my treeView(my treeView is treeViewMS1).
    I know i checked in my program in the method CreateDirectoryNode i see in the first iteration of the recursive that var files contain this root files i just dont know how to add and display them in my treeView.
    On the next iterations when it does the recursive it's adding the directories hello stats test and the files in this directories but i need it to first add the root files.

  • DTW - Trouble using ODBC and Configuration Files

    I am using SBO SP1 PL2 and DTW 2005.
    I have been making use of saving the configuration for the import of an object and then using the command line to run it, as described in DTW help under "Schedule Run".
    I typically use tab-delimited files saved from Excel and the above method works very well.
    However, I would prefer to use ODBC directly from the template tables I have in a SQL database. It works perfectly using the GUI within DTW, and it lets me save the configuration file, but when I try to run DTW from the command line using ODBC, I get these error messages:
    Can not connect to ODBC data source.
    Can not get SQL handler.
    Does anyone have any suggestions on how I can use DTW from the command line while using ODBC sources?
    Thank you.

    I've got the same problem.
    I solve it once by editing the xml file's <ExID> tag from <ExID></ExID> to <ExID />
    So the problem resides at the XML syntax.
    My problem is that I lost the XML file I used and now I can't make it work again.
    Have anybody found the solution at this problem or is there an updated version of DTW?

  • Oracle ODBC and BLOB in html

    Hi,
    I would like to ask you if cad I use Oracle-ODBC driver (whuch version) for reading BLOB (LRAW) column in html(asp) - JavaScript.
    create table JPG
    CLZM NUMBER(6) not null,
    JPG_FILE LONG RAW null ,
    <% @ LANGUAGE=JavaScript%>
    <%
    Response.Buffer = true;
    Response.ContentType = "image/jpeg";
    Response.AddHeader("Content-Disposition","attachment; filename=test.jpg");
    Response.CacheControl = "public";
    Response.Expires = 0;
    oConn = Server.CreateObject("ADODB.Connection");
    oConn.Open("DSN=ORACLE;UID=scott;PWD=tiger;");
    // Query SQL to obtain recordset containing gif BLOB
    oRs = oConn.Execute("SELECT JPG_FILE FROM JPG WHERE CLZM='3156'");
    // Obtain local variable of /*
    PicSize = oRs("JPG_FILE").ActualSize;
    Pic = oRs("JPG_FILE").GetChunk(PicSize);
    // ??? Obtain only 4 bytey - why ???
    Response.BinaryWrite(Pic);
    Response.End();
    %>
    Thank's
    Ondrej

    I had the same problem using VBScript.
    What you have to do isread in blocks of let's say 1k in a loop and check wether the return value is exactly 1k, if not you may end your loop.
    Here's my code in VBScript.
    Dim varBlob
    Dim varChunk
    Const chuckSize = 1024
    Do
    varChunk = objRs.Fields("blobField").getChunk(chuckSize)
    varBlob = varBlob & varChunk
    Loop While (len(varChunk) = chuckSize)
    the contents of varBlob is your Picture
    null

Maybe you are looking for

  • Resolution problems with LR4 and Blurb

    I am using RAW files and trying to make a Blurb book with full bleed pages. The warning indicator keeps prompting me that the resolution is less than the 200ppi minimum needed for the full size page.  I thought with RAW files I would have plenty of d

  • [b]URGENT[/b]!!!!! DATE PARAMETERS FORMS 6i  - REPORTS6i

    NEED HELP IN MOVING A PARAMETER DATE DATATYPE FROM A FORM 6i to a Report also in 6i; the following is in the user parameter pallete name datatype Tran_dt date format mask in the form for tran_dt is mm/dd/yyyy as so data entry would be 03/25/2003.. in

  • Queue SYSFAIL after message split "Whole number overflow on addition"

    Hi, I'm using a message mapping in PI 7.1 to split a message in several messages for each line of an invoice. It's a mapping 1 to 0..n. Everything went well since I had maximum 100 invoice lines to split (then 100 messages at the output of the mappin

  • What if you forget to convert to Word?

    I'm considering a switch to iWork from Microsoft Office, but as a teacher who's often in labs that only have Microsoft Office or at other universities where they might want me to present on a computer that does not have Keynote, what happens if I for

  • Change Color of Image? I need a Mentor!

    Hello to all, I am really needing some help. I am trying to build a script that will allow a user who visits a website to change the color of a house. For an example, when a user visits the site they are able to view a picture of a house with a defau