Heterogeneous Connectivity to Mysql

Hi Fellows.
I need to connect to a Mysql Database online from Oracle 10G (Create a link) I read some article regarding Heterogeneous Connectivity to other non Oracle Databases without ODBC or DNS. Does anybody has deploy this Oracle feature???? Does Oracle 10G has another choice to connect to other relational databases............If somebody has information to connect to Mysql Database wil be great!!!!
Thanks a lot.!!!!
Emmanuel.

I'm still really confused by why you're talking about DNS. DNS is just a mechanism for resolving host names into IP addresses and that happens only at connection time and only if you have specified a host name.
Yes, normally ODBC is not the most efficient API in the world-- it was designed as a least common denominator API and designed with SQL Server in mind. That said, if you want to use Heterogeneous Services, you would either need ODBC, OLE DB, or a Transparent Gateway. If you are under time constraints, I'm going to wager that you don't have the time and budget to go out an purchase a Transparent Gateway. So you'd either have to use ODBC or OLE DB. I do not know if there is a MySQL OLE DB provider that runs on SUSE-- I would tend to doubt it. Which leaves just ODBC, assuming you've got a MySQL ODBC driver that runs on SUSE.
Personally, I've used Generic Connectivity to connect to DB2 and SQL Server databases from an AIX box (using commercial ODBC drivers) and to Excel files from a Windows box. I've never personally connected to a MySQL database, though if you're talking about ODBC connections, it doesn't really matter what database you are connecting to.
Justin

Similar Messages

  • Heterogeneous Connectivity to MySQL with ODBC 5.1

    Hi,
    I have a setup with an oracle 10g XE version on an windows Server 2003 together with a MySQL 5.5
    I setup a Heterogeneous Link using MySQL ODBC 5.1.
    Every time I select something from a mysql table all varchar and text fields ignored in result set.
    so the
    select * from project@sugarcrm
    returns only the non text/varchar fields (dates,numeric)
    the select name from project@sugarcrm where name is char fiels
    returns ORA-00904 'name invalid identifier '
    Thanks

    I was looking for the sql.log in defined path if was in c:\ ...
    odbcad32 1860-2944     ENTER SQLAllocHandle
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 00000000
              SQLHANDLE * 0007D2C0
    odbcad32 1860-2944     EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 00000000
              SQLHANDLE * 0x0007D2C0 ( 0x009f14e8)
    odbcad32 1860-2944     ENTER SQLSetEnvAttr
              SQLHENV 009F14E8
              SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
              SQLPOINTER 0x00000003
              SQLINTEGER 0
    odbcad32 1860-2944     EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS)
              SQLHENV 009F14E8
              SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
              SQLPOINTER 0x00000003 (BADMEM)
              SQLINTEGER 0
    odbcad32 1860-2944     ENTER SQLAllocHandle
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F14E8
              SQLHANDLE * 0007D2BC
    odbcad32 1860-2944     EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F14E8
              SQLHANDLE * 0x0007D2BC ( 0x009f1590)
    odbcad32 1860-2944     ENTER SQLDriverConnectW
              HDBC 009F1590
              HWND 00000000
              WCHAR * 0x4BF78088 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x4BF78088
              SWORD 2
              SWORD * 0x00000000
              UWORD 0 <SQL_DRIVER_NOPROMPT>
    odbcad32 1860-2944     EXIT SQLDriverConnectW with return code 0 (SQL_SUCCESS)
              HDBC 009F1590
              HWND 00000000
              WCHAR * 0x4BF78088 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x4BF78088
              SWORD 2
              SWORD * 0x00000000
              UWORD 0 <SQL_DRIVER_NOPROMPT>
    odbcad32 1860-2944     ENTER SQLAllocHandle
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F1590
              SQLHANDLE * 0007D2B8
    odbcad32 1860-2944     EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F1590
              SQLHANDLE * 0x0007D2B8 ( 0x009f21c8)
    odbcad32 1860-2944     ENTER SQLTablesW
              HSTMT 009F21C8
              WCHAR * 0x01336BC8 [      -3] "%\ 0"
              SWORD -3
              WCHAR * 0x01336BCC [      -3] "\ 0"
              SWORD -3
              WCHAR * 0x01336BCC
              SWORD 0
              WCHAR * 0x01336BCC
              SWORD 0
    odbcad32 1860-2944     EXIT SQLTablesW with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
              WCHAR * 0x01336BC8 [      -3] "%\ 0"
              SWORD -3
              WCHAR * 0x01336BCC [      -3] "\ 0"
              SWORD -3
              WCHAR * 0x01336BCC
              SWORD 0
              WCHAR * 0x01336BCC
              SWORD 0
    odbcad32 1860-2944     ENTER SQLBindCol
              HSTMT 009F21C8
              UWORD 1
              SWORD -8 <SQL_C_WCHAR>
              PTR 0x0007D2CC
              SQLLEN 255
              SQLLEN * 0x0007D2C8
    odbcad32 1860-2944     EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
              UWORD 1
              SWORD -8 <SQL_C_WCHAR>
              PTR 0x0007D2CC
              SQLLEN 255
              SQLLEN * 0x0007D2C8 (2000326715)
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFreeHandle
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F21C8
    odbcad32 1860-2944     EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F21C8
    odbcad32 1860-2944     ENTER SQLDisconnect
              HDBC 009F1590
    odbcad32 1860-2944     EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
              HDBC 009F1590
    odbcad32 1860-2944     ENTER SQLFreeHandle
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F1590
    odbcad32 1860-2944     EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F1590
    odbcad32 1860-2944     ENTER SQLFreeHandle
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 009F14E8
    odbcad32 1860-2944     EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 009F14E8
    odbcad32 1860-2944     ENTER SQLAllocHandle
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 00000000
              SQLHANDLE * 0007CFF8
    odbcad32 1860-2944     EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 00000000
              SQLHANDLE * 0x0007CFF8 ( 0x009f14e8)
    odbcad32 1860-2944     ENTER SQLSetEnvAttr
              SQLHENV 009F14E8
              SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
              SQLPOINTER 0x00000003
              SQLINTEGER 0
    odbcad32 1860-2944     EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS)
              SQLHENV 009F14E8
              SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
              SQLPOINTER 0x00000003 (BADMEM)
              SQLINTEGER 0
    odbcad32 1860-2944     ENTER SQLAllocHandle
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F14E8
              SQLHANDLE * 0007CFF4
    odbcad32 1860-2944     EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F14E8
              SQLHANDLE * 0x0007CFF4 ( 0x009f1590)
    odbcad32 1860-2944     ENTER SQLDriverConnectW
              HDBC 009F1590
              HWND 00000000
              WCHAR * 0x4BF78088 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x4BF78088
              SWORD 2
              SWORD * 0x00000000
              UWORD 0 <SQL_DRIVER_NOPROMPT>
    odbcad32 1860-2944     EXIT SQLDriverConnectW with return code 0 (SQL_SUCCESS)
              HDBC 009F1590
              HWND 00000000
              WCHAR * 0x4BF78088 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x4BF78088
              SWORD 2
              SWORD * 0x00000000
              UWORD 0 <SQL_DRIVER_NOPROMPT>
    odbcad32 1860-2944     ENTER SQLAllocHandle
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F1590
              SQLHANDLE * 0007CFF0
    odbcad32 1860-2944     EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F1590
              SQLHANDLE * 0x0007CFF0 ( 0x009f21c8)
    odbcad32 1860-2944     ENTER SQLExecDirectW
              HSTMT 009F21C8
              WCHAR * 0x01336BD0 [      -3] "SHOW CHARACTER SET\ 0"
              SDWORD -3
    odbcad32 1860-2944     EXIT SQLExecDirectW with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
              WCHAR * 0x01336BD0 [      -3] "SHOW CHARACTER SET\ 0"
              SDWORD -3
    odbcad32 1860-2944     ENTER SQLBindCol
              HSTMT 009F21C8
              UWORD 1
              SWORD -8 <SQL_C_WCHAR>
              PTR 0x0007D004
              SQLLEN 255
              SQLLEN * 0x0007D000
    odbcad32 1860-2944     EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
              UWORD 1
              SWORD -8 <SQL_C_WCHAR>
              PTR 0x0007D004
              SQLLEN 255
              SQLLEN * 0x0007D000 (512124)
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 0 (SQL_SUCCESS)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFetch
              HSTMT 009F21C8
    odbcad32 1860-2944     EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
              HSTMT 009F21C8
    odbcad32 1860-2944     ENTER SQLFreeHandle
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F21C8
    odbcad32 1860-2944     EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 3 <SQL_HANDLE_STMT>
              SQLHANDLE 009F21C8
    odbcad32 1860-2944     ENTER SQLDisconnect
              HDBC 009F1590
    odbcad32 1860-2944     EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
              HDBC 009F1590
    odbcad32 1860-2944     ENTER SQLFreeHandle
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F1590
    odbcad32 1860-2944     EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 2 <SQL_HANDLE_DBC>
              SQLHANDLE 009F1590
    odbcad32 1860-2944     ENTER SQLFreeHandle
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 009F14E8
    odbcad32 1860-2944     EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
              SQLSMALLINT 1 <SQL_HANDLE_ENV>
              SQLHANDLE 009F14E8

  • Dg4odbc to connect to mysql rc 28500 something other than invalid authoriza

    dg4odbc to connect to mysql rc 28500 something other than invalid authoriza
    Hi,
    We are trying to establish connectivity from oracle to mysql using dg4odbc and openlink ODBC drivers. I get the following error when queries are run on mysql tables from within
    oracle/db links.
    SQL> select * from "labels"@"dg4odbc.cisco.com"
    2 ;
    select * from "labels"@"dg4odbc.cisco.com"
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from DG4ODBC
    contents of dg4odbc agent log is as below.
    $ cat dg4odbc_agt_3168.trc
    Oracle Corporation --- TUESDAY SEP 30 2008 05:37:56.658
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- TUESDAY SEP 30 2008 05:37:56.655
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    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_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    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_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"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "dg4odbc"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.1.0.6.0_0006, Instance:dg4odbc
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=90200
    Entered hgolofn at 2008/09/30-05:37:57
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/export/home/oratest/openlink/lib/libiodbc.so"
    Entered hgolofns at 2008/09/30-05:37:57
    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 ".,"
    Exiting hgoinit, rc=0 at 2008/09/30-05:37:57
    Entered hgolgon at 2008/09/30-05:37:57
    reco:0, name:odbc_26530, tflag:0
    Entered hgosuec at 2008/09/30-05:37:57
    Exiting hgosuec, rc=0 at 2008/09/30-05:37:57
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using odbc_26530 as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/09/30-05:37:57
    HS_FDS_CONNECT_INFO = "dg4odbc"
    HS_FDS_CONNECT_STRING = "OptimizePrepare=2"
    Entered hgogenconstr at 2008/09/30-05:37:57
    dsn:dg4odbc, name:odbc_26530
    optn:OptimizePrepare=2
    ##>Connect Parameters (len=57)<##
    ## DSN=dg4odbc;
    #! UID=odbc_26530;
    #! PWD=*
    ## OptimizePrepare=2;
    Exiting hgogenconstr, rc=0 at 2008/09/30-05:37:57
    Entered hgopoer at 2008/09/30-05:37:57
    Exiting hgopoer, rc=0 at 2008/09/30-05:37:57 with error ptr FILE:hgopoer.c LINE:128 ID:GetDiagRec error
    hgocont, line 1904: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2008/09/30-05:37:57 with error ptr FILE:hgocont.c LINE:1923 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/09/30-05:37:57 with error ptr FILE:hgolgon.c LINE:612 ID:Calling hgocont
    Entered hgoexit at 2008/09/30-05:37:57
    $
    Here is my setup
    Source : oracle 9208 on solaris + Patch_p5965763_9208_solaris64
    dg4odbc component on a different home
    9i and 11g listeners.
    Target : Mysql 5.x on linux sever
    ODBC Driver manager and driver : Openlink single tier driver for mysql.
    he last lines of dg4odbc agent states an error "something other then invalid authorization"(see below)..
    Entered hgopoer at 2008/09/30-05:37:57
    Exiting hgopoer, rc=0 at 2008/09/30-05:37:57 with error ptr FILE:hgopoer.c LINE:128 ID:GetDiagRec error
    hgocont, line 1904: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2008/09/30-05:37:57 with error ptr FILE:hgocont.c LINE:1923 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/09/30-05:37:57 with error ptr FILE:hgolgon.c LINE:612 ID:Calling hgocont
    Entered hgoexit at 2008/09/30-05:37:57
    Has anyone encountered similar issue while configuring dg4odbc....I never had trouble with hsodbc. Since hsodbc is desupported , We are evaluating dg4odbc and openlink odbc
    drivers to establish connectivity to mysql and stuck at this point.
    Any suggestion from gateway gurus ?
    Thanks in advance,
    Bhaskar

    Content of Important config files is as below.
    Source : oracle 9208 on solaris + Patch_p5965763_9208_solaris64
    dg4odbc component on a different home
    9i and 11g listeners.
    Target : Mysql 5.x on linux sever
    ODBC Driver manager and driver : Openlink single tier driver for mysql.
    contents of key config files are as below.
    contents of 9i tnsnames.ora
    # To Test DG4ODBC Config
    dg4odbc =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = ora-dev2)
    (PORT = 1556)
    (CONNECT_DATA =
    (SID= dg4odbc)
    (HS=OK)
    contents of 11g listener file
    $ cat listener.ora
    # listener.ora Network Configuration File: /u03/orapoc/oracle/product/dg4odbc/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    TRACE_LEVEL_LISTENER_DG = USER
    LISTENER_DG =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora-dev2)(PORT = 1556))
    LOG_FILE_LISTENER_DG = LISTENER_DG.log
    TRACE_DIRECTORY_LISTENER_DG = /u03/orapoc/oracle/product/dg4odbc/network/trace
    SID_LIST_LISTENER_DG =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /u03/orapoc/oracle/product/dg4odbc)
    (SID_NAME = dg4odbc)
    (ENVS = "LD_LIBRARY_PATH=/export/home/oratest/openlink/lib:/u03/orapoc/oracle/product/dg4odbc/lib")
    (PROGRAM = dg4odbc)
    LOG_DIRECTORY_LISTENER_DG = /u03/orapoc/oracle/product/dg4odbc/network/log
    TRACE_FILE_LISTENER_DG = LISTENER_DG.trc
    contents of initdg4odbc.ora
    $ pwd
    /u03/orapoc/oracle/product/dg4odbc/hs/admin
    $ ls
    initdg4odbc.ora initdg4odbc.ora.orig listener.ora.sample tnsnames.ora.sample
    $ cat initdg4odbc.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO=dg4odbc
    HS_FDS_TRACE_LEVEL = DEBUG
    HS_FDS_TRACE_FILE_NAME = dg_mysql.log
    HS_FDS_CONNECT_STRING = "OptimizePrepare=2"
    HS_FDS_SHAREABLE_NAME=/export/home/oratest/openlink/lib/libiodbc.so
    HS_FDS_SUPPORT_STATISTICS=FALSE
    # ODBC specific environment variables
    set ODBCINI=/export/home/oratest/openlink/bin/odbc.ini
    set ODBCINSTINI=/export/home/oratest/openlink/bin/odbcinst.ini
    set OPENLINKINI=/export/home/oratest/openlink/bin/openlink.ini
    set OPL_LICENSE_DIR=/export/home/oratest/openlink/bin/
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    set LD_LIBRARY_PATH=/export/home/oratest/openlink/lib:/u03/orapoc/oracle/product/dg4odbc/lib
    contents of odbc.ini
    $ cat /export/home/oratest/openlink/bin/odbc.ini
    ; odbc.ini
    ; ODBC DSN configuration file
    ; This file is an OpenLink Software product configuration file.
    ; To learn more about this product, or any other product in our
    ; portfolio, please check out our web site at:
    ; http://www.openlinksw.com
    ; or contact us at:
    ; [email protected]
    ; If you have any technical questions, please contact our support
    ; staff at:
    ; [email protected]
    [ODBC Data Sources]
    mys5_lite = OpenLink MySQL 5.x Lite Driver (multi threaded)
    mys5_lite_unicode = OpenLink MySQL 5.x Lite Driver (Unicode)(multi threaded)
    dg4odbc = OpenLink MySQL 5.x Lite Driver (multi threaded)
    [mys5_lite]
    Driver = /export/home/oratest/openlink/lib/mys5_mt_lt.so
    ServerType = MySQL 5.x
    Username =
    Password =
    Database =
    Options =
    FetchBufferSize = 99
    ReadOnly =
    DeferLongFetch =
    JetFix = No
    Description = Sample MySQL 5.x Lite Connection
    MaxRows =
    NoRowSetSizeLimit = No
    InitialSQL =
    NoAutoCommit = No
    NoLoginBox =
    SqlDbmsName =
    [mys5_lite_unicode]
    Driver = /export/home/oratest/openlink/lib/mys5_mt_lu.so
    ServerType = MySQL 5.x
    Username =
    Password =
    Database =
    Options =
    FetchBufferSize = 99
    ReadOnly = no
    DeferLongFetch = no
    JetFix = no
    Description = Sample MySQL 5.x Lite Connection
    [dg4odbc]
    DeferLongFetch =
    MaxRows = 1000000
    JetFix = No
    NoRowSetSizeLimit = No
    Description = Openlink Unix Lite DSN
    Options = -H odbctest.power.com -P 3329
    UserName = odbc_test
    Password = abcdef
    ServerType = MySQL 5.x
    InitialSQL =
    Driver = /export/home/oratest/openlink/lib/mys5_mt_lt.so
    Database = linksys__dev
    ReadOnly =
    NoAutoCommit = No
    NoLoginBox =
    FetchBufferSize = 99
    SqlDbmsName =
    [ODBC]
    DebugFile = /export/home/oratest/openlink/mysql_debug
    TraceFile = /export/home/oratest/openlink/openlink_mysql
    Trace = 1

  • HS connection to MySQL fails for large table

    Hello,
    I have set up an HS to a MySql 3.51 dabatabe using an ODBC DNS. My Oracle box has version 10.2.0.1 running in Windows 2003 R2. MySQL version is 4.1.22 running on a different machine with the same OS.
    I completed the connection through a database link, which works fine in SQLPLUS when selecting small MySQL Tables. However, I keep getting an out of memory error when selecting certain large table from the MySQL database. Previously, I had tested the DNS and ran the same SELECT in Access and it doesn't give any error. This is the error thrown by SQLPLUS:
    SQL> select * from progressnotes@mysql_rmg where "encounterID" = 224720;
    select * from progressnotes@mysql_rmg where "encounterID" = 224720
    ERROR at line 1:
    ORA-00942: table or view does not exist
    [Generic Connectivity Using ODBC][MySQL][ODBC 3.51
        Driver][mysqld-4.1.22-community-nt]Lost connection to MySQL server during query
    (SQL State: S1T00; SQL Code: 2013)
    ORA-02063: preceding 2 lines from MYSQL_RMG
    I traced the HS connection and here is the result from the .trc file:
    Oracle Corporation --- THURSDAY JUN 12 2008 11:19:51.809
    Heterogeneous Agent Release
    10.2.0.1.0
    (0) [Generic Connectivity Using ODBC] version: 4.6.1.0.0070
    (0) connect string is: defTdpName=MYSQL_RMG;SYNTAX=(ORACLE8_HOA, BASED_ON=ORACLE8,
    (0) IDENTIFIER_QUOTE_CHAR="",
    (0) CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj><binding><datasources><da-
    (0) tasource name='MYSQL_RMG' type='ODBC'
    (0) connect='MYSQL_RMG'><driverProperties/></datasource></datasources><remoteMachi-
    (0) nes/><environment><optimizer noFlattener='true'/><misc year2000Policy='-1'
    (0) consumerApi='1' sessionBehavior='4'/><queryProcessor parserDepth='2000'
    (0) tokenSize='1000' noInsertParameterization='true'
    noThreadedReadAhead='true'
    (0) noCommandReuse='true'/></environment></binding></navobj>
    (0) ORACLE GENERIC GATEWAY Log File Started at 2008-06-12T11:19:51
    (0) hoadtab(26); Entered.
    (0) Table 1 - PROGRESSNOTES
    (0) [MySQL][ODBC 3.51 Driver][mysqld-4.1.22-community-nt]MySQL client ran out of
    (0) memory (SQL State: S1T00; SQL Code: 2008)
    (0) (Last message occurred 2 times)
    (0)
    (0) hoapars(15); Entered.
    (0) Sql Text is:
    (0) SELECT * FROM "PROGRESSNOTES"
    (0) [MySQL][ODBC 3.51 Driver][mysqld-4.1.22-community-nt]Lost connection to MySQL
    (0) server during query (SQL State: S1T00; SQL Code: 2013)
    (0) (Last message occurred 2 times)
    (0)
    (0) [A00D] Failed to open table MYSQL_RMG:PROGRESSNOTES
    (0)
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    (0) (Last message occurred 2 times)
    (0)
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    (0) (Last message occurred 2 times)
    (0)
    (0) [S1000] [9013]General error in nvITrans_Commit - rc = -1. Please refer to the
    (0) log file for details.
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    (0) (Last message occurred 2 times)
    (0)
    (0) [S1000] [9013]General error in nvITrans_Rollback - rc = -1. Please refer to
    (0) the log file for details.
    (0) Closing log file at THU JUN 12 11:20:38 2008.
    I have read the MySQL documentation and apparently there's a "Don't Cache Result (forward only cursors)" parameter in the ODBC DNS that needs to be checked in order to cache the results in the MySQL server side instead of the Driver side, but checking that parameter doesn't work for the HS connection. Instead, the SQLPLUS session throws the following message when selecting the same large table:
    SQL> select * from progressnotes@mysql_rmg where "encounterID" = 224720;
    select * from progressnotes@mysql_rmg where "encounterID" = 224720
    ERROR at line 1:
    ORA-02068: following severe error from MYSQL_RMG
    ORA-28511: lost RPC connection to heterogeneous remote agent using
    SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.0.120)(PORT=1521))(CONNECT_DATA=(SID=MYSQL_RMG)))
    Curiously enough, after checking the parameter, the Access connection through the DNS ODBS seems to improve!
    Is there an aditional parameter that needs to be set up in the inithsodbc.ora perhaps? These are current HS paramters:
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQL_RMG
    HS_FDS_TRACE_LEVEL = ON
    My SID_LIST_LISTENER entry is:
    (SID_DESC =
    (PROGRAM = HSODBC)
    (SID_NAME = MYSQL_RMG)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    Finally, here is my TNSNAMES.ORA entry for the HS connection:
    MYSQL_RMG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.120)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL_RMG)
    (HS = OK)
    Your advice will be greatly appeciated,
    Thanks,
    Luis
    Message was edited by:
    lmconsite

    First of all please be aware HSODBC V10 has been desupported and DG4ODBC should be used instead.
    The root cause the problem you describe could be related to a timeout of the ODBC driver (especially while taking care of the comment: it happens only for larger tables):
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    indicates the Driver or the DB abends the connection due to a timeout.
    Check out the wait_timeout mysql variable on the server and increase it.

  • 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

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    HTTP Status 500
    type Exception report:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

  • How can I connect to MySQL external database

    Hello.
    I have a SAP system running in SQL Server 2003.
    I need to connect to external MySQL DB., to operate with this information in ABAP program.
    I have done the step necesary... I mean I go to DBCO transaction and configure the connection like this:
    DB CONNECTION --> AFIS
    DBMS --> MSS
    user name --> xxxxxx
    DBpass -->xxxxxx / xxxxxx
    Conn Info -->MSSQL_SERVER=192.168.1.233 MSSQL_DBNAME=alliance OBJECT_SOURCE=alliance
    I do a test program, when I do the statement CONNECT TO, sy-subrc 0 and connection = DEFAULT... I mean, with this form I cannot connect to MySQL Database...
    Can you help me to do this?? I think the problem it's the connection string in DBCO... but I'm not sure...,
    Would be possible to connect by MySQL ODBC??? I mean , installing the ODBC driver in my SAP server, and using this in ABAP Program??
    Thks.
    DATA: BEGIN OF wa,
    cod_modelo(20),
    END OF wa.
    DATA: dbs TYPE dbcon-con_name.
    DATA: con(20) TYPE c.
    DATA : ls_wa LIKE wa.
    con = 'AFIS'. "DB Connection in DBCO above
    EXEC SQL.
    CONNECT TO :con
    ENDEXEC.
    WRITE sy-subrc. ---> The result it's 4
    EXEC SQL.
    GET CONNECTION :con
    ENDEXEC.
    WRITE : con. --> The result it's DEFAULT
    EXEC SQL.
    SET CONNECTION DEFAULT
    ENDEXEC.
    write : con. --> The result it's DEFAULT

    > It's for it, that when I go to DBCO... in DBMS ---... I can select Oracle, MSSQLServer, DB2... for this Databases..., exists the library (lib_dbsl)???
    yes, for all those databases exists the database interface library.
    > In resume:
    >  IT'S NOT POSSIBLE CONNECT TO MYSQL!!! ... I cannot believe it!!!...
    Well - as far as I remember there were some times ago efforts to port SAP applications to MySQL. That would explain why there's also a file "DDLMYS.TPL" created if you execute R3ldctl during a system copy - amongst DDL files for all other databases. I believe this was at the time MySQL was promoting SAPDB/MaxDB.
    MySQL is historically not a database engine for software, that requires transactional integrity; there were extensions to support that (InnoDB or others) and there was no customer demand in getting MySQL as engine for SAP applications. And only develop an interface to be able to connect to an external MySQL engine is not worth the effort.
    However, there is hope Some BusinessObjects applications also run with and against MySQL engines, depending on how the strategy to integrate those into the SAP software stack there may (or may not) be an interface for that database in the future.
    Markus

  • Connection error mysql database in Dreamweaver

    the error message is - HTTP error code 404 file not found. here are some possible reasons
    screen shot - http://netwizlk.site50.net/images/DW-error.jpg
    1)there is no testing server running on the server machine.
    2)the testing server specified for this site does not map to the http://localhost/_mmServerScripts/MMhTTPDB.php verify that the URL prefix maps to the root of the site.
    guy pls help me to solve this problem. I tried several times to connect my mysql database with dreamweaver but ended up having this error I reinstalled dreamweaver cs4 and XAMPP still the error is not rectified my both remote and local files are stored in XAMPP server location called in c:\xampp\htdocs\htdocs\myweb
    anybody who could give me a speedy solution for this issue will be highly appreciated thanks alot guys.

    c:\xampp\htdocs\htdocs\myweb
    MM serverscripts must be at the root level of the virtual server, that is directly in the htdocs folder.
    Mylenium

  • Connecting a MYSQL database in Dreamweaver

    Hi All,
    I'm tryting to connect a mysql database based locally and am getting the error:
    HTTP Error Code 404 File Not Found. Here are some possible reasons for the problem:
    1) There is no testing server running on the server machine.
    2) The testing server specified for this site does not map to the http://localhost/_mmServerScripts/MMHTTPDB.php. Verify that
    the URL Prefix maps to the root of the site.
    What does this mean?
    How do I start the testing server? I'm unable to locate the folder where the database files are stored as the database has been created locally on my machine.  Everything hace been created locally so I know that point 2) could well be irrelavant.
    Please can somebody help?
    Many Thanks
    Gordon

    The functions for connecting to a database were mostly deprecated.  But if you enable them in CS6 Cloud/CC then they will be the same.

  • Error when connecting to MySQL Database

    I am trying to connect to MySQL and receive an error everytime. I have attempted to talk to Bluehost (who my site is hosted thru) and they said it is not on their end and not something they can help me with. I set up a new MySQL Database with Bluehost and then set up the site through DW and everything went fine. I secured an ftp connection and went on to connect to MySQL. When I enter in my credentials for SQL Database, it returns:
    HTTP Error Code 404:
    Reason 1. No testing server running on the server machine.
    Reason 2. Testing server specified for this site deos not map to the http://my_domain.com/_mmServerScripts/MMHTPDB.php URL. Verify the URL Prefix maps to the site.
    The testing server model I am using is set to PHP MySQL and URL Prefix I am using (my_domain.com) is my website URL. I watched a YouTube video someone suggested elsewhere on how to add MMHTTPDB.php and mysql.php files to _mmServerScripts folder since the folder is empty but unfortunately, those files are not found on my computer. I assume they were supposed to be installed when I installed DW, but they are not here. I have done a general search of the comp and looked in each folder that was installed with DW and sadly, no files that match those names. What can I do? How can I make an SQL connection? Please help. It is greatly appreciated.
    -Sharon

    Your answer can be found somewhere in here http://forum.wampserver.com/read.php?2,83382,88694
    My hosts file (c:\windows\system32\drivers\etc\hosts) looks like
    # Copyright (c) 1993-2009 Microsoft Corp.
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    # localhost name resolution is handled within DNS itself.
        127.0.0.1       localhost
        ::1             localhost

  • Error when connecting to mysql

    hi
    i m getting error when i want to connect with mysql
    the errors is below
    MySQL JDBC Driver not found ...
    Exception in thread "main" java.lang.ClassNotFoundException: org.gjt.mm.mysql.D
    iver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:130)
    at test.testDriver(test.java:42)
    at test.test(test.java:12)
    at test.main(test.java:127)
    plz help me
    kaleem

    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A48&qt=%22java.lang.ClassNotFoundException%22&x=9&y=10

  • Database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2) on mac os x 10.9.2

    Dear Fellas:
    I received "database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2)" on mac os x 10.9.2.
    mysql info:
    ps -ef | grep mysql
        0    66     1   0 11:06AM ??         0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
       74   225    66   0 11:06AM ??         0:02.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.err --pid-file=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.pid --socket=/var/run/mysqld/mysqld.sock
      501   952   947   0  3:52PM ttys000    0:00.00 grep mysql
    Please help!!

    Fascinated and guessing:
    Something related to sock(2) because that's not part of your copied info. I'm thinking you've doubled up on sockets and the second socket doesn't exist, meaning you should be connecting to the first socket "mysqld.sock" whether automatic or not.
    I've only used GUI tools on purpose, so does this mean you've already got MySQL running and you tried to launch it again manually? Perhaps you already have one instance of a db and you're trying to launch a second instance, and the two can't coexist with a single user local db?
    Assuming this is all local, I'd shut down the db service and restart it, out of hand. I've seen similar messages when I set the db to start up on boot, and it didn't finish shutting down when I tried to restart it manually. Usually the GUI won't let me turn it on because it reports it's already running, but in that case it hadn't finished performing what the GUI was reporting.
    Just speculating.

  • Mysql_connect "Lost connection to MySQL..." error 61

    A web developer is getting this error on a test web server of ours that is running 10.5.7 Server.
    "Warning: mysql_connect() function.mysql-connect: Lost connection to MySQL server at 'reading initial communication packet', system error: 61 in..."
    I've seen other postings online for this error suggesting that the line containing 'bind-address 127.0.0.1' be commented out within /etc/my.conf... but this line doesn't exists on my installation.
    MySQL and php have been working well for other databases and developers. This is a newly created database.
    Has anyone else seen this error and found a fix?
    Thanks!

    This is more than likely a firewall problem on your users end. I just ran into this when moving my servers to a colocation. Everything was fine until i tried to connect to an outside database from the machines behind the new firewall. was set to allow 3306 in, but not out. And would connect without issues to localhost:/var/mysql/mysql.sock .
    from the machine trying to connect from try
    shell> telnet <servername> 3306
    should be able to login. if refused, then port is closed.
    -------

  • Connection to MySQL DB

    hello,
    to make a connection to MySQL DB in my webapp. I want to use a
    connection pool
    I have download the commons-dbcp-1.2.1.jar.
    in my webApp. I have a simple class that implemnt a sinple connection to the data base
    public SQLFactory()
         createConnection();
         private void createConnection()
         try
         Class.forName(driverName).newInstance();
         this.connection = DriverManager.getConnection(Url,"root","ungermysql");
         }catch(Exception ex){
         ex.printStackTrace();
    to make a connection to the database I imake an instance of SQLFactory
    how to implement or to use the connection pool ???
    how to create a connection via connevtion pool ???
    thanks

    ok
    public class SQLFactory {
        private Connection connection = null;
        private Statement stmt = null;
        private ResultSet rset = null;
        private DataSource dataSource=null;
        private String Url = "jdbc:mysql://localhost/CarsDB";
         public SQLFactory()
             createConnection();
         private void createConnection()
           try
               dataSource = setupDataSource(Url);
               connection = dataSource.getConnection();
            }catch(Exception ex){
               ex.printStackTrace();
    public static DataSource setupDataSource(String connectURI)
            ObjectPool connectionPool = new GenericObjectPool(null);
            ConnectionFactory connectionFactory = new    
           DriverManagerConnectionFactory(connectURI,null);
            PoolableConnectionFactory poolableConnectionFactory = new
      PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
            PoolingDataSource dataSource = new PoolingDataSource(connectionPool);
            return dataSource;
      public getData(String query)
      try
         stmt = dataSource.createStatement();
         rset = stmt.executeQuery(query)
         while(){
             I connect my Database from more classes and more jsp
    it is Ok to make an Instance of SQLFactory in each class
    and each jsp ?????
    thanks

Maybe you are looking for

  • JSF problem with h:selectOneMenu

    Hi Friends, First of all i would like to thank u all for ur previous valuable suggestions. I got stucked up with a problem. I have a dropdown list in which i have only 2 values 'Remodeling' and 'New'. When the user selects the option 'Remodeling' , i

  • SSRS Datetime Parameter value should display in DD/MM/YYYY format

    Hi All we have 2 Datetime parameters in my report , where the value is shouwing in MM/DD/YYYY format . i have modified the language type of report to Fr-BE but there is not change . Users want to see the date value in DD/MM/YYYY format . how can we a

  • Control cycle

    Gurus, What is the purpose of control cycle.Is it mandatory,for picking material for Production order. <<Locked - reason: failed to search before posting question>> Edited by: Csaba Szommer on Feb 8, 2011 1:30 PM

  • ClassLoading in plugin architecture

    I'm developing a Java Desktop Application with a plugin architecture. I'd like to know of any good resources for information on how to use ClassLoaders to implement different schemes of plugin isolation and sharing. Examples: Sharing Each plugin depe

  • ATG Migration 9_1 to 10_1

    To Do ATG Migration from 9.1p4 t0 ATG 10.1.1 commerce platform After reviewing the migration document following is my understanding on how to do successful migration           1. My exitising application is running on ATG9.1p4 with all the OOTB and c