CONNECT USING ODBC

Hi,
It's possible to connect to database with de driver ODBC?.
I know the adapter JDBC but i don't know if exist an adapter ODBC.
Best Regards

You can use JDBC to Access a ODBC. Search for "JDBC-ODBC bridge" in the google and see this link: http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html
Evandro.
Message was edited by: Evandro Klen Stephen de Azeredo

Similar Messages

  • MS Access .mdb connection using ODBC could not resolve the connect identifier ORA-12154

    Dear All,
    I'm trying to use MS Access .mdb file as source to my OWB application. I need to connect to the ms access .mdb file first using odbc. Here are the step I do:
    1. Define ODBC connectifity
         control panel -> admin tools -> data sources -> System DSN -> Add
         Choose Microsoft Access Driver (*.mdb) -> Finish
         Data source name: msaccess -> Database: Select -> .mdb file location (C:\MSAccess\att2000..mdb)
    2. Configure Listener
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        (SID_DESC =
          (SID_NAME = msaccess
          (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
          (PROGRAM = hsodbc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (SID_DESC =
          (SID_NAME = msaccess
          (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
          (PROGRAM = hsodbc)
    ADR_BASE_LISTENER = C:\app\Administrator
    3. Configure Oracle HS
         File name initmsaccess.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO = msaccess
    HS_FDS_TRACE_LEVEL = 1
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    4. Edit tnsnames.ora
    msaccess=
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SID=msaccess)
          (SERVICE_NAME=msaccess)
      (HS=OK)
    5. create database link
    create database link msaccess using 'msaccess';
    6. Run a query to test connection
    SQL> select * from departments@msaccess;
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I check the tns using tnsping msaccess, it return
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess) (SERVICE_NAME=msaccess)) (HS=OK))
    OK (120 msec)
    Any body know how to solve this?
    Best Regards
    Akhmad H Gumas

    Klaus,
    just fix the point you mention.
    here are the execution result:
    C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2014 17:10
    :23
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                05-AUG-2014 17:09:18
    Uptime                    0 days 0 hr. 1 min. 5 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\Administrator\product\11.2.0\dbhome_1\network\a
    dmin\listener.ora
    Listener Log File         c:\app\administrator\diag\tnslsnr\eric-fd165f15bb\list
    ener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "msaccess" has 1 instance(s).
      Instance "msaccess", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\dg4odbc
    Oracle Corporation --- TUESDAY   AUG 05 2014 17:12:18.509
    Heterogeneous Agent Release 11.2.0.1.0 - Production  Built with
       Oracle Database Gateway for ODBC
    C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\tnsping msaccess
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2
    014 17:12:48
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess)) (HS=OK))
    OK (20 msec)
    Looks like the problem is the missing closing bracket. Finally the query work after i fix it. Thanks a lot Klaus
    Best Regards
    Akhmad H Gumas

  • Remute connection using ODBC

    Hi all,
    I have problem to connect on my XE database using ODBC-front end msaccess2003.In local network all work fine but when i try to connect via static ip adress using ODBC problem starts.I wont to connect client who use access application, with my database from remote place.Cliant has instoled oracleclientXE, tnsnames is on bin dir, on odbc i put 82.208.201.51/xe for TNS Service Name and it wont work? What is the problem?

    1) "It won't work" is not particularly descriptive. Is there an error? If so, what error are you getting? If not, can you describe the behavior you're seeing?
    2) Are you sure that nothing is blocking access to port 1521 (or whatever port your listener is running on) from the remote network segment? Most firewalls, for example, would block this port by default.
    3) What operating system is your database using? If you are on Windows, by default, connections on port 1521 will be redirected to one of a large range of ports that could be blocked if there is any sort of firewall in place.
    4) Can the client ping your IP address?
    Justin

  • Proxy user when connecting using ODBC

    Oracle 11gR1 RHEL 5 46 bit
    Hi all,
    I have a developer that successfully connects to PowerDesigner using an ODBC connection. However, when he tries the connection as a proxy user, it fails. Is it even possible to connect using the proxy method?
    jim/jimpasswd - succeeds
    jim[OE]/jimpasswd - fails
    Thanks all.

    Yes, see the below links
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/dblgcfg008.htm
    http://www.dba-oracle.com/t_proxy_connect_authentication.htm
    Hope this helps.
    Regards
    Click here to [Create, Drop and Alter ASM DiskGroups|http://www.oracleracexpert.com/2009/10/create-drop-and-alter-asm-disk-groups.html]
    Click here to [Migrate Non-ASM Database to ASM using RMAN|http://www.oracleracexpert.com/2009/10/migrate-database-to-asm-using-rman.html]
    http://www.oracleracexpert.com

  • Crystal connection using ODBC

    Hi experts,
    Please could you answer me the next questions:
    - Can we merge information from 2/3 queries/systems in Crystal using ODBC connection?
    - Can we aggregate or manipulate information in Crystal using ODBC connection?
    Many thanks in advance for your answer.
    Judith.

    - Can we merge information from 2/3 queries/systems in Crystal using ODBC connection?
    Yes. Performance depends on the number of rows you fetch from each ODBC connection. If you want to merge a large number of data you may consider building a DWH and load your data in there.
    - Can we aggregate or manipulate information in Crystal using ODBC connection?
    Yes. Crystal Reports' report engine will allow you to process data. Still if you want to work on a very large ammount of data it is advisablke to review your data model and do as much processing as possible on the data source.
    Regards,
    Stratos

  • Oracle9i connect sybase use ODBC

    hi,everyone
    i configure a hsodbc to non-oracle(sqlserver7) database, under win2k platform, it works fine. now i configure it under Solaris platform to Sybase, i download a DataDirect ODBC driver for Sybase. when i create a database link in sqlplus, i select some data from sybase, it work error,error message is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'
    in dynamic library
    [C079] Failed to load dynamic library '/opt/odbc/lib/libodbc.so'
    i use command elfdump look for SQLAllocConnect symbol, it include in libodbc.so.
    my oracle is 9.2.0, anyone know why it run error?

    yes, i add the env LD_LIBRARY_PATH in the listener.ora file, but it still work error. the SQLAllocConnect function entry is in the libodbc.so file. generally application using ODBC will call the SQLAllocEnv first, if invokation successful, then invoke the SQLAllocConnect function. i specify HS_FDS_SHAREABLE_NAME = /opt/odbc/lib/libodbc.so in the inithsodbc.ora file, sqlplus should be found SQLAllocConnect.
    anyone encounter this situation?

  • How to use ODBC SQLDriverConnect() without using tnsnames.ora file

    I have an ODBC application that connects to an Oracle 10g database. Currently, my SQLDriverConnect() function call uses the following connection string:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    This requires an entry in the tnsnames.ora file that looks like this:
    MyDB.world =
    (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server1.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server2.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server3.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server4.intel.com)(Port = 1521)
    (LOAD_BALANCE = yes)
    (CONNECT_DATA = (SERVER = DEDICATED)
    (SERVICE_NAME = MY_SRVC))
    However, I would really like to be able to connect using ODBC without having to create that entry in the tnsnames.ora file. I have tried to substitute the DBQ=MyDB.world with the entire (DESCRIPTION=..... string from the original tnsnames.ora file, but it returns the error:
    ORA-12154: TNS: Could not resolve the connect identifier specified.
    I have heard others are able to use sqlplus with no tnsnames.ora file and the do specify the entire (DESCRIPTION=.... string on the sqlplus connection string, but is this possible to do using the ODBC SQLDriverConnect() function? If so, do I need to use a different keyword/value pair other than DBQ=?
    Any help on this would be greatly appreciated.
    Thank you.

    How would that work in a load balanced configuration? Take a closer look at the tnsnames.ora example I included in my original post. I have 4 ADDRESS= sections to denote 4 servers that are part of the load balanced environment.
    Also, I'm not familiar with that syntax, I need to use the syntax supported by the SQLDriverConnect() API function, which looks like this:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    I don't know as SQLDriverConnect() would accept an alternative syntax. But the more important issue here is the ability to specify those 4 servers in the load balanced configuration as indicated by that tnsnames.ora entry.

  • Can't select char type columns using ODBC link to SQL Server 2K

    I have set up a db link using hsodbc from 8.1.7 to SQL Server 2000. I can select numeric and date columns from the
    SQL Server table with no problem. But any character datatype (nchar or nvchar) column name included in the query
    returns an ORA-00904 ("invalid column name"). I know the column names are valid for SQL Server and can access
    these columns via EXCEL using the same user id and data source that is used for the link. I don't have a clue as to why ORACLE can't "see" the character type columns. Following is the hs trace file (HS_FDS_TRACE_LEVEL = debug) generated for "select assay_name from bio_assay@sqlsrvl":
    FRIDAY SEP 05 2003 10:39:47.674
    (0) hoagprd(2); Entered.
    (0) [Generic Connectivity Using ODBC] version: 2.0.4.0.0010
    (0) connect string is:
    (0) YEAR2000_POLICY=-1;CTL_DEBUG=T;CONSUMER_API=1;SESSION_BEHAVIOR_FLAGS=4;PARSER_-
    (0) DEPTH=2000;EXEC_FLAGS =
    (0) 131080;defTdpName=SQLSRVL;binding=(SQLSRVL,ODBC,"LIBERTY");
    (0) ORACLE GENERIC GATEWAY Log File Started at 05-Sep-03 10:39:47
    (0) Class version: 65
    (0) hoagprd(2); Exited with retcode = 0.
    (0) hoainit(3); Entered.
    (0) hoainit(3); Exited with retcode = 0.
    (0) hoalgon(7); Entered. name = XXXXXXXXXXX.
    (0) Created new ODBC connection (28382608)
    (0) Silent DB Function!!
    (0) (Last message occurred 4 times)
    (0) hoalgon(7); Exited with retcode = 0.
    (0) hoaulcp(4); Entered.
    (0) hoaulcp(4); Exited with retcode = 0.
    (0) hoauldt(5); Entered.
    (0) hoauldt(5); Exited with retcode = 0.
    (0) hoabegn(9); Entered. formatID = 306206, hoagttid
    (0) =XXXXXXXXXXXXXXXXXXXXXXXX, hoagtbid = , tflag = 0, initial = 1
    (0) hoabegn(9); Exited with retcode = 0.
    (0) hoapars(15); Entered. stmtType = 0, id = 1.
    (0) nvOUT (P:\Src\QP\QP_SQTXT.C 55): SELECT * FROM "BIO_ASSAY"
    (0) odbc_rec: select * from "BIO_ASSAY"
    (0) Silent DB Function!!
    (0) nvOUT (P:\Src\QP\QPT2SEXE.C 929):
    (0) SELECT "T0000"."WH_ADDED_DATE" AS c00010, "T0000"."ASSAY_MODIFIED_TIME" AS c0009, "T0000"."ASSAY_CREATED_TIME" AS c0008, "T0000"."ASSAY_DATE_COMPLETED" AS c0007, "T0000"."ASSAY_DATE_PLANNED" AS c0006, "T0000"."ASSAY_DATE_STARTED" AS c0005, "T0000"."ASSAY_STATUS_NO" AS c0004, "T0000"."TIMEFRAME_KEY" AS c0003, "T0000"."TARGET_KEY" AS c0002, "T0000"."ENVIRONMENT_KEY" AS c0001, "T0000"."ASSAY_KEY" AS c0000 FROM "BIO_ASSAY" T0000
    (0) nvOUT (P:\Src\QP\QPT2SEXE.C 932):
    (0) <<<<<<<<<<<<<<<<<<< Execution Strategy Begin <<<<<<<<<<<<<<<<<<<<<<<<<<<<
    (0) Original SQL:
    (0) SELECT * FROM "BIO_ASSAY"
    (0)
    (0)
    (0) Accessing Database "SQLSRVL" with SQL:
    (0) SELECT "T0000"."WH_ADDED_DATE" AS c00010, "T0000"."ASSAY_MODIFIED_TIME" AS c0009, "T0000"."ASSAY_CREATED_TIME" AS c0008, "T0000"."ASSAY_DATE_COMPLETED" AS c0007, "T0000"."ASSAY_DATE_PLANNED" AS c0006, "T0000"."ASSAY_DATE_STARTED" AS c0005, "T0000"."ASSAY_STATUS_NO" AS c0004, "T0000"."TIMEFRAME_KEY" AS c0003, "T0000"."TARGET_KEY" AS c0002, "T0000"."ENVIRONMENT_KEY" AS c0001, "T0000"."ASSAY_KEY" AS c0000 FROM "BIO_ASSAY" T0000
    (0)
    (0)
    Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>(0) hoapars(15); Exited with retcode = 0.
    (0) hoaopen(19); Entered. id = 1.
    (0) hoaopen(19); Exited with retcode = 0.
    (0) hoadscr(16); Entered. id = 1.
    (0) hoastmt(195); Array fetch size is: 1.
    (0) ------ hoadscr() -------:
    (0) hoadamsz: 11, hoadasiz: 11, hoadambr: 1, hoadabrc: 1
    (0) row 0 - hoadambl: 20, hoadadty: 134, hoadaprc: 19, hoadacst: 0
    (0) row 0 - hoadascl: 0, hoadanul: 0, hoadanml: 9, hoadanam: ASSAY_KEY, hoadabfl:
    (0) 20, hoadamod: 0
    (0) row 1 - hoadambl: 20, hoadadty: 134, hoadaprc: 19, hoadacst: 0
    (0) row 1 - hoadascl: 0, hoadanul: 0, hoadanml: 15, hoadanam: ENVIRONMENT_KEY,
    (0) hoadabfl: 20, hoadamod: 0
    (0) row 2 - hoadambl: 20, hoadadty: 134, hoadaprc: 19, hoadacst: 0
    (0) row 2 - hoadascl: 0, hoadanul: 1, hoadanml: 10, hoadanam: TARGET_KEY,
    (0) hoadabfl: 20, hoadamod: 0
    (0) row 3 - hoadambl: 20, hoadadty: 134, hoadaprc: 19, hoadacst: 0
    (0) row 3 - hoadascl: 0, hoadanul: 0, hoadanml: 13, hoadanam: TIMEFRAME_KEY,
    (0) hoadabfl: 20, hoadamod: 0
    (0) row 4 - hoadambl: 2, hoadadty: 7, hoadaprc: 5, hoadacst: 0
    (0) row 4 - hoadascl: 0, hoadanul: 1, hoadanml: 15, hoadanam: ASSAY_STATUS_NO,
    (0) hoadabfl: 2, hoadamod: 0
    (0) row 5 - hoadambl: 7, hoadadty: 167, hoadaprc: 0, hoadacst: 0
    (0) row 5 - hoadascl: 0, hoadanul: 1, hoadanml: 18, hoadanam: ASSAY_DATE_STARTED,
    (0) hoadabfl: 7, hoadamod: 0
    (0) row 6 - hoadambl: 7, hoadadty: 167, hoadaprc: 0, hoadacst: 0
    (0) row 6 - hoadascl: 0, hoadanul: 1, hoadanml: 18, hoadanam: ASSAY_DATE_PLANNED,
    (0) hoadabfl: 7, hoadamod: 0
    (0) row 7 - hoadambl: 7, hoadadty: 167, hoadaprc: 0, hoadacst: 0
    (0) row 7 - hoadascl: 0, hoadanul: 1, hoadanml: 20, hoadanam:
    (0) ASSAY_DATE_COMPLETED, hoadabfl: 7, hoadamod: 0
    (0) row 8 - hoadambl: 7, hoadadty: 167, hoadaprc: 0, hoadacst: 0
    (0) row 8 - hoadascl: 0, hoadanul: 0, hoadanml: 18, hoadanam: ASSAY_CREATED_TIME,
    (0) hoadabfl: 7, hoadamod: 0
    (0) row 9 - hoadambl: 7, hoadadty: 167, hoadaprc: 0, hoadacst: 0
    (0) row 9 - hoadascl: 0, hoadanul: 1, hoadanml: 19, hoadanam: ASSAY_MODIFIED_TIME,
    (0) hoadabfl: 7, hoadamod: 0
    (0) row 10 - hoadambl: 0, hoadadty: 0, hoadaprc: 0, hoadacst: 0
    (0) row 10 - hoadascl: 0, hoadanul: 0, hoadanml: 13, hoadanam: WH_ADDED_DATE,
    (0) hoadabfl: 0, hoadamod: 0
    (0) hoadscr(16); Exited with retcode = 0.
    Note, the query I entered doesn't appear and I never entered the query "select * from bio_assay" - it appears that this is
    automatically generated by the hsodbc process and raises other questions (like wouldn't this return a lot of unneeded
    data ?). It also appears that the "select * from bio_assay" gets translated somehow into a select statement listing each column - however, non of the columns listed are character type columns like assay_name.
    Does this make sense to anyone? Any ideas ? HELP !

    Remote view gives the same error. I think the problem has to do with nchar and nvchar fields. It seems that the hsodbc agent issues a "select * from bio_assay" at the beginning of the session (see above trace).
    0) odbc_rec: select * from "BIO_ASSAY"
    (0) Silent DB Function!!
    (0) nvOUT (P:\Src\QP\QPT2SEXE.C 929):
    (0) SELECT "T0000"."WH_ADDED_DATE" AS c00010, "T0000"."ASSAY_MODIFIED_TIME" AS c0009, "T0000"."ASSAY_CREATED_TIME" AS c0008, "T0000"."ASSAY_DATE_COMPLETED" AS c0007, "T0000"."ASSAY_DATE_PLANNED" AS c0006, "T0000"."ASSAY_DATE_STARTED" AS c0005, "T0000"."ASSAY_STATUS_NO" AS c0004, "T0000"."TIMEFRAME_KEY" AS c0003, "T0000"."TARGET_KEY" AS c0002, "T0000"."ENVIRONMENT_KEY" AS c0001, "T0000"."ASSAY_KEY" AS c0000 FROM "BIO_ASSAY" T0000
    Apparently, the list of fields that is returned from the "select *" does not include any of the nchar or nvchar type columns. After this initial "select *" the oracle server only looks at the initial list of columns and gives an "invalid column" error for any fields that are not in this initial list. So the question is: how do I make the hsodbc agent see the nchar/nvchar type fields and include them in the initial list ? I've tried setting the HS_NLS_LANGUAGE and HS_NLS_NCHAR parameters but these seem to have no effect.
    Any clue as to what's going on ?

  • Executing multiple SQL statements fails using ODBC

    Executing multiple SQL statements will fail with error 'ORA-00911 invalid character' when connecting to an Oracle database using ODBC driver version 8.01.07.00.
    When I use either my application or the Oracle ODBC Test client utility connecting using ODBC driver version 8.01.07.00 I can only get a single CALL statement (as shown below) to execute:
    CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','
    ','Event File
    Name','\\KILLIANS\BATCHCTL\SampleDemo1\JOURNALS\1.evt','','AREA1','','','','','','1','','','','','',' ','');
    When I try to execute the following string with multiple CALL statements (as shown below) it fails with the following error being returned - ORA-00911: invalid character
    CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','
    ','Event File
    Name','\\KILLIANS\BATCHCTL\SampleDemo1\JOURNALS\1.evt','','AREA1','','','','','','1','','','','','',' ','');
    CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD
    HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','Version','Recipe Header','1.0','','AREA1',' ','
    ','','','','1','','','','','',' ','');
    CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD
    HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','Version Date','Recipe Header','5/18/2001 1:28:32
    PM','','AREA1',' ',' ','','','','1','','','','','',' ','');
    CALL BHInsert (TO_DATE('2003.07.23
    10:04:28','YYYY.MM.DD HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','Author','Recipe Header','Mark
    Shepard','','AREA1',' ',' ','','','','1','','','','','',' ','');
    I've tried adding a line feed in addition to the space at the end of each call but that doesn't seem to help. Also have tried unsuccessfully to change the seperator used between each call using various valid continuation characters.
    Executing multiple CALL statements from within Oracle's SQL Worksheet connecting as the same user and password, as my application executes successfully. However when I try this from within the Oracle ODBC test client, it fails with the same ORA-00911 error that I'm seeing in my application.
    I'm currently trying the more recent ODBC drivers, however any ideas or suggestions would be greatly appreciated.

    Can you take the begin ... end block and run it using SQL*Plus?
    I can't think of any documentation that would specifically answer this question. I'm sure if you read & absorbed the ODBC Programmers Reference (2000+ pages) you'd be able to find out, but I don't know of a quick way to find out.
    You can enable SQL*Net tracing. There are a fair number of options for enabling this tracing-- http://tahiti.oracle.com has all the Oracle manuals online, which should give you enough info to configure exactly what you want.
    I would suggest, however, that you look into more performant/ scalable alternatives rather than going too far down this path. A block with lots of SQL statements with literals isn't going to make your database happy even if you get it to work.
    Justin

  • Unix: SQL Server Connection with ODBC (CRsqls24.so)

    Hi,
    I almost find no information how to set up a SQL Server connection using ODBC on a unix platform.
    This is what I get when I try to refresh my crystal report on my BO Server (4.1):
    "The viewer could not process an event. Error in file XXX.rpt:
    Error loading database information"
    .) is the port number really separated from the server by comma? (http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp10_data_acs_en.pdf)
    .) where is the right place to speficy the SQL Server isntance name (SQLInstanceA in this case)? I didn't find any information about that?
    [MYDB]
    Driver=/opt/BOBJ/xir4/sap_bobj/enterprise_xi40/aix_rs6000/odbc/lib/CRsqls24.so
    (for 64bit: Driver=/opt/BOBJ/xir4/sap_bobj/enterprise_xi40/aix_rs6000_64/odbc/lib/CRsqls24.so)
    Description=MYDB
    HostName=100.10.10.10,1433\SQLInstanceA
    Database=MYDB
    QuotedId=Yes
    AnsiNPW=No
    LogonID=ABC
    Password=abc123
    Thanks!

    First off, let me say that in the past (pre v9) when I've tried to use Windows logins with datasources, it never worked.  But that doesn't mean that they finally got it working, just that I stopped trying.
    What I was referring to in my post is that once you have CF installed, you need to go to the Windows Services screen, open each of the CF processes, click on the LOGIN tab, and change it from the default services login to be whatever WIndows login you have setup in Active Directory.  Then restart CF so that it's process is now running under that login with its credentials.  Then go to SQL Admin and setup that same login and give it access to the database you want to access.  Then go to CF Datasource menu and setup the datasource as you did previously.  If CF's support of Windows authentication for datasources does in fact now work, you should be in business.
    If it doesn't work, then you'll need to do as I said earlier, and setup SQL logins for the CF servers to use, and then in the CF Datasource setup screens you would specify that login info in the same way that you would have given it the "sa" login info.
    -reed

  • Unable to stablish connection using JDBC

    I can not stablish a connection using JDBC.
    Oracle Server (8.1.7) SuSE Linux 7.1 kernel 2.4 AMD 650 with 750MB of memory.
    Client: Win2000 (JDBC driver thin (The last one that you can download from OTN)
    I can connect using ODBC or the JDBC-ODBC bridge without any problem, but when I try to connect using JDBC I got an exception:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection. If I restart the listener then the connection can be stablished, after the connection is closed, and before any other connection can be made the listener must be stoped and restarted.
    any suggestions :)

    Thank you very much, seeing that document it was much easier to solve the problem.
    Now I am facing other problem:
    When I try to execute a query(for example : select * from
    ) I get this error:
    Error occurred while executing init statements
    java.rmi.RemoteException: com.sap.engine.services.dbpool.exceptions.BaseRemoteException: SQL statement(s) cannot be executed over DataSource "TEST". If you are using an Open SQL DataSource, you must register your tables using JDDI before you request them. Reason: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.microsoft.sqlserver.jdbc.SQLServerException: La conexión a la instancia con nombre  ha fallado. Error: java.net.SocketTimeoutException: Receive timed out.
    Do you have any idea how to solve this?
    thanks again
    Bye!

  • Using ODBC driver FOXPRO DBF

    Hello, i am defining a connection using ODBC with foxpro, i am able to see the table but not the column
    Are there parameters to adapt somewhere (SBO,...)

    Hi Bertrand
    Please let me know the following information:
    - Exact version of Crystal Reports Designer. (For this information open Crystal Reports. Go to Help > About Crystal Reports).
    - Exact version of the Business Objects Enterprise.
    - Exact version of the Database.
    - Type and the version of the driver used to connect.
    - Are you able to view all the columns when you create Crystal Report directly using ODBC connection?
    - What happens if you create the Data Connection using OLEDB or Native connection?
    Hope this helps.
    Thanks!

  • Help, Cannot connect to ODBC database using SQL Toolkit!

    Hello All,
    I am toying around with the SQL Toolkit evaluation (2.2 + the patch) and I am having difficulty.
    I ran the example program "connect" and it seems to work fine.
    However, I try to write my own program and I keep getting the same message:
    "Function DBConnect: (return value == -10 [0xFFFFFFF6]).
    Native error code - 2147467259 0x80004005
    The message differs from time to time, but the return value is constant.
    I am using both Microsoft SQL Server 2012 and MySQL.
    For MySQL I have installed the latest ODBC connector, 5.3.4. Inside the Control Panel/Data Sources(ODBC), I have a DSN named test_mysql in both User DSN and System DSN.
    I ran a test on the connection and the test passes. I am not sure if I should use the ansi or unicode driver, I have tried both with the same success.
    I am not sure I had configured the SQL Server connection properly, and will attempt that again.
    My CVI Code is simple enough:
    hdbc = DBConnect ("DSN=test_mysql"); 
    Every time I get a -10 from DBConnect. Either I have something configured wrong or I am missing something.
    Does anyone have any suggestions?
    Veni Vidi Duci
    Solved!
    Go to Solution.

    Update 2:
    After getting off the phone with Tech Support the problem has been identified!
    LabWindows SQL toolkit requires 32 bit DNS. My PC is a 64 bit, so my DNS manager defaulted to 64 bit.
    I needed to use the 32 bit DNS manager when working with the toolkit.
    Once I created my DNS connections using the 32-bit version of the ODBC Datga Source manager, everything worked fine.
    See this tech note:
    http://digital.ni.com/public.nsf/allkb/E7984C0DA0F0E65086257694005B4CB7
    Veni Vidi Duci

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • Connect to SQL Server by using ODBC

    We use ODBC to connect to a Microsoft SQL Server database. We are able to describe and select in Oracle for those tables (in MS SQL) granted to us. However, we cannot select on the views created in MS SQL. Do we miss something? Here is the SQL statement in MS SQL:
    ELECT MRN, SSN, MaritalStatus, LastName, FirstName, MiddleName, MMaidenName, Address, City, State, Phone, DOB, CitizenshipStat, AlienNumber,
    ELADocType, ELASecNo, ELAExpDate, ELAISUDate, PCC, PCCCode, PCP, FileDate, LastUpdate, SystemDate, [TimeStamp], SystemSource,
    ENR_HASH_NO, ActiveMRN, RIGHT(PCCCode, 4) AS PCCshortname, AutoAssignPCC, AutoAssignPCCTimeStamp, AutoAssignInactivate,
    ActivePanelAssignment, ActivePanelIND
    FROM dbo.tblPatient
    WHERE (DeceasedIND <> 'Y') AND (IsTestPatient <> 'NY')

    Here is the sql statment:
    SELECT MRN, SSN, MaritalStatus, LastName, FirstName, MiddleName, MMaidenName, Address, City, State, Phone, DOB, CitizenshipStat, AlienNumber,
    ELADocType, ELASecNo, ELAExpDate, ELAISUDate, PCC, PCCCode, PCP, FileDate, LastUpdate, SystemDate, [TimeStamp], SystemSource,
    ENR_HASH_NO, ActiveMRN, RIGHT(PCCCode, 4) AS PCCshortname, AutoAssignPCC, AutoAssignPCCTimeStamp, AutoAssignInactivate,
    ActivePanelAssignment, ActivePanelIND
    FROM dbo.tblPatient
    WHERE (DeceasedIND <> 'Y') AND (IsTestPatient <> N'Y')

Maybe you are looking for

  • Issue with Opening Sharepoint document using editDocumentWithProgID2

    HI, We have a scenario where we dynamically generate a excel(xls) document, save it to document library and open it in edit mode. To open the document in edit mode, we are using 'editDocumentWithProgID2' javascript function. But we are facing an issu

  • Unable to mount dfs volume from Windows Server 2008 R2

    I am trying to use Finder|Go|Connect to Server to connect to a DFS volume shared by a Windows Server 2008 R2 machine.  I get the following errors: A dialog box that says, "There was a problem connecting to the server "server name".  Contact your syst

  • Driver compatibility on Win 8.1

    Hi all. I have this a DV6 laptop that I've just formatted with Win8.1 pro 64bit http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4063&lc=it&cc=it&dlc=it&sw_lang=&product=4049... Above ther's a list of availlable drivers with Win7 compatibility

  • Business Partner Conversion using LSMW IDOC

    Hi Experts,        I need a serious suggestion. I am planning to do my Business Partner master data conversions using LSMW method IDOC CRMXIF_PARTNER_SAVE_M03. Is this is right choice or best practice? During Coversions how do we do error handling or

  • Hi Guys I am new to this, need a hand

    Okay so I have a video that is about 40 minutes long. I am making a short 3-4 minute movie. I transfered the video to the college's computer and then transfered it to an external HD and then transfered it to my computer. Now the video is 40 minutes l