equivalent of CLRSplitSting function for sql server Oracle

Hello friends,

I have a query in SQL Server - which becomes data.

Select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from dbo. CLRSplitString('2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420','',',') x v join ein_addl_info_v on x.col1 = v.addl_info_id order by sort_seq
We have same data in oracle too, so I converted the query above to sql to ORACLE like this server...


Select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from (with t as)
Select '2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420', ",","double str
Select regexp_substr(str,'[^,]+',1,level) sub_str *) t connect by level < = regexp_count (str, ',') + 1) x *.

Join cnh_cs_targ_csce_eur_1.ein_addl_info_v v x.sub_str = v.addl_info_id order of sort_seq


but I don't get all the data. Can someone check if the query oracle above is equivalent to the above SQL query.

Thank you/Kumar

Published by: kumar73 on February 15, 2013 08:47

So your query:

select  addl_info_id,
        sort_seq,
        code,
        row_data,
        addl_info_group_id,
        group_sort_seq,
        group_row_data
  from      xmltable(
                     'ora:tokenize($str,",")'
                     passing ',2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420' as "str"
                     columns col1 varchar2(2000) path '.'
                    ) x
        join
            ein_addl_info_v v
          on x.col1 = v.addl_info_id
  order by sort_seq
/

SY.

Tags: Database

Similar Questions

  • Problem establish Oracle Database Gateway for SQL Server

    I configured dblink between Oracle and SQL Server by using the 'Oracle Database Gateway for SQL Server' method.

    I use dg4odbc and freetds, suite Doc-ID 561033.1 .

    I have my isql and osql works correctly, tsql.
    But get below error when query any table/column of Oracle sql * for the sql server database.

    Select subscription_type in Address@ITSMSP;

    ORA-28511: lost RPC connection to heterogeneous remote agent using SID = ORA-28511: lost CPP
    connecting to heterogeneous remote agent to help
    SID = (Description = (Address = (Protocol = TCP)(Host=localhost) (port = 1522)) (CONNECT_DATA = (SID = ITSM-Prod)))
    ORA-02063: preceding the line of ITSMSP


    As per below track appears after the connection is a failure.
    I get this error with each table or column selection.
    I already prepare DBlink user id and password with the double quotes and link with the apostrophe.
    One thing surprised me when I close my session it request commit or rollback.
    Although I don't do anything except select.
    I already tried by setting autocommit on, but still getting the same error.


    We create the oracle for sql server before database gateway. This time, few things are different:
    1. the name of the server (on sql server database) contains a '-' hyphen.
    2. name of database server Sql contain also one '-' hyphen.
    2 sql database server for windows 64 - bit OS, prior, we used 32 bits.

    Please let me know if anyone set the Oracle database gateway using dg4odbc and freetds to sql server where the database of sql server resident in 64-bit windows machine.


    Here's the snapshot trace: remove the server name with *.

    Oracle Corporation - Tuesday 2 April 2013 21:15:38.096

    Heterogeneous Agent release
    11.2.0.3.0

    Oracle Corporation - Tuesday 2 April 2013 21:15:38.096

    Version 11.2.0.3.0

    Hgogprd entries
    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned '4 '.
    Hgosdip entries
    default assignment of 50 HS_OPEN_CURSORS
    setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
    HS_FDS_RECOVERY_PWD layout to the default
    default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
    HS_IDLE_TIMEOUT layout to the default 0 value
    layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
    layout by default «AL32UTF8» HS_NLS_NCHAR
    layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
    layout HS_FDS_DATE_MAPPING default 'DATE '.
    layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
    HS_FDS_FETCH_ROWS layout without '100 '.
    parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
    parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
    parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
    parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
    setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
    parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
    HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
    parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
    parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
    HOSGIP returned the value 'FALSE' to HS_FDS_SUPPORT_STATISTICS
    parameter HS_FDS_QUOTE_IDENTIFIER if there is no 'TRUE '.
    setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
    parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
    parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
    parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
    HS_FDS_WORKAROUNDS layout by default "0".
    Release of hgosdip, rc = 0
    ORACLE_SID is ' *-* '.
    Product information:
    Port RLS / Upd:3 / 0 PrdStat:0
    Agent: Oracle Database Gateway for ODBC
    : Installation
    Class: ODBC, ClassVsn:11.2.0.3.0_0011, Instance: *-*.
    Release of hgogprd, rc = 0
    Hgoinit entries
    HOCXU_COMP_CSET = 1
    HOCXU_DRV_CSET = 31
    HOCXU_DRV_NCHAR = 873
    HOCXU_DB_CSET = 873
    HS_LANGUAGE is american_america.we8iso8859p1
    LANG is en_US. UTF-8
    HOCXU_SEM_VER = 112000
    Entry hgolofn to 2013/04/02-21: 15:38
    HOSGIP to 'HS_FDS_SHAREABLE_NAME' returned ' / usr/lib64/libodbc.so '.
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLAllocHandle
    symbol_peflctx = 0x2ca08300
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLBindCol
    symbol_peflctx = 0x2ca08390
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLBindParameter
    symbol_peflctx = 0x2ca08b50
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLCancel
    symbol_peflctx = 0x2ca09dc0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDescribeParam
    symbol_peflctx = 0x2ca11890
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDisconnect
    symbol_peflctx = 0x2ca11d30
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLEndTran
    symbol_peflctx = 0x2ca14580
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLExecute
    symbol_peflctx = 0x2ca15a20
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLFetch
    symbol_peflctx = 0x2ca16220
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLFreeHandle
    symbol_peflctx = 0x2ca17c40
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLFreeStmt
    symbol_peflctx = 0x2ca17c60
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetData
    symbol_peflctx = 0x2ca19370
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetEnvAttr
    symbol_peflctx = 0x2ca1c4f0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetFunctions
    symbol_peflctx = 0x2ca1c890
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLMoreResults
    symbol_peflctx = 0x2ca1e330
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLNumResultCols
    symbol_peflctx = 0x2ca1ef80
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLParamData
    symbol_peflctx = 0x2ca1f280
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLPutData
    symbol_peflctx = 0x2ca210b0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLRowCount
    symbol_peflctx = 0x2ca21480
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetEnvAttr
    symbol_peflctx = 0x2ca22fc0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetDescRec
    symbol_peflctx = 0x2ca22e10
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLColAttribute
    symbol_peflctx = 0x2ca0a3e0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLColumns
    symbol_peflctx = 0x2ca0bb80
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLConnect
    symbol_peflctx = 0x2ca0f4f0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDescribeCol
    symbol_peflctx = 0x2ca11150
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLDriverConnect
    symbol_peflctx = 0x2ca12890
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLExecDirect
    symbol_peflctx = 0x2ca154b0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLForeignKeys
    symbol_peflctx = 0x2ca16b40
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetConnectAttr
    symbol_peflctx = 0x2ca17fb0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDescField
    symbol_peflctx = 0x2ca199d0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDescRec
    symbol_peflctx = 0x2ca19e90
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDiagField
    symbol_peflctx = 0x2ca1b060
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetDiagRec
    symbol_peflctx = 0x2ca1bc90
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetInfo
    symbol_peflctx = 0x2ca1cad0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetStmtAttr
    symbol_peflctx = 0x2ca1d4d0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLGetTypeInfo
    symbol_peflctx = 0x2ca1df90
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLPrepare
    symbol_peflctx = 0x2ca1f9b0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLPrimaryKeys
    symbol_peflctx = 0x2ca1fec0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLProcedureColumns
    symbol_peflctx = 0x2ca20470
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLProcedures
    symbol_peflctx = 0x2ca20b00
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetConnectAttr
    symbol_peflctx = 0x2ca21770
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetStmtAttr
    symbol_peflctx = 0x2ca24320
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLSetDescField
    symbol_peflctx = 0x2ca22b30
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLStatistics
    symbol_peflctx = 0x2ca258c0
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Entry hgolofns to 2013/04/02-21: 15:38
    LIBNAME=/usr/lib64/libodbc.so, funcname is SQLTables
    symbol_peflctx = 0x2ca26550
    hoaerr:0
    Out of hgolofns to 2013/04/02-21: 15:38
    Release of hgolofn, rc = 0 to 2013/04/02-21: 15:38
    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '100 '.
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
    Invalid value of 64 for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Release of hgoinit, rc = 0 to 2013/04/02-21: 15:38
    Entry hgolgon to 2013/04/02-21: 15:38
    Reco:0, name: *, tflag:0
    Entry hgosuec to 2013/04/02-21: 15:38
    Release of hgosuec, rc = 0 to 2013/04/02-21: 15:38
    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
    using the * as a default for 'HS_FDS_DEFAULT_OWNER '.
    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
    Entry hgocont to 2013/04/02-21: 15:38
    HS_FDS_CONNECT_INFO = ' *-* '.
    RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
    Entry hgogenconstr to 2013/04/02-21: 15:38
    DSN: *-*, name: *.
    OPTN:
    Entry hgocip to 2013/04/02-21: 15:38
    DSN: *-*.
    Release of hgocip, rc = 0 to 2013/04/02-21: 15:38
    # > connection settings (len = 39) < #.
    ## DSN=****-****;
    #! UID = *;
    #! PWD = *.
    Release of hgogenconstr, rc = 0 to 2013/04/02-21: 15:38
    Entry hgolosf to 2013/04/02-21: 15:38
    ODBC function-available-table 0xFFFE 0x00FF 0xFF00 0x03FF 0xFB7F 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0 x 0000 0xFE00 0x3F5F
    Release of hgolosf, rc = 0 to 2013/04/02-21: 15:38
    DriverName:libtdsodbc.so, DriverVer:0.91
    DBMS name: Microsoft SQL Server DBMS Version: 95.10.0255
    Release of hgocont, rc = 0 to 2013/04/02-21: 15:38
    SQLGetInfo Returns Y for SQL_CATALOG_NAME
    SQLGetInfo Returns 128 for SQL_MAX_CATALOG_NAME_LEN
    Release of hgolgon, rc = 0 to 2013/04/02-21: 15:38
    Entry hgoulcp to 2013/04/02-21: 15:38
    Entry hgowlst to 2013/04/02-21: 15:38
    Release of hgowlst, rc = 0 to 2013/04/02-21: 15:38
    SQLGetInfo returns 0x1f for SQL_OWNER_USAGE
    Able TXN: isolation 2, Option: 0xf
    SQLGetInfo Returns 128 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo Returns 128 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 134 to SQL_MAX_PROCEDURE_NAME_LEN
    HOSGIP returned the value "TRUE" to HS_FDS_QUOTE_IDENTIFIER
    SQLGetInfo returns "(0 x 22) for SQL_IDENTIFIER_QUOTE_CHAR"
    instance 2 capabilities will be uploaded
    context: 0x00000000, capno:1989, add info: 0
    context: 0x0001ffff, capno:1992, add info: 0
    Release of hgoulcp, rc = 0 to 2013/04/02-21: 15:38
    Entry hgouldt to 2013/04/02-21: 15:38
    NO translation of DD for instance have been downloaded
    Release of hgouldt, rc = 0 to 2013/04/02-21: 15:38
    Entry hgobegn to 2013/04/02-21: 15:38
    tflag:0, original: 1
    Hoi:0x4093b4c8, ttid (len 38) is...
    00: 54415058 2E435245 49474854 4F4E2E45 [TAPX]
    10: 44552E33 61383332 3362322E 312E3233 [3a8323b2.1.23]
    20: 2E323037 3631 [. 20761]
    tbid (len 35) is...
    00: 54415058 2E435245 49474854 4F4E2E45 [TAPX]
    10: 44555 B 31 2E32332E 32303736 315D5B31 [[1.23.20761] [1]]
    [20: 2E345D [. 4]]
    Release of hgobegn, rc = 0 to 2013/04/02-21: 15:38
    Entry hgodtab to 2013/04/02-21: 15:38
    number: 1
    Table: address
    Allocate hoada [0] @ 0x14eedc70
    Hoada free [0] @ 0x14eedc70
    SQL text of hgodtab, id = 0, len = 23...
    00: 73656C 65 6374202A 6 202241 2066726F [select * 'a]
    10: 64647265 737322 [prepare]"
    Entry hgodscr_process_sellist_description to 2013/04/02-21: 15:38


    Thanks a lot for your help.
    PAL

    Published by: 997807 on April 3, 2013 07:26

    Hello
    Thanks for the information. 2.2 UnixODBC driver manager is quite old and there is now one more late 2.3.1 version available here.

    http://www.unixODBC.org/

    by clicking on the tab "Download".
    Can you download and install this version then use in the configuration instead of the 2.2 version?

    Kind regards
    Mike

  • Problem with migration SQL Server Oracle 11.2 2012 DB using SQL Developer Migration workbench

    Hello

    I have a problem when migrating SQL Server Oracle 11.2 2012 using SQL Developer Migration workbench, hope that someone had the same problem before and can give same advide...

    I use SQL Developer Version 4.0.1.14 and Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0. and last jtds - 1.3.

    I created the schema migration_repo, privileges, connected to the third part of Db (SQL Server) and begin a trial with assistant. In the first step of the model to Capture, I get the message from the:

    "Company Capture Capture failed.  Refer to the table MIGRLOG in the repository for more details ".

    But MIGRLOG is empty.

    Here is my log:

    <? XML version = "1.0" encoding = "windows-1252" standalone = 'no '? >

    < Log >

    account <>

    < date > 2014-03-16T 20: 49:17 < / date >

    oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >

    < level > SEVERE < / level >

    oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil < class > < / class >

    < message > Capture

    Capture Enterprise

    Capture failure.  Refer to the MIGRLOG table in the repository for more details < / message >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doOnlineEnterpriseCapture(FullMigrateTask.java:758) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doCapture(FullMigrateTask.java:601) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:400) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:314) < param > < / param >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:147) < param > < / param >

    oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193) < param > < / param >

    java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >

    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ (RaptorTaskManager.java:554) < param > RaptorFutureTask.run < / param >

    java.util.concurrent.Executors$ (Executors.java:471) < param > RunnableAdapter.call < / param >

    java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >

    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) < param > < / param >

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615) < param > < / param >

    java.lang.Thread.run(Thread.java:744) < param > < / param >

    oracle.dbtools.migration.workbench.core.logging.LogInfo@68e69a < param > < / param >

    < exception >

    < message > oracle.dbtools.migration.workbench.core.ui.FullMigrateTask$ FullMigrateTaskException: Capture

    Capture Enterprise

    Capture failure.  Refer to the MIGRLOG table in the repository for more details < / message >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 758 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 601 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    line 400 > of < < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 314 < / line >

    < / framework >

    < frame >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    < line > 147 < / line >

    < / framework >

    < frame >

    oracle.dbtools.raptor.backgroundTask.RaptorTask < class > < / class >

    < line > 193 < / line >

    < / framework >

    < frame >

    java.util.concurrent.FutureTask < class > < / class >

    < line > 262 < / line >

    < / framework >

    < frame >

    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ RaptorFutureTask < class > < / class >

    < line > 554 < / line >

    < / framework >

    < frame >

    java.util.concurrent.Executors$ RunnableAdapter < class > < / class >

    < line > 471 < / line >

    < / framework >

    < frame >

    java.util.concurrent.FutureTask < class > < / class >

    < line > 262 < / line >

    < / framework >

    < frame >

    java.util.concurrent.ThreadPoolExecutor < class > < / class >

    < line > 1145 < / line >

    < / framework >

    < frame >

    java.util.concurrent.ThreadPoolExecutor$ Worker < class > < / class >

    < line > 615 < / line >

    < / framework >

    < frame >

    java.lang.Thread < class > < / class >

    < line > 744 < / line >

    < / framework >

    < / exception >

    < / recording >

    account <>

    < date > 2014-03-16T 20: 49:17 < / date >

    oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >

    WARNING < level > < / level >

    oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >

    <>error message: ORA-06550: line 1, column 14:

    PLS-00201: identifier ' SS2K5ALLPLATFORM. STAGECAPTURE' must be declared

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    : FAILED: Database Migration: FAILURE < / message >

    oracle.dbtools.migration.workbench.core.logging.LogInfo@1e2c9b99 < param > < / param >

    < / recording >

    I try with model db (DB empty, just a single table), but the error is same. However, if I try to copy the acronym tabele from SQL Server to Oracle it works fine...

    I guess it's something with the configuration, but beacause I am new in Oracle still have no idea...

    Any help would be much appreciated

    I thank in advance

    Stefan

    Hello Stefan,

    did you create the repository Migration of your database to Oracle (Tools-> Migration-> repository management)?

    The SS2K5ALLPLATFORM package is usually created when you add the migration of the Oracle database repository and it contains the function StageCapture.

    So please make sure that you have created a repository of migration in an Oracle database and associate it with the first step of your migration.

    -Klaus

  • Auto-Update for SQL Server Express Edition 2005, 2008, 2012, 2014

    An auto-update feature exist for SQL Server Express Edition? If so, is it something that is enabled by default on the package, and where you can locate the function, if you want to disable it?

    Thank you!

    Matt

    This issue is beyond the scope of this site which is for the consumer to related issues.
    To ensure that you get a proper answer, ask either on the Technet site, if it is a type of Pro problem, or MSDN if it's related to the developer
    *
  • Installation fails for SQL Server SP 2 on SQL 2008 R2

    I have SQL 2008 R2 Developer Edition (64-bit) running Windows 7 (64-bit). I followed many workaround solutions listed on this forum all to no prevail!

    I noticed an error in the log in details:

    2010-12-22 06:02:08 Slp: error: Action "SqlEngineConfigAction_patch_configrc_Cpu64" failed during execution.
    2010-12-22 06:02:08 Slp: Action 'ConfigEvent_MPT_AGENT_CORE_CNI_sql_engine_core_inst_Cpu64_Patch_ConfigRC_postmsi' will return false because of the following conditions:
    2010-12-22 06:02:08 Slp: Condition "condition of dependence of the action starring: ConfigEvent_MPT_AGENT_CORE_CNI_sql_engine_core_inst_Cpu64_Patch_ConfigRC_postmsi the condition check function: MPT_AGENT_CORE_CNI_sql_engine_core_inst_Cpu64.» There are 2 characteristics of the dependant. The feature is tested for results: ValidateResult, result. "has failed because it has returned false and true was expected.
    2010-12-22 06:02:08 Slp: Condition is false, because the required functionality SQL_Engine_Core_Inst_sql_engine_core_inst_Cpu64 has failed in the result

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for SQL server on Technet. Please ask your question in the Technet forum .

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Link ODBC for SQL Server

    Hello-

    I am creating a link from a warehouse to Oracle (10 g on unix) a source of SQL Server (sqlsvr2008 on windows), to allow the import of data. (This is the first time I tried to do, so my apologies if this is a newbie query).

    I was looking for the heterogeneous services documentation (more discussions of the forum), and most seem to suggest that the only way to do this is:

    (1) install another server for oracle (windows) on the same machine as SQL Server
    (2) create an ODBC on this machine
    (3) create a listener for sql server on oracle windows server
    (4) create a link of database linking installations of oracle unix/windows

    Is really the only way forward? Or have I missed something?

    The sqlsvr installation is on a third-party server with limited access - I can't install oracle on it (even if I can create an ODBC).

    Thanks in advance.

    Hello

    In the listener.ora, you must add an entry for SID_LIST_LISTENER, something like this:

    SID_LIST_LISTENER=
    (SID_LIST=
       (SID_DESC=
          (SID_NAME=dg4msql)
          (ORACLE_HOME=oracle_home_directory)
          (PROGRAM=dg4msql)
       )
    )
    

    Kind regards
    Sylvie

  • Impossible to download Service Pack 3 for SQL Server 2008 R2

    Try to get the SP3 for SQL Server 2008 R2.   Is the Microsoft downloads page below or...?   I get page not found error.

    Click on the link in this article: https://support.microsoft.com/en-us/kb/2979597 no chance

    Go there directly: http://go.microsoft.com/fwlink/?LinkID=512818&clcid=0x409 no chance

    I searched the web for SQLServer2008R2SP3-KB2979597 - x 64 - ENU.exe, but found no site I trusted enough to download the file.

    Hello

    There are reports of other users unable download as other SQL Server related downloads such as the Feature Pack for SQL Server 2014 and the download page of the Data Mining add-in for Excel 2013.

    This should be a temporary problem. Try again in a few hours.

    I hope this helps.

    Kind regards

    Alberto Morillo
    SQLCoffee.com

  • 11 driver ODBC Microsoft® for SQL Server® - Windows - files not available

    It seems that the files are not available...

    Microsoft ODBC Driver for SQL Server® - Windows 11

    https://www.Microsoft.com/en-US/Download/details.aspx?ID=36434

    When I go to this URL - click on the one that I want - no download works.  I tried a couple of computers different and various internet connections.  Doesn't seem to be a firewall / the problem linked to the internet.

    It seems that files no longer just on Microsoft servers.

    Any other place I can get these from?

    Thank you!
    Jeff

    Jeff

    It seems to be a systemic problem with this exact problem.  I reported it but no answer yet

  • Unable to kenza link to download the Patch MS02-061 for SQL Server 2000

    original title: can not download Patch MS02-061

    Hello

    I know this is an old patch but our new VPN software was listed as a patch that is required if SQL Server 2000 is installed.  I get out the site and I am unable to download.  Telling me that it can't find it when I click on the link:

    http://support.Microsoft.com/default.aspx?scid=kb;en-us;316333&SD=Tech

    It is on the page: http://www.microsoft.com/technet/security/bulletin/ms02-061.mspx

    This is supposed to be the patch that replaces MS02-039.

    Thank you!
    Ryan

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    You will find appropriate support for SQL Server in this forum: http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/threads

  • A security update for SQL Server 2005 Service Pack 3 (KB970892) could not istall

    "A security update for SQL Server 2005 Service Pack 3 (KB970892) istall failure."

    I'm not sure if this is the right place to post this but I hope I can get help.
    I can't get the update mentioned above to install after several attempts. Have searched the knowledge base and tried various suggestions of solutions without success.
    If anyone has or had this same problem and it is resolved, I'd appreciate knowing how and where to get information. Thanks in advance for your help and your computer happy.

    Rhamnar68It

    "A security update for SQL Server 2005 Service Pack 3 (KB970892) istall failure."

    I'm not sure if this is the right place to post this but I hope I can get help.
    I can't get the update mentioned above to install after several attempts. Have searched the knowledge base and tried various suggestions of solutions without success.
    If anyone has or had this same problem and it is resolved, I'd appreciate knowing how and where to get information. Thanks in advance for your help and your computer happy.

    Rhamnar68It

    It isn't really the right place (better would have been the forum of Windows Update ), but see the following thread: http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/cafab790-e540-40d3-87ba-4f64e6e82d54/

  • MMR received message when trying to install updated updated unknown security for SQL Server 2005 Service Pack 3 (KB970892) Code 737D error__

    I get the code 737D unknown error when I try to install security for SQL Server 2005 Service Pack 3 (KB970892. I tried everything...

    Here is the Vista Forums.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/

    They will help you in the SQL Server Forums above.

    See you soon.

    Mick Murphy - Microsoft partner

  • Hotfix for SQL Server 2005 Service Pack 3 update

    I tried to get the fix for SQL Server 2005 Service Pack 3 update. I downloaded it, but there is an error that appears. (WindowsUpdate_0000737D""WindowsUpdate_dt000"). I have went threw this Help window to fix this. When I get to step 5 there are two choices. 1 is engine mssmlbiz:Database. 2 is SQLEXPRESS:Database Engine. I choose both of them. one at a time and then I get to step 7 and this is where I hit a wall. I do not have an opption for the next button. Thank you.

    Try posting in the SQL Server Setup & Upgrade forum for assistance: http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/threads/ ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Do not install the update for SQL Server 2005 Service Pack 3 (KB970892) security code error C0000005

    Do not install the update for SQL Server 2005 Service Pack 3 (KB970892) security code error C0000005

    This update didn't install when I used Vista and is still unable to install now, I updated to Windows 7.

    Have searched for a solution for months with no result. Reason why I updated.

    Any help much appreciated.

    DOUGY,

    Microsoft SQL Server 2005 Express Edition Service Pack

    Post here for assistance:

    http://social.msdn.Microsoft.com/forums/en-us/sqlsetupandupgrade/threads/

    --

  • INSTALL update for SQL Server 2005 Service Pack 3 (KB970892) security FAILURE

    A security update for SQL Server 2005 Service Pack 3 (KB970892) WHO CAME through AUTOMATIV UPDATES will NOT INSTALL ON MY PC. Why not?!
    And the Microsoft web site is very helpful in this area. Please get this sort

    You can post on this specific forum: SQL Server Setup & Upgrade
    http://social.msdn.Microsoft.com/forums/en-us/sqlsetupandupgrade/threads/

    or if this is related:

    Error code when you use Windows Update or Microsoft Update to install updates:

    '0x737D '.

    http://support.Microsoft.com/kb/978597 [all OSS]

    TaurArian [MVP] 2005-2010 - Update Services

  • Update of security for sql server sp3 KB94981 fails with error 2B 33

    Each update for SQL Server 2005 on my computer Vista Home Premuim fails. The most recent example is:

    Update of security for sql server sp3 KB94981 fails with error 2B 33

    for SP2, it was

    Security for sql server sp2 KB960089 update fails with error 6AA

    Other updates have been ad are successful, although I found out recently that it is the recovery disc option to create under maintenance contract. I fdound the recdisk.exe file, but running it does nothing.

    Mike

    Maybe check this forum:

    SQL Installation of Server & upgrade
    http://social.msdn.Microsoft.com/forums/en-us/sqlsetupandupgrade/threads/

    TaurArian [MVP] 2005-2010 - Update Services

Maybe you are looking for