SQL SELECT FROM

I have created a SELECT FROM SQL statement that basically checks if an individual has already registered with my application. The actual search works a treat, with any matches found being ammended to a JTextArea I have created. However, I need to know when a match is not found and am not sure how this is achieved.
When I created an update statement I was able to use the code
int result = statement.executeUpdate(Update);
if(result == 1) //to determine if a match was found.
Can anyone explain how to apply the same logic to this code, please??
try
makeConnection();
Statement statement = connection.createStatement();
query = "SELECT * FROM Manager_Details " +
"WHERE First_Name = '" + details[0] +
"'AND Last_Name = '" + details[1] + "'";
rs = statement.executeQuery(query);
MII.displayMatchedManagers(rs);
statement.close();
connection.close();
catch (SQLException sqlex)
System.out.println(sqlex.toString());
Thanks for any help,
Kris Dowse

try
makeConnection();
Statement statement = connection.createStatement();
          query = "SELECT * FROM Manager_Details " +
"WHERE First_Name = '" + details[0] +
                              "'AND Last_Name = '" + details[1] + "'";
rs = statement.executeQuery(query);
          MII.displayMatchedManagers(rs);
          statement.close();
connection.close();
the MII.displayMatchingManagers method is below:
try
while(rs.next())
details = "Manager \\ Prediction ID: " + rs.getString("Num") +
"\nFirst Name: " + rs.getString("First_Name") +
"\nLast Name: " + rs.getString("Last_Name") +
"\nAddress: " + rs.getString("Address") +
"\nPostcode: " + rs.getString("Postcode") +
"\nArea Code: " +
What I want to be able to do is display all the matches if one is found,
or call an add method if no match is found. My problem is how to determine if a match has been found???

Similar Messages

  • $sql ='SELECT * FROM fideles  WHERE (fideles.NOM ==($_POST [Nom]))';

    hello
    i don'\t know why my syntax is wrong could you help to give me the right syntax.
    thank you for helping
    [email protected]

    i forgot to join my script
    <?php
    mb_http_input("iso-8859-1");
    mb_http_output("iso-8859-1");
    ?>
    <?php require_once('Connections/FIDELES.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_FIDELES, $FIDELES);
    $query_Recordset1 = "SELECT * FROM fideles ORDER BY NOM ASC ";
    $Recordset1 = mysql_query($query_Recordset1, $FIDELES) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    echo $Recordset1;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
    <head>
           <title>Formulaire</title>
           <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                 <link rel="stylesheet" media="screen" type="text/css" title="Miseenforme" href="Miseenforme.css" />
                 <style type="text/css">
                 @import url("ModuleStyleSheets.css");
           </style>
                 <link href="CSS/colors5.css" rel="stylesheet" type="text/css" />
                 <style type="text/css">
                 h1 {
              font-size: xx-large;
           #corps form p {
              font-size: 18px;
              text-align: left;
              font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
           #corps form p br {
              font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
              font-size: 24px;
           #corps form p label {
              text-align: left;
           #corps form p label {
              text-align: left;
           #corps form p label {
              text-align: left;
           form p label {
              text-align: left;
           #corps form p {
              color: #FFFFFF;
           </style>
    </head>
       <body>
       <div id="corps">
       <form action="modifier.php" method="POST" enctype="multipart/form-data">
       <p><!-- #BeginDate format:fcAm1 -->Sunday, September 15, 2013<!-- #EndDate -->
       </p>
       <table width="500" border="1" align="center" cellpadding="2" cellspacing="2">
         <tr>
           <th width="500" align="center" bgcolor="#66FFFF" scope="row">FICHE D'INSCRIPTION</th>
         </tr>
       </table>
       <p>
                 <label for="Nom">Nom</label>
                        <input name="Nom" type="text" id="Nom" value="<?php echo ($_POST ['Nom']);   ?>"  size="20" readonly="readonly" /><br/>
                <label for="Prenom">Prenom</label>
                        <input type="text" id="Prenom" name="Prenom" value="<?php echo ($_POST ['Prenom']);  ?>"   size="20" readonly="readonly" /><br/>
         <p>Adresse:
           <label>
             <textarea name="adresse" id="adresse" cols="45" rows="5" value="<?php echo $data['ADRESSE'] ;  ?>" readonly="readonly" /></textarea>
           </label>
            <input name="Submit" type="submit" value="Submit" />
         <input type="reset"/>
           </p>
    </p>
       <?php
        if(isset($_POST['Nom']) &&(isset($_POST['Prenom']) ))
    // lancement de la requete //
    $sql ='SELECT * FROM fideles  WHERE (fideles.NOM =($_POST [Nom]))';
    // on lance la requête (mysql_query) et on impose un message d'erreur si la requête ne se passe pas bien (or die)
    $req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error()); 
    // on recupere le resultat sous forme d'un tableau //
      $data = mysql_fetch_array($req);
    echo $data['ADRESSE'];
      mysql_free_result ($req); 
      mysql_close ();
      return($data); 
      else
       echo "Veuillez saisir le nom et le prenom";
    ?>
              </form>
       <table width="97%" border="1" cellpadding="2" cellspacing="2">
         <tr>
           <td><a href="index.php" rel="publisher">Index</a></td>
           <td><a href="index.php">Accueil</a></td>
           <td><a href="formulaire.php">Creation</a></td>
           <td><a href="formulairemodif.php">Modification</a></td>
           <td><a href="formulairesupress.php">Supression</a></td>
           <td><a href="consultation.php">Consultation</a></td>
           <td><a href="palmdon.php">Palmares des dons</a></td>
         </tr>
       </table>
       <p></div>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>

  • SQL select * from v$log_history;

    SQL> select * from v$log_history;
    RECID STAMP THREAD# SEQUENCE# FIRST_CHANGE# FIRST_TIM NEXT_CHANGE#
    1 726598206 1 1 190578 08-AUG-10 467652
    2 726663400 1 2 467652 09-AUG-10 719320
    3 726758063 1 3 719320 10-AUG-10 1044278
    (1)From this output how I can know that how often archivelog is getting genarated what should be the actual interval of genaration.
    (2)How can I know the size of redolog group & it's member's size.
    (3)How can I determine that these sizes are perfect with my DB(Because of performance issue).

    You can use this query to see the gap in time between creating archive logs which should give an indication of log switches,
    set linesize 1000
    select name "archive log",
           ftime "first time",
           trunc(ftime- pftime) || ' days ' ||
           trunc( mod( (ftime-pftime)*24, 24 ) ) || ' hours ' ||
           trunc( mod( (ftime-pftime)*24*60, 60 ) )  || ' mins ' ||
           trunc( mod( (ftime-pftime)*24*60*60, 60 ) ) ||' secs ' "Time Gap"
    from
    select name,
            first_time ftime,
            lag(first_time,1) over (order by first_time ) pftime
    from v$archived_log order by first_time
    /The size of the log files are in V$LOG, groups and members in V$LOGFILE.
    You can extract the log switch information from the alert log.
    (there is also the DBA_HIST_LOG table).
    Edited by: stellios3 on Sep 30, 2010 11:27 AM

  • Dynamic SQL select from unknown table until runtime

    I need to do a select from a table that is unknown until runtime. Is there any good examples of this. The Store Procedure will take in the table name and return a row.
    I am not using inline SQL because there is a lot more complexity involved . What I need to do is understand how to reference this unknown table.
    Here is an example of what I have written so far.
    PACKAGE pk_LoadNativeDataItems IS
    PROCEDURE version;
    TYPE RowDataCur IS REF CURSOR;
    PROCEDURE pr_LoadNativeDataItems(p_flag IN NUMBER
    p_how_many_rows_to_fetch IN NUMBER,
    p_row_data OUT RowDataCur);
    PROCEDURE pr_LoadNativeDataItems(p_flag IN NUMBER
    p_how_many_rows_to_fetch IN NUMBER,
    p_table_name IN VARCHAR,
    p_row_data OUT RowDataCur) IS
    BEGIN
    OPEN p_row_data FOR
    SELECT * from ||p_table_name||;
    END pr_LoadNativeDataItems;
    END pk_LoadNativeDataItems;
    Thanks for any help
    Tony

    Here is example for similar question:
    Using variables for tables and columns

  • Unable to select from Oracle to SQL Server

    Hi group,
    I am having some issues while trying to select a SQL Server table from Oracle.
    Oracle version is 10.2.0.4 64 bits on Solaris 64 bits too, this database connects to Oracle Client (with dg4odbc) on Windows 64 bits installation (Oracle Cient version is 11.2.0.1), and finally SQL Server is running right on a Windows 2000 server on 32 bits.
    When I try to select the SQL Server table from Oracle, I am getting the next error message:
    SQL> select * from "interfaceinventarios"@TEST;
    select * from "interfaceinventarios"@TEST
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from TEST
    tnsping TEST is working well.
    On the Windows Server (64 bits) I used: C:\Windows\System32\odbcad.exe executable to create the datasource.
    Any help or advice will be really appreciated.
    Thanks in advance.
    Kind regards,
    Francisco

    Hi,
    If your server is of 64 bit then the oracle client needs to be 64 bit.

  • Executing SQL queries in SAP-GUI e.g. select * from but000

    Hallo,
    I am newbie in the SAP world. Is there a way to run select statements from SAP GUI? e.g. I want to know how many rows are returning from a join xyz.
    select count() from tabA and tabB where tabA.id = tabB.id and tabA.Name is not null.*
    Is it possible with SQVI (SQ01)?
    Please help.

    Testcase:
    SQL> create table scott.testit
         ( id number not null,
           value1 varchar2(10) not null )
         tablespace DATA;
    Table created.
    SQL> desc scott.testit;
    Name       Null?    Type
    ID        NOT NULL NUMBER
    VALUE1    NOT NULL VARCHAR2(10)
    SQL> insert into scott.testit (id,value1) values ( 1, 'Hello' );
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from scott.testit;
            ID VALUE1
             1 Hello
    ADD COLUMN, the old fashioned way
    SQL> alter table scott.testit add  ( ADDFIELD1 varchar2(5) );
    Table altered.
    SQL> desc scott.testit;
    Name        Null?    Type
    ID         NOT NULL NUMBER
    VALUE1     NOT NULL VARCHAR2(10)
    ADDFIELD1           VARCHAR2(5)
    SQL> select * from scott.testit where ADDFIELD1 is null;
            ID VALUE1     ADDFI
             1 Hello
    Works as expected
    Try to get NOT NULL and DEFAULT to work
    SQL> alter table scott.testit modify ( ADDFIELD1 NOT NULL );
    alter table scott.testit modify ( ADDFIELD1 NOT NULL )
    ERROR at line 1:
    ORA-02296: cannot enable (SCOTT.) - null values found
    SQL> alter table scott.testit modify  ADDFIELD1 default '000';
    Table altered.
    SQL> alter table scott.testit modify ( ADDFIELD1 NOT NULL );
    alter table scott.testit modify ( ADDFIELD1 NOT NULL )
    ERROR at line 1:
    ORA-02296: cannot enable (SCOTT.) - null values found
    No suprise so far. You would usually need to update all NOT NULL
    values to some values and you would be able to enable the NOT NULL constraint
    allthough this may run for quite a while on big tables.
    Now lets try the new stuff
    SQL> alter table scott.testit drop column ADDFIELD1;
    Table altered.
    SQL> alter table scott.testit ADD ADDFIELD1 varchar2(3) DEFAULT '000' not null;
    Table altered.
    SQL> desc scott.testit
    Name        Null?    Type
    ID         NOT NULL NUMBER
    VALUE1     NOT NULL VARCHAR2(10)
    ADDFIELD1  NOT NULL VARCHAR2(3)     <<<< BING !!!
    SQL> select * from scott.testit;
            ID VALUE1     ADD
             1 Hello      000            <<<< Default '000' is working
    SQL> select * from scott.testit where ADDFIELD1 is NULL;
    no rows selected                     <<<< NOW this might be suprising
    SQL> insert into scott.testit (id,value1,addfield1) values (2,'Bye', '000');
    1 row created.
    SQL> commit;                         <<<< Trying to compare "real" '000' with DEFAULT '000'
    Commit complete.
    SQL> select * from scott.testit;
            ID VALUE1     ADD
             1 Hello      000            <<<< Added with default
             2 Bye        000            <<<< inserted as '000'
    SQL> alter table scott.testit modify ADDFIELD1 default '111';
    Table altered.
    SQL> select * from scott.testit;     <<<< Now it gets exciting
            ID VALUE1     ADD
             1 Hello      000            <<<< WOA... How does this work?
             2 Bye        000
    SQL> set longC 20000 long 20000
    SQL> select dbms_metadata.get_ddl('TABLE','TESTIT','SCOTT') from dual;
    DBMS_METADATA.GET_DDL('TABLE','TESTIT','SCOTT')
    CREATE TABLE "SCOTT"."TESTIT"
    (  "ID" NUMBER NOT NULL ENABLE,
        "VALUE1" VARCHAR2(10) NOT NULL ENABLE,
        "ADDFIELD1" VARCHAR2(3) DEFAULT '111' NOT NULL ENABLE           <<<< No '000' DEFAULT
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "DATA"
    SQL>
    Looks like Oracle is at least a whole lot more clever than I expected.
    It must have stored the first Default value somewhere else, as the documentation
    says, that the effective rows will NOT be updated (otherwise it would never work so fast).
    I need to dig into how datablocks are dumped and read.
    Just to finalize this:
    SQL> alter table scott.testit modify ADDFIELD1 NULL;
    Table altered.
    SQL> select * from scott.testit;
            ID VALUE1     ADD
             1 Hello      000
             2 Bye        000
    SQL> select * from scott.testit where addfield1 is null;
    no rows selected
    SQL>
    So the change persists even if you revert the constraint allthough the data
    should not been changed. Surely need to do a datablock dump of this.
    Need to do additional tests with indexes.
    But right now I am running out of time.
    May be someone else likes to join the expedition.
    Volker

  • Can't select from view even though it appears in ALL_VIEWS

    Oracle's documentation states that all_views "describes the views accessible to the user":
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2117.htm
    DBA_OBJECTS appears in the ALL_VIEWS, yet I get a "table or view does not exist" error when I try to select from it.
    Any thoughts on why this is happening?
    SQL> SELECT COUNT(1)
      FROM all_views
      WHERE owner = 'SYS'
      AND view_name = 'DBA_OBJECTS'
      COUNT(1)
             1
    1 row selected.
    SQL> SELECT *
      FROM sys.dba_objects
    SELECT *
      FROM sys.dba_objects
    Error at line 2
    ORA-00942: table or view does not exist

    That's not standard behaviour:
    DBA >create user u1 identified by u1;
    Utente creato.
    DBA >grant connect to u1;
    Concessione riuscita.
    DBA >conn u1/u1
    Connesso.
    DBA >select count(0) from all_views;
      COUNT(0)
           856
    DBA >select view_name from all_views
      2  where view_name like 'DBA%'
      3  or view_name like 'V$%';
    VIEW_NAME
    DBA_PROCEDURES
    DBA_PUBLISHED_COLUMNS
    V$OBJECT_USAGE
    DBA >select 'select count(*) from '||owner||'.'||view_name||';'
      2  from all_views
      3  where view_name like 'DBA%'
      4  or view_name like 'V$%';
    'SELECTCOUNT(*)FROM'||OWNER||'.'||VIEW_NAME||';'
    select count(*) from SYS.DBA_PROCEDURES;
    select count(*) from SYS.DBA_PUBLISHED_COLUMNS;
    select count(*) from SYS.V$OBJECT_USAGE;
    DBA >select count(*) from SYS.DBA_PROCEDURES;
      COUNT(*)
          6793
    DBA >select count(*) from SYS.DBA_PUBLISHED_COLUMNS;
      COUNT(*)
             0
    DBA >select count(*) from SYS.V$OBJECT_USAGE;
      COUNT(*)
             0All the DBA* or V$ visible are also accessible, DBA_OBJECTS is not present in ALL_VIEWS.
    There's something strange on your user's priviledges...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/02/query-gerarchiche/]

  • Getting an error while selecting from table having CLOB column.

    Hi All,
    I have below table created in My oracle database version Oracle Database 11g Enterprise Edition Release 11.2.0.1.0.
    CREATE TABLE my_clob -- Dummy table created
    (DataBody CLOB);
    Current Database Character set - WE8MSWIN1250.
    On the front end of my application, I have one form through which I can save/edit data in the above table. If I'm creating one new entry in the above table then it first check with existing record to avoid the duplicate entry and the this point application create the below select statement on the above table and return the error "ORA-00932: inconsistent data types: expected - got CLOB".
    I can not change the sql statement.
    SELECT * FROM my_clob WHERE databody IS NULL OR databody ='';
    Even when I run the same statement on my DB server I’m getting the same error. Shown below
    SQL> SELECT * FROM my_clob WHERE databody IS NULL OR databody ='';
    SELECT * FROM my_clob WHERE databody IS NULL OR databody =''
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected - got CLOB
    SQL>
    Is there anything with OraOLEDB which causing this error? Please help me out to get rid of this error.
    Thanks,
    Santosh

    You cannot compare directly a CLOB column with a VARCHAR2 column. In your case you don't need to do such comparison because Oracle consider zero length strings as null values:
    SQL> create table my_clob(data int, databody clob);
    Table created.
    SQL> insert into my_clob values(1, null);
    1 row created.
    SQL> insert into my_clob values(2, '');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from my_clob where databody is null;
          DATA
    DATABODY
             1
             2About null values in Oracle, please read http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements005.htm#SQLRF30037.

  • Getting the error LOG file opened at 01/29/07 18:13:12 while selecting from

    I am getting following error in log file while selecting from a external table
    LOG file opened at 01/29/07 18:13:12
    KUP-04040: file test.csv in UTL not found. I am follwoing the following steps:
    connect as sys user :
    CREATE OR REPLACE DIRECTORY UTL as 'D:\oracle\product\10.1.0';
    GRANT READ,write ON DIRECTORY UTL TO user1;
    connect as user1
    drop table test;
    create table test (EQP_N_EQUIPMETID_PK number(10) ,
    EQPNAME varchar2(100),
    EQPDESCR varchar2(1000),
    COSSEC varchar2(10),
    ETSCES varchar2(10),
    CATPARTNO varchar(1000),
    EQUIPMETID_FK number(10),
    EQPTYPEMASTERID_FK number(10),
    SECTIONID_FK number(10),
    MEAUNITID_FK number(10),
    CREATEDBY number(10),
    MODIFIEDBY number(10),
    LASTUPDATED varchar2(20),
    SHUFFLING varchar2(50))
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY utl
    ACCESS PARAMETERS (FIELDS TERMINATED BY ',')
    LOCATION ('test.csv'))
    REJECT LIMIT UNLIMITED
    On issuing select count(*) from test gives following error:
    SQL> select count(*) from test;
    select count(*) from test
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file test.csv in UTL not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    ORA-06512: at line 1
    All these steps I have tried on the oracle server as well as on the client m/c.
    Is there any step that I am missing out???

    hi,
    SQL> edit c:\oracle\product\10.1.0\test.csv
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> create or replace directory UTL  as 'c:\oracle\product\10.1.0';
    Directory created.
    SQL> grant read,write on directory UTL to scott;
    Grant succeeded.
    SQL> create table scott.test ( no number(10),
      2                           name varchar2(20))
      3  organization external
      4                   ( type oracle_loader
      5                     default directory UTL
      6                     access parameters
                           ( fields terminated by ',')
      7  location
                           ('test.csv'))
      8  reject limit unlimited;
    Table created.
    SQL> select count(*) from scott.test;
      COUNT(*)
             1
    SQL> select * from scott.test;
            NO NAME
             1 test
    SQL>it is working for me. again check your file location.
    regards
    Taj
    Message was edited by:
    M. Taj

  • Select * from tab is not working in oracle 10g

    select * from tab is not working in oracle 10g. But at the same time,
    select * from <<table>> is working.
    Please advise me.

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • No rows returned by spatial query wrapped in SELECT * FROM ...

    Hi,
    I'm getting some really weird behaviour when running a sub query with SDO_EQUAL. The SDO_EQUAL query on its own works fine, but if I wrap it in SELECT * FROM then I get no results. If I wrap SDO_ANYINTERACT in SELECT * FROM then I get the expected result.
    It looks like the spatial index is used when running the regular SDO_EQUAL query, but not when wrapped in SELECT * FROM. Weird. The spatial index is also not used when SDO_ANYINTERACT is wrapped in SELECT * FROM... so I'm not sure why that returns the right answer.
    I am getting this problem on 11.2.0.2 on Red Hat Linux 64bit and 11.2.0.1 on Windows XP 32bit (that's all the 11g versions I've tried). The query works as expected on 10.2.0.5 on Windows Server 2003 64bit.
    Any ideas?
    Confused in Dublin (John)
    Test case...SQL>
    SQL> -- Create a table and insert the same geometry twice
    SQL> DROP TABLE sdo_equal_query_test;
    Table dropped.
    SQL> CREATE TABLE sdo_equal_query_test (
      2  id NUMBER,
      3  geometry SDO_GEOMETRY);
    Table created.
    SQL>
    SQL> INSERT INTO sdo_equal_query_test VALUES (1,
      2  SDO_GEOMETRY(3003, 81989, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
      3  SDO_ORDINATE_ARRAY(1057.39, 1048.23, 4, 1057.53, 1046.04, 4, 1057.67, 1043.94, 4, 1061.17, 1044.60, 5, 1060.95, 1046.49, 5, 1060.81, 1047.78, 5, 1057.39, 1048.23, 4)));
    1 row created.
    SQL>
    SQL> INSERT INTO sdo_equal_query_test VALUES (2,
      2  SDO_GEOMETRY(3003, 81989, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
      3  SDO_ORDINATE_ARRAY(1057.39, 1048.23, 4, 1057.53, 1046.04, 4, 1057.67, 1043.94, 4, 1061.17, 1044.60, 5, 1060.95, 1046.49, 5, 1060.81, 1047.78, 5, 1057.39, 1048.23, 4)));
    1 row created.
    SQL>
    SQL> -- Setup metadata
    SQL> DELETE FROM user_sdo_geom_metadata WHERE table_name = 'SDO_EQUAL_QUERY_TEST';
    1 row deleted.
    SQL> INSERT INTO user_sdo_geom_metadata VALUES ('SDO_EQUAL_QUERY_TEST','GEOMETRY',
      2  SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', 0, 100000, .0001), SDO_DIM_ELEMENT('Y', 0, 100000, .0001), SDO_DIM_ELEMENT('Z', -100, 4000, .0001))
      3  ,81989);
    1 row created.
    SQL>
    SQL> -- Create spatial index
    SQL> DROP INDEX sdo_equal_query_test_spind;
    DROP INDEX sdo_equal_query_test_spind
    ERROR at line 1:
    ORA-01418: specified index does not exist
    SQL> CREATE INDEX sdo_equal_query_test_spind ON sdo_equal_query_test(geometry) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    Index created.
    SQL>
    SQL> -- Ensure data is valid
    SQL> SELECT sdo_geom.validate_geometry_with_context(sdo_cs.make_2d(geometry), 0.0001) is_valid
      2  FROM sdo_equal_query_test;
    IS_VALID
    TRUE
    TRUE
    2 rows selected.
    SQL>
    SQL> -- Check query results using sdo_equal
    SQL> SELECT b.id
      2  FROM sdo_equal_query_test a, sdo_equal_query_test b
      3  WHERE a.id = 1
      4  AND b.id != a.id
      5  AND sdo_equal(a.geometry, b.geometry) = 'TRUE';
            ID
             2
    1 row selected.
    SQL>
    SQL> -- Check query results using sdo_equal wrapped in SELECT * FROM
    SQL> -- Results should be the same as above, but... no rows selected
    SQL> SELECT * FROM (
      2       SELECT b.id
      3       FROM sdo_equal_query_test a, sdo_equal_query_test b
      4       WHERE a.id = 1
      5       AND b.id != a.id
      6       AND sdo_equal(a.geometry, b.geometry) = 'TRUE'
      7  );
    no rows selected
    SQL>
    SQL> -- So that didn't work.  Now try sdo_anyinteract... this works ok
    SQL> SELECT * FROM (
      2       SELECT b.id
      3       FROM sdo_equal_query_test a, sdo_equal_query_test b
      4       WHERE a.id = 1
      5       AND b.id != a.id
      6       AND sdo_anyinteract(a.geometry, b.geometry) = 'TRUE'
      7  );
            ID
             2
    1 row selected.
    SQL>
    SQL> -- Now try a scalar query
    SQL> SELECT * FROM (
      2       SELECT b.id
      3       FROM sdo_equal_query_test a, sdo_equal_query_test b
      4       WHERE a.id = 1
      5       AND b.id != a.id
      6  );
            ID
             2
    1 row selected.
    SQL> spool offHere's the explain plan for the query that works. Note that the spatial index is used.
    SQL> EXPLAIN PLAN FOR
      2  SELECT b.id
      3  FROM sdo_equal_query_test a, sdo_equal_query_test b
      4  WHERE a.id = 1
      5  AND b.id != a.id
      6  AND sdo_equal(a.geometry, b.geometry) = 'TRUE';
    Explained.
    SQL> @?/rdbms/admin/utlxpls.sql
    PLAN_TABLE_OUTPUT
    Plan hash value: 3529470109
    | Id  | Operation                     | Name                       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                            |     1 |  7684 |     3   (0)| 00:00:01 |
    |   1 |  RESULT CACHE                 | f5p63r46pbzty4sr45td1uv5g8 |       |       |            |       |
    |   2 |   NESTED LOOPS                |                            |     1 |  7684 |     3   (0)| 00:00:01 |
    |*  3 |    TABLE ACCESS FULL          | SDO_EQUAL_QUERY_TEST       |     1 |  3836 |     3   (0)| 00:00:01 |
    |*  4 |    TABLE ACCESS BY INDEX ROWID| SDO_EQUAL_QUERY_TEST       |     1 |  3848 |     3   (0)| 00:00:01 |
    |*  5 |     DOMAIN INDEX              | SDO_EQUAL_QUERY_TEST_SPIND |       |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - filter("B"."ID"!=1)
       4 - filter("A"."ID"=1 AND "B"."ID"!="A"."ID")
       5 - access("MDSYS"."SDO_EQUAL"("A"."GEOMETRY","B"."GEOMETRY")='TRUE')
    ..... other stuff .....     Here's the explain plan for the query that does not work. Note that the spatial index is not used.
    SQL> EXPLAIN PLAN FOR
      2  SELECT * FROM (
      3     SELECT b.id
      4     FROM sdo_equal_query_test a, sdo_equal_query_test b
      5     WHERE a.id = 1
      6     AND b.id != a.id
      7     AND sdo_equal(a.geometry, b.geometry) = 'TRUE'
      8  );
    Explained.
    SQL> @?/rdbms/admin/utlxpls.sql
    PLAN_TABLE_OUTPUT
    Plan hash value: 1024466006
    | Id  | Operation           | Name                       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |                            |     1 |  7684 |     6   (0)| 00:00:01 |
    |   1 |  RESULT CACHE       | 2sd35wrcw3jr411bcg3sz161f6 |       |       |            |          |
    |   2 |   NESTED LOOPS      |                            |     1 |  7684 |     6   (0)| 00:00:01 |
    |*  3 |    TABLE ACCESS FULL| SDO_EQUAL_QUERY_TEST       |     1 |  3836 |     3   (0)| 00:00:01 |
    |*  4 |    TABLE ACCESS FULL| SDO_EQUAL_QUERY_TEST       |     1 |  3848 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - filter("B"."ID"!=1)
       4 - filter("A"."ID"=1 AND "B"."ID"!="A"."ID" AND
                  "MDSYS"."SDO_EQUAL"("A"."GEOMETRY","B"."GEOMETRY")='TRUE')
    ..... other stuff .....               

    That looks like a bug to me. As a workaround, you can materialize the inline view by adding rownum>0. Please see the reproduction and workaround below.
    SCOTT@orcl_11gR2> SELECT *
      2  FROM   (SELECT b.id
      3            FROM   sdo_equal_query_test a, sdo_equal_query_test b
      4            WHERE  a.id = 1
      5            AND    b.id != a.id
      6            AND    sdo_equal (a.geometry, b.geometry) = 'TRUE')
      7  /
    no rows selected
    Execution Plan
    Plan hash value: 1024466006
    | Id  | Operation          | Name                 | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |                      |     1 |  7676 |     6   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS      |                      |     1 |  7676 |     6   (0)| 00:00:01 |
    |*  2 |   TABLE ACCESS FULL| SDO_EQUAL_QUERY_TEST |     1 |  3832 |     3   (0)| 00:00:01 |
    |*  3 |   TABLE ACCESS FULL| SDO_EQUAL_QUERY_TEST |     1 |  3844 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter("B"."ID"<>1)
       3 - filter("A"."ID"=1 AND "B"."ID"<>"A"."ID" AND
                  "MDSYS"."SDO_EQUAL"("A"."GEOMETRY","B"."GEOMETRY")='TRUE')
    Note
       - dynamic sampling used for this statement (level=2)
    SCOTT@orcl_11gR2> SELECT *
      2  FROM   (SELECT b.id
      3            FROM   sdo_equal_query_test a, sdo_equal_query_test b
      4            WHERE  a.id = 1
      5            AND    b.id != a.id
      6            AND    sdo_equal (a.geometry, b.geometry) = 'TRUE'
      7            AND    ROWNUM > 0)
      8  /
            ID
             2
    1 row selected.
    Execution Plan
    Plan hash value: 2329953927
    | Id  | Operation                       | Name                       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                |                            |     1 |    13 |     3   (0)| 00:00:01 |
    |   1 |  VIEW                           |                            |     1 |    13 |     3   (0)| 00:00:01 |
    |   2 |   COUNT                         |                            |       |       |            |          |
    |*  3 |    FILTER                       |                            |       |       |            |          |
    |   4 |     NESTED LOOPS                |                            |     1 |  7676 |     3   (0)| 00:00:01 |
    |*  5 |      TABLE ACCESS FULL          | SDO_EQUAL_QUERY_TEST       |     1 |  3832 |     3   (0)| 00:00:01 |
    |*  6 |      TABLE ACCESS BY INDEX ROWID| SDO_EQUAL_QUERY_TEST       |     1 |  3844 |     3   (0)| 00:00:01 |
    |*  7 |       DOMAIN INDEX              | SDO_EQUAL_QUERY_TEST_SPIND |       |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - filter(ROWNUM>0)
       5 - filter("B"."ID"<>1)
       6 - filter("A"."ID"=1 AND "B"."ID"<>"A"."ID")
       7 - access("MDSYS"."SDO_EQUAL"("A"."GEOMETRY","B"."GEOMETRY")='TRUE')
    Note
       - dynamic sampling used for this statement (level=2)
    SCOTT@orcl_11gR2>

  • Select from table containing clob

    If i try to select from table containing clob column in SQL PLus it gives error.
    Tab1 contains 3 clob columns and 1 blob column
    select * from tab 1;
    SP2-0678: Column or attribute type can not be displayed by SQL*Plus
    The same statement works in SQL Developer and I am able to see the result.
    Actually i am writing the queries and they will be used by Java developers in their JSP page.
    So what happens here? Can Java use these select statements or will it throw error like SQL Plus?

    BLOB column content can't be displayed in SQL*Plus:
    SQL> create table t_blob (b blob);
    Table created.
    SQL> edit
    Wrote file afiedt.buf
      1* insert into t_blob values('01')
    SQL> /
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t_blob;
    SP2-0678: Column or attribute type can not be displayed by SQL*PlusBlob and clob columns content can be processed using DBMS_LOB
    package procedures and functions or using client's language (like Java)
    methods. See JDBC specification.
    Rgds.

  • Selecting from partition is taking too much time

    The SEARCH_MEMBE_PROVIDER_ROLLUP is partitioned with range-list partition
    ROLLUP_ID --range (about 30 partitions ) and other column with list subpartitioned (about 48)
    *indexes on columns
    b-tree global index on ROLLUP_ID
    bitmap local index on ROLLUP_ID, MEMBERONE_ID_1010
    bitmap local index on MEMBERONE_ID_1010*
    I could not figured it out as some partition's data is coming fast and some partition's data is not coming at all(taking 18 minutes)
    any help would be greatly appreciated and please let me know if need more information
    Please see the following information
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> explain plan for SELECT COUNT (1)
      2  FROM (SELECT LY.MEMBERONE_ID_1010
      3          FROM (SELECT *
      4                  FROM (SELECT dr.*
      5                          FROM MEMBERONE_last1year dr)) ly
      6         WHERE 1 = 1
      7               AND LY.MEMBERONE_ID_1010 IN (SELECT RP.MEMBERONE_ID_1010
      8                                              FROM SEARCH_MEMBE_PROVIDER_ROLLUP RP
      9                                             WHERE RP.rollup_id = 7));
    Explained.
    SQL> @utlxplp
    PLAN_TABLE_OUTPUT
    Plan hash value: 677376773
    | Id  | Operation                       | Name                           | Rows  | Bytes | Cost  | Pstart| Pstop |
    |   0 | SELECT STATEMENT                |                                |     1 |    18 |    84 |       |       |
    |   1 |  SORT AGGREGATE                 |                                |     1 |    18 |       |       |       |
    |   2 |   NESTED LOOPS SEMI             |                                |   154K|  2707K|    84 |       |       |
    |   3 |    INDEX FULL SCAN              | IX1_MEMBERONE_LAST1YEAR        |  2701K|    20M|    75 |       |       |
    |   4 |    PARTITION RANGE SINGLE       |                                | 64749 |   632K|    84 |     7 |     7 |
    |   5 |     PARTITION LIST ALL          |                                | 64749 |   632K|    84 |     1 |    48 |
    |   6 |      BITMAP CONVERSION TO ROWIDS|                                | 64749 |   632K|    84 |       |       |
    |*  7 |       BITMAP INDEX SINGLE VALUE | IX3_SEARCH_MEMBE_PROVIDER_ROLL |       |       |       |   289 |   336 |
    Predicate Information (identified by operation id):
       7 - access("RP"."ROLLUP_ID"=7 AND "DR"."MEMBERONE_ID_1010"="RP"."MEMBERONE_ID_1010")
    Note
       - cpu costing is off (consider enabling it)
    23 rows selected.
    *THE ABOVE QUERY is taking more than 18 minutes*
    ========================
    *THE BELOW QUERY is taking not even two seconds*
    SQL> SELECT COUNT (1)
      2  FROM (SELECT LY.MEMBERONE_ID_1010
      3          FROM (SELECT *
      4                  FROM (SELECT dr.*
      5                          FROM MEMBERONE_last1year dr)) ly
      6         WHERE 1 = 1
      7               AND LY.MEMBERONE_ID_1010 IN (SELECT RP.MEMBERONE_ID_1010
      8                                              FROM SEARCH_MEMBE_PROVIDER_ROLLUP RP
      9                                             WHERE RP.rollup_id = 11));
      COUNT(1)
        131575
    Elapsed: 00:00:01.53
    SQL> explain plan for SELECT COUNT (1)
      2  FROM (SELECT LY.MEMBERONE_ID_1010
      3          FROM (SELECT *
      4                  FROM (SELECT dr.*
      5                          FROM MEMBERONE_last1year dr)) ly
      6         WHERE 1 = 1
      7               AND LY.MEMBERONE_ID_1010 IN (SELECT RP.MEMBERONE_ID_1010
      8                                              FROM SEARCH_MEMBE_PROVIDER_ROLLUP RP
      9                                             WHERE RP.rollup_id = 11));
    Explained.
    Elapsed: 00:00:00.03
    SQL> @utlxplp
    PLAN_TABLE_OUTPUT
    Plan hash value: 3092271485
    | Id  | Operation                 | Name                         | Rows  | Bytes | Cost  | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT          |                              |     1 |    18 |    80 |       |       |        |      |            |
    |   1 |  SORT AGGREGATE           |                              |     1 |    18 |       |       |       |        |      |            |
    |   2 |   PX COORDINATOR          |                              |       |       |       |       |       |        |      |            |
    |   3 |    PX SEND QC (RANDOM)    | :TQ10002                     |     1 |    18 |       |       |       |  Q1,02 | P->S | QC (RAND)  |
    |   4 |     SORT AGGREGATE        |                              |     1 |    18 |       |       |       |  Q1,02 | PCWP |            |
    |*  5 |      HASH JOIN RIGHT SEMI |                              | 70780 |  1244K|    80 |       |       |  Q1,02 | PCWP |            |
    |   6 |       PX RECEIVE          |                              |   208K|  2034K|     6 |       |       |  Q1,02 | PCWP |            |
    |   7 |        PX SEND HASH       | :TQ10001                     |   208K|  2034K|     6 |       |       |  Q1,01 | P->P | HASH       |
    |   8 |         PX BLOCK ITERATOR |                              |   208K|  2034K|     6 |     1 |    48 |  Q1,01 | PCWC |            |
    |*  9 |          TABLE ACCESS FULL| SEARCH_MEMBE_PROVIDER_ROLLUP |   208K|  2034K|     6 |   481 |   528 |  Q1,01 | PCWP |            |
    |  10 |       BUFFER SORT         |                              |       |       |       |       |       |  Q1,02 | PCWC |            |
    |  11 |        PX RECEIVE         |                              |  2701K|    20M|    75 |       |       |  Q1,02 | PCWP |            |
    |  12 |         PX SEND HASH      | :TQ10000                     |  2701K|    20M|    75 |       |       |        | S->P | HASH       |
    |  13 |          INDEX FULL SCAN  | IX1_MEMBERONE_LAST1YEAR      |  2701K|    20M|    75 |       |       |        |      |            |
    Predicate Information (identified by operation id):
       5 - access("DR"."MEMBERONE_ID_1010"="RP"."MEMBERONE_ID_1010")
       9 - filter("RP"."ROLLUP_ID"=11)
    Note
       - cpu costing is off (consider enabling it)
    30 rows selected.
    Elapsed: 00:00:00.54
    SQL> spool offthanks again

    Hi
    1) there are two major differences between the plans: serial vs parallel and NESTED LOOPS SEMI vs HASH JOIN SEMI
    2) NESTED LOOPS look like a bad choice here, and it also looks like the optimizer badly underestimates it's real cost. Which is a bit odd, because it knows that the outer rowsource has 2701K, i.e. the inner operation would have to be executed 2701K times. Looks like an optimizer glitch, which brings us to the point that Dan has already raised here: you shouldn't be running on an old unsupported version
    3) regarding serial vs parallel: it could be due to difference in session settings (ALTER SESSION ENABLE/DISABLE PARALLEL QUERY)
    4) the two plans have different values of the filter against rollup_id (7 vs 11), so one possible reason for different behavior is the histogram on SEARCH_MEMBE_PROVIDER_ROLLUP.rollup_id. If you can reproduce the issue on a test database, re-gather stats on this table without histograms (method_opt=>'for all columns size 1', no_invalidate=>false) and see if the problem goes away
    Best regards,
    Nikolay

  • Oracle ODBC Gateway SELECT from Sybase fails on large column

    OS: CentOS 5.8 64-bit
    DB: Oracle XE 11gR1 64-bit
    Gateway: Oracle Gateway for ODBC 64-bit
    Database and gateway reside on same Linux Server.
    Connecting to remote Sybase SQL Anywhere 10 server on WindowsXP.
    Using SQL Anywhere 11 odbc driver and unixODBC driver manager on Linux server.
    isql tool connects without any problems.
    One LISTENER, service for db and gateway on same port.
    ===================================
    Via SQL*Plus, the following error occurs....
    SQL> select * from mytable@dblink;
    select * from mytable@dblink
    ORA-02070: database dblink does not support outer joins in this context
    Gateway does not like the 'large' column which is varchar(3270) in length. Also it is the only
    column in the table that is a varchar.
    Take that column out and SELECT works fine.
    Here is the initdblink.ora file:
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO=dblink
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
    HS_FDS_TRACE_LEVEL=255
    HS_LANGUAGE=american_america.we8iso8859p1
    HS_NLS_NCHAR=UTF-8
    # ODBC specific environment variables
    set ODBCINI=/etc/odbc.ini
    Please advise....
    Edited by: user601798 on Oct 17, 2012 7:09 AM
    Edited by: user601798 on Oct 17, 2012 7:09 AM
    Edited by: user601798 on Oct 17, 2012 7:13 AM

    Here is the trace file:
    Oracle Corporation --- THURSDAY OCT 18 2012 14:55:34.259
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY OCT 18 2012 14:55:34.259
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 32 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 "dblink"
    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:dblink
    Exiting hgogprd, rc=0
    hostmstr: 2056122368: HOA After hoagprd
    hostmstr: 2056122368: HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=31
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=110000
    Entered hgolofn at 2012/10/18-14:55:39
    Exiting hgolofn, rc=0 at 2012/10/18-14:55:39
    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 32 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2012/10/18-14:55:40
    hostmstr: 2056122368: HOA After hoainit
    hostmstr: 2056122368: HOA Before hoalgon
    Entered hgolgon at 2012/10/18-14:55:40
    reco:0, name:dba, tflag:0
    Entered hgosuec at 2012/10/18-14:55:41
    Exiting hgosuec, rc=0 at 2012/10/18-14:55:41
    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 dba as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2012/10/18-14:55:42
    HS_FDS_CONNECT_INFO = "dblink"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2012/10/18-14:55:43
    dsn:dblink, name:dba
    optn:
    Entered hgocip at 2012/10/18-14:55:43
    dsn:dblink
    Exiting hgocip, rc=0 at 2012/10/18-14:55:43
    ##>Connect Parameters (len=25)<##
    ## DSN=dblink;
    #! UID=dba;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/10/18-14:55:44
    Entered hgolosf at 2012/10/18-14:55:44
    ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFFFF 0x03FF 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
    0x0000 0x0000 0xFE00 0x3F5F
    Exiting hgolosf, rc=0 at 2012/10/18-14:55:46
    DriverName:DBODBC10.DLL, DriverVer:10.00.0001
    DBMS Name:SQL Anywhere, DBMS Version:10.00.0001
    Exiting hgocont, rc=0 at 2012/10/18-14:55:47
    SQLGetInfo returns N for SQL_CATALOG_NAME
    Exiting hgolgon, rc=0 at 2012/10/18-14:55:48
    hostmstr: 2027339776: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 2027339776: RPC Before Upload Caps
    hostmstr: 2027339776: HOA Before hoaulcp
    Entered hgoulcp at 2012/10/18-14:55:48
    Entered hgowlst at 2012/10/18-14:55:48
    Exiting hgowlst, rc=0 at 2012/10/18-14:55:49
    SQLGetInfo returns 0x1f for SQL_OWNER_USAGE
    TXN Capable:3, Isolation Option:0xf
    SQLGetInfo returns 128 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 128 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo returns Y for SQL_COLUMN_ALIAS
    3 instance capabilities will be uploaded
    capno:1989, context:0x00000000, add-info: 0
    capno:1991, context:0x0001ffff, add-info: 0
    capno:1992, context:0x0001ffff, add-info: 0
    Exiting hgoulcp, rc=0 at 2012/10/18-14:56:05
    hostmstr: 2026291200: HOA After hoaulcp
    hostmstr: 2026291200: RPC After Upload Caps
    hostmstr: 2026291200: RPC Before Upload DDTR
    hostmstr: 2026291200: HOA Before hoauldt
    Entered hgouldt at 2012/10/18-14:56:06
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2012/10/18-14:56:06
    hostmstr: 2026291200: HOA After hoauldt
    hostmstr: 2026291200: RPC After Upload DDTR
    hostmstr: 2026291200: RPC Before Begin Trans
    hostmstr: 2026291200: HOA Before hoabegn
    Entered hgobegn at 2012/10/18-14:56:06
    tflag:0 , initial:1
    hoi:0x12f094, ttid (len 27) is ...
    00: 44415441 5748442E 65623465 33343931 [DATAWHD.eb4e3491]
    10: 2E322E36 322E3839 363837 [.2.62.89687]
    tbid (len 24) is ...
    00: 44415441 5748445B 322E3632 2E383936 [DATAWHD[2.62.896]
    10: 38375D5B 312E345D [87][1.4]]
    Exiting hgobegn, rc=0 at 2012/10/18-14:56:08
    hostmstr: 2026291200: HOA After hoabegn
    hostmstr: 2026291200: RPC After Begin Trans
    hostmstr: 2026291200: RPC Before Describe Table
    hostmstr: 2026291200: HOA Before hoadtab
    Entered hgodtab at 2012/10/18-14:56:08
    count:1
    table: RSCCC.SR_SPEC_PGM_SPEC_ED
    Allocate hoada[0] @ 025B799C
    Entered hgopcda at 2012/10/18-14:56:12
    Column:1(SCH_YR): dtype:12 (VARCHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:13
    Entered hgopcda at 2012/10/18-14:56:13
    Column:2(CAMPUS_ID): dtype:12 (VARCHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:13
    Entered hgopcda at 2012/10/18-14:56:14
    Column:3(STU_ID): dtype:12 (VARCHAR), prc/scl:6/0, nullbl:0, octet:6, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:14
    Entered hgopcda at 2012/10/18-14:56:14
    Column:4(DT_ENTRY_STU): dtype:12 (VARCHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:14
    Entered hgopcda at 2012/10/18-14:56:15
    Column:5(PRI_HANDI_IND): dtype:12 (VARCHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:15
    Entered hgopcda at 2012/10/18-14:56:15
    Column:6(INSTRUCT_SET_CD): dtype:12 (VARCHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:16
    Entered hgopcda at 2012/10/18-14:56:16
    Column:7(SPEECH_THRPY_IND): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:16
    Entered hgopcda at 2012/10/18-14:56:17
    Column:8(DT_WD): dtype:12 (VARCHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:17
    Entered hgopcda at 2012/10/18-14:56:17
    Column:9(DT_ENTRY_STU_RECIP): dtype:12 (VARCHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:18
    Entered hgopcda at 2012/10/18-14:56:18
    Column:10(WD_RSN_CD): dtype:12 (VARCHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:18
    Entered hgopcda at 2012/10/18-14:56:19
    Column:11(VOC_HRS_ELIG): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:19
    Entered hgopcda at 2012/10/18-14:56:19
    Column:12(REG_DAY_SCH_PGM_DEAF): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:19
    The hoada for table RSCCC.SR_SPEC_PGM_SPEC_ED follows...
    hgodtab, line 904: Printing hoada @ 025B799C
    MAX:12, ACTUAL:12, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 4 4 0/ 0 0 0 200 SCH_YR
    12 VARCHAR N 3 3 0/ 0 0 0 200 CAMPUS_ID
    12 VARCHAR N 6 6 0/ 0 0 0 200 STU_ID
    12 VARCHAR N 8 8 0/ 0 0 0 200 DT_ENTRY_STU
    12 VARCHAR N 2 2 0/ 0 0 0 200 PRI_HANDI_IND
    12 VARCHAR N 2 2 0/ 0 0 0 200 INSTRUCT_SET_CD
    12 VARCHAR N 1 1 0/ 0 0 0 200 SPEECH_THRPY_IND
    12 VARCHAR N 8 8 0/ 0 0 0 200 DT_WD
    12 VARCHAR N 8 8 0/ 0 0 0 200 DT_ENTRY_STU_RECIP
    12 VARCHAR N 2 2 0/ 0 0 0 200 WD_RSN_CD
    12 VARCHAR N 1 1 0/ 0 0 0 200 VOC_HRS_ELIG
    12 VARCHAR N 1 1 0/ 0 0 0 200 REG_DAY_SCH_PGM_DEAF
    Exiting hgodtab, rc=0 at 2012/10/18-14:56:22
    hostmstr: 2026291200: HOA After hoadtab
    hostmstr: 2026291200: HOA Before hoadafr
    Entered hgodafr, cursor id 0 at 2012/10/18-14:56:23
    Free hoada @ 025B799C
    Exiting hgodafr, rc=0 at 2012/10/18-14:56:23
    hostmstr: 2026291200: HOA After hoadafr
    hostmstr: 2026291200: RPC After Describe Table
    hostmstr: 2026291200: RPC Before Describe Table
    hostmstr: 2026291200: HOA Before hoadtab
    Entered hgodtab at 2012/10/18-14:56:23
    count:1
    table: RSCCC.SR_DISCPLN
    Allocate hoada[0] @ 025B799C
    Entered hgopcda at 2012/10/18-14:56:27
    Column:1(SCH_YR): dtype:12 (VARCHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:28
    Entered hgopcda at 2012/10/18-14:56:28
    Column:2(STU_ID): dtype:12 (VARCHAR), prc/scl:6/0, nullbl:0, octet:6, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:28
    Entered hgopcda at 2012/10/18-14:56:29
    Column:3(OFENS_STAMP): dtype:12 (VARCHAR), prc/scl:27/0, nullbl:0, octet:27, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:29
    Entered hgopcda at 2012/10/18-14:56:29
    Column:4(OFENS_TIME): dtype:12 (VARCHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:29
    Entered hgopcda at 2012/10/18-14:56:30
    Column:5(CAMPUS_ID): dtype:12 (VARCHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:30
    Entered hgopcda at 2012/10/18-14:56:30
    Column:6(DT_OFENS): dtype:12 (VARCHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:30
    Entered hgopcda at 2012/10/18-14:56:31
    Column:7(MODIFIER): dtype:12 (VARCHAR), prc/scl:10/0, nullbl:0, octet:10, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:31
    Entered hgopcda at 2012/10/18-14:56:31
    Column:8(OFENS_SEMCYC): dtype:12 (VARCHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:32
    Entered hgopcda at 2012/10/18-14:56:32
    Column:9(REP_BY): dtype:12 (VARCHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:32
    Entered hgopcda at 2012/10/18-14:56:33
    Column:10(REP_BY_NAME_F): dtype:12 (VARCHAR), prc/scl:17/0, nullbl:0, octet:17, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:33
    Entered hgopcda at 2012/10/18-14:56:33
    Column:11(REP_BY_NAME_L): dtype:12 (VARCHAR), prc/scl:25/0, nullbl:0, octet:25, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:33
    Entered hgopcda at 2012/10/18-14:56:34
    Column:12(INC_LOC): dtype:12 (VARCHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:34
    Entered hgopcda at 2012/10/18-14:56:35
    Column:13(COURSE): dtype:12 (VARCHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:35
    Entered hgopcda at 2012/10/18-14:56:35
    Column:14(SECTION): dtype:12 (VARCHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:35
    Entered hgopcda at 2012/10/18-14:56:36
    Column:15(CRS_TITLE): dtype:12 (VARCHAR), prc/scl:15/0, nullbl:0, octet:15, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:36
    Entered hgopcda at 2012/10/18-14:56:36
    Column:16(PERIOD): dtype:12 (VARCHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:36
    Entered hgopcda at 2012/10/18-14:56:37
    Column:17(INSTR): dtype:12 (VARCHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:37
    Entered hgopcda at 2012/10/18-14:56:37
    Column:18(PARENT_CONTACT): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:37
    Entered hgopcda at 2012/10/18-14:56:38
    Column:19(CONTACT_DT): dtype:12 (VARCHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:38
    Entered hgopcda at 2012/10/18-14:56:38
    Column:20(CONF_REQUESTED): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:38
    Entered hgopcda at 2012/10/18-14:56:39
    Column:21(CONF_DATE): dtype:12 (VARCHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:39
    Entered hgopcda at 2012/10/18-14:56:39
    Column:22(INFORMAL_HEARING): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:39
    Entered hgopcda at 2012/10/18-14:56:40
    Column:23(APPEAL_EXP): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:40
    Entered hgopcda at 2012/10/18-14:56:40
    Column:24(WITNESS): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:41
    Entered hgopcda at 2012/10/18-14:56:41
    Column:25(DISCPLN_COMM): dtype:12 (VARCHAR), prc/scl:3270/0, nullbl:0, octet:3270, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:41
    Entered hgopcda at 2012/10/18-14:56:42
    Column:26(ADMIN_BY): dtype:12 (VARCHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:42
    Entered hgopcda at 2012/10/18-14:56:42
    Column:27(ADMIN_BY_NAME_F): dtype:12 (VARCHAR), prc/scl:17/0, nullbl:0, octet:17, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:42
    Entered hgopcda at 2012/10/18-14:56:43
    Column:28(ADMIN_BY_NAME_L): dtype:12 (VARCHAR), prc/scl:25/0, nullbl:0, octet:25, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:43
    Entered hgopcda at 2012/10/18-14:56:43
    Column:29(REPORTED_BY_DESC): dtype:12 (VARCHAR), prc/scl:60/0, nullbl:0, octet:60, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:43
    Entered hgopcda at 2012/10/18-14:56:44
    Column:30(INCIDENT_NUM): dtype:12 (VARCHAR), prc/scl:6/0, nullbl:0, octet:6, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:44
    Entered hgopcda at 2012/10/18-14:56:44
    Column:31(REPORT_PD): dtype:12 (VARCHAR), prc/scl:1/0, nullbl:0, octet:1, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2012/10/18-14:56:45
    The hoada for table RSCCC.SR_DISCPLN follows...
    hgodtab, line 904: Printing hoada @ 025B799C
    MAX:31, ACTUAL:31, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
    12 VARCHAR N 4 4 0/ 0 0 0 200 SCH_YR
    12 VARCHAR N 6 6 0/ 0 0 0 200 STU_ID
    12 VARCHAR N 27 27 0/ 0 0 0 200 OFENS_STAMP
    12 VARCHAR N 8 8 0/ 0 0 0 200 OFENS_TIME
    12 VARCHAR N 3 3 0/ 0 0 0 200 CAMPUS_ID
    12 VARCHAR N 8 8 0/ 0 0 0 200 DT_OFENS
    12 VARCHAR N 10 10 0/ 0 0 0 200 MODIFIER
    12 VARCHAR N 2 2 0/ 0 0 0 200 OFENS_SEMCYC
    12 VARCHAR N 3 3 0/ 0 0 0 200 REP_BY
    12 VARCHAR N 17 17 0/ 0 0 0 200 REP_BY_NAME_F
    12 VARCHAR N 25 25 0/ 0 0 0 200 REP_BY_NAME_L
    12 VARCHAR N 3 3 0/ 0 0 0 200 INC_LOC
    12 VARCHAR N 4 4 0/ 0 0 0 200 COURSE
    12 VARCHAR N 2 2 0/ 0 0 0 200 SECTION
    12 VARCHAR N 15 15 0/ 0 0 0 200 CRS_TITLE
    12 VARCHAR N 2 2 0/ 0 0 0 200 PERIOD
    12 VARCHAR N 3 3 0/ 0 0 0 200 INSTR
    12 VARCHAR N 1 1 0/ 0 0 0 200 PARENT_CONTACT
    12 VARCHAR N 8 8 0/ 0 0 0 200 CONTACT_DT
    12 VARCHAR N 1 1 0/ 0 0 0 200 CONF_REQUESTED
    12 VARCHAR N 8 8 0/ 0 0 0 200 CONF_DATE
    12 VARCHAR N 1 1 0/ 0 0 0 200 INFORMAL_HEARING
    12 VARCHAR N 1 1 0/ 0 0 0 200 APPEAL_EXP
    12 VARCHAR N 1 1 0/ 0 0 0 200 WITNESS
    12 VARCHAR N 3270 3270 0/ 0 0 0 200 DISCPLN_COMM
    12 VARCHAR N 3 3 0/ 0 0 0 200 ADMIN_BY
    12 VARCHAR N 17 17 0/ 0 0 0 200 ADMIN_BY_NAME_F
    12 VARCHAR N 25 25 0/ 0 0 0 200 ADMIN_BY_NAME_L
    12 VARCHAR N 60 60 0/ 0 0 0 200 REPORTED_BY_DESC
    12 VARCHAR N 6 6 0/ 0 0 0 200 INCIDENT_NUM
    12 VARCHAR N 1 1 0/ 0 0 0 200 REPORT_PD
    Exiting hgodtab, rc=0 at 2012/10/18-14:56:50
    hostmstr: 2026291200: HOA After hoadtab
    hostmstr: 2026291200: HOA Before hoadafr
    Entered hgodafr, cursor id 0 at 2012/10/18-14:56:50
    Free hoada @ 025B799C
    Exiting hgodafr, rc=0 at 2012/10/18-14:56:50
    hostmstr: 2026291200: HOA After hoadafr
    hostmstr: 2026291200: RPC After Describe Table
    hostmstr: 2026291200: RPC Before Rollback Trans
    hostmstr: 2026291200: HOA Before hoaroll
    Entered hgoroll at 2012/10/18-14:56:51
    tflag:1 , cmt(0):
    hoi:0x12f098, ttid (len 27) is ...
    00: 44415441 5748442E 65623465 33343931 [DATAWHD.eb4e3491]
    10: 2E322E36 322E3839 363837 [.2.62.89687]
    tbid (len 24) is ...
    00: 44415441 5748445B 322E3632 2E383936 [DATAWHD[2.62.896]
    10: 38375D5B 312E345D [87][1.4]]
    Entered hgocpctx at 2012/10/18-14:56:52
    Exiting hgocpctx, rc=0 at 2012/10/18-14:56:52
    Exiting hgoroll, rc=0 at 2012/10/18-14:56:52
    hostmstr: 2026291200: HOA After hoaroll
    hostmstr: 2026291200: RPC After Rollback Trans
    Please advise and thanks..

  • Select * from {tablename}  : invalid table name error

    Hi,
    I want to get data from a table and the table should be passed at runtime from selecting a table from the drop down list.In case of insertion of values I am getting no errors.But when I pass the table name as an argument I am getting invalid table name error.I think there is any syntax errors.I appreciate any help.
    Regards,
    Sivaram

    you cannot use parameter for table name in PreparedStatement.
    you can either generate the sql dynamically, such as String sql="select * from "+tablename, or you can check whether the database vendor has special api for this.

Maybe you are looking for

  • Wht is diff b/w sy-ucomm and ok code

    hi, what is diff b/w sy-ucomm and ok-code Regards, Rani.

  • Zen Vision M VS Zen Visio

    I've been in the market for a new player for a bit now and have been playing with a few. I did buy the Zune to later take it back because I wasn't happy with the conversion process. Now, I'm looking at getting the Vision M or W. I know they are prett

  • Pc will not work with Airport Extreme LAN connection

    I have setup my Aiport Extreme Base Station and my Mac and phone work just fine with the setup. However, I connected a PC directly to one of the LAN ports on the back, and the PC doesn't see the network. Above the port the light is blinking green. An

  • Question about PSE 7

    I have used Photoshop Elements 7 for some time with no issues, but have recently encountered a problem with importing photos to it from my Kodak Easyshare Software. In the past, importing has been a breeze, but lately if I am trying to import an albu

  • Open word document in forms version 6

    Does anyone have a code snippet to open an existing word document through forms. I have a user document which I would like to open from my forms menu.