Opening Multiple DB Connections to MySQL via SSH Tunneling

I'm connecting to a MySQL database through SSH.  Specifically I'm using PuTTY to establish a connection, and then tunnel the port through 3306.  Then I'm creating an ODBC Data source to my local 3306 port and using that datasource to open the connection in LabVIEW.
I'm looking to run queries in parallel, and to do that, I believe I need to open up multiple connections.  Has anyone tried this before? Is there anyother way to do this?

Hi Jonathan,
I wasn't able to find too many resources on using multiple connections to a MySQL through SSH.  
I was able to find this:
http://digital.ni.com/public.nsf/allkb/C49602A79827DDBE86256CE9005757D5
that might give you some more information.
I would try to open up multiple connections if the database supports it and try it that way.
If you have any troulbe with that route, feel free to let us know.
Sincerely,
Bogdan Buricea
Applications Engineering
National Instruments
Bogdan Buricea
Applications Engineer
National Instruments

Similar Messages

  • ORA Connect via SSH Tunnel on Windows failed! LINUX works ...

    Hello again,
    i tried to establish a Oracle Client Connection via SSH Tunnel on WinXP Pro.
    1. Opened SSH-Tunnel Connection with plink (putty)
    TUNNEL: 10.5.1.111:1521 => localhost:1521
    (plink works fine with telnet, MySQL Client and other stuff)
    2. Connected with Oracle Client on Tunnel END => Localhost, Port 1521
    3. WIth ORA8i i got: Paket Error, With ORA10g i get: TNS: no listener
    plink works fine, so i dont think the problem is located there.
    i tried, tnsnames.ora, easyconnect and TNS-Less. So i guess, its not related to the connection method.
    i tried the same on LINUX ... ssh tunnel and sqlplus connect ... IT WORKS !
    Does Oracle need an aditional Port?
    Does it have Problems with WIN2UNIX Connections? (ORA DB is on UNIX)
    tnx

    Hi,
    Hum..., I guess this not work!
    Looking for this schema below, you need put the 1521 port
    If you desire, access the www.ssh.com site and download other ssh program
               Secure Connection
       +---->-------[SSH]-------->-----+
       |                               |
       |                               |
       ^                               |
       |       Insecure Connection     v
    CLIENTE--->--------------------> ORACLE
    ssh2 -l oracle -L 1521:192.148.1.251:1521 200.10.11.12
                        |          |                |
                        |          |                |
                   A  LOCAL        |                |
                   B       INTERNAL IP ORACLE       |
                   C                       EXTERNAL IP (GATEWAY)
                                                         C                             B
          | Firewall| . . . . .|INTERNET| . . . . . . |Firewall| . . . . . . . . . . |ORACLE|
          | Gateway |                                 |Gateway |                 192.148.1.251:1521
               .                                     200.10.11.12                                  
         A     .
       |Oracle Client|
       (TNSNAMES.ORA)
         <SERVICO> =
           (DESCRIPTION =
             (ADDRESS_LIST =                     
               (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
             (CONNECT_DATA =
               (SID = <ORCL>)
           )Cheers

  • Disable Non-Root Connections to WindowServer via SSH

    I recall that in previous versions of Mac OS, one could not start an application in another user's workspace via SSH unless they were root, e.g. by running /Applications/Safari.app/Contents/MacOS/Safari at the prompt. The error given was something about being unable to make a connection to the windowserver. Root privileges were required to do so.
    However, I note that now in Mountain Lion I can run, for example, the previous command and my Safari will pop up in the session of the currently logged in user, neither of us being root or even administators.
    Is there a way to revert to the old behaviour (without disabling Remote Login, obviously)? I note some potential for evil, e.g. "/Applications/Utilities/Vine\ Server.app/Contents/MacOS/Vine\ Server &" to start a VNC server and, violá! surreptitious monitoring/control of active session...

    This was previously not possible.
    It has always been possible via the open(1) command. In any case, that doesn't matter. SSH access is unlimited access, unless you allow only public-key logins and specify a command to be executed in the authorized_hosts file. There is no security issue here.

  • Connection to MySQL via ODBC not working

    Hello all together,
    I've got a problem with the ODBC connection to MySQL. The connection via ODBC is established and things like tnsping are working.
    When I select some data within the SQL*Plus environment, I get no real result. For example "select table_name from all_tables@mysql;" returns nothing.
    My entry in listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=odbc_mysql)
    (ORACLE_HOME=D:\oracle\product\11.0.1\db_1)
    (PROGRAM=dg4odbc)
    My entry in tnsnames.ora:
    MYSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA = (SID=odbc_mysql))
    (HS=OK)
    The initodbc_mysql.ora in ORACLE_HOME/hs/admin/:
    HS_FDS_CONNECT_INFO = odbc_mysql
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = hsodbc
    I tried some modifications but I still get no data from mysql database. When I try "select * from customer@mysql;" I get the correct number of records, the correct column names, but the content is always "¬¬¬¬". The odbc driver works, because with MS Access I can fetch the data. I'm using Oracle 11g Release 1 EE and MySQL ODBC 5.1.5.
    What could be the reason for this?
    Greetings,
    Joerg

    created in my UTF-8 Mysql DB your table and inserted a record; the select shows:
    SQL> select * from "movieclass"@mysql;
    idClass
    ClassName
    123
    H e l l o
    As you can see the content is there, the "space" between the letters is related to unicode. Each character is interpreted by 2 bytes and SQL*Plus wrongly displays both. Using iSQLPLus or SQLDeveloper does not show the "space" between the letters.
    Here the data type mapping:
    SQL> desc "movieclass"@mysql;
    Name Null? Type
    idClass NUMBER(3)
    ClassName NOT NULL NVARCHAR2(50)
    What's the exact version of DG4ODBC you're using? 11.1.0.7?
    According to the listener file you're using DG4ODBC on Windows. There was a high/low byte issue in DG4ODBC for Windows. This issue is fixed in 11.1.0.7 and a certain patch. So I recommend you to get first the 11.1.0.7 patchset (if you don't already have it installed):
    6890831 Oracle Database Family: Patchset
    11.1.0.7.0 PATCH SET FOR ORACLE DATABASE SERVER 11.1.0.7.0
    and then please apply also the latest patch:
    8689191 Oracle Database Family: Patch
    ORACLE 11G 11.1.0.7 PATCH 16 BUG FOR WINDOWS 32 BIT 11.1.0.7.0
    There was a high/low byte issue
    Edited by: kgronau on Aug 11, 2009 10:28 AM

  • Remotley connect to mySql via mm.mysql

    Hello,
    I'm running WIN2k, JDK 1.2.1_004 and I'm trying to make a local java application to connect to mysql on my web server via mm.mysql. But it doesn't work
    I get the following error:
    SQLState: 08001
    Message: No suitable driver
    Vendor: 0
    I've tried to connect via the ip:
    Connection con = DriverManager.getConnection ("jdbc:mysql://64.176.118.240:3306/grattiskort_com?user=grattis&password=");
    And domain name
    Connection con = DriverManager.getConnection ("jdbc:mysql://grattiskort.com:3306/grattiskort_com?user=grattis&password=");
    I have enabled remote connection in mysql config.
    Do I need to install the driver on my web server too, and if so, how do I do that?
    Does anyone have a clue what's wrong?
    Regards,
    Chrille

    Message: No suitable driverWhere do you load the driver?

  • Connecting to MySQL via DW after Leopard install

    I cannot connect to MySQL 5.041 through DW CS3 after
    upgrading to Leopard. MySQL Admin and MySQL Query Browser both can
    connect and make queries to the database. I just can't connect
    through Dreamweaver. I get the "MySQL Error#: 2002" error which
    states "Can't connect to local MySQL server through socket
    '/var/mysql/mysql.sock' (2). Problem is there is no such
    path.

    There may be an updated needed for dreamweaver, however, I
    did find some info about MySQL running on Leopard:
    http://bugs.mysql.com/bug.php?id=32019
    and some workarounds that I have not tested as being valid:
    http://angry-fly.com/index.cfm/2007/10/26/Fix-for-MySQL-on-Leopard

  • Using Workgroup Manager via SSH tunnel

    Hi all,
    I'm attempting to use the Workgroup Manager app to remotely administer a OS X Tiger Server box. The server sits inside my company's LAN behind a firewall, which only allows traffic to the server on ports 21 (ftp), 22 (ssh), 80 (http) and 311 (server admin with SSL, I believe). All services on those ports work fine.
    My research on the net indicates that the Workgroup Manager app uses port 625, but since the hardware firewall is blocking traffic on that port to the server, I'd like to create an SSH tunnel to access it. I've tried the following command on my local machine (i.e., not the server):
    $ sudo ssh -L 625:localhost:625 [email protected]
    and am able to set up the tunnel with no problem. However when I try to connect Workgroup Manager (on the local machine) to localhost, it won't let me connect. So I tried telnetting to localhost port 625 (on the local machine) to see what's up, and received the following error:
    $ telnet localhost 625
    Trying ::1...
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.
    Am I missing something? I was under the impression that the SSH tunnel would allow me to access port 625 on the server via port 22. The software firewall is disabled on both machines, so it's not that. I'm not experienced with SSH tunnelling, so I could be totally wrong about the way this is supposed to work.
    Thanks in advance!

    A quick tcpdump here indicates that Workgroup Manager uses both 311 and 625 when establishing a connection to the server. It may be the lack of port 311 tunneling that's causing your problem.
    $ sudo ssh -L 625:localhost:625 -L 311:localhost:311 [email protected]

  • Can Dreamweaver CS5 connect to MySQL via ODBC?

    I am unable to make a direct connection to an external MySQL database because most hosting provider does not allow this type of connection due to security reasons. I am however able to make an ODBC connection to the database (which I am currently using to connect filemaker to our MySQL database).
    How can I tell Dreamweaver CS5 to connect via the ODBC driver so I can see the MySQL content in my Dreamweaver project?
    I am on a Mac running OS X 10.6.4.

    GeorgeRudd wrote:
    How can I tell Dreamweaver CS5 to connect via the ODBC driver so I can see the MySQL content in my Dreamweaver project?
    You can't - at least not if you want to use Dreamweaver's server behaviors. Dreamweaver uses the original PHP MySQL extension. If you want to connect in any other way, you need to hand code everything yourself.
    On the other hand, if you want to see the contents of your remote database in Dreamweaver, define your remote server as the testing server. Dreamweaver uploads a hidden folder to the remote server to connect to the database. Because the script is on your remote server, it's local to the MySQL database, so gets round the security issue. It then sends the details to your local computer.
    A better solution, though, is to establish a local testing environment. It's more responsive and much more secure. http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html.
    By the way, the failure to get a reply is due, in part, to posting your question in the wrong forum. The forum for issues related to PHP/MySQL and other server-side technologies is http://forums.adobe.com/community/dreamweaver/dreamweaver_development.

  • Error connecting to mysql via ODBC

    Hi folks,
    I set up Oracle Database Gateway for ODBC with mysql driver (I tried mysql-connector-odbc-5.1.11-1.x86_64.rpm (currently used and log output shown) and mysql-connector-odbc-5.2.2-1.x86_64.rpm). I am unable to create a connection to the mysql database.
    Here are the parameters:
    Oracle database: 11gR2, AL32UTF8 , Suse SLES11 64 Bit
    Oracle Database Gateway for ODBC: installed on Suse SLES10, 64 Bit
    ODBC DSN: ona_nb
    initona_nb.ora in /opt/oracle/product/11.2.0/gtw_odbc/hs/admin:
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO=ona_nb
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_SHAREABLE_NAME =/usr/lib64/libmyodbc5.so
    HS_LANGUAGE=AMERICAN_AMERICA.ISO8859P1
    #HS_TRANSACTION_MODEL=READ_ONLY
    #HS_FDS_SQLLEN_INTERPRETATION=32
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/odbc/ona_nb-odbc.ini
    set ODBCINSTINI=/home/oracle/odbc/ona_nb-odbc.ini
    (I tried diffenet Language settings or no language setting at all, slightly different ..../hs/log trace files)
    ODBC file:
    ona_nb-odbc.ini :
    [ODBC Data Sources]
    ona_nb= MySQL ODBC Driver 5.2.2-1
    [ona_nb]
    Driver = /usr/lib64/libmyodbc5.so
    DATABASE = ona_default
    DESCRIPTION = MySQL Verbindung zur ona V11 Datenbank auf Christians Notebook
    PORT = 3306
    SERVER = cwolbert.gsi.de
    UID = oreader
    PWD = xxxxxx
    [ODBC]
    TRACEFILE = /tmp/mysql-odbc-ona_nb.trc
    TRACE = Yes
    ForceTrace = Yes
    set LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/
    Listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = gridrep.gsi.de)
    (ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
    (SID_NAME = gridrep)
    (SID_DESC=
    (SID_NAME=ona_nb)
    (ORACLE_HOME=/opt/oracle/product/11.2.0/gtw_odbc)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/lib)
    Trying
    select * from locations@ona_nb
    whre ona_nb is the dblink
    CREATE DATABASE LINK "ONA_NB.GSI.DE"
    CONNECT TO OREADER
    IDENTIFIED BY <PWD>
    USING 'ona_nb';
    I get the error
    ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcora11.gsi.de)(PORT=1521))(CONNECT_DATA=(SID=ona_nb))) abgebrochen abgebrochen
    ORA-02063: vorherige line von ONA_NB
    and here is the trace file from hs/log. I am unable to create any ODBC trace file, fiddling around with differnt settings
    Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.114
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.113
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "ona_nb"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:ona_nb
    Exiting hgogprd, rc=0
    hostmstr: 0: HOA After hoagprd
    hostmstr: 0: HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2012/11/23-15:37:21
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libmyodbc5.so"
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLAllocHandle
    symbol_peflctx=0xaab3f456
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindCol
    symbol_peflctx=0xaab44ce3
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindParameter
    symbol_peflctx=0xaab4342c
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLCancel
    symbol_peflctx=0xaab3e6e5
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLDescribeParam
    symbol_peflctx=0xaab4346b
    .... many similar stuff
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLStatisticsW
    symbol_peflctx=0xaab477de
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLTablesW
    symbol_peflctx=0xaab47a16
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Exiting hgolofn, rc=0 at 2012/11/23-15:37:21
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2012/11/23-15:37:21
    hostmstr: 0: HOA After hoainit
    hostmstr: 0: HOA Before hoalgon
    Entered hgolgon at 2012/11/23-15:37:21
    reco:0, name:OREADER, tflag:0
    Entered hgosuec at 2012/11/23-15:37:21
    Exiting hgosuec, rc=0 at 2012/11/23-15:37:21
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using OREADER as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2012/11/23-15:37:21
    HS_FDS_CONNECT_INFO = "ona_nb"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2012/11/23-15:37:21
    dsn:ona_nb, name:OREADER
    optn:
    Entered hgocip at 2012/11/23-15:37:21
    dsn:ona_nb
    Exiting hgocip, rc=0 at 2012/11/23-15:37:21
    ##>Connect Parameters (len=33)<##
    ## DSN=ona_nb;
    #! UID=OREADER;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/11/23-15:37:21
    Entered hgopoer at 2012/11/23-15:37:21
    hgopoer, line 233: got native error 0 and sqlstate H; message follows...
    Exiting hgopoer, rc=0 at 2012/11/23-15:37:21
    hgocont, line 2752: calling SqlDriverConnect got sqlstate H
    Using no HS_LANGUAGE or HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
    I still get the same error meassages and logs.
    Can you help please?
    Cheers Michael

    Hi Klaus,
    I think the unixODBC driver manager is installed
    I have:
    oracle@pcora11:/opt/oracle/product/11.2.0/gtw_odbc/hs/log> odbcinst -j
    unixODBC 2.2.11
    DRIVERS............: /etc/unixODBC/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini
    USER DATA SOURCES..: /home/oracle/.odbc.ini
    and
    cat /etc/unixODBC/odbcinst.ini
    [MySQL ODBC 5.1 Driver]
    Driver = /usr/lib64/libmyodbc5.so
    UsageCount = 1
    but the two file for SYSTEM and USER DSN are empty.
    I tried now:
    HS_FDS_SHAREABLE_NAME =/usr/lib64/libodbc.so
    and
    HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    and the result is still the same, what I posted in the prevoius answer to Mike,
    ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zur³ck:
    [unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user
    'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
    ORA-02063: vorherige 2 lines von ONA_NB
    and in the trace file:
    ##>Connect Parameters (len=33)<##
    ## DSN=ona_nb;
    #! UID=OREADER;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/11/26-13:25:50
    Entered hgopoer at 2012/11/26-13:25:50
    hgopoer, line 233: got native error 1045 and sqlstate HY000; message follows...
    [unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
    Exiting hgopoer, rc=0 at 2012/11/26-13:25:50
    hgocont, line 2752: calling SqlDriverConnect got sqlstate HY000
    Exiting hgocont, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgocont.c LINE:2772 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgolgon.c LINE:781 FUNCTION:hgolgon() ID:Calling hgocont
    hostmstr: 0: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 0: RPC Before Exit Agent
    hostmstr: 0: HOA Before hoaexit
    Entered hgoexit at 2012/11/26-13:25:50
    Exiting hgoexit, rc=0
    hostmstr: 0: HOA After hoaexit
    hostmstr: 0: RPC After Exit Agent
    Even if I copy the content of ona_nb-odbc.ini file to /etc/unixODBC/obc.ini
    I still get the same error.
    Any ideas?
    Michael

  • Connection to mySQL via jdbc

    I'm currently programming a GUI to access a database. Therefore I executed a query, which worked fine. But when I tried to exit my program with
    System.exit(0)my DOS-Prompt crashes without exiting.
    Now I tried it with a kind of minimalistic Connection like that:
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/stock");     
    conn.close();Here the same problem occurs, so it must be the Connection that causes the error.
    If I would exit the program right away after the Connection, that is
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/stock");     
    conn.close();
    System.exit(0);then the program exits properly. Unfortunately it doesn't make any sense to quit the program right after reading the data.
    So, as you can guess, I'm quite confused. I used the same driver and the same database in another program on the same computer, and it works fine. So I'm left totally clueless.
    I'm not using a special programming environment, I just write my code using UltraEdit. I've got installed Java 1.4.0 on my machine.
    Any help is very appreciated
    Martin

    I don't get any.
    It just crashes. There's neither an exception thrown nor any other error msg.

  • Can connect to MySQL via localhost, but not remotely!

    Hi all!
    I got a problem that I think you guys could help me with :)..
    I have installed JDBC to make it possible to link my Java programs with MySQL databases. The installation worked just fine.
    When I'm running my program with line:
    Connection connection = null;
    connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/chat", "*****", "*****");...it works without any problems. I can handle information from the tables, add posts, delete posts and so on.
    But when I'm trying to connect from an another computer, from school for an example, it doesn't connect. JBDC says it can't fint the mysql jbdc driver.
    When I'm using this way I uses the line:
    Connection connection = null;
    connection = DriverManager.getConnection("jdbc:mysql://85.235.154.98:3306/chat", "*****", "*****");Like I said, this doesn't work at all.
    How do I fix this problem?
    Worth to mention maybe, is that I'm using Windows XP Home, and I have placed the mysql-connector-java-5.0.5-bin.jar in "C:\Program\Java\jre1.6.0_01\lib\ext"
    I'm using Java version 1.6.0!
    Please Help :)

    But when I'm trying to connect from an another
    computer, from school for an example, it doesn't
    connect. So the database is on your home computer? And you are attempting to connect from the school?
    JBDC says it can't fint the mysql jbdc
    driver.Then it has nothing to do with connecting. That means your class path is wrong.
    If it actually is a connection problem then you can do the following in a console window....
    telnet 85.235.154.98 3306
    There will be one of two results from the above after several minutes.
    1. It will just sit there.
    2. It will tell you it can't connect.
    For 2 you have a problem that has nothing to do with java. Looking at your code will not fix it.
    If it is 1 then something is wrong with your code and you should provide the exact exception.

  • Unable to direct connect to 6509 via SSH

    I have a 6509 with s72033_rp-ADVIPSERVICESK9_WAN-M 12.2(33)SKJ5. I can SSH into the device via another switch, however I am unable to directly SSH to the device. Has anyone run into this issue? could the IOS be the cause of this?

    Hey Chris,
    Have you tried pinging the device from your machine?
    Regards,
    RS.

  • Airport opens multiple DAAP connections

    When I open iTunes on my laptop and my mini-mac, my AEX tower will initiate a DAAP conversation.
    This eventually exhausts the sockets my computer can handle.
    It also loads the wireless network with garbage packets (ARP and DAAP) that use a considerable amount of BW
    Finally my computers will "grind to a halt".
    Home Sharing is OFF on my laptop in both iTunes and in System Preferences.
    (However, my AppleTV (gen3) will list my laptop iTunes library if iTunes is open)
    Within a short time of opening iTunes, there will be about 140 packets (both IPv4 and IPv6) exchanged between the AEX and the computer opening 4 IPv4 DAAP sockets.  If I leave iTunes open, another 4 sockets will be opened approximately every minute.  As I write this, my system now has 61 DAAP sockets open.   (When I close iTunes the DAAP sockets are closed)
    The IP address that initiates the connection is, according to ARP, assigned to the AEX tower.  FWIW: this happens in both bridge mode (when DHCP/NAT is not on the AEX) and when DHCP/NAT is on the AEX. 
    These IP addresses may (probably) have been assigned to a different system on the network at one time.
    The AEX tower sends out ARP requests which are not replied to:
    11:17:34.727039 ARP, Request who-has 10.0.1.23 tell 10.0.1.23, length 46
    11:17:35.057985 ARP, Request who-has 10.0.1.1 tell 10.0.1.23, length 46:  NOTE this is the AEX default route
    11:17:37.598048 ARP, Request who-has 10.0.1.9 tell 10.0.1.9, length 28
    Yet on my laptop, note how many IP addresses are listed as belonging to the AEX.
    Some of these have been present for "days".
    ? (10.0.1.1) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]   <<<  This one is valid
    ? (10.0.1.2) at 0:26:b0:e9:c5:14 on en1 ifscope [ethernet]
    ? (10.0.1.9) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]   <<< not valid
    ? (10.0.1.13) at f8:1e:df:d7:79:72 on en1 ifscope [ethernet]
    ? (10.0.1.22) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]  <<< not valid
    ? (10.0.1.23) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]  <<< not valid
    NOTE: ipv6 sockets will also be open, but only 4 of them and these go only to the AppleTV.
    The AppleTV does not show up in the ARP table
    tcp6       0      0  johns-macbook-pr.daap  great-room-apple.54393 ESTABLISHED
    tcp6       0      0  johns-macbook-pr.daap  great-room-apple.54392 ESTABLISHED
    tcp6       0      0  johns-macbook-pr.daap  great-room-apple.54391 ESTABLISHED
    tcp6       0      0  johns-macbook-pr.daap  great-room-apple.54390 ESTABLISHED
    I have placed more information on this problem in the AppleTV section, why does iTunes share its library when it is configured Home Sharing OFF?
    Numerous ATV DAAP ports to MacBook Pro

    PMargaritis wrote:
    Can I use a USB Ultra Hub 4 with my Airport Extreme in order to hook up 2 printers and an external hard drive? I would like to be able to print to either printer and have access to my external hard drive from my MacBook. What issues could present themselves? If not, any suggestions?
    howdy, and welcome to the discussion area !
    the USB hub should be powered. otherwise it should work just fine.
    good computing ...

  • Can't connect with gftp via ssh

    Hello,
    I installed openssh on a computer and configured my accsess to it...
    I can access it with scp,ssh,sftp from command line with no problem by entering my passphrase and everything runs smoothly...
    I want to be able to use gftp to access the files in it, it's a bit more comftarble for me then the command line.
    when I try to connect I give gftp the Host, port user and in pass I tried both the user's password and the passphrase and each time I get this reply :
    "There was an error initializing a SSH connection with the remote server. The error message from the remote server follows:
    ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory"
    does anyone knows how to solve this problem?
    Thank you,
    Grey

    Pinging is fine. How would I check the firewalls?
    I also noticed this message in the system log:
    /usr/libexec/sshd-keygen-wrapper: getnameinfo() only supports IPv4/IPv6. Connection from address family: 5

  • How to open multiple db connections from one form?

    Hello,
    We have two different Oracle databases and need to access them (read and write) from the same form. Is there a way to do this, apart from using EXEC_SQL as described in Note 67516.1 ? I could also use db_links and synonyms, but this would add an extra maintenance aspect that I'd like to avoid.
    Thanks,
    :-Phil

    Sorry Phil,
    but that's all you got.
    Frank

Maybe you are looking for