Oracle UCM distinct values for attribute in GET_SEARCH_RESULTS ResultSet

hi, can anyone, please, tell if there is a way to get a distinct values of resultset of GET_SEARCH_RESULTS?
I mean, is it possible to obtain distinct values with custom where values of attribute through api?
I need to build somewhat like autosuggest feature, but afaik there is no such service.
Alternatives are
- build my own service which can accept query text, pass it to GET_SEARCH_RESULTS, get results, calculate distinct and output it in hda - i dont like this idea, becouse it means getting whole result set into java while it is efficient to handle in DB
- customize CHECK_IN/UPDATE services to update cached distincts (that means no grouping on custom queries)
May be there was some sort of discussion or blog note?
Thanks in advance.

If you do not declare "SearchEngineName" as part of the request, whatever value is defined in config.cfg is used. This behavior is by design.
Setting it in your request allows you to override the system setting in order to use another search engine, provided that the rest of the underlying parts are in place for the engine you are trying to use. For example, if your system setting is "DATABASE.METADATA", setting your individual request to "ORACLETEXTSEARCH" will probably fail, since the Oracle full text indexes would not exist. But if you are doing just metadata searching based on a couple of columns, and don't need the full text part for the request, it's a good way to craft a very specific search. Combined with a couple of database indexes on the columns in the where clause, it's also a good performer.
I do "SearchEngineName=DATABASE" usually in conjunction with the parameter "SearchQueryFormat=Native" so I can create some database specific queries in native SQL (and thus avoiding the need to figure out the exact internet or universal syntax.) Your mileage may vary.

Similar Messages

  • Default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch

    Hi Gurus,
    Requirement is to set default value for attribute "COUNTRY" in BP_HEAD_SEARCH/MainSearch when user clicks on Corporate Account.
    Below is code that i have written in DO_PREPARE_OUTPUT.
    Code is working fine and in the debug also i can see the value of COUNTRY is set to DE, but it is not showing on the screen for first time but when i load component second time(Refresh the screen), it shows me value.
    Any help would be appreciated. If somebody has otheralternative kindly share.
      CALL METHOD super->do_prepare_output( iv_first_time = iv_first_time ).
    Calling Super Method
    CALL METHOD super->do_prepare_output
       EXPORTING
         iv_first_time = abap_true.
    Data Declatation
      DATA :lr_col            TYPE REF TO if_bol_bo_col,
            lr_current        TYPE REF TO if_bol_bo_property_access,
            lr_param          TYPE REF TO if_bol_bo_property_access,
            lr_qs             TYPE REF TO cl_crm_bol_dquery_service,
            lv_attr_name      TYPE name_komp,
            lv_sign           TYPE bapisign,
            lv_option         TYPE bapioption,
            w_country_exist   TYPE c,
            w_param           TYPE string,
            w_value           TYPE string,
            w_flag            TYPE c.
    Getting SEARCH Context Node
      lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
    Get Selection Parameters
      lr_col ?= lr_qs->get_selection_params( ).
    Start from first parmaters
      lr_current = lr_col->get_first( ).
    Clearing Variables
      CLEAR : w_country_exist, w_flag, w_param, w_value.
    Loop till we have selection paramters
      WHILE lr_current IS BOUND.         " While loop 1
    checking attribute name is COUNTRY then setting some variable
        w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
        CASE w_param.
          WHEN 'COUNTRY'.
    If country is filled then setting variable
            w_value = lr_current->get_property_as_string( 'LOW' ).
            IF w_value IS NOT INITIAL.
              w_country_exist = abap_true.
            ENDIF.
    When we got COUNTRY attribute then setting flag
            w_flag = abap_true.
        ENDCASE.
    Calling next parameter
        lr_current = lr_col->get_next( ).
      ENDWHILE.                          " While loop 1
    In below block we are checking is COUNTRY attribute is blank and
    we have found COUNTRY attribute in current selection paramters
      IF lr_qs IS BOUND.                 " SEACRCH CONTEXT BOUND
    If vairable is blank means DE or any other value is not filled in COUNTRY Attribute
        IF w_country_exist IS INITIAL.   " w_contry_exist
    We have to add selection attribute if we come accross COUNTRY attribute during our search
          IF w_flag EQ abap_true.        " w_flag
    Adding COUNTRY attribute with default value 'DE'
            lr_qs->add_selection_param( EXPORTING iv_attr_name = 'COUNTRY'
                                                  iv_sign      = 'I'
                                                  iv_option    = 'EQ'
                                                  iv_low       = 'DE' ).
          ENDIF.                         " w_flag
        ENDIF.                           " w_contry_exist
      ENDIF.                             " SEACRCH CONTEXT BOUND
    In below block we will remove COUNTRY attribute when it has blank value
      IF lr_qs IS BOUND AND w_country_exist IS INITIAL.
        lr_current = lr_col->get_first( ).
        WHILE lr_current IS BOUND.
          w_param = lr_current->get_property_as_string( 'ATTR_NAME' ).
          CASE w_param.
            WHEN 'COUNTRY'.
              w_value = lr_current->get_property_as_string( 'LOW' ).
              IF w_value IS INITIAL.
                lr_col->remove( iv_bo = lr_current ).
              ENDIF.
          ENDCASE.
          lr_current = lr_col->get_next( ).
        ENDWHILE.
      ENDIF.
    Edited by: Harsharandeep Singh on Apr 28, 2011 3:44 PM

    Hi,
    Try it like this:
      DATA:
        lr_bo        TYPE REF TO if_bol_bo_property_access ,
        lv_attr_name TYPE name_komp.
      FIELD-SYMBOLS:
        <ls_param>   TYPE crms_thtmlb_search_criterion.
      READ TABLE parameters
           ASSIGNING <ls_param>
           WITH KEY field = 'COUNTRY'.
      IF ( sy-subrc = 0 ).
        <ls_param>-value1 = ip_pfct.
      ENDIF.
      CHECK ( me->parameter_collection IS NOT INITIAL ).
      lr_bo = me->parameter_collection->get_first( ).
      WHILE lr_bo IS BOUND.
        CALL METHOD lr_bo->get_property_as_value
          EXPORTING
            iv_attr_name = 'ATTR_NAME'
          IMPORTING
            ev_result    = lv_attr_name.
        IF lv_attr_name EQ 'COUNTRY' .
          CALL METHOD lr_bo->set_property
            EXPORTING
              iv_attr_name = 'LOW'
              iv_value     = 'DE'.
          EXIT.
        ELSE.
          lr_bo = me->parameter_collection->get_next( ) .
        ENDIF.
      ENDWHILE .
    Kind regards,
    Micha

  • "Unterminated value for attribute '' in XML Tag ''.(SBL-UIF-00265)"

    Getting this message when I do Edit Web Layout for a view in Siebel tools 7.8.2 "Unterminated value for attribute '' in XML tag ''.(SBL-UIF-00265)"...Anyone have any idea why I am getting this message?

    Thanks Joseph,
    Actually I looked at the Refer ID 1280569.1 before also, some how I could not figured it out the exact location as I was searching for two "(double quotes).
    Today I tried again and finally I found out the culprit. In my case actually there was no two double quotes, instead the " (double quote) was missing.
    Thanks again.
    Edited by: user624054 on Oct 5, 2011 8:10 AM

  • How to get the distinct values in Attribute View?

    Hi,
    While doing the data preview of attribute view its showing duplicate records.
    Can i restrict all these duplicate in attribute view and get only distinct values?
    Thanks in advance.

    Hi Deepak,
    Please check the Key Attribute combination in the Source System and Create Attribute view with the same combination.
    so that you won't get any duplicate values.
    If you are taking fields randomly Pls ensure that you are taking at least one primary key combination  use the same combination while creating Attribute View.
    As u know that the purpose of Attribute view is to store the Master Data Objects like BI/BW which stores Non duplicate values.

  • Values for attributes in 0MATERIAL missing

    Dear friend,
    I have infoobjects 0FAMILY, 0SEGMENT as attributes of 0MATERIAL and i have loaded master data in dev BW and QBW for all the infoobjects including 0MATERIAL. Now in dev BW  i see values for 0FAMILY and 0SEGMENT in master data for 0MATERIAL but i dont see these values in QBW for 0MATERIAL. What could be the reason? Please suggest?
    Thanks
    raj

    Bhanu,
    There is master data in 0FAMILY,0SEGMENT and 0MATERIAL but in QBW the values for 0FAMILY and 0SEGMENT are missing. I have checked the transfer structure for 0MATERIAL attributes and found that there is a routine for populating 0FAMILY and 0SEGMENT. The code is as below. I am still pondering what is missing?  Thanks for all the help.
    Raj
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
      RESULT = TRAN_STRUCTURE-PRDHA(2).
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ begin of inverse routine - insert your code only below this line-
      DATA:
        L_S_SELECTION LIKE LINE OF C_T_SELECTION.
    An empty selection means all values
      CLEAR C_T_SELECTION.
      L_S_SELECTION-FIELDNM = 'PRDHA'.
    Selection of all values may be not exact
      E_EXACT = RS_C_FALSE.
    $$ end of inverse routine - insert your code only before this line -
    ENDFORM.
    Message was edited by: Raj Singh

  • Count number of distinct values for a column for all tables that contains that column

    Imagine I have one Column called cdperson. With the query below I know which Tables have column cdperson
    select
    t.[name]fromsys.schemassinnerjoin 
    sys.tables 
    tons.schema_id=t.schema_idinnerjoin 
    sys.columnscont.object_id=c.object_idinnerjoin 
    sys.types  
    donc.user_type_id=d.user_type_idwherec.name ='cdperson'
    now I want to know for each table, how many distinct values of cdperson I have and I want the result ordered by the table that has more distinct values (descending)
    Table1                                                                                     
       cdperson                        select distinct(cdperson) = 10
       cdadress
       quant
    Table2 with 
       cdaddress                      (no column cdperson in this table)
       quant
    Table3
       cdperson                        select distinct(cdperson) = 100
       value
    Table 4
       cdperson                        select distinct(cdperson) = 18
       sum
    I want this result ordered by number of distinct cdperson
    table3   100
    table4   18
    table    10
    Thks for your answers

    I had to add schema name to the above script to make it work in AdventureWorks:
    CREATE TABLE #temp(TableName sysname , CNT BIGINT)
    DECLARE @QRY NVARCHAR(MAX);
    SET @qry=(SELECT
    N'INSERT INTO #TEMP SELECT '''+schema_name(t.schema_id)+'.'+T.[name] +''' AS TableName, COUNT (DISTINCT ProductID) DistCount FROM '+
    schema_name(t.schema_id)+'.'+t.[name] +';'
    FROM sys.schemas s INNER JOIN sys.tables t ON s.schema_id=t.SCHEMA_ID
    INNER JOIN sys.columns c ON t.object_id=c.object_id INNER JOIN sys.types d ON c.user_type_id=d.user_type_id
    WHERE c.name ='ProductID'
    FOR XML PATH(''))
    EXEC(@QRY)
    SELECT * FROM #temp ORDER BY TableName
    DROP TABLE #temp
    Production.Product 504
    Production.ProductCostHistory 293
    Production.ProductDocument 31
    Production.ProductInventory 432
    Production.ProductListPriceHistory 293
    Production.ProductProductPhoto 504
    Production.ProductReview 3
    Production.TransactionHistory 441
    Production.TransactionHistoryArchive 497
    Production.WorkOrder 238
    Production.WorkOrderRouting 149
    Purchasing.ProductVendor 211
    Purchasing.PurchaseOrderDetail 211
    Sales.SalesOrderDetail 266
    Sales.ShoppingCartItem 3
    Sales.SpecialOfferProduct 295
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Select distinct values for ssrs sharepoint parameter

    hi,
    I need distinct selected values for parameter dropdown in shaepoint ssrs. Everrything will work fine if i select value and label field same field like(Location_Code). But i need value field to be different field (LocationID). like (dropdown id in value field
    and text as lable field)
    Because i am using value field in record filtering.
    Any suggestions?
    Thanks Manohara R

    Hi Manohar,
    Pls check the lin
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6495db18-a1c1-480b-8c92-89c74ee47cf5/how-to-get-distinct-values-of-sharepoint-column-using-ssrs?forum=sqlreportingservices
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Createrow() with some null values for attributes errors out

    I am trying to insert rows from one table to another table.
    I get all the values from source table to be inserted into the destination table and set the row attributes as required.
                  Row newrow = (Row)MAToolingVO.createRow();
                  MAToolingVO.insertRow(newrow);
                  newrow.setAttribute("InventoryItemId", new Number(InvItemId));
                  newrow.setAttribute("OrganizationId", new Number(102));
                  newrow.setAttribute("Machine", new Number(Machine));
                  newrow.setAttribute("SetNumber", new Number(SetNumber));
                  newrow.setAttribute("ToolSequence", tseqNum);  
                  newrow.setAttribute("FamilyCode", Family);                
                  newrow.setAttribute("ClassCode", Class1);                              
                  newrow.setAttribute("ToolingItem", ToolingItem);                                            
                  newrow.setAttribute("ToolingItemId", ToolingItemId);                                                          
                  newrow.setAttribute("Description", ToolingDesc);
    ///added these rows because it was throwing NPE , --these are user inputs, they should be null at the time of row creation  and user can save them null too.                                                          
                  newrow.setAttribute("InsertDesc", "-");    
                  newrow.setAttribute("Grade", "-");                                                                                      
                  newrow.setAttribute("ExtraLength", new Number(0));                                                                        
                  newrow.setAttribute("ToolLength", new Number(0));               
    //after adding these rows, NPE is gone, but it still doesnt commit to the database. WHY ?
                  newrow.setNewRowState(Row.STATUS_INITIALIZED);
                   poRow.setAttribute("CheckBox", Boolean.TRUE);
    If user enters values in all the fields : InsertDesc, grade, ExtraLength, ToolLength , then row gets commited to db, else not.
    Also none of the fields are mandatory and can be null.
    please suggest.
    thanks

    any one on this please ?
    when i create new row, columns for primary keys and other values get set correctly, but if user doesnt input some value in text fields of newly created row, they dont get saved to the db.
    I even tried defaulting some values to the optional attributes, but still doesnt work.

  • How to ge the value for attribute for terminal services attribute in Active Directory from userParameters attribute

    I am using dirsync to get  the attributes value that have changed in Active Directory(changelog).
    The following link explains how the dirsync is used to get attribute values :
    'http://blogs.technet.com/b/isrpfeplat/archive/2010/09/20/using-the-dirsync-control.aspx'
    I am changing the attribute Local path under Remote Desktop Services Profile of a user. I have ran a client which uses dirsync to get the changed objects in AD.
    In the client the attribute that is changed is `userParameters` and the value is in encrypted form. 
        CtxCfgPresent                                   P☺CtxCfgPresent???? ☻☺CtxWFProfi
        lePath?↑→☺CtxWFHomeDir?????????????"☻☺CtxWFHomeDirDrive?☺CtxShadow????☺CtxMaxDis
        connectionTime????☺CtxMaxConnectionTime????☺CtxMaxIdleTime???? ☻☺CtxWorkDirector
        y?☺CtxCfgFlags1????"☻☺CtxInitialProgram?
    Is there a way to get  the actual value form the userParameters.

    Hi,
    What about other changed attributes? Are other attributes retrieved by DirSync control turn to be encrypted form?
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Setting value for attribute  'PO_NUMBER_SOLD'  using setter method

    Hi Experts,
    I need to set the value of a screen field according to some condition. I am using setter method of this attribute to set the value but it is not getting changed.
    I have written following code in DO_PREPARE_OUTPUT method of implementation class ZL_ZZBT131I_ZCREDITCHECK_IMPL using setter method of attribute
    Get Referral Authorization Code
          lv_val1 = me->typed_context->crechkresph->get_po_number( attribute_path = 'PO_NUMBER' ).
          me->typed_context->crechkresph->set_po_number( attribute_path = 'PO_NUMBER'
                                                            value     = ' ' ).
    while debugging I found that in method set_po_number set_property method has been used:--
    current->set_property(
                          iv_attr_name = 'PO_NUMBER_SOLD' "#EC NOTEXT
                          iv_value     = <nval> ).
    In set_property method  following code is getting executed
    if ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
              if <VALUE> ne IV_VALUE.
                if ME->MY_MANAGER_ENTRY->DELTA_FLAG is initial.
                first 'change' -> proof that entity is locked
                  if ME->MY_MANAGER_ENTRY->LOCKED = FALSE.
                    if ME->LOCK( ) = FALSE.
                      return.
                    endif.
                  endif.
                flag entity as modified
                  ME->MY_MANAGER_ENTRY->DELTA_FLAG = IF_GENIL_CONTAINER_OBJECT=>DELTA_CHANGED.
                endif.
                ME->ACTIVATE_SENDING( ).
              change value
                <VALUE> = IV_VALUE.
              log change
                set bit LV_IDX of ME->CHANGE_LOG->* to INDICATOR_SET.
              endif.
            else.
            check if it is a real read-only field or a display mode violation
              assert id BOL_ASSERTS subkey 'READ-ONLY_VIOLATION'
                     fields ME->MY_INSTANCE_KEY->OBJECT_NAME
                            IV_ATTR_NAME
                     condition ME->CHANGEABLE = ABAP_TRUE.
            endif.
    and in debugging I found that if part ( ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY) fails and hence else part is getting executed and hence my field a real read-only field or a display mode violation is happening according to comments in code.
    What shall I do so that I would be able to change the screen field value?
    Any help would be highly appreciated.
    Regards,
    Vimal

    Hi,
    Try this:
    data: lr_entity type cl_crm_bol_entity.
    lr_entity = me->typed_context->crechkresph->collection_wrapper->get_current( ).
    lr_entity->set_property( iv_attr_name = 'PO_NUMBER' value = '').
    Also, make sure the field is not read-only.
    Regards
    Prasenjit

  • XSL - distinct-values

    Hi Vlad,
    I am encountering a problem with the xsl transform, if a value in the input xml is same in same/multiple orders, the unique values gets appended in the same node, in the below example, I have an order with SKU "2" with Qty "1" and SKU "4" with Qty "2", so, my csv file will come with 3 lines, 1 line for SKU "2" and 2 lines for SKU4. The output seems to append both the distinct values (like <ns0:quantity_ordered>*1 2*</ns0:quantity_ordered>) in the same node as shown in the example below. I don't know whether I am using a wrong key in the Item_Data or something else,
    I believe, I am not using the right condition to check for the distinct SKU or using a wron for-each condition, I am not sure if that is the problem. I would appreciate if you could point me to the problem.
    Thanks,
    Venkatesh

    Hi Vlad,
    That was really helpful. Thank You!
    I think this one is almost done except for one particular scenario, where, an order has a duplicate of same SKU (different qty), only one SKU is displayed under Item_data node.
    For example,
    Order 1001 has SKU 1 with Qty of 1 and a duplicate of the same SKU with Qty as 2, In this case, only the first SKU is used and the second one with the Qty 2 gets ignored.
    Order# SKU QTY
    1001 1 1
    1001 1 2
    The input xml would be
    <DailySummary>
         <OrderDetails>
                 <PurchaseOrderNumber>1001</PurchaseOrderNumber>
                 <SKU>1</SKU>
                 <Qty>1</Qty>
         <OrderDetails>
         <OrderDetails>
                 <PurchaseOrderNumber>1001</PurchaseOrderNumber>
                 <SKU>1</SKU>
                 <Qty>2</Qty>
         <OrderDetails>
    <DailySummary>The expected output is,
    <ns2:item_Data>
                <ns0:vendor_item_number>1</ns0:vendor_item_number> (SKU)
                <ns0:quantity_ordered>1</ns0:quantity_ordered> (QTY)
                <ns0:quantity_shipped>1</ns0:quantity_shipped>
                <ns0:unit_cost>1</ns0:unit_cost>
                <ns0:extended_cost>1</ns0:extended_cost>
             </ns2:item_Data>
             <ns2:item_Data>
                <ns0:vendor_item_number>1</ns0:vendor_item_number> (SKU)
                <ns0:quantity_ordered>2</ns0:quantity_ordered> (QTY)
                <ns0:quantity_shipped>2</ns0:quantity_shipped>
                <ns0:unit_cost>1</ns0:unit_cost>
                <ns0:extended_cost>2</ns0:extended_cost>
             </ns2:item_Data>
          </ns1:order>The XSL used to transform is shown below, There is a for each distinct-values for the SKU, can the 'for each' be combined to check for SKU and Qty?, so that for an order if SKU is distinct and Qty is not then take both SKU's and appropriate qty.
                <xsl:for-each select="fn:distinct-values(/tns:DailySummary/tns:OrderDetails[tns:PurchaseOrderNumber = $tmpOrdNo]/tns:SKU/text())">
                  <xsl:variable name="tmpSKU" select="."/>
                  <ns2:item_Data>
                    <ns0:vendor_item_number>
                      <xsl:value-of select="/tns:DailySummary/tns:OrderDetails[tns:PurchaseOrderNumber = $tmpOrdNo and tns:SKU = $tmpSKU][1]/tns:SKU"/>
                    </ns0:vendor_item_number>
                    <ns0:quantity_ordered>
                      <xsl:value-of select="/tns:DailySummary/tns:OrderDetails[tns:PurchaseOrderNumber = $tmpOrdNo and tns:SKU = $tmpSKU][1]/tns:QtyOrdered"/>
                    </ns0:quantity_ordered>
                    <ns0:quantity_shipped>
                      <xsl:value-of select="/tns:DailySummary/tns:OrderDetails[tns:PurchaseOrderNumber = $tmpOrdNo and tns:SKU = $tmpSKU][1]/tns:QtyShipped"/>
                    </ns0:quantity_shipped>
                    <ns0:unit_cost>
                      <xsl:value-of select="/tns:DailySummary/tns:OrderDetails[tns:PurchaseOrderNumber = $tmpOrdNo and tns:SKU = $tmpSKU][1]/tns:Price"/>
                    </ns0:unit_cost>
                    <ns0:extended_cost>
                      <xsl:value-of select="/tns:DailySummary/tns:OrderDetails[tns:PurchaseOrderNumber = $tmpOrdNo and tns:SKU = $tmpSKU][1]/tns:Net"/>
                    </ns0:extended_cost>
                  </ns2:item_Data>
               </xsl:for-each>
               I appreciate all your help,
    Thanks,
    Venkatesh

  • Oracle UCM with Weblogic portals

    Does any one has idea working with oracle UCM with Weblogic portals. Can anyone suggest any tutorial in online.

    Provided you are using the Oracle UCM Content Adapter for WLP (UCM SPI), using content sourced from UCM in WLP applications is not different from using content from other Repositories.
    See http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/index.html for information on using the Adapter and for tips on content modeling.
    Brad

  • F4 help not bringing in data for Attribute maintenance

    Hello SRm Folks,
    I am having this issue wherer I am trying to put default values for attributes in PPOMA_BBP. When I select the attribute and put the source system as the backend R3 it doesn't pull any values. For example for attribute BSA (document type in R/3) if I put R/3 as backened systen it doesn't pull any values. If I remove the system then it shows me the values from SRM. I am having this issue with a lot of attributes like movement type, funds, functional area etc. I have defined the backend system correctly and checked all my RFC destinations, they seem to be fine.
    Any suggestions

    Hi
    As per standard you must get all values existing in the back end when you select attributes .
    check both ways srm to r/3 and vice versa as well as check rfc user properties like type of user and profile sap all and new .
    regards
    Muthu

  • Distinct Value

    Hi All,
    I have one table having 36m record. I have below query. Need is distinct value for all 10 columns and those column are not part of Index. Query is taking long time to finish. Please help me on this.
    Select Col1.Col2, col3 .....Col10 from
    myTable
    Group by Col1.Col2, col3 .....Col10
    thanks
    Deb

    3360 wrote:
    Frank Kulash wrote:
    Hi,
    3360 wrote:
    Do you mean would not make it faster? As the query needs to read all of the table, a table full scan would be the fastest way to do that.Assuming there are other columns, a full index scan would be faster than a full table scan.Hi,
    I assumed there were no other columns, I could be wrong though
    882134 wrote:
    Need is distinct value for all 10 columns
    If the index contains all columns in the table (10 cols), then the index is going to be the same size (if not a bit bigger due to index overhead) and would be absolutely worthless for improving wall-clock performance of this query. Your only hope of making it faster is to use the parallel hint or 'alter session force parallel query parallel n' where in is the degree of parallelism. 36M rows really isn't that much but depending on the column datatypes and sizes, you may need quite a bit of temp space to do the 'sort distinct'.
    The how often do you need to do this? Could this table benefit from an IOT (Index-Only-Table)? This assumes your WHERE clause always using at a minimum the leading columns in the index. Sounds like you could benefit from rethinking your data model.
    It also assumes the index is not bigger than the table.
    http://www.google.com/search?q=index+bigger+than+table

  • Oracle.jbo.NoDefException: JBO-35011: Attribute: x not found for value binding: y

    Hi every one,
    I migrate a project in version 11.1.1.6.0  of jDeveloper to 11.1.1.7.0 and after deploy, the application throws the exception "oracle.jbo.NoDefException: JBO-35011: Attribute: x not found for value binding: y". Rarely in the web or forum, i can't find anything about the code error JBO-35011.
    Someone knows something about this?
    Regards!

    Don't know much about this error but it looks like you have an attribute binding which isn't connected to an vo attribute.  Check all bindings pigthe page and pagedef if the are correctly setup. If you access attribute bindings from a bean you have to check them too.
    Timo

Maybe you are looking for