How to create a Context index on a Substitutable Column ?

Hi all,
I have a type t1 and a subtype t2 which defines a new
sys.XMLType column d and a table t_tab of t1.
If I issue the following :
create index t_idx on t_tab t(treat(value(t) as t2).d) indextype
is ctxsys.context;
I get the following message:
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE
routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in drsxsopen
ORA-00904: invalid column name
ORA-06512: at "CTXSYS.DRUE", line 157
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
Any suggestion ?
Thanks
Alex

Alex,
Please file an iTAR report at http://metalink.oracle.com. This
could be a known bug.
Regards,
Geoff
Hi all,
I have a type t1 and a subtype t2 which defines a new
sys.XMLType column d and a table t_tab of t1.
If I issue the following :
create index t_idx on t_tab t(treat(value(t) as t2).d) indextype
is ctxsys.context;
I get the following message:
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE
routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in drsxsopen
ORA-00904: invalid column name
ORA-06512: at "CTXSYS.DRUE", line 157
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
Any suggestion ?
Thanks
Alex

Similar Messages

  • How to create a concatenated index with a long column (Urgent!!)

    We have a situation where we need to create a concatenated unique
    index with one of the columns as a "long" datatype. Oracle does
    not allow a lot of things with long columns.
    Does anyone know if this is possible or if there is a way to get
    around it.
    All help is appreciated!!!!

    From the Oracle SQL Reference ...
    "You cannot create an index on columns or attributes whose
    type is user-defined, LONG, LONG RAW, LOB, or REF,
    except that Oracle supports an index on REF type columns
    or attributes that have been defined with a SCOPE clause."
    Doesn't mention CLOB or BLOB types, so perhaps you
    should consider using one of those types instead. I have a
    feeling that the LONG type is now deprecated.

  • How to define ctxsys.context index for an ORDDoc column

    I need to use Oracle Text to search on a column that is of type ORDsys.OrdDoc. Can someone point me in the direction of an example please - I note someone pointed out that a USER_DATASTORE is the way to go, but what do I need to put it it? I also wish to use Word to HTML feature of the INSO_FILTER if at all possible.
    thanks
    Brigette

    Hi Brian,
    I don't know how to do this with a SQL query (as the OrdDoc may not be displayable say in SQLPlus), but if you check out the samples at http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
    there is a JAva Servlet that works nicely. If you are not a Java person, there are other samples at http://otn.oracle.com/sample_code/products/intermedia/index.html
    keep smiling
    Brigette

  • How to create a domain index on NCLOB Column

    hi all,
    My database version is 10.2.0.1.
    Any body know how to create a domain index on nclob column.
    SQL> alter table test add (nclob1   nclob);
    Table altered.
    SQL> CREATE INDEX test_nclob ON test (nclob1) indextype is ctxsys.context
      2  /
    CREATE INDEX test_nclob ON test (nclob1) indextype is ctxsys.context
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10509: invalid text column: NCLOB1
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364Regards
    Singh

    Any body know how to create a domain index on nclob columnNot possible per design/documentation:
    The column that you specify must be one of the following types: CHAR, VARCHAR, VARCHAR2, BLOB, CLOB, BFILE, XMLType, or URIType.
    «

  • How to create dynamic context based on a structure defined in the program?

    Hi Experts,
             I need to create a dynamic context based on a structure wa_struc which i have define programatically.
    When I pass wa_struc to structure_name parameter of create_nodeinfo_from_struc, i get a runtime error:
    "Parameter STRUCTURE_NAME contains an invalid value wa_struc."
    How to create dynamic context based on a structure defined in the program?
    I have written the code like this:
    TYPES: BEGIN OF t_type,
                v_carrid TYPE sflight-carrid,
                v_connid TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
             wa_struc type t_type.
      data: dyn_node   type ref to if_wd_context_node.
      data: rootnode_info   type ref to if_wd_context_node_info.
      rootnode_info = wd_context->get_node_info( ).
      clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
      parent_info = rootnode_info
      node_name = 'dynflight'
      structure_name = 'wa_struc'
      is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( name = 'dynflight' ).
    dyn_node->bind_table( i_struc ).
    Thanks
    Gopal
    Message was edited by: gopalkrishna baliga

    Hi Michelle,
              First of all Special thanks for your informative answers to my other forum questions. I really appreciate your help.
    Coming back to this question I am still waiting for an answer. Please help. Note that my structure is not in a dictionary.
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    I have updated my code like the following and I am getting error:
    TYPES: BEGIN OF t_type,
    CARRID TYPE sflight-carrid,
    CONNID TYPE sflight-connid,
    END OF t_type.
    Data: i_struc type table of t_type,
    dyn_node type ref to if_wd_context_node,
    rootnode_info type ref to if_wd_context_node_info,
    i_node_att type wdr_context_attr_info_map,
    wa_node_att type line of wdr_context_attr_info_map.
    wa_node_att-name = 'CARRID'.
    wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
    insert wa_node_att into table i_node_att.
    wa_node_att-name = 'CONNID'.
    wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
    insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
    select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
    attributes = i_node_att
    is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    But now I am getting the following error :
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    -Gopal
    Message was edited by: gopalkrishna baliga

  • Web dynpro for abap how to create a customize search help in alv column

       hi:
          Web dynpro for abap how to create a customize search help in alv column and put search help value into alv column?
          Are there specific examples ?
          thanks!!

    HI:
       I want to created a freely programed help which include date&time,and put help value to alv column.
      I have created a freely programed help in web dynpro for abpa application,I refer:
      **************** - WebDynpro for ABAP
      but have a problem!
       If you focus on the the input field in the first row, you get the value help
    However if  I go to the second row and focus on the same input field in this column, I don't get the value help:
    What is a good way to solve similar problems?
    thanks

  • How to create a table with varied number of columns?

    I am trying to create a balance table. The colunms should include years between the start year and end year the user will input at run time. The rows will be the customers with outstanding balance in those years.
    If the user input years 2000 and 2002, the table should have columns 2000, 2001, 2002. But if the user input 2000 and 2001, the table will only have columns 2000 and 2001.
    Can I do it? How? Thanka a lot.

    Why did you create a new thread for this?
    How to create a table with varied number of columns?

  • How to create a dynamic table were the JTable columns keep varying

    How to create a dynamic table were the JTable columns keep varying based on the input to the jtable

    Oooh, I lied. DefaultTableModel has an API for adding and
    removing columns. I didn't know that. You should have read
    the API.
    As for preferring to extend AbstractTableModel rather than
    DefaultTableModel, I think it's more correct. DefaultTableModel
    is a simple implementation of Abstract for basic cases. It isn't
    intended to be extended. I figure most people extending
    DefaultTableModel are also extending JFrame, JPanel, and Thread
    instead of encapsulating the first two and implementing
    Runnable for the third.

  • How to create a context node for "IBHeader" at the view "BuPaIBaseDetail"?

    hi, experts
    for the requirement, i have to get data from a root BO-IBHeader in the view of "BuPaIBaseDetail".But the view already has IBHeader's child object-"IBComponent", whose controller class is "CL_CRM_IC_BUPACONTROLLER_CN08", how can i create the context node for "IBHeader"?
    angerly wait for the answer. thanks a lot

    If you right click on an empty container or a container with an object in it, it has the same available choices to select. However, if you create a blank property node on the block diagram, and wire up the .net object to it, you will see a much different list of properties.
    So, the property node created from right clicking a .NET container will be for that container, even if there is an object inside. To create a property node for the object, you must wire the .NET object to an empty property node on the block diagram.
    Chris Van Horn
    Applications Engineer

  • How to create a context element

    Hai,
    How can i create a context element for a view dynamically.
    regards,

    Hi,
    Context element or context attribute?
    For context element use appropriate method in your IWDNode implementation and after creation call add method of node.
    For context attribute - see appropriate tutorial :  https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on dynamic programming of web dynpro applications - 17.htm
    Best regards, Maksim Rashchynski.

  • How to create statistics for INDEX thru GUI

    In DB13 i see messages MISSING_STATISTICS for some indexes.
    I manage for tables thru DB20. How can i create statistsics for INDEX.
    Rgds
    PR

    Hello PR,
    at first let's say you should use the BRTools to create statistics for the indexes, because of the sample method (estimate, compute) - SAP has an algorithm to choose the right sample size.
    Have a look at here:
    http://help.sap.com/saphelp_nw70/helpdata/en/f4/81e93a637bfd70e10000000a11402f/content.htm
    If you want to create statistics manually out of the R/3 ... you can use the report "RSANAORA"
    Transaction SE38 -> Report RSANAORA -> Choose your index and sample method... and go on.
    Regards
    Stefan

  • SAVING Text created when CONTEXT index is created on BLOB field.

    Hi,
    I am still reading the doc, but thought I'd ask to try and save time ...
    I am using CONTEXT index on a BLOB field, and would like to store the Text that is created into a CLOB field, for display purposes.
    Is this possible with ORACLE TEXT ?
    Thanks
    Jeff

    Hi,
    have a look at the package CTX_DOC. It is in the manual: [url http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/cdocpkg.htm#sthref1639] Oracle text Reference. You can use IFILTER, which doesn't need the index, but also FILTER which uses the index. There are examples in the manual.
    If more questions, it is better to ask the question in the Text Forum: [url http://forums.oracle.com/forums/forum.jspa?forumID=71] Oracle Text Forum
    Herald ten Dam
    http://htendam.wordpress.com

  • How to create a context menu using powershell

    Hi 
    i would like to create a context menu for powershell but i am getting an error after powershell menu is created
    "This file does not have a program associated to it. i am using this script . I am trying to create a powershell shortcut on folders."
    also once it gets created i would like to open powershell as admin always
    New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
    Test-Path HKCR:\Directory\shell\Powershell
    New-Item -Path HKCR:\Directory\shell -Name Powershell
    Set-Item -Path HKCR:\Directory\shell\Powershell -Value "Open Powershell Here" 
    New-Item -Path HKCR:\Directory\shell\Powershell\key -Value "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command ""Set-Location -LiteralPath '%L'"""

    You need to put forth the effort to ask a good, clear, and meaningful question.
    As it stands, you seem to have a record of asking nearly unintelligible questions that take a great amount of effort for others to guess what you are asking. This is bad because it wastes everyone's time.
    Read these for some good information on how to ask good questions:
    Posting guidelines
    Handy tips for posting to this forum
    How to ask questions in a technical forum
    Rubber duck problem solving
    How to write a bad forum post
    -- Bill Stewart [Bill_Stewart]

  • How to create a new index with already indexed folder

    Hi
    I have a requirement to create a new index.
    I can able to create index. But,When i am specifying the data source, i am trying to include a data source which was already indexed in another index.
    The system giving error that "The folder is already indexed and its available in another index".
    How should i specify same folder in different indexes?

    Hi Patricio,
    Thanks for your reply.
    Our requirement is
    From your example, lets take
    index1 containts a data sources \folder1.
    and i have a requirement to create another index called index2 with data sources
    1) \folder1
    2) \testfolder\testfolder1.
    From help.sap.com i understand that there is no way to specify the same folder in different indexes.
    I am looking for, Is there any solution to meet my requirement
    Thanks

  • Re: how to create a temporary index for a table in program

    Hi,
    I execute a report to access table EKBE. The field that is essential is the CPUDT - entry date.
    Now, the EKBE is not index with this field.
    I do not want to create a permanent index which might occupied space. The current read on EKBE is sequential.
    I thought of creating an index in the program and then releases it once the report is out.
    Is there a way to achieve that?

    Hi,
    You can dump the data into one internal table and create index of that internal table like this:
    tables: ekbe.
    data: begin of itab occurs 0,
           cpudt like ekbe-cpudt,
           indx type i,
           end of itab.
    select cpudt up to 10 rows
    from ekbe into table itab.
    loop at itab.
    itab-indx = sy-tabix.
    write:/ itab-cpudt, itab-indx.
    endloop.
    Regards,
    Bhaskar

Maybe you are looking for

  • Tracking a shaky dolly shot to a shaky plate shot

    Hey guys, I have a dolly shot pushing into a character with a basketball floating below his hand. The basketball is held up by a green c-stand that we would like to key out, so we shot the exact same movement without the boy or basketball and stand t

  • WRT150n stopped working...Power LED OFF

    Hi, My router suddenly stopped working. LEDs are glowing in weird manner. Power LED is OFF LAN/Internet LED are ON (even though nothing is connected to it). I dont know whats wrong. Coincidently, the same thing has happened to my previous netgear rou

  • Restrict Access to Page Issue...

    Hi this is my first time on Adobe forums, im regard myself as new to web design, im making my first proper website, for portfolio purposes. www.imaginationwebdesign.co.uk/port2 is the website.. I am using Dreamweaver CS3 coding with HTML / PHP / MySQ

  • ICR PROCESS 003 : FBICR3

    Hi experts, When I execute the document selection, even if I select two SL partner or more, the result is the same. I don't understand why I have documents that are duplicated after execute selection and assignment transactions. Is it a bug or bad se

  • Looking for Ribbon cabble for Seagate HD for my Zen Mi

    Hello, i'm looking for the following spare pieces : the ribbon cable between the seagate HD and my zen micro player. Does anyone have one I'm ready to buy it right now ! :-) Thanks in advance. Franck