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

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

  • How to select only one record at a time in ALV

    Hi all,
    I have to use ALV report.  Each record on the report output should have a button (or radio button) which will allow the record to be selected.  My requirement is to select only one record at a time.
    please guide me how to proceed further.
    regards
    manish

    hi
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCheckBoxProgram
    Regards
    Pavan

  • 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.

  • 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 delete one record at a time

    hi all,
    Please tell me how i do delete only one record at a time.After deleting the record the jsp page should show only the remining items to be deleted.

    Where do u want to delete the record - database?
    If so use the rpimary Screen identifying each record and use that to delet that record

  • XML import only creates one record at a time

    Hi All,
    I have an XML import map that automatically imports data into main product table. It's working fine when the XML file has only one main record. When it has more than one record, the import manager and import server can only import the last record in the file and skip the rest.
    I already checked the record matching tab. It correctly shows that all records will be created and 0 will be skipped. Even the log file indicates all records are created after I execute the map. Yet, when I try to look for them in the data manager, I can only find the last one. If I execute the map with the exact same file again, it will create one more record again and skip the rest.
    Someone else posted the same question a while back: Import map issue one record at a time. But it was never answered. Does anyone else have this issue? Is this a MDM bug?
    Thanks,
    Kenny

    Hi Kenny,
    Please refer to the note below:
    Note 1575981
    Regards,
    Neethu Joy

  • How to use data in a ResultSet when only one record in set?

    Hi.
    Using a prepared statement which invokes a SELECT * from <table> where <primary key> = <unique value>.
    This is executed and the results sent to a resultSet.
    The only problem is that only one entry is in the resultSet. I want to parse the results and invoke a new class based on the results.
    So I have:
    statement = conn.prepareStatement ("SELECT First_Name, Last_Name, Street, Unit, City, Province, Postal_Code" +
    " from Customer where CustomerID = ?");
    statement.setInt (1, custID);
    rset = statement.executeQuery();
    rset.next();
    cust = new Customer (custID,
    rset.getString ("First_Name"),
    rset.getString ("Last_Name"),
    rset.getString ("Street"),
    rset.getString ("Unit"),
    rset.getString ("City"),
    rset.getString ("Province"),
    rset.getString ("Postal_Code"));
    statement.close();
    rset is a ResultSet. And I'm pretty sure that something like this is WRONG. But one thing I want to know, is there ANY way to properly parse a resultset with only one record?
    Thanks.

    I think I should clarify what I was doing: I'm trying to insert a record into a table, and with the ID that I obtain, use it to retrieve the data.
    I did put a commit in there, but someone suggested that the commit won't work in this scenario.
    Here is bits of the code that I'm using. By the time insertCustomer is invoked, custID is already populated. The insert works because I checked the table afterwards using a sql query and all my entries posted are there.
        private void insertCustomer (HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            Connection conn = null;
            PreparedStatement statement = null;
            try {
                conn = DriverManager.getConnection (url, userid, password);
                statement = conn.prepareStatement ("INSERT INTO CUSTOMER (CustomerID, First_Name, Last_Name," +
                        " Street, Unit, City, Province, Postal_Code) values (?, ?, ?, ?, ?, ?, ?, ?)");
                statement.setInt (1, custID);
                statement.setString (2, firstname);
                statement.setString (3, lastname);
                statement.setString (4, address);
                statement.setString (5, unit);
                statement.setString (6, city);
                statement.setString (7, province);
                statement.setString (8, postalcode);
                statement.executeUpdate();
                conn.commit();          
                statement.close();
            catch (SQLException e)
                throw new ServletException (e);
            finally
                try
                    if(statement != null)
                        statement.close();
                    if(conn != null)
                        conn.close();
                catch (SQLException e)
                    throw new ServletException(e);
        private String getCustRec (HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
            Connection conn = null;
            PreparedStatement statement = null;
            ResultSet rset = null;
            CustomerJDBC cust = null;
            try
                conn = DriverManager.getConnection (url, userid, password);
                statement = conn.prepareStatement ("SELECT First_Name, Last_Name, Street, Unit, City, Province, Postal_Code" +
                        " from Customer where CustomerID = ?");
                statement.setInt (1, custID);
                rset = statement.executeQuery();
                rset.next();
                cust = new CustomerJDBC (custID,
                        rset.getString ("First_Name"),
                        rset.getString ("Last_Name"),
                        rset.getString ("Street"),
                        rset.getString ("Unit"),
                        rset.getString ("City"),
                        rset.getString ("Province"),
                        rset.getString ("Postal_Code"));
                statement.close();
            catch (SQLException e)
                throw new ServletException (e);
            finally
                try
                    if(statement != null)
                        statement.close();
                    if(conn != null)
                        conn.close();
                catch (SQLException e)
                    throw new ServletException(e);
            return "/CustomerCreatedJDBC.jsp";
        }The Constructor method of the class CustomerJDBC appears something like this:
    public CustomerJDBC (int id, String fname, String lname, String addr, String unit, String city, String prov, String pcode)
            this.custID = id;
            this.firstname = fname;
            this.lastname = lname;
            this.address = addr;
            this.unit = unit;
            this.city = city;
            this.province = prov;
            this.postalcode = pcode;     
        }Thanks for your help.
    Edited by: tahna_los on Nov 16, 2008 11:49 PM

  • Displaying one record at a time

    Is any body able to help me? I need to display one record at a time from a Select statement.
    Could I copy the results of the Select query from a table into an array for later display or is there a better alternative.
    Please, any part knowledge with regard to the above would be usefull.
    Regards
    Eddie

    What application do you want to use to display the data?
    You can use "rownum" in your SQL statement to ensure that you only get record N of a query. Asktom has a good article on this sort of windowing
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:127412348064
    More commonly, however, you'll write a SQL query that returns all the rows, fetch a small number, display those to the user, and then fetch more records.
    Justin

  • Master_detail for more than one record at a time

    Hi,
    How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
    i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
    Thanks for your help.Bcj

    Thanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
    data in table A,
    username role
    AAA R1
    BBB R2
    CCC R3
    data in table B,
    username profile
    AAA P1
    BBB P2
    CCC P3
    i wanted to display it on form like below,
    username role profile
    AAA R1 P1
    BBB R2 P2
    CCC R3 P3
    Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
    Thanks Again, Bcj

  • Read one record at a time

    Hi !
    One of our Java folks here need at function where he reads one record at at time in id order;
    create table url_recs (id number, url varchar2(4000));
    insert into url_recs values(1,'www.fona.dk');
    insert into url_recs values(2,'www.dr.dk');
    insert into url-recs values(17,'www.ihk.dk');
    select read_rec() from dual; - get id 1
    select read_rec() from dual; - get id 2
    select read_rec() from dual; - get id 17
    select read_rec() from dual; - get id 1 - "no more rows - start all over again)
    select read_rec(45) from dual; - get NULL (no rows with that id)
    select read_rec(1) from dual; - get id 1
    The purpose id for some "round robin" trying to get to some internal URL's.
    Can you give me a hint for creating the function(s)
    best regards
    Mette

    Will successive calls come on the same Oracle session? Or across different Oracle sessions?
    If you're going to call the function multiple times within the same Oracle session, you could store the last value returned in a package variable and select the record whose ID is greater than that value every time the function is called. That's unlikely to do exactly what the Java developer is hoping, though, because the Java calls are likely to bounce between multiple Oracle sessions due to connection pooling. And it'll likely require that the Java developer (or app server admin) adds some code when they get a connection from the pool where they reset the package state. Or it'll require that someone develop a method to keep the Java and Oracle session state in sync.
    Justin

  • Concurrent program to be submitted y only one user at a time

    Hi
    I have an issue with one of my reports. The report is using temporary tables, those will under go insertion and deletion while the report is running. So, to make sure that two or more concurrent requests submitted for same report, will not conflict, I want to make my concurrent request to be submitted by only one user at a time.
    How can I do that?
    Any help is appreciated.
    Thanks
    BalaKrishna

    The "run alone" box should not be checked. This indicates that this program can only run when no others are running. Pl see MOS Doc 1078462.6 (Custom SQL Concurrent Program Returns NO MANAGER Error). This option should typically not be used.
    To be able to achieve what you need, set the incompatibility (as you have done) and then bounce the concurrent managers for the setting to take effect. Pl see these MOS Docs
    436186.1 - Cannot Make Concurrent Programs Incompatible With Itself
    142944.1 - How to Make a Concurrent Program Incompatible with Itself
    HTH
    Srini

  • I am getting only one record from table data

    Hi Experts,
    I am using interacive forms to bring the table data i used  GET_STATIC_ATTRIBUTES_TABLE
    method. initially the table is empty when i fill some records more than one it is giving me only one record.
    where as i fill the table in wddoinit more than one record and try to retreived it, showing all the records more than one. waht is the reason.. if i fill manually why it is not bringing all the reocrds.
    i have used the cardinatly as follows
    1. parent node(no tables/structure used)
    Dictionary structure       empty not used
    Cardinality 1..1
    Selection 0..1
    Initialization Lead Selection  Checked
    Singleton    Not checked
    Supply Function  not used
    2. table node(i used table type)
    Dictionary structure    SFLIGHT_LIGHT
    Cardinality 1..n
    Selection 0..n
    Initialization Lead Selection  Checked
    Singleton    Not checked
    Supply Function  not used
    Pleae help me out...
    Thanks,
    Mahesh.Gattu

    hi,
    Use the following code for making the rows editable for a table UI element.
      DATA lo_nd_cn_try TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_try TYPE REF TO if_wd_context_element.
      DATA ls_cn_try TYPE wd_this->element_cn_try.
      DATA ls_cn_try1 TYPE wd_this->elements_cn_try.
    navigate from <CONTEXT> to <CN_TRY> via lead selection
      lo_nd_cn_try = wd_context->get_child_node( name = wd_this->wdctx_cn_try ).
    do 5 times.                       
    clear ls_cn_try.
    append ls_cn_try to ls_cn_try1.
    lo_nd_cn_try->bind_table( ls_cn_try1 ).
    enddo.
    ->  cn_try is the node which is binded with the Table UI element.
    What all this is called as initialization of table. This code will make 5 rows editable, If u want more rows editable then run the loop according to the requirement.
    U can write this code in the WDDOINIT.
    Thanks,
    Pankaj Aggarwal.

  • Sender file adapter Need to Get Only one record Using FCC

    Hi All,
                  I am using File to ABAP Proxy interface, where i need to Trigger my proxy so in my sender file adapter , i need to configure as such it is should take only one record, from whole file i am using Key field parametrs in FCC but it is taking all the records which is not having the key fields also
    please help me
    Thanking you
    Sridhar

    2A64310       1 6V83970       03751650016001154000                    1 6V9961XT-3   13236157001160
    2A64310       1 6V83970                        000                    1 6V9962XT-3   23236162
    2A64730       1 6V83970       03751650016000106000                    1 6V9962XT-3   13236162000112
    2A64730       1 6V83970                        000                    1 6V9961XT-3   23236157
    2A64741 6V99481 6V83971 4S541403751650016000152360                    1 6V9964XT-3   13236168000166
    2A64741 6V99471 6V83971 4S5414                 000                    1 6V9963XT-3   23236167
    2A64772 6V99492 6V83982 3S860605001650017000244000                    2 6V9965XT-3   13289090000248
    2A65690       1 6V97460       07501226872000110000                    11242153L&MP   1
    2A65690       1 6V97460                        000                    11242121L&MP   2
    EOF
    this is sample file , i need to have any one line , cause i need to just trigger a proxy , i am not to going tp take entire file cause in real time i will getting 100 MB file which will be a performance issue

  • How to display only one record.

    Hi Gurus,
    Here my requirement is i have 2 pages.
    first page having project_number lov,create and tableRN.
    once u select the projectnumber and click on the create button it is navigate to secound page,here enter the data and click on the submit button it ll insert into database table and navigate to fitst page and display the data in tableRN what ever u insert the data(this part is over).
    but the problem is, in tableRN displays all the records(previous records also displayed)
    my requirement is display only one record(click on the submit button at the time of record only).
    Plz help me
    its very urgent.
    Thanks
    Seshu.
    Edited by: its urgent on Jan 3, 2012 10:52 PM

    Seshu,
    Do u want to display the inserted row...
    Regards,
    Gyan
    www.gyanoracleapps.blogspot.com
    www.querenttech.com

Maybe you are looking for