One to many to return only one row

hi guys,
i have an urgent problem here. i have a sql statement like below;
SELECT ALM_SWAP2_REP.M_TP_RTMFRP0, ALM_SWAP2_REP.M_TP_RTMFRP1,
ALM_SWAP2_REP.M_TP_RTMFRF0, ALM_SWAP2_REP.M_TP_RTMFRF1,
To_Char(TRN_HDR_DBF.M_OPT_FLWFST,'YYYYMMDD') AS VALDATE, ALM_SWAP2_REP.M_TP_RTFXC02,
ALM_SWAP2_REP.M_TP_RTFXC12, TRN_HDR_DBF.M_BRW_NOMU1, TRN_HDR_DBF.M_BRW_NOMU2,
ALM_SWAP2_REP.M_TP_RTAMC02, ALM_SWAP2_REP.M_TP_RTAMC12,
(CASE WHEN PAY_FLOW_DBF.M_LEG = 0 AND '20100831' BETWEEN To_Char(PAY_FLOW_DBF.M_CALC_DATE0,'YYYYMMDD') AND To_Char(PAY_FLOW_DBF.M_CALC_DATE1,'YYYYMMDD') THEN To_Char(PAY_FLOW_DBF.M_CALC_DATE1,'YYYYMMDD') END) AS RCV_DATE,
(CASE WHEN PAY_FLOW_DBF.M_LEG = 1 AND '20100831' BETWEEN To_Char(PAY_FLOW_DBF.M_CALC_DATE0,'YYYYMMDD') AND To_Char(PAY_FLOW_DBF.M_CALC_DATE1,'YYYYMMDD') THEN To_Char(PAY_FLOW_DBF.M_CALC_DATE1,'YYYYMMDD') END) AS PAY_DATE
FROM ALM_SWAP2_REP, TRN_HDR_DBF, PAY_FLOW_DBF WHERE ALM_SWAP2_REP.M_REF_DATA = 456576
AND ALM_SWAP2_REP.M_NB = TRN_HDR_DBF.M_NB
AND ALM_SWAP2_REP.M_NB = PAY_FLOW_DBF.M_TRN_ID
AND ALM_SWAP2_REP.M_NB = 228128
AND '20100831' BETWEEN To_Char(PAY_FLOW_DBF.M_CALC_DATE0,'YYYYMMDD') AND To_Char(PAY_FLOW_DBF.M_CALC_DATE1,'YYYYMMDD')
ORDER BY ALM_SWAP2_REP.M_TRN_GRP, ALM_SWAP2_REP.M_NB
When I join few tables, the results are returned in two rows because I have two records that in table PAY_FLOW_DBF that matches one row in table ALM_SWAP2_REP. I need these two matches but I want it to be returned in only one row without using group by. Pls help me. Thankls

user9274041 wrote:
i have an urgent problem here.http://www.oracle.com/html/terms.html
>
4. Use of Community Services
Community Services are provided as a convenience to users and Oracle is not obligated to provide any technical support for, or participate in, Community Services. While Community Services may include information regarding Oracle products and services, including information from Oracle employees, they are not an official customer support channel for Oracle.
You may use Community Services subject to the following: (a) Community Services may be used solely for your personal, informational, noncommercial purposes; (b) Content provided on or through Community Services may not be redistributed; and (c) personal data about other users may not be stored or collected except where expressly authorized by Oracle
>
Could you explain how something that is for your personal, informational, noncommercial purposes can be urgent?
Or is this a violation of the terms of use and abuse of these forums?

Similar Messages

  • Dg4odbc 11.2 to mysql desc table issue, query return only one record

    <h2>Hi,
    I have the following set up:
    11g R2 RAC oracle database, dg4odbc 11.2, UnixODBC 2.3 driver manager, MySQL ODBC 5.1.7 Driver on 64 bit Suse SLES 11 server.
    Remote database MySQL version 5.0.67 running on 32 bit linux server.
    I am having the following Issues:
    1. When desc table, sometimes only the first field is shown:
    SQL> desc sub_index@mybilltracker;
    Name Null? Type
    subject_id NOT NULL NUMBER(20)
    SQL> desc "sub_index"@mybilltracker;
    Name Null? Type
    subject_id NOT NULL NUMBER(20)
    Some other times I am able to see the correct table definition:
    SQL> desc "sub_index"@mybilltracker;
    Name Null? Type
    subject_id NOT NULL NUMBER(20)
    sess_id NUMBER(10)
    sess_yr NUMBER(10)
    subject_name VARCHAR2(255)
    SQL> desc sub_index@mybilltracker;
    Name Null? Type
    subject_id NOT NULL NUMBER(20)
    2. Select count(*) returns the total number of rows correctly. Select * or Select "field name" from table returns only one row:
    SQL> select count(*) from "mbt_user"@mybilltracker;
    COUNT(*)
    2
    SQL> select "user_id", "email" from "mbt_user"@mybilltracker; _(always return only one record!)_
    user_id email
    1 [email protected]
    Has anybody seen this? Can somebody help me pinpoint the problem? Thank you!
    </h2>
    =======================================
    <h2>Params in odbc.ini:[ODBC Data Sources]
    myodbc5 = MyODBC 5.17 Driver DSN
    [myodbc5]
    Driver = /usr/local/lib/libmyodbc5.so
    Description = Connector/ODBC 5.17 Driver DSN
    SERVER = *serverip
    PORT = *port
    USER = *user
    Password = *password
    Database = MyBillTracker
    #CHARSET = latin1
    QuotedId = Yes
    AnsiNPW = Yes
    TRACEFILE = /tmp/myodbc-MyBillTracker.trc
    TRACE = OFF
    </h2>
    =======================================
    <h2>params in initmyodbc5.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO = myodbc5
    HS_FDS_TRACE_LEVEL = DEBUG
    HS_FDS_SHAREABLE_NAME = /usr/local/lib/libodbc.so
    HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    HS_FDS_SUPPORT_STATISTICS=FALSE
    # ODBC specific environment variables
    set ODBCINI=/usr/local/etc/odbc.ini
    </h2>
    ===========================================
    Oracle HS Trace file:
    Oracle Corporation --- WEDNESDAY SEP 01 2010 16:11:19.060
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- WEDNESDAY SEP 01 2010 16:11:19.059
    Version 11.2.0.1.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_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw
    $:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "myodbc5"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:myodbc5
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/09/01-16:11:19
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/lib/libodbc.so"
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x159540
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1596f0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x159f20
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x15b230
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x163420
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x163880
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1661c0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1678f0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x168100
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x169c60
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x169c70
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16b3c0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16e640
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16ea00
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1705e0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1711d0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x171500
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1733a0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x173810
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x175870
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x175630
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x15bb50
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x15d4a0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x160e10
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x162cd0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x164400
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x167360
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x168a50
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x169fd0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16ba60
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16bfb0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16d2c0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16deb0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16f4a0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x16f760
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x170230
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x171cc0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1721e0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1727d0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x172e10
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x173ae0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x176ca0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1752b0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x1785b0
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Entered hgolofns at 2010/09/01-16:11:19
    symbol_peflctx=0x179260
    hoaerr:0
    Exiting hgolofns at 2010/09/01-16:11:19
    Exiting hgolofn, rc=0 at 2010/09/01-16:11:19
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2010/09/01-16:11:19
    Entered hgolgon at 2010/09/01-16:11:19
    reco:0, name:oracle, tflag:0
    Entered hgosuec at 2010/09/01-16:11:19
    Exiting hgosuec, rc=0 at 2010/09/01-16:11:19
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using oracle as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/09/01-16:11:19
    HS_FDS_CONNECT_INFO = "myodbc5"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/09/01-16:11:19
    dsn:myodbc5, name:oracle
    optn:
    Entered hgocip at 2010/09/01-16:11:19
    dsn:myodbc5
    Exiting hgocip, rc=0 at 2010/09/01-16:11:19
    Exiting hgogenconstr, rc=0 at 2010/09/01-16:11:19
    Entered hgolosf at 2010/09/01-16:11:19
    Exiting hgolosf, rc=0 at 2010/09/01-16:11:19
    DriverName:libmyodbc5.so, DriverVer:05.01.0007
    DBMS Name:MySQL, DBMS Version:5.0.67
    Exiting hgocont, rc=0 at 2010/09/01-16:11:19
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 192 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2010/09/01-16:11:19
    Entered hgoulcp at 2010/09/01-16:11:19
    Entered hgowlst at 2010/09/01-16:11:19
    Exiting hgowlst, rc=0 at 2010/09/01-16:11:19
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:3, Isolation Option:0xf
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    4 instance capabilities will be uploaded
    capno:1964, context:0x00000000, add-info: 0
    capno:1989, context:0x00000000, add-info: 0
    capno:1991, context:0x0001ffff, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
    Exiting hgoulcp, rc=0 at 2010/09/01-16:11:19
    Entered hgouldt at 2010/09/01-16:11:19
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2010/09/01-16:11:19
    Entered hgobegn at 2010/09/01-16:11:19
    tflag:0 , initial:1
    hoi:0x15d8f088, ttid (len 34) is ...
    00: 47454D53 2E4C534F 2E4C4F43 414C2E31 [GEMS.LSO.LOCAL.1]
    10: 37373837 3164662E 31302E35 342E3533 [77871df.10.54.53]
    20: 3938 [98]
    tbid (len 31) is ...
    00: 47454D53 2E4C534F 2E4C4F43 414C5B31 [GEMS.LSO.LOCAL[1]
    10: 302E3534 2E353339 385D5B31 2E345D [0.54.5398][1.4]]
    Exiting hgobegn, rc=0 at 2010/09/01-16:11:19
    Entered hgodtab at 2010/09/01-16:11:19
    count:1
    table: mbt_user
    Allocate hoada[0] @ 0x7a6440
    Entered hgopcda at 2010/09/01-16:11:19
    Column:1(user_id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:19
    Entered hgopcda at 2010/09/01-16:11:19
    Column:2(email): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:0, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:19
    Entered hgopcda at 2010/09/01-16:11:19
    Column:3(last_logged_in): dtype:93 (TIMESTAMP), prc/scl:19/0, nullbl:1, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:19
    Entered hgopcda at 2010/09/01-16:11:19
    Column:4(mailing_list): dtype:-7 (BIT), prc/scl:1/0, nullbl:1, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:19
    Entered hgopcda at 2010/09/01-16:11:19
    Column:5(password): dtype:-1 (LONGVARCHAR), prc/scl:65535/0, nullbl:0, octet:65535, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:19
    The hoada for table mbt_user follows...
    hgodtab, line 876: Printing hoada @ 0x7a6440
    MAX:5, ACTUAL:5, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 0 0 0/ 0 0 0 220 password
    Exiting hgodtab, rc=0 at 2010/09/01-16:11:19
    Entered hgodafr, cursor id 0 at 2010/09/01-16:11:19
    Free hoada @ 0x7a6440
    Exiting hgodafr, rc=0 at 2010/09/01-16:11:19
    Entered hgopars, cursor id 1 at 2010/09/01-16:11:19
    type:0
    SQL text from hgopars, id=1, len=34 ...
    00: 53454C45 43542043 4F554E54 282A2920 [SELECT COUNT(*) ]
    10: 46524F4D 20606D62 745F7573 65726020 [FROM `mbt_user` ]
    20: 4131 [A1]
    Exiting hgopars, rc=0 at 2010/09/01-16:11:19
    Entered hgoopen, cursor id 1 at 2010/09/01-16:11:19
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/01-16:11:19
    Entered hgodscr, cursor id 1 at 2010/09/01-16:11:19
    Allocate hoada @ 0x7a6440
    Entered hgopcda at 2010/09/01-16:11:19
    Column:1(COUNT(*)): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:0, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:19
    hgodscr, line 880: Printing hoada @ 0x7a6440
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    Exiting hgodscr, rc=0 at 2010/09/01-16:11:19
    Entered hgoftch, cursor id 1 at 2010/09/01-16:11:19
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -25, bflsz: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    1 rows fetched
    Exiting hgoftch, rc=0 at 2010/09/01-16:11:19
    Entered hgoftch, cursor id 1 at 2010/09/01-16:11:19
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:1, ACTUAL:1, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/09/01-16:11:19
    Entered hgoclse, cursor id 1 at 2010/09/01-16:11:26
    Exiting hgoclse, rc=0 at 2010/09/01-16:11:26
    Entered hgodafr, cursor id 1 at 2010/09/01-16:11:26
    Free hoada @ 0x7a6440
    Exiting hgodafr, rc=0 at 2010/09/01-16:11:26
    Entered hgopars, cursor id 1 at 2010/09/01-16:11:26
    type:0
    SQL text from hgopars, id=1, len=49 ...
    00: 53454C45 43542041 312E6075 7365725F [SELECT A1.`user_]
    10: 6964602C 41312E60 656D6169 6C602046 [id`,A1.`email` F]
    20: 524F4D20 606D6274 5F757365 72602041 [ROM `mbt_user` A]
    30: 31 [1]
    Exiting hgopars, rc=0 at 2010/09/01-16:11:26
    Entered hgoopen, cursor id 1 at 2010/09/01-16:11:26
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/01-16:11:26
    Entered hgodscr, cursor id 1 at 2010/09/01-16:11:26
    Allocate hoada @ 0x7a6440
    Entered hgopcda at 2010/09/01-16:11:26
    Column:1(user_id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:26
    Entered hgopcda at 2010/09/01-16:11:26
    Column:2(email): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:0, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:26
    hgodscr, line 880: Printing hoada @ 0x7a6440
    MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    Exiting hgodscr, rc=0 at 2010/09/01-16:11:26
    Entered hgoftch, cursor id 1 at 2010/09/01-16:11:26
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -25, bflsz: 8
    SQLBindCol: column 2, cdatatype: 1, bflsz: 256
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    SQLFetch: row: 1, column 2, bflsz: 256, bflar: 21
    SQLFetch: row: 1, column 2, bflsz: 256, bflar: 21, (bfl: 255, mbl: 255)
    1 rows fetched
    Exiting hgoftch, rc=0 at 2010/09/01-16:11:26
    Entered hgoftch, cursor id 1 at 2010/09/01-16:11:26
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:2, ACTUAL:2, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 21 255 0/ 0 0 0 200 email
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/09/01-16:11:26
    Entered hgoclse, cursor id 1 at 2010/09/01-16:11:39
    Exiting hgoclse, rc=0 at 2010/09/01-16:11:39
    Entered hgodafr, cursor id 1 at 2010/09/01-16:11:39
    Free hoada @ 0x7a6440
    Exiting hgodafr, rc=0 at 2010/09/01-16:11:39
    Entered hgopars, cursor id 1 at 2010/09/01-16:11:39
    type:0
    SQL text from hgopars, id=1, len=101 ...
    00: 53454C45 43542041 312E6075 7365725F [SELECT A1.`user_]
    10: 6964602C 41312E60 656D6169 6C602C41 [id`,A1.`email`,A]
    20: 312E606C 6173745F 6C6F6767 65645F69 [1.`last_logged_i]
    30: 6E602C41 312E606D 61696C69 6E675F6C [n`,A1.`mailing_l]
    40: 69737460 2C41312E 60706173 73776F72 [ist`,A1.`passwor]
    50: 64602046 524F4D20 606D6274 5F757365 [d` FROM `mbt_use]
    60: 72602041 31 [r` A1]
    Exiting hgopars, rc=0 at 2010/09/01-16:11:39
    Entered hgoopen, cursor id 1 at 2010/09/01-16:11:39
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/01-16:11:39
    Entered hgodscr, cursor id 1 at 2010/09/01-16:11:39
    Allocate hoada @ 0x7a6440
    Entered hgopcda at 2010/09/01-16:11:39
    Column:1(user_id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:39
    Entered hgopcda at 2010/09/01-16:11:39
    Column:2(email): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:0, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:39
    Entered hgopcda at 2010/09/01-16:11:39
    Column:3(last_logged_in): dtype:93 (TIMESTAMP), prc/scl:19/0, nullbl:1, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:39
    Entered hgopcda at 2010/09/01-16:11:39
    Column:4(mailing_list): dtype:-7 (BIT), prc/scl:1/0, nullbl:1, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:39
    Entered hgopcda at 2010/09/01-16:11:39
    Column:5(password): dtype:-1 (LONGVARCHAR), prc/scl:65535/0, nullbl:0, octet:65535, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/01-16:11:39
    hgodscr, line 880: Printing hoada @ 0x7a6440
    MAX:5, ACTUAL:5, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 0 0 0/ 0 0 0 220 password
    Exiting hgodscr, rc=0 at 2010/09/01-16:11:39
    Entered hgoftch, cursor id 1 at 2010/09/01-16:11:39
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:5, ACTUAL:5, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 766 0 0/ 0 0 0 220 password
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -25, bflsz: 8
    SQLBindCol: column 2, cdatatype: 1, bflsz: 256
    SQLBindCol: column 3, cdatatype: 93, bflsz: 16
    SQLBindCol: column 4, cdatatype: -28, bflsz: 1
    SQLBindCol: column 5, cdatatype: 1, bflsz: 767
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    SQLFetch: row: 1, column 2, bflsz: 256, bflar: 21
    SQLFetch: row: 1, column 2, bflsz: 256, bflar: 21, (bfl: 255, mbl: 255)
    SQLFetch: row: 1, column 3, bflsz: 16, bflar: 16
    SQLFetch: row: 1, column 3, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
    SQLFetch: row: 1, column 4, bflsz: 1, bflar: 1
    SQLFetch: row: 1, column 4, bflsz: 1, bflar: 1, (bfl: 1, mbl: 1)
    SQLFetch: row: 1, column 5, bflsz: 767, bflar: 40
    SQLFetch: row: 1, column 5, bflsz: 767, bflar: 40, (bfl: 766, mbl: 0)
    1 rows fetched
    Exiting hgoftch, rc=0 at 2010/09/01-16:11:39
    Entered hgoftch, cursor id 1 at 2010/09/01-16:11:39
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:5, ACTUAL:5, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 21 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 766 0 0/ 0 0 0 220 password
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/09/01-16:11:39
    Entered hgoclse, cursor id 1 at 2010/09/01-16:11:45
    Exiting hgoclse, rc=0 at 2010/09/01-16:11:45
    Entered hgodafr, cursor id 1 at 2010/09/01-16:11:45
    Free hoada @ 0x7a6440
    Exiting hgodafr, rc=0 at 2010/09/01-16:11:45
    Entered hgocomm at 2010/09/01-16:11:45
    keepinfo:0, tflag:1
    00: 47454D53 2E4C534F 2E4C4F43 414C2E31 [GEMS.LSO.LOCAL.1]
    10: 37373837 3164662E 31302E35 342E3533 [77871df.10.54.53]
    20: 3938 [98]
    tbid (len 31) is ...
    00: 47454D53 2E4C534F 2E4C4F43 414C5B31 [GEMS.LSO.LOCAL[1]
    10: 302E3534 2E353339 385D5B31 2E345D [0.54.5398][1.4]]
    cmt(0):
    Entered hgocpctx at 2010/09/01-16:11:45
    Exiting hgocpctx, rc=0 at 2010/09/01-16:11:45
    Exiting hgocomm, rc=0 at 2010/09/01-16:11:45
    Entered hgolgof at 2010/09/01-16:11:45
    tflag:1
    Exiting hgolgof, rc=0 at 2010/09/01-16:11:45
    Entered hgoexit at 2010/09/01-16:11:45
    Exiting hgoexit, rc=0

    <h2>This is the scenario where describe table only shows the first field during the first SQLPlus session. I closed the first SQLPlus session, simply opened a new SQLPlus session. Describe table shows all column definitions of MySQL table this time. You can see that there are three records in tracking_list table, however, select * from "tracking_list"@mybilltracker only retruns one record.</h2>
    First SQLPlus Session:
    SQL> describe "tracking_list"@mybilltracker;
    Name Null? Type
    list_id NUMBER(20)
    SQL> select count(*) from "tracking_list"@mybilltracker;
    COUNT(*)
    3
    SQL> select * from "tracking_list"@mybilltracker;
    list_id
    1
    SQL> describe "tracking_list"@mybilltracker;
    Name Null? Type
    list_id NUMBER(20)
    SQL> exit
    ========================================
    Second SQLPlus Session:
    Connected.
    SQL> describe "tracking_list"@mybilltracker;
    Name Null? Type
    list_id NUMBER(20)
    last_updt_date DATE
    list_create_date DATE
    list_name NOT NULL VARCHAR2(255)
    list_yr NOT NULL NUMBER(10)
    user_id NUMBER(20)
    SQL> select count(*) from "tracking_list"@mybilltracker;
    COUNT(*)
    3
    SQL> select * from "tracking_list"@mybilltracker;
    list_id last_updt list_crea
    list_name
    list_yr user_id
    1 02-SEP-10 02-SEP-10
    List 1
    2010 1
    SQL> exit
    =============================================
    HS trace file for the first SQLPlus session:
    Oracle Corporation --- THURSDAY SEP 02 2010 09:55:46.523
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY SEP 02 2010 09:55:46.522
    Version 11.2.0.1.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_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "myodbc5"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:myodbc5
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/09/02-09:55:46
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/lib/libodbc.so"
    Entered hgolofns at 2010/09/02-09:55:46
    symbol_peflctx=0xdc523540
    hoaerr:0
    Exiting hgolofns at 2010/09/02-09:55:46
    ......(repeating .....)
    Entered hgolofns at 2010/09/02-09:55:46
    symbol_peflctx=0xdc543260
    hoaerr:0
    Exiting hgolofns at 2010/09/02-09:55:46
    Exiting hgolofn, rc=0 at 2010/09/02-09:55:46
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2010/09/02-09:55:46
    Entered hgolgon at 2010/09/02-09:55:46
    reco:0, name:oracle, tflag:0
    Entered hgosuec at 2010/09/02-09:55:46
    Exiting hgosuec, rc=0 at 2010/09/02-09:55:46
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using oracle as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/09/02-09:55:46
    HS_FDS_CONNECT_INFO = "myodbc5"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/09/02-09:55:46
    dsn:myodbc5, name:oracle
    optn:
    Entered hgocip at 2010/09/02-09:55:46
    dsn:myodbc5
    Exiting hgocip, rc=0 at 2010/09/02-09:55:46
    Exiting hgogenconstr, rc=0 at 2010/09/02-09:55:46
    Entered hgolosf at 2010/09/02-09:55:46
    Exiting hgolosf, rc=0 at 2010/09/02-09:55:46
    DriverName:libmyodbc5.so, DriverVer:05.01.0007
    DBMS Name:MySQL, DBMS Version:5.0.67
    Exiting hgocont, rc=0 at 2010/09/02-09:55:46
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 192 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2010/09/02-09:55:46
    Entered hgoulcp at 2010/09/02-09:55:46
    Entered hgowlst at 2010/09/02-09:55:46
    Exiting hgowlst, rc=0 at 2010/09/02-09:55:46
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    TXN Capable:3, Isolation Option:0xf
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    4 instance capabilities will be uploaded
    capno:1964, context:0x00000000, add-info: 0
    capno:1989, context:0x00000000, add-info: 0
    capno:1991, context:0x0001ffff, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
    Exiting hgoulcp, rc=0 at 2010/09/02-09:55:46
    Entered hgouldt at 2010/09/02-09:55:46
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2010/09/02-09:55:46
    Entered hgobegn at 2010/09/02-09:55:46
    tflag:0 , initial:1
    hoi:0x8b4b52f8, ttid (len 34) is ...
    00: 47454D53 2E4C534F 2E4C4F43 414C2E31 [GEMS.LSO.LOCAL.1]
    10: 37373837 3164662E 33322E36 382E3335 [77871df.32.68.35]
    20: 3630 [60]
    tbid (len 31) is ...
    00: 47454D53 2E4C534F 2E4C4F43 414C5B33 [GEMS.LSO.LOCAL[3]
    10: 322E3638 2E333536 305D5B31 2E345D [2.68.3560][1.4]]
    Exiting hgobegn, rc=0 at 2010/09/02-09:55:46
    Entered hgodtab at 2010/09/02-09:55:46
    count:1
    table: mbt_user
    Allocate hoada[0] @ 0x7a6440
    Entered hgopcda at 2010/09/02-09:55:46
    Column:1(user_id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:46
    Entered hgopcda at 2010/09/02-09:55:46
    Column:2(email): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:0, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:46
    Entered hgopcda at 2010/09/02-09:55:46
    Column:3(last_logged_in): dtype:93 (TIMESTAMP), prc/scl:19/0, nullbl:1, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:46
    Entered hgopcda at 2010/09/02-09:55:46
    Column:4(mailing_list): dtype:-7 (BIT), prc/scl:1/0, nullbl:1, octet:255, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:46
    Entered hgopcda at 2010/09/02-09:55:46
    Column:5(password): dtype:-1 (LONGVARCHAR), prc/scl:65535/0, nullbl:0, octet:65535, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:46
    The hoada for table mbt_user follows...
    hgodtab, line 876: Printing hoada @ 0x7a6440
    MAX:5, ACTUAL:5, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 0 0 0/ 0 0 0 220 password
    Exiting hgodtab, rc=0 at 2010/09/02-09:55:46
    Entered hgodafr, cursor id 0 at 2010/09/02-09:55:46
    Free hoada @ 0x7a6440
    Exiting hgodafr, rc=0 at 2010/09/02-09:55:46
    Entered hgopars, cursor id 1 at 2010/09/02-09:55:52
    type:0
    SQL text from hgopars, id=1, len=101 ...
    00: 53454C45 43542041 312E6075 7365725F [SELECT A1.`user_]
    10: 6964602C 41312E60 656D6169 6C602C41 [id`,A1.`email`,A]
    20: 312E606C 6173745F 6C6F6767 65645F69 [1.`last_logged_i]
    30: 6E602C41 312E606D 61696C69 6E675F6C [n`,A1.`mailing_l]
    40: 69737460 2C41312E 60706173 73776F72 [ist`,A1.`passwor]
    50: 64602046 524F4D20 606D6274 5F757365 [d` FROM `mbt_use]
    60: 72602041 31 [r` A1]
    Exiting hgopars, rc=0 at 2010/09/02-09:55:52
    Entered hgoopen, cursor id 1 at 2010/09/02-09:55:52
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/02-09:55:52
    Entered hgodscr, cursor id 1 at 2010/09/02-09:55:52
    Allocate hoada @ 0x7a63a0
    Entered hgopcda at 2010/09/02-09:55:52
    Column:1(user_id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:52
    Entered hgopcda at 2010/09/02-09:55:52
    Column:2(email): dtype:12 (VARCHAR), prc/scl:255/0, nullbl:0, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:52
    Entered hgopcda at 2010/09/02-09:55:52
    Column:3(last_logged_in): dtype:93 (TIMESTAMP), prc/scl:19/0, nullbl:1, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:52
    Entered hgopcda at 2010/09/02-09:55:52
    Column:4(mailing_list): dtype:-7 (BIT), prc/scl:1/0, nullbl:1, octet:255, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:52
    Entered hgopcda at 2010/09/02-09:55:52
    Column:5(password): dtype:-1 (LONGVARCHAR), prc/scl:65535/0, nullbl:0, octet:65535, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-09:55:52
    hgodscr, line 880: Printing hoada @ 0x7a63a0
    MAX:5, ACTUAL:5, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 0 0 0/ 0 0 0 220 password
    Exiting hgodscr, rc=0 at 2010/09/02-09:55:52
    Entered hgoftch, cursor id 1 at 2010/09/02-09:55:52
    hgoftch, line 130: Printing hoada @ 0x7a63a0
    MAX:5, ACTUAL:5, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 255 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 766 0 0/ 0 0 0 220 password
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -25, bflsz: 8
    SQLBindCol: column 2, cdatatype: 1, bflsz: 256
    SQLBindCol: column 3, cdatatype: 93, bflsz: 16
    SQLBindCol: column 4, cdatatype: -28, bflsz: 1
    SQLBindCol: column 5, cdatatype: 1, bflsz: 767
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    SQLFetch: row: 1, column 2, bflsz: 256, bflar: 21
    SQLFetch: row: 1, column 2, bflsz: 256, bflar: 21, (bfl: 255, mbl: 255)
    SQLFetch: row: 1, column 3, bflsz: 16, bflar: 16
    SQLFetch: row: 1, column 3, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
    SQLFetch: row: 1, column 4, bflsz: 1, bflar: 1
    SQLFetch: row: 1, column 4, bflsz: 1, bflar: 1, (bfl: 1, mbl: 1)
    SQLFetch: row: 1, column 5, bflsz: 767, bflar: 40
    SQLFetch: row: 1, column 5, bflsz: 767, bflar: 40, (bfl: 766, mbl: 0)
    1 rows fetched
    Exiting hgoftch, rc=0 at 2010/09/02-09:55:52
    Entered hgoftch, cursor id 1 at 2010/09/02-09:55:52
    hgoftch, line 130: Printing hoada @ 0x7a63a0
    MAX:5, ACTUAL:5, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 user_id
    12 VARCHAR N 21 255 0/ 0 0 0 200 email
    91 DATE Y 16 16 0/ 0 0 0 0 last_logged_in
    -7 BIT Y 1 1 0/ 0 0 0 20 mailing_list
    -1 LONGVARCHAR N 766 0 0/ 0 0 0 220 password
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/09/02-09:55:52
    Entered hgoclse, cursor id 1 at 2010/09/02-09:56:16
    Exiting hgoclse, rc=0 at 2010/09/02-09:56:16
    Entered hgodafr, cursor id 1 at 2010/09/02-09:56:16
    Free hoada @ 0x7a63a0
    Exiting hgodafr, rc=0 at 2010/09/02-09:56:16
    Entered hgopars, cursor id 1 at 2010/09/02-09:56:16
    type:0
    SQL text from hgopars, id=1, len=34 ...
    00: 53454C45 43542043 4F554E54 282A2920 [SELECT COUNT(*) ]
    10: 46524F4D 20606D62 745F7573 65726020 [FROM `mbt_user` ]
    20: 4131 [A1]
    Exiting hgopars, rc=0 at 2010/09/02-09:56:16
    Entered hgoopen, cursor id 1 at 2010/09/02-09:56:16
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/02-09:56:16
    Entered hgodscr, cursor id 1 at 2010/09/02-09:56:16
    Allocate hoada @ 0x7a63a0
    Entered hgopcda at 2010/09/02-09:56:16
    Column:1(COUNT(*)): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:0, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-09:56:16
    hgodscr, line 880: Printing hoada @ 0x7a63a0
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    Exiting hgodscr, rc=0 at 2010/09/02-09:56:16
    Entered hgoftch, cursor id 1 at 2010/09/02-09:56:16
    hgoftch, line 130: Printing hoada @ 0x7a63a0
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -25, bflsz: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    1 rows fetched
    Exiting hgoftch, rc=0 at 2010/09/02-09:56:16
    Entered hgoftch, cursor id 1 at 2010/09/02-09:56:16
    hgoftch, line 130: Printing hoada @ 0x7a63a0
    MAX:1, ACTUAL:1, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/09/02-09:56:16
    Entered hgodtab at 2010/09/02-10:03:18
    count:1
    table: tracking_list
    Allocate hoada[0] @ 0x7ebbd0
    Entered hgopcda at 2010/09/02-10:03:18
    Column:1(list_id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2010/09/02-10:03:18
    The hoada for table tracking_list follows...
    hgodtab, line 876: Printing hoada @ 0x7ebbd0
    MAX:1, ACTUAL:1, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 list_id
    Exiting hgodtab, rc=0 at 2010/09/02-10:03:18
    Entered hgodafr, cursor id 0 at 2010/09/02-10:03:18
    Free hoada @ 0x7ebbd0
    Exiting hgodafr, rc=0 at 2010/09/02-10:03:18
    Entered hgoclse, cursor id 1 at 2010/09/02-10:06:11
    Exiting hgoclse, rc=0 at 2010/09/02-10:06:11
    Entered hgodafr, cursor id 1 at 2010/09/02-10:06:11
    Free hoada @ 0x7a63a0
    Exiting hgodafr, rc=0 at 2010/09/02-10:06:11
    Entered hgopars, cursor id 1 at 2010/09/02-10:06:11
    type:0
    SQL text from hgopars, id=1, len=39 ...
    00: 53454C45 43542043 4F554E54 282A2920 [SELECT COUNT(*) ]
    10: 46524F4D 20607472 61636B69 6E675F6C [FROM `tracking_l]
    20: 69737460 204131 [ist` A1]
    Exiting hgopars, rc=0 at 2010/09/02-10:06:11
    Entered hgoopen, cursor id 1 at 2010/09/02-10:06:11
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/02-10:06:11
    Entered hgodscr, cursor id 1 at 2010/09/02-10:06:11
    Allocate hoada @ 0x7a63e8
    Entered hgopcda at 2010/09/02-10:06:11
    Column:1(COUNT(*)): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:0, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-10:06:11
    hgodscr, line 880: Printing hoada @ 0x7a63e8
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    Exiting hgodscr, rc=0 at 2010/09/02-10:06:11
    Entered hgoftch, cursor id 1 at 2010/09/02-10:06:11
    hgoftch, line 130: Printing hoada @ 0x7a63e8
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -25, bflsz: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    1 rows fetched
    Exiting hgoftch, rc=0 at 2010/09/02-10:06:11
    Entered hgoftch, cursor id 1 at 2010/09/02-10:06:11
    hgoftch, line 130: Printing hoada @ 0x7a63e8
    MAX:1, ACTUAL:1, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT N 8 8 0/ 0 0 0 20 COUNT(*)
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/09/02-10:06:11
    Entered hgoclse, cursor id 1 at 2010/09/02-10:06:20
    Exiting hgoclse, rc=0 at 2010/09/02-10:06:20
    Entered hgodafr, cursor id 1 at 2010/09/02-10:06:20
    Free hoada @ 0x7a63e8
    Exiting hgodafr, rc=0 at 2010/09/02-10:06:20
    Entered hgopars, cursor id 1 at 2010/09/02-10:06:20
    type:0
    SQL text from hgopars, id=1, len=43 ...
    00: 53454C45 43542041 312E606C 6973745F [SELECT A1.`list_]
    10: 69646020 46524F4D 20607472 61636B69 [id` FROM `tracki]
    20: 6E675F6C 69737460 204131 [ng_list` A1]
    Exiting hgopars, rc=0 at 2010/09/02-10:06:20
    Entered hgoopen, cursor id 1 at 2010/09/02-10:06:20
    hgoopen, line 86: NO hoada to print
    Deferred open until first fetch.
    Exiting hgoopen, rc=0 at 2010/09/02-10:06:20
    Entered hgodscr, cursor id 1 at 2010/09/02-10:06:20
    Allocate hoada @ 0x7a6440
    Entered hgopcda at 2010/09/02-10:06:20
    Column:1(list_id): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2010/09/02-10:06:20
    hgodscr, line 880: Printing hoada @ 0x7a6440
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 list_id
    Exiting hgodscr, rc=0 at 2010/09/02-10:06:20
    Entered hgoftch, cursor id 1 at 2010/09/02-10:06:20
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:1, ACTUAL:1, BRC:100, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 list_id
    Performing delayed open.
    SQLBindCol: column 1, cdatatype: -25, bflsz: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8
    SQLFetch: row: 1, column 1, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
    1 rows fetched
    Exiting hgoftch, rc=0 at 2010/09/02-10:06:20
    Entered hgoftch, cursor id 1 at 2010/09/02-10:06:20
    hgoftch, line 130: Printing hoada @ 0x7a6440
    MAX:1, ACTUAL:1, BRC:1, WHT=5 (SELECT_LIST)
    hoadaMOD bit-values found (0x20:NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    -5 BIGINT Y 8 8 0/ 0 0 0 20 list_id
    0 rows fetched
    Exiting hgoftch, rc=1403 at 2010/09/02-10:06:20
    Entered hgoclse, cursor id 1 at 2010/09/02-10:06:55
    Exiting hgoclse, rc=0 at 2010/09/02-10:06:55
    Entered hgodafr, cursor id 1 at 2010/09/02-10:06:55
    Free hoada @ 0x7a6440
    Exiting hgodafr, rc=0 at 2010/09/02-10:06:55
    Entered hgocomm at 2010/09/02-10:06:55
    keepinfo:0, tflag:1
    00: 47454D53 2E4C534F 2E4C4F43 414C2E31 [GEMS.LSO.LOCAL.1]
    10: 37373837 3164662E 33322E36 382E3335 [77871df.32.68.35]
    20: 3630 [60]
    tbid (len 31) is ...
    00: 47454D53 2E4C534F 2E4C4F43 414C5B33 [GEMS.LSO.LOCAL[3]
    10: 322E3638 2E333536 305D5B31 2E345D [2.68.3560][1.4]]
    cmt(0):
    Entered hgocpctx at 2010/09/02-10:06:55
    Exiting hgocpctx, rc=0 at 2010/09/02-10:06:55
    Exiting hgocomm, rc=0 at 2010/09/02-10:06:55
    Entered hgolgof at 2010/09/02-10:06:55
    tflag:1
    Exiting hgolgof, rc=0 at 2010/09/02-10:06:55
    Entered hgoexit at 2010/09/02-10:06:55
    Exiting hgoexit, rc=0

  • I need that this query return only one value

    Hi, please. I need your help. I have this query:
    SELECT c.charvalue "Comentario", max(pi.id) as "id" --into :gcpe_last_comment
    FROM twflprocessinstances pi, twfliprocessparameters c
    WHERE pi.id = c.iprocess_id
    AND c.param_id = 1002286
    AND c.charvalue IS NOT NULL
    AND pi.processdef_id = 1600
    AND to_number(pi.id) <> 3817940
    AND to_number(pi.seeparameter1) =80137377
    group by c.charvalue
    having max(pi.id)
    This query return 3 rows, but I need that this query return only one row. The row that this query should return is the row before at the max id. Thanks

    Mmmm...I don't get it.
    You might need to post some sample data and expected results.

  • SQL- Query that return only one record

    Hello,
    is it possible to execute a pure SQL-Query which returns only one row although multiple rows are found.
    It is no problem in PL/SQL, but I have no idea if the same is also possible in SQL.
    thanks in advance
    Michael

    Why not? There are 4 records in this table, but only selected one.
    SQL> with t
      2  as
      3  (
      4     select '#%$@#$@$@##$' Addr from dual
      5     union all
      6     select '18 Jalan Scott' from dual
      7     union all
      8     select '18 Lemana St' from dual
      9     union all
    10     select '32-penstation' from dual
    11     union all
    12     select '99999999999' from dual
    13  )
    14  select addr
    15    from t
    16   where rownum =1
    17  /
    ADDR
    #%$@#$@$@##$
    SQL>Cheers
    Sarma.

  • Request.getParameter("checkbox") Returns only one value

    Hello Friends,
    I have a very urgent problem on live site. I moved my project from jrun2.3.3 to Jrun 3.1 and I was using multiple select and checkboxes.
    With Jrun3.1 if you select multiple select or multiple checkboxes it returns only one value instead of all the values.
    Any help is hightly appreciated.

    If multiple checkboxes have the same name, when selected and submitted, it will pass all values. But you will need to access those using getParameterValues("checkboxname") not getParameter("checkboxname"). The same goes for select elements.
    Perhaps it was a bug in JRun 2.3.3 that allowed you to reference all parameter values using just the getParameter("xxx") method.

  • Return only one record at a time

    I am new to crystal reports so any help would be appreciated.  I have a .net app that is a order processing system.  When the user is in a record, they want to be able to click on a button an open a crystal report showing only that orders details.  I created a crystal report that has the following fields:
    Order ID, Product ID, Unit Price, Sell Price, Hours.
    The Order ID is the primary key in the database.  The report runs fine when clicking the report button in the app, but returns the details for every order in the database.  We just need the details of the order that the user is processing.  How do I setup the report to only show that order's details?  I am using VB 2005 and Crystal v9.
    Edited by: sking on Mar 6, 2009 1:12 AM

    Brian,
    Thank you for all your help.  I have been able to setup the report to return only one record at a time. In my app, when I click the report button the PDF opens perfectly with only one record.  However, when I go to another record and open the PDF it returns the information from the record id that was set as the default parameter value (crReportDocument.SetParameterValue("Orders", 67).  How do I get it to return the report for a different record?  Here is the code I'm using.  I think I'm really close with your suggestions but I'm just missing one step. 
    #Region "CrystalReport"
         ''' <summary>
         '''Override the CrystalReportButton_Click and call DisplayReportAsPDF_CrystalReportButton function
         ''' </summary>
         Public Sub CrystalReportButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
          Dim crReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument
          Dim fileName As String = "test.rpt"
          Try
              If fileName.Substring(1).StartsWith(":\") Then
              crReportDocument.Load(fileName)
          Else
              crReportDocument.Load(Me.Page.MapPath(fileName))
          End If
          Catch ex As Exception
              Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
              errMsg += " Please make sure the dlls for Crystal Report are compatible with the Crystal Report file."
              BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
          End Try
          Try
    Dim paramValue As CrystalDecisions.Shared.ParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue()
               paramValue.Value = "67"
               crReportDocument.SetParameterValue("Orders", 67)
    DisplayReportAsPDF_CrystalReportButton(crReportDocument)
          Catch ex As Exception
              Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
              errMsg += " If this is a deployment machine, make sure network service has permissions to read or write to the windows\temp folder."
              BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
          End Try

  • Select from Oracle to MySQL returns only one row

    Environment:
    The Oracle Developer Days Virtual Box image, so that's 11gR2 EE on OEL
    MySQL 5.1.51-community
    mysql-connector-odbc-5.1.7-0.i386.rpm
    unixODBC 2.3.0
    I got the connection working, I can insert, update and delete records in the MySQL DB from Oracle (SQL Plus).
    But when I enter select * from "employees"@mysql I only get the first record returned.
    If I enter select * from "employees"@mysql order by "id" desc, I only get the last one...
    If I enter select count(*) from "employees"@mysql, I get the - correct - result of 3.
    So, how do I get the complete set of (all) records from a MySQL table in Oracle? Is there some kind of setting or is this intended behavior and do I have to create a PL/SQL loop and put the results into a collection or something like that?

    I've create a table like yours:
    create table gateway.employees(id int(10) auto_increment,
    first_name varchar(30),
    last_name varchar(100),
    personal_code varchar(20),
    birthday date,
    salary decimal(10,2),
    is_active int(1),
    PRIMARY KEY (id));
    insert into gateway.employees (first_name,last_name) values ('Name 1', 'Name 1');
    insert into gateway.employees (first_name,last_name) values ('Name 2', 'Name 2');
    insert into gateway.employees (first_name,last_name) values ('Name 3', 'Name 3');
    insert into gateway.employees (first_name,last_name) values ('Name 4', 'Name 4');
    insert into gateway.employees (first_name,last_name) values ('Name 5', 'Name 5');
    select * from gateway.employees;
    and tested it using DataDirect and MySQL ODBC.
    The DataDirect shows all 5 lines whereas MySQL 5.1.0.7 ODBC shows only 1 row.
    (isql isn't using extended fetching like DG4ODBC does).
    Edited by: kgronau on Nov 4, 2010 4:03 PM
    Here the result (fetching ID column):
    MySQl ODBC;
    SQL> select "id" from "employees"@MYSQL_EMGTW_1121_DB;
    id
    1
    DD ODBC V6:
    SQL> select "id" from "employees"@DD60_MYSQL_EMGTW_1121_DB;
    id
    1
    2
    3
    4
    5
    Edited by: kgronau on Nov 4, 2010 4:33 PM
    The 32bit version of MySQL ODBC (5.1.5 - no 5.1.7 release yet installed) works also:
    SQL> select "id" from "employees"@MYSQL_32;
    id
    1
    2
    3
    4
    5
    => so it is an ODBC issue

  • Need to return only one record from select statement.

    Hello friends,
    I have a scenerio in which code only want to fetch one value from the SQL statement, but in some cases the statment return more then one row due to which ORA-01422 : Exact fetch return more then one row, error comes.
    Can you suggest me to write a select statement that will handel this. I am using the below mentioned select statement:
    EXECUTE IMMEDIATE
    'SELECT rsdn FROM ' || schema || '.table_name' ||
    ' WHERE a = :1 AND b = :2 AND c IN (32,33,34)'
    INTO v_rsdn USING v_a, v_b;
    One question, Can I use Rownum < 2 in Where clause to restrict the select output to only one record ? Please suggest ?
    Regards,
    Rajat

    Well, if rownum=1 could be a trash answer, it would be an issue since we don't know which record you are interested to. Is it one particular ? Is it only to workaround the issue ? Then you may want to manage some BULK COLLECT or whatever else array to receive all the rows as well.
    What are you doing with the rows returned ?
    Nicolas.

  • How to connect many devices with only one FW800 port in iMac?

    Hi,
    I am upgrading to a new Intel iMac from a 2004 vintage Dual2.0GHz PowerMac. I currently have 8x d2 Quadra drives chained by FW800, and 2x Iomega drives connected vis FW400 hub which also connects HD cams.
    My questions is that with only one FW800 port in iMac, I think my devices connectivity is the following?
    (1) Get a FW 800 hub (I can only find 2 port ones at the Apple store and BestBuy)
    (2) Connect the d2 Quadras to one port of the FW800 hub
    (3) Get a FW 800 to FW 400 cable
    (4) Connect my 6 port FW400 hub to the 2nd port of the FW800 hub
    Thanks for reviewing this solution, and I would also appreciate other suggestions or hear about your experiences if you have a similar set-up.
    Will

    In addition to your listed considerations, you should consider the following.
    Many storage needs do not required FireWire 800 speed. For example, USB 2.0 works fine for your Time Machine backup drive. If you are just storing user data such as your iPhoto or iTunes media files, USB 2.0 is more than fast enough. So, as much as possible, if any of those external drives have USB 2.0 connections and the data storage does not need FireWire 800 speed, offload as much as possible to USB 2.0. I used to be a +FireWire snob+, but since getting an Intel iMac, I find that USB 2.0 works quite well for most data storage purposes.
    There are new hard drives that are power efficient and as large as 2TB. Consolidate your data storage needs onto a smaller number of very large drives, partitioned as needed. This will make your setup more reliable (smaller number drives), and save reduce power consumption. If any of your current externals are SATA, you can probably replace the existing drive with an extra large one.
    So, I think you setup should be, extra large FireWire 800 drive connected to the FireWire 800 port directly. Using a 9-pin to 6-pin cable, connect the FireWire 400 hub. Connect any non-storage FireWire 400 devices there. Do some data transfer testing to make sure having the 400 hub there on the chain does not cause the 800 connection to slow down.
    Connect other drives as needed using USB 2.0, existing or new. Retire the smaller of your external drives.

  • How could I put many song in only one album view?

    I saved a lot of folders with many songs from my PC to my laptop. When I put all of these songs into my Music Library, It happens that many songs of the same album appears as if they were separated albmus, so my cover flow view has many "albums" that are only one song.
    How can I Put these songs together again?
    Thanks a lot

    Thomas Sjöholm wrote:
    Select all songs > Get Info > Options > Part Of Compilation (Yes)
    But a couple of guest artists do not a compilation make....
    See my post HowTo: Grouping Tracks Into Albums for some detailed advice on the different issues involved in making the library play nice in both iTunes and iPod, in particular *One album, too many covers*.
    tt2

  • Extract return only one node.

    error is ORA-19025: EXTRACTVALUE returns value of only one node
    CREATE OR REPLACE PROCEDURE a_insertZipcodes
       IS
        p_directory  VARCHAR2(100);
        p_filename   VARCHAR2(100);
        l_xml xmltype;
          type tp is record (c1 varchar2(100), c2 varchar2(100));
          type t is table of tp;
          r t;
        BEGIN
        sp_co_set_globalvar(null,null,null,null,51,null,null,'EOD',null);
        p_filename :='myxml.xml';
        p_directory:=get_handoff_path_batch(PKG_CO_GLOBALVAR.ctrl1);
        l_xml := xmltype(bfilename(p_directory, p_filename), nls_charset_id('AL32UTF8'));
        select extractvalue(l_xml,'root/flexcube/contractStatus/system'),
        extractvalue(l_xml,'root/flexcube/contractStatus/accessKey') bulk collect into r from dual;
          for i in r.first..r.last loop
          dbms_output.put_line(r(i).c1);
          dbms_output.put_line(r(i).c2);
       end loop;
      END;
    xml file is :
    <root>
         <flexcube>
              <contractStatus>  
                   <system>TRESTEL</system>
                   <accessKey>eDealer</accessKey>
                   <password>eDealer</password>
                   <uuid>eDealer</uuid>
                   <sequenceNumber>206981112980100</sequenceNumber>
                   <sourceAddress>M@112980000201@2011-10-25 02:10:03.016@Internal@1112980100@20698@FX@1</sourceAddress>
                   <signature>FEDCBA98765432100123456789ABCDEF</signature>     
                   <ref_num>
                        <contractRef>1112980100</contractRef>
                   </ref_num>
                 <branch>018</branch>    
            </contractStatus>
            <contractStatus>  
                   <system>TRESTEL</system>
                   <accessKey>eDealer</accessKey>
                   <password>eDealer</password>
                   <uuid>eDealer</uuid>
                   <sequenceNumber>206981112980100</sequenceNumber>
                   <sourceAddress>M@112980000201@2011-10-25 02:10:03.016@Internal@1112980100@20698@FX@1</sourceAddress>
                   <signature>FEDCBA98765432100123456789ABCDEF</signature>     
                   <ref_num>
                        <contractRef>1112980100</contractRef>
                   </ref_num>
                 <branch>018</branch>    
            </contractStatus>
            <contractStatus>  
                   <system>TRESTEL</system>
                   <accessKey>eDealer</accessKey>
                   <password>eDealer</password>
                   <uuid>eDealer</uuid>
                   <sequenceNumber>206981112980100</sequenceNumber>
                   <sourceAddress>M@112980000201@2011-10-25 02:10:03.016@Internal@1112980100@20698@FX@1</sourceAddress>
                   <signature>FEDCBA98765432100123456789ABCDEF</signature>     
                   <ref_num>
                        <contractRef>1112980100</contractRef>
                   </ref_num>
                 <branch>018</branch>    
            </contractStatus>
         </flexcube>
    </root>
    error is ORA-19025: EXTRACTVALUE returns value of only one node

    use xmltable as in Re: XMl Inserting

  • Problem reading a xmlType column (return only 999 rows) with XMLTable

    Hello,
    I'm new in the forum.
    Sorry for my english.
    I have a problem reading an xmltype column.
    My oracle's version is 11.1.0.6.0
    I have a table like this:
    Create Table TestXml (idProg number, xmldata XmlType)
    XMLTYPE COLUMN xmldata
    STORE AS BINARY XML;
    I have a xml file containing the equivalent of 10000 record (like a csv).
    my schema xsd is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="applicazione">
              <xs:annotation>
                   <xs:documentation>Flusso Monitoraggi</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="periodo" maxOccurs="unbounded">
                             <xs:complexType>
                                  <xs:sequence>
                                       <xs:element name="segmento" maxOccurs="unbounded">
                                            <xs:complexType>
                                                 <xs:sequence>
                                                      <xs:element name="progressivo" maxOccurs="unbounded">
                                                           <xs:complexType>
                                                                <xs:sequence>
                                                                     <xs:element name="stato" type="xs:string"/>
                                                                     <xs:element name="ts_start" type="xs:string"/>
                                                                     <xs:element name="ts_stop" type="xs:string"/>
                                                                     <xs:element name="nota_esecuzione" type="xs:string"/>
                                                                     <xs:element name="ts_esecuzione" type="xs:string"/>
                                                                </xs:sequence>
                                                                <xs:attribute name="valore" type="xs:integer" use="required"/>
                                                           </xs:complexType>
                                                      </xs:element>
                                                 </xs:sequence>
                                                 <xs:attribute name="nome" type="xs:string" use="required"/>
                                            </xs:complexType>
                                       </xs:element>
                                  </xs:sequence>
                                  <xs:attribute name="nome" type="xs:string" use="required"/>
                             </xs:complexType>
                        </xs:element>
                   </xs:sequence>
                   <xs:attribute name="nome" type="xs:string"/>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    When I try to read my xmltype column with this select :
    SELECT ap.desc_applicazione,pe.seq_periodo, pe.desc_elem_temp_ist,
    sg.desc_segmento_elab,pg.seq_progressivo,
    pg.desc_stato,pg.ts_start,pg.ts_stop,pg.nota_esecuzione,pg.ts_esecuzione,
    pg.valore_prog,sg.seq_segmento,idProg
    FROM testXML p,
    XMLTable('/applicazione' PASSING p.xmlData
    COLUMNS
    seq_applicazione for ordinality,
    desc_applicazione VARCHAR2(50) PATH '@nome',
    periodo XMLType PATH 'periodo') ap,
    XMLTable('periodo' PASSING ap.periodo
    COLUMNS
    seq_periodo for ordinality,
    desc_elem_temp_ist VARCHAR2(50) PATH '@nome',
    segmento XMLType PATH 'segmento') pe,
    XMLTable('segmento' PASSING pe.segmento
    COLUMNS
    seq_segmento for ordinality,
    desc_segmento_elab VARCHAR2(50) PATH '@nome',
    progressivo XMLTYPE PATH 'progressivo') sg,
    XMLTable('progressivo' PASSING sg.progressivo
    COLUMNS
    seq_progressivo for ordinality,
    valore_prog NUMBER PATH '@valore',
    desc_stato VARCHAR(10) PATH 'stato',
    ts_start VARCHAR2(50) PATH 'ts_start',
    ts_stop VARCHAR2(50) PATH 'ts_stop',
    nota_esecuzione VARCHAR2(50) PATH 'nota_esecuzione',
    ts_esecuzione VARCHAR2(50) PATH 'ts_esecuzione'
    ) pg
    where idProg = 1
    I obtained only 999 rows.
    I tried with two file xml, one containing 10000 repetition of progressivo, the other containing 10000 repetition of segmento.
    Anybody know why? Where is my error?
    Thank you in advance for any response.
    Maurizio

    Hello,
    I'm new in the forum.
    Sorry for my english.
    I have a problem reading an xmltype column.
    My oracle's version is 11.1.0.6.0
    I have a table like this:
    Create Table TestXml (idProg number, xmldata XmlType)
    XMLTYPE COLUMN xmldata
    STORE AS BINARY XML;
    I have a xml file containing the equivalent of 10000 record (like a csv).
    my schema xsd is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="applicazione">
              <xs:annotation>
                   <xs:documentation>Flusso Monitoraggi</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="periodo" maxOccurs="unbounded">
                             <xs:complexType>
                                  <xs:sequence>
                                       <xs:element name="segmento" maxOccurs="unbounded">
                                            <xs:complexType>
                                                 <xs:sequence>
                                                      <xs:element name="progressivo" maxOccurs="unbounded">
                                                           <xs:complexType>
                                                                <xs:sequence>
                                                                     <xs:element name="stato" type="xs:string"/>
                                                                     <xs:element name="ts_start" type="xs:string"/>
                                                                     <xs:element name="ts_stop" type="xs:string"/>
                                                                     <xs:element name="nota_esecuzione" type="xs:string"/>
                                                                     <xs:element name="ts_esecuzione" type="xs:string"/>
                                                                </xs:sequence>
                                                                <xs:attribute name="valore" type="xs:integer" use="required"/>
                                                           </xs:complexType>
                                                      </xs:element>
                                                 </xs:sequence>
                                                 <xs:attribute name="nome" type="xs:string" use="required"/>
                                            </xs:complexType>
                                       </xs:element>
                                  </xs:sequence>
                                  <xs:attribute name="nome" type="xs:string" use="required"/>
                             </xs:complexType>
                        </xs:element>
                   </xs:sequence>
                   <xs:attribute name="nome" type="xs:string"/>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    When I try to read my xmltype column with this select :
    SELECT ap.desc_applicazione,pe.seq_periodo, pe.desc_elem_temp_ist,
    sg.desc_segmento_elab,pg.seq_progressivo,
    pg.desc_stato,pg.ts_start,pg.ts_stop,pg.nota_esecuzione,pg.ts_esecuzione,
    pg.valore_prog,sg.seq_segmento,idProg
    FROM testXML p,
    XMLTable('/applicazione' PASSING p.xmlData
    COLUMNS
    seq_applicazione for ordinality,
    desc_applicazione VARCHAR2(50) PATH '@nome',
    periodo XMLType PATH 'periodo') ap,
    XMLTable('periodo' PASSING ap.periodo
    COLUMNS
    seq_periodo for ordinality,
    desc_elem_temp_ist VARCHAR2(50) PATH '@nome',
    segmento XMLType PATH 'segmento') pe,
    XMLTable('segmento' PASSING pe.segmento
    COLUMNS
    seq_segmento for ordinality,
    desc_segmento_elab VARCHAR2(50) PATH '@nome',
    progressivo XMLTYPE PATH 'progressivo') sg,
    XMLTable('progressivo' PASSING sg.progressivo
    COLUMNS
    seq_progressivo for ordinality,
    valore_prog NUMBER PATH '@valore',
    desc_stato VARCHAR(10) PATH 'stato',
    ts_start VARCHAR2(50) PATH 'ts_start',
    ts_stop VARCHAR2(50) PATH 'ts_stop',
    nota_esecuzione VARCHAR2(50) PATH 'nota_esecuzione',
    ts_esecuzione VARCHAR2(50) PATH 'ts_esecuzione'
    ) pg
    where idProg = 1
    I obtained only 999 rows.
    I tried with two file xml, one containing 10000 repetition of progressivo, the other containing 10000 repetition of segmento.
    Anybody know why? Where is my error?
    Thank you in advance for any response.
    Maurizio

  • How can I modify this script to return only certain rows of my mySQL table?

    Hi there,
    I have a php script that accesses a mySQL database and it was generated out of the Flex Builder wizard automatically. The script works great and there are no problems with it. It allows me to perform CRUD on a table by calling it from my Flex app. and it retrieves all the data and puts it into a nice MXML format.
    My question, currently when I call "findAll" to retrieve all the data in the table, well, it retrieves ALL the rows in the table. That's fine, but my table is starting to grow really large with thousands of rows.
    I want to modify this script so that I can pass a variable into it from Flex so that it only retrieves the rows that match the "$subscriber_id" variable that I pass. In this way the results are not the entire table's data, only the rows that match 'subscriber_id'.
    I know how to pass a variable from Flex into php and the code on the php side to pick it up would look like this:
    $subscriberID = $_POST['subscriberID'];
    Can anyone shed light as to the proper code modification in "findAll" which will take my $subscriberID variable and compare it to the 'subscriber_id' field and then only return those rows that match? I think it has something to do with lines 98 to 101.
    Any help is appreciated.
    <?php
    require_once(dirname(__FILE__) . "/2257safeDBconn.php");
    require_once(dirname(__FILE__) . "/functions.inc.php");
    require_once(dirname(__FILE__) . "/XmlSerializer.class.php");
    * This is the main PHP file that process the HTTP parameters,
    * performs the basic db operations (FIND, INSERT, UPDATE, DELETE)
    * and then serialize the response in an XML format.
    * XmlSerializer uses a PEAR xml parser to generate an xml response.
    * this takes a php array and generates an xml according to the following rules:
    * - the root tag name is called "response"
    * - if the current value is a hash, generate a tagname with the key value, recurse inside
    * - if the current value is an array, generated tags with the default value "row"
    * for example, we have the following array:
    * $arr = array(
    *      "data" => array(
    *           array("id_pol" => 1, "name_pol" => "name 1"),
    *           array("id_pol" => 2, "name_pol" => "name 2")
    *      "metadata" => array(
    *           "pageNum" => 1,
    *           "totalRows" => 345
    * we will get an xml of the following form
    * <?xml version="1.0" encoding="ISO-8859-1"?>
    * <response>
    *   <data>
    *     <row>
    *       <id_pol>1</id_pol>
    *       <name_pol>name 1</name_pol>
    *     </row>
    *     <row>
    *       <id_pol>2</id_pol>
    *       <name_pol>name 2</name_pol>
    *     </row>
    *   </data>
    *   <metadata>
    *     <totalRows>345</totalRows>
    *     <pageNum>1</pageNum>
    *   </metadata>
    * </response>
    * Please notice that the generated server side code does not have any
    * specific authentication mechanism in place.
    * The filter field. This is the only field that we will do filtering after.
    $filter_field = "subscriber_id";
    * we need to escape the value, so we need to know what it is
    * possible values: text, long, int, double, date, defined
    $filter_type = "text";
    * constructs and executes a sql select query against the selected database
    * can take the following parameters:
    * $_REQUEST["orderField"] - the field by which we do the ordering. MUST appear inside $fields.
    * $_REQUEST["orderValue"] - ASC or DESC. If neither, the default value is ASC
    * $_REQUEST["filter"] - the filter value
    * $_REQUEST["pageNum"] - the page index
    * $_REQUEST["pageSize"] - the page size (number of rows to return)
    * if neither pageNum and pageSize appear, we do a full select, no limit
    * returns : an array of the form
    * array (
    *           data => array(
    *                array('field1' => "value1", "field2" => "value2")
    *           metadata => array(
    *                "pageNum" => page_index,
    *                "totalRows" => number_of_rows
    function findAll() {
         global $conn, $filter_field, $filter_type;
          * the list of fields in the table. We need this to check that the sent value for the ordering is indeed correct.
         $fields = array('id','subscriber_id','lastName','firstName','birthdate','gender');
         $where = "";
         if (@$_REQUEST['filter'] != "") {
              $where = "WHERE " . $filter_field . " LIKE " . GetSQLValueStringForSelect(@$_REQUEST["filter"], $filter_type);     
         $order = "";
         if (@$_REQUEST["orderField"] != "" && in_array(@$_REQUEST["orderField"], $fields)) {
              $order = "ORDER BY " . @$_REQUEST["orderField"] . " " . (in_array(@$_REQUEST["orderDirection"], array("ASC", "DESC")) ? @$_REQUEST["orderDirection"] : "ASC");
         //calculate the number of rows in this table
         $rscount = mysql_query("SELECT count(*) AS cnt FROM `modelName` $where");
         $row_rscount = mysql_fetch_assoc($rscount);
         $totalrows = (int) $row_rscount["cnt"];
         //get the page number, and the page size
         $pageNum = (int)@$_REQUEST["pageNum"];
         $pageSize = (int)@$_REQUEST["pageSize"];
         //calculate the start row for the limit clause
         $start = $pageNum * $pageSize;
         //construct the query, using the where and order condition
         $query_recordset = "SELECT id,subscriber_id,lastName,firstName,birthdate,gender FROM `modelName` $where $order";
         //if we use pagination, add the limit clause
         if ($pageNum >= 0 && $pageSize > 0) {     
              $query_recordset = sprintf("%s LIMIT %d, %d", $query_recordset, $start, $pageSize);
         $recordset = mysql_query($query_recordset, $conn);
         //if we have rows in the table, loop through them and fill the array
         $toret = array();
         while ($row_recordset = mysql_fetch_assoc($recordset)) {
              array_push($toret, $row_recordset);
         //create the standard response structure
         $toret = array(
              "data" => $toret,
              "metadata" => array (
                   "totalRows" => $totalrows,
                   "pageNum" => $pageNum
         return $toret;
    * constructs and executes a sql count query against the selected database
    * can take the following parameters:
    * $_REQUEST["filter"] - the filter value
    * returns : an array of the form
    * array (
    *           data => number_of_rows,
    *           metadata => array()
    function rowCount() {
         global $conn, $filter_field, $filter_type;
         $where = "";
         if (@$_REQUEST['filter'] != "") {
              $where = "WHERE " . $filter_field . " LIKE " . GetSQLValueStringForSelect(@$_REQUEST["filter"], $filter_type);     
         //calculate the number of rows in this table
         $rscount = mysql_query("SELECT count(*) AS cnt FROM `modelName` $where");
         $row_rscount = mysql_fetch_assoc($rscount);
         $totalrows = (int) $row_rscount["cnt"];
         //create the standard response structure
         $toret = array(
              "data" => $totalrows,
              "metadata" => array()
         return $toret;

    Hi there,
    I have a php script that accesses a mySQL database and it was generated out of the Flex Builder wizard automatically. The script works great and there are no problems with it. It allows me to perform CRUD on a table by calling it from my Flex app. and it retrieves all the data and puts it into a nice MXML format.
    My question, currently when I call "findAll" to retrieve all the data in the table, well, it retrieves ALL the rows in the table. That's fine, but my table is starting to grow really large with thousands of rows.
    I want to modify this script so that I can pass a variable into it from Flex so that it only retrieves the rows that match the "$subscriber_id" variable that I pass. In this way the results are not the entire table's data, only the rows that match 'subscriber_id'.
    I know how to pass a variable from Flex into php and the code on the php side to pick it up would look like this:
    $subscriberID = $_POST['subscriberID'];
    Can anyone shed light as to the proper code modification in "findAll" which will take my $subscriberID variable and compare it to the 'subscriber_id' field and then only return those rows that match? I think it has something to do with lines 98 to 101.
    Any help is appreciated.
    <?php
    require_once(dirname(__FILE__) . "/2257safeDBconn.php");
    require_once(dirname(__FILE__) . "/functions.inc.php");
    require_once(dirname(__FILE__) . "/XmlSerializer.class.php");
    * This is the main PHP file that process the HTTP parameters,
    * performs the basic db operations (FIND, INSERT, UPDATE, DELETE)
    * and then serialize the response in an XML format.
    * XmlSerializer uses a PEAR xml parser to generate an xml response.
    * this takes a php array and generates an xml according to the following rules:
    * - the root tag name is called "response"
    * - if the current value is a hash, generate a tagname with the key value, recurse inside
    * - if the current value is an array, generated tags with the default value "row"
    * for example, we have the following array:
    * $arr = array(
    *      "data" => array(
    *           array("id_pol" => 1, "name_pol" => "name 1"),
    *           array("id_pol" => 2, "name_pol" => "name 2")
    *      "metadata" => array(
    *           "pageNum" => 1,
    *           "totalRows" => 345
    * we will get an xml of the following form
    * <?xml version="1.0" encoding="ISO-8859-1"?>
    * <response>
    *   <data>
    *     <row>
    *       <id_pol>1</id_pol>
    *       <name_pol>name 1</name_pol>
    *     </row>
    *     <row>
    *       <id_pol>2</id_pol>
    *       <name_pol>name 2</name_pol>
    *     </row>
    *   </data>
    *   <metadata>
    *     <totalRows>345</totalRows>
    *     <pageNum>1</pageNum>
    *   </metadata>
    * </response>
    * Please notice that the generated server side code does not have any
    * specific authentication mechanism in place.
    * The filter field. This is the only field that we will do filtering after.
    $filter_field = "subscriber_id";
    * we need to escape the value, so we need to know what it is
    * possible values: text, long, int, double, date, defined
    $filter_type = "text";
    * constructs and executes a sql select query against the selected database
    * can take the following parameters:
    * $_REQUEST["orderField"] - the field by which we do the ordering. MUST appear inside $fields.
    * $_REQUEST["orderValue"] - ASC or DESC. If neither, the default value is ASC
    * $_REQUEST["filter"] - the filter value
    * $_REQUEST["pageNum"] - the page index
    * $_REQUEST["pageSize"] - the page size (number of rows to return)
    * if neither pageNum and pageSize appear, we do a full select, no limit
    * returns : an array of the form
    * array (
    *           data => array(
    *                array('field1' => "value1", "field2" => "value2")
    *           metadata => array(
    *                "pageNum" => page_index,
    *                "totalRows" => number_of_rows
    function findAll() {
         global $conn, $filter_field, $filter_type;
          * the list of fields in the table. We need this to check that the sent value for the ordering is indeed correct.
         $fields = array('id','subscriber_id','lastName','firstName','birthdate','gender');
         $where = "";
         if (@$_REQUEST['filter'] != "") {
              $where = "WHERE " . $filter_field . " LIKE " . GetSQLValueStringForSelect(@$_REQUEST["filter"], $filter_type);     
         $order = "";
         if (@$_REQUEST["orderField"] != "" && in_array(@$_REQUEST["orderField"], $fields)) {
              $order = "ORDER BY " . @$_REQUEST["orderField"] . " " . (in_array(@$_REQUEST["orderDirection"], array("ASC", "DESC")) ? @$_REQUEST["orderDirection"] : "ASC");
         //calculate the number of rows in this table
         $rscount = mysql_query("SELECT count(*) AS cnt FROM `modelName` $where");
         $row_rscount = mysql_fetch_assoc($rscount);
         $totalrows = (int) $row_rscount["cnt"];
         //get the page number, and the page size
         $pageNum = (int)@$_REQUEST["pageNum"];
         $pageSize = (int)@$_REQUEST["pageSize"];
         //calculate the start row for the limit clause
         $start = $pageNum * $pageSize;
         //construct the query, using the where and order condition
         $query_recordset = "SELECT id,subscriber_id,lastName,firstName,birthdate,gender FROM `modelName` $where $order";
         //if we use pagination, add the limit clause
         if ($pageNum >= 0 && $pageSize > 0) {     
              $query_recordset = sprintf("%s LIMIT %d, %d", $query_recordset, $start, $pageSize);
         $recordset = mysql_query($query_recordset, $conn);
         //if we have rows in the table, loop through them and fill the array
         $toret = array();
         while ($row_recordset = mysql_fetch_assoc($recordset)) {
              array_push($toret, $row_recordset);
         //create the standard response structure
         $toret = array(
              "data" => $toret,
              "metadata" => array (
                   "totalRows" => $totalrows,
                   "pageNum" => $pageNum
         return $toret;
    * constructs and executes a sql count query against the selected database
    * can take the following parameters:
    * $_REQUEST["filter"] - the filter value
    * returns : an array of the form
    * array (
    *           data => number_of_rows,
    *           metadata => array()
    function rowCount() {
         global $conn, $filter_field, $filter_type;
         $where = "";
         if (@$_REQUEST['filter'] != "") {
              $where = "WHERE " . $filter_field . " LIKE " . GetSQLValueStringForSelect(@$_REQUEST["filter"], $filter_type);     
         //calculate the number of rows in this table
         $rscount = mysql_query("SELECT count(*) AS cnt FROM `modelName` $where");
         $row_rscount = mysql_fetch_assoc($rscount);
         $totalrows = (int) $row_rscount["cnt"];
         //create the standard response structure
         $toret = array(
              "data" => $totalrows,
              "metadata" => array()
         return $toret;

  • Replace one channel by another on only one layer, leaving the others intact?

    Hello. In a CMYK image, I need to turn on only one layer one channel completely into another, while the others remain intact. The M channel (the M on that layer) contains information, but I can't print M in this place. I want to change it into an equal amount of K (or into C, in the present case, or even into a mixture of the two). I know how to do this to an entire image (change into greyscale, duotone or whatever may apply). But since I need this to apply to only one (or a selection of) layer(s), leaving all others intact, this is not an option here. I'm sure there's a way to achive this, but I can't find it. Any advice would be much appreciated.

    bustamant wrote:
    hello, thanks for your replies. As far as I understand, Channel Mixer (i.e., an Adjustment Layer containing a Channel Mixer applied to the layer in question) allows me to reduce one channel to zero,
    You are completely correct up to here...
    Then choose K as the desired output channel at the top of the palette and slide the M (source) slider to the desired value.  You can choose more output channels by going to each output channel in turn.
    The way it works is slightly confusing at first, but in a nutshell, you choose your output channel first, then mixture of sources.  Then move to another output channel and the sources will be at the default position for THAT output channel only.  Each channel has a set of source channels assigned to it.
    Default;  black output channel = 100% black source, 0% CMY
    So your example is black output = 100% black source plus 100% mag source (although I expect you are going to change black source to 0)
    AND magenta output = 0% Magenta 0% CYK source  (no mag output at all)

  • XMLTABLE returns only first row

    I have follwoing XML inserted into the column named as TEXT in the table MASTERTB.
    *<?xml version="1.0" encoding="utf-8" ?>*
    *<Rowsets DateCreated="2010-11-30T11:12:10" EndDate="2010-06-05T16:52:23" StartDate="2010-06-05T16:52:23" Version="12.0.10 Build(18)">*
    *<Rowset>*
    *<Columns>*
    *<Column Description="Material Number" MaxRange="1" MinRange="0" Name="MATERIAL" SQLDataType="1" SourceColumn="MATERIAL"/>*
    *<Column Description="" MaxRange="1" MinRange="0" Name="TANK" SQLDataType="1" SourceColumn="TANK"/>*
    *</Columns>*
    *<Row>*
    *<MATERIAL>1000000144</MATERIAL>*
    *<TANK>T1000</TANK>*
    *</Row>*
    *<Row>*
    *<MATERIAL>2000000008</MATERIAL>*
    *<TANK>T1000</TANK>*
    *</Row>*
    *<Row>*
    *<MATERIAL>2000000009</MATERIAL>*
    *<TANK>T1000</TANK>*
    *</Row>*
    *<Row>*
    *<MATERIAL>2000000016</MATERIAL>*
    *<TANK>T1000</TANK>*
    *</Row>*
    *<Row>*
    *<MATERIAL>3000000036</MATERIAL>*
    *<TANK>T1000</TANK>*
    *</Row>*
    *</Rowset>*
    *</Rowsets>*
    Now, when my requirement is to get all the Material values so when I run follwoing query in Oracle,
    SELECT RW.MATERIAL
    FROM MASTERTB TM,
    XMLTable('//Row' PASSING TM.TEXT
    COLUMNS  "MATERIAL"    CHAR(30) PATH 'MATERIAL') AS RW
    it return only 1000000144 (First MATERIAL). How can I read all the MATERIAL? Also, how can I read the entire XML in Text format if I want to check what has been inserted?
    ANy help will be appreciated !
    Edited by: 967327 on Oct 27, 2012 12:28 AM

    >
    <Rowsets DateCreated="2010-11-30T11:12:10" EndDate="2010-06-05T16:52:23" StartDate="2010-06-05T16:52:23" Version="12.0.10 Build(18)">
    <Rowset>
    </Rowset>
    >
    so where is </Rowsets> ?
    your query works for me
    SQL> select * from v$version where rownum=1;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    SQL>
    SQL> with MASTERTB as
      2  (select
      3  xmltype('<?xml version="1.0" encoding="utf-8" ?>
      4  <Rowsets DateCreated="2010-11-30T11:12:10" EndDate="2010-06-05T16:52:23" StartDate="2010-06-05T16:52:23" Version="12.0.10 Build(18)">
      5  <Rowset>
      6  <Columns>
      7  <Column Description="Material Number" MaxRange="1" MinRange="0" Name="MATERIAL" SQLDataType="1" SourceColumn="MATERIAL"/>
      8  <Column Description="" MaxRange="1" MinRange="0" Name="TANK" SQLDataType="1" SourceColumn="TANK"/>
      9  </Columns>
    10  <Row>
    11  <MATERIAL>1000000144</MATERIAL>
    12  <TANK>T1000</TANK>
    13  </Row>
    14  <Row>
    15  <MATERIAL>2000000008</MATERIAL>
    16  <TANK>T1000</TANK>
    17  </Row>
    18  <Row>
    19  <MATERIAL>2000000009</MATERIAL>
    20  <TANK>T1000</TANK>
    21  </Row>
    22  <Row>
    23  <MATERIAL>2000000016</MATERIAL>
    24  <TANK>T1000</TANK>
    25  </Row>
    26  <Row>
    27  <MATERIAL>3000000036</MATERIAL>
    28  <TANK>T1000</TANK>
    29  </Row>
    30  </Rowset></Rowsets>') TEXT from dual)
    31  SELECT RW.MATERIAL
    32  FROM MASTERTB TM,
    33  XMLTable('//Row' PASSING TM.TEXT
    34  COLUMNS "MATERIAL" CHAR(30) PATH 'MATERIAL') AS RW
    35  /
    MATERIAL
    1000000144
    2000000008
    2000000009
    2000000016
    3000000036
    SQL>
    SQL> select * from v$version where rownum=1;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    SQL>
    SQL> with MASTERTB as
      2  (select
      3  xmltype('<?xml version="1.0" encoding="utf-8" ?>
      4  <Rowsets DateCreated="2010-11-30T11:12:10" EndDate="2010-06-05T16:52:23" StartDate="2010-06-05T16:52:23" Version="12.0.10 Build(18)">
      5  <Rowset>
      6  <Columns>
      7  <Column Description="Material Number" MaxRange="1" MinRange="0" Name="MATERIAL" SQLDataType="1" SourceColumn="MATERIAL"/>
      8  <Column Description="" MaxRange="1" MinRange="0" Name="TANK" SQLDataType="1" SourceColumn="TANK"/>
      9  </Columns>
    10  <Row>
    11  <MATERIAL>1000000144</MATERIAL>
    12  <TANK>T1000</TANK>
    13  </Row>
    14  <Row>
    15  <MATERIAL>2000000008</MATERIAL>
    16  <TANK>T1000</TANK>
    17  </Row>
    18  <Row>
    19  <MATERIAL>2000000009</MATERIAL>
    20  <TANK>T1000</TANK>
    21  </Row>
    22  <Row>
    23  <MATERIAL>2000000016</MATERIAL>
    24  <TANK>T1000</TANK>
    25  </Row>
    26  <Row>
    27  <MATERIAL>3000000036</MATERIAL>
    28  <TANK>T1000</TANK>
    29  </Row>
    30  </Rowset></Rowsets>') TEXT from dual)
    31  SELECT RW.MATERIAL
    32  FROM MASTERTB TM,
    33  XMLTable('//Row' PASSING TM.TEXT
    34  COLUMNS "MATERIAL" CHAR(30) PATH 'MATERIAL') AS RW
    35  /
    MATERIAL
    1000000144
    2000000008
    2000000009
    2000000016
    3000000036
    SQL> try
    31  SELECT RW.MATERIAL
    32  FROM MASTERTB TM,
    33  XMLTable('Rowsets/Rowset/Row' PASSING TM.TEXT
    34  COLUMNS "MATERIAL" varchar2(30) PATH 'MATERIAL') AS RW
    35  /
    MATERIAL
    1000000144
    2000000008
    2000000009
    2000000016
    3000000036
    SQL>

Maybe you are looking for

  • Training and Event Management Costs

    Hi All, I have been asked to implement training and event management for purpose of cost tracking. I have looked at activity allocation and CTPosting but would like to get some advice on proper implementation of this. Any direction, advice or support

  • Data Cleansing in CRM Web UI

    Dear Experts, I have activated Data Cleansing in CRM 7.0 and it is working. Can anyone advise on the setting or configuration required to get the CRM Data cleansing functionality to copy communication data stored at the relationship from the Source r

  • UNIX Connector issue

    Hello All, i am facing following error message while provisoing user into Solaris 10. ping: Attribute mapping file : E:\Oracle_Home\Middleware\jdk160_14_R27.6.5-32/XLIntegrations/SSH/config/userAttribute_NonAIX_prov.properties ERROR,21 Sep 2010 16:42

  • Fax Preview using OJ 8610

    After typing a message on the cover page, I then wanted to Preview the page.  I am unable to locate instructions for doing so. Any advice would be welcome.

  • HT1462 The green light next to my camera lens comes on but the picture is black, how do I get it to come on?

    The green light next to my camera lens comes on but the picture is black, how do I get it to come on?