InterMedia CONTAINS ... WITHIN clause

Hello:
I am trying to get a query that parses out a CLOB ( XML tags) to work but I get an error when I use an OR with the Contains clause.
Error:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error;
DRG-50901: text query parser syntax error on line 1, column 33
Part of the query that I am using is as follows :
SELECT
a.subj_key_val_txt, func_ctct_hist_xml_parse(XMLTYPE(a.adt_xml_desc).extract('/EVENT/CONTACT_HISTORY'), 'csrFirstName'), func_ctct_hist_xml_parse(XMLTYPE(a.adt_xml_desc).extract('/EVENT/CONTACT_HISTORY'), 'csrLastName'),
a.adt_crt_dtm adt_crt_dtm, func_ctct_hist_audit_event(ae.adt_evt_typ_name,(XMLTYPE(a.adt_xml_desc).extract('/EVENT')) )
FROM
audit_v3 a,
audit_evt_type_v3 ae
WHERE
a.adt_evt_typ_id = ae.adt_evt_typ_id and
CONTAINS(a.adt_xml_desc, to_char(cons_seq_nbr_in) || ' WITHIN CONS_SEQ_NBR OR ' || to_char(member_id_in) || ' WITHIN (MEMBER_ID WITHIN CONTACT_HISTORY)') > 0)
and
trunc(a.adt_crt_dtm) between start_date_in and end_date_in
Your assistance is much appreciated. Thank you

Sorry, I do not have 2 WITHIN in the second Contains clause ..
CONTAINS(a.adt_xml_desc, to_char(cons_seq_nbr_in) || ' WITHIN CONS_SEQ_NBR') > 0 or
CONTAINS(a.adt_xml_desc, to_char(member_id_in) || ' WITHIN MEMBER_ID') > 0

Similar Messages

  • WITHIN clause for XML

    I know that within clause works for XML in clob, but I tried to save XML in bfile, after I create index, the WITHIN query always return 0 rows, does WITHIN work for bfile?
    Thanks

    Note:121405.1
    Subject:
    How to load a XML file into a Database table
    Type:
    BULLETIN
    Status:
    REVIEWED
    Content Type:
    TEXT/PLAIN
    Creation Date:
    05-OCT-2000
    Last Revision Date:
    06-OCT-2000
    Language:
    USAENG
    This article is being delivered in Draft form and may contain
    errors. Please use the MetaLink "Feedback" button to advise
    Oracle of any issues related to this article.
    PURPOSE
    This note is intended to explain the way to load a XML file into database table from PL/SQL.
    SCOPE
    It is intended for XML developers and technical analysts who want to integrate XML and Oracle.
    Pre-requisites :
    1. Oracle RDBMS version is 8.1.6 or higher.
    2. Oracle JServer is installed.
    3. XML-SQL (XSU) Utility is installed.
    XML file ( example.xml ):
    Note :
    The <ROWSET> tag specifies the default tag name for the document.
    The <ROW> tag specifies the default tag name for the ROW elements.
    - - - - - - - - - - - - - - - - File begins here - - - - - - - - - - - - - - - -
    <ROWSET>
    <ROW>
    <DOCID> 91739.1 </DOCID>
    <SUBJECT> MTS: ORA-29855, DRG-50704, ORA-12154: on create index using Intermedia </SUBJECT>
    <TYPE> PROBLEM </TYPE>
    <CONTENT_TYPE> TEXT/PLAIN </CONTENT_TYPE>
    <STATUS> PUBLISHED </STATUS>
    <CREATION_DATE> 14-DEC-1999 </CREATION_DATE>
    <LAST_REVISION_DATE> 05-JUN-2000 </LAST_REVISION_DATE>
    <LANGUAGE> USAENG </LANGUAGE>
    </ROW>
    </ROWSET>
    - - - - - - - - - - - - - - - - File ends here - - - - - - - - - - - - - - - -
    Program Notes :
    The following data structures are to be set up for the example to work :
    Create directory object mapped to physical directory which contain the XML file.
    Note Oracle user should have atleast read permission for the directory and the XML file.
    CREATE DIRECTORY XML_DIR AS '/tmp';
    Create a table containing a BFILE and insert a row for the XML file.
    CREATE TABLE XML_TEMP (key NUMBER, f_lob BFILE);
    INSERT INTO XML_TEMP VALUES (1,BFILENAME('XML_DIR','example.xml'));
    Create table into which the XML document has to be loaded.
    Note that the column names of the table should match the XML tags.
    CREATE TABLE XML_DOC (
    DOCID VARCHAR2(10),
    SUBJECT VARCHAR2(100),
    TYPE VARCHAR2(20),
    CONTENT_TYPE VARCHAR2(20),
    STATUS VARCHAR2(20),
    CREATION_DATE VARCHAR2(15),
    LAST_REVISION_DATE VARCHAR2(15),
    LANGUAGE VARCHAR2(10)
    Program :
    - - - - - - - - - - - - - - - - Code begins here - - - - - - - - - - - - - - - -
    CREATE OR REPLACE PROCEDURE loadxml AS
    fil BFILE;
    buffer RAW(32767);
    len INTEGER;
    insrow INTEGER;
    BEGIN
    SELECT f_lob INTO fil FROM xml_temp WHERE key = 1;
    DBMS_LOB.FILEOPEN(fil,DBMS_LOB.FILE_READONLY);
    len := DBMS_LOB.GETLENGTH(fil);
    DBMS_LOB.READ(fil,len,1,buffer);
    xmlgen.resetOptions;
    insrow := xmlgen.insertXML('xml_doc',UTL_RAW.CAST_TO_VARCHAR2(buffer));
    DBMS_OUTPUT.PUT_LINE(insrow);
    IF DBMS_LOB.FILEISOPEN(fil) = 1 THEN
    DBMS_LOB.FILECLOSE(fil);
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('In Exception');
    DBMS_OUTPUT.PUT_LINE(SQLERRM(SQLCODE));
    IF DBMS_LOB.FILEISOPEN(fil) = 1 THEN
    DBMS_LOB.FILECLOSE(fil);
    END IF;
    end;
    - - - - - - - - - - - - - - - - Code ends here - - - - - - - - - - - - - - - -
    Sample Output :
    SQL>set serveroutput on
    SQL>exec loadxml;
    SQL> column subject format a20 truncated
    SQL> select * from xml_doc;
    SQL>
    DOCID SUBJECT TYPE
    CONTENT_TYPE STATUS CREATION_DATE LAST_REVISION_D LANGUAGE
    91739.1 MTS: ORA-29855, DRG PROBLEM TEXT/PLAIN
    PUBLISHED 14-DEC-1999 15-JUN-2000 USAENG
    R eferences :
    1. Oracle8i Supplied PL/SQL Packages Reference
    2. Oracle8i Application Developer's Guide - Large Objects (LOBs)
    3. PL/SQL User's Guide and Reference
    4. XSU's PL/SQL API -- XMLGEN

  • Finding exact matches using WITHIN clause or?

    We are storing documents in XML format in a CLOB. We need to find exact matches within an element through intermedia. Is there a way we can use the WITHIN clause or a different type of clause to get only exact matches for a phrase?
    e.g., a search on 'accord' would not bring back 'peace accord' etc.

    Hi,
    I recommend asking your question in an Excel forum:
    http://social.technet.microsoft.com/Forums/en-us/home?forum=excel&filter=alltypes&sort=lastpostdesc
    There's an Excel forum over on the MSDN side as well, but it focuses more on VBA:
    http://social.msdn.microsoft.com/Forums/en-us/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    This is a PowerShell forum.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Setting tab order to form fields contained within a table, Indesign CS6

    I have created a form in ID CS6, and have put all the tabs in order so that people can easily navigate it when filling it in. However, all of the form fields that are contained within tables are not in order, and I can't find any way of putting them in order without changing them in acrobat after I have made the interactive PDF. This means that every time my client makes changes to the form I have to manually put all the fields in order again, which is time consuming. Is anyone able to help?

    This tab order dialogue box is nearly useless if you have a complex form with hundreds of form fields as there is no way to interact with the document when the dialogue is open and clicking on an entry in the list does not highlight the respective field. Furthermore, if you have arrays of radio buttons, or check boxes acting like radio buttons, ie all with the same form field name, there's no way to know which order they should be arranged in since they can't be selected or identified while this dialogue is open!
    That is immensely frustrating to say the least.
    It's quite ridiculous that Adobe hasn't fixed this bug in years and this user interface is shockingly bad.

  • How to get the entries in a jar/zip file contained within a jar/zip file?

    If I want to list the jar/zip entries in a jar/zip file contained within a jar/zip file how can I do that?
    In order to get to the entry enumeration I need a Zip/JarFile:
    ZipFile zip = new ZipFile("C:/java_dev/Java_dl/java_jdk_commander_v36d.zip");
    // Process the zip file. Close it when the block is exited.
    try {
    // Loop through the zip entries and print the name of each one.
    for (Enumeration list =zip.entries(); list.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) list.nextElement();
    System.out.println(entry.getName());
    finally {
    zip.close();
    Zip file "java_jdk_commander_v36d.zip" contains two zip entries:
    1) UsersGuide.zip
    2) JDKcommander.exe
    How to list the entries in "jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip!/UsersGuide.zip"?
    The following code:
    URL url = new URL("jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip!/UsersGuide.zip");
    JarURLConnection jarConnection = (JarURLConnection)url.openConnection();
    zipFile = (ZipFile)jarConnection.getJarFile();
    would point to "jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip", which is no help at all and Class JarURLConnection does not have an enumeration method.
    How can I do this?
    Thanks.
    Andre

    I'm not sure I understand the problem. The difference between a zip and jar file is the manifest file; JarFile is extended from ZipFile and is able to read the manifest, other than that they are the same. Your code
    for (Enumeration list =zip.entries(); list.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) list.nextElement();
    System.out.println(entry.getName());
    }is close to what I've use for a jar, below. Why not use the same approach? I don't understand what you're trying to do by using JarURLConnection - it's usually used to read the jar contents.
    String jarName = "";
    JarFile jar = null;
    try
        jar = new JarFile(jarName);
    catch (IOException ex)
        System.out.println("Unable to open jarfile" + jarName);
        ex.printStackTrace();
    for ( Enumeration en = jar.entries() ;  en.hasMoreElements() ;)
        System.out.println(en.nextElement());
    }

  • How can I access a specific font face contained within a TTF font file?

    I want to access "Avenir Medium", which is one of 12 faces contained within the font file named "Avenir.ttf".
    CSS allows me to specify the font file (src:...), the family name (fontFamily), and the weight (fontWeight).
    The file, of course, is the same for every face within the TTF file, so that doesn't help.
    The family is Avenir. Am I supposed to use some version of "Avenir Medium" in the fontFamily param? Nothing I've tried has worked.
    The weight is Medium, but that is not an option for the CSS param fontWeight, so this does not seem to be the way to do it.
    In Photoshop the font is accessed via the Family pull-down (Avenir) and the Syle pull-down (Medium).
    I have not found a way to split the TTF file into separate files for each face, though that would seem to be the simplest solution.

    Use this converter to convert ttc to ttf
    My project is in Flex
    For Flexspecific questions try :
    http://forums.adobe.com/community/flex
    http://forums.adobe.com/community/flash_builder

  • Selecting Objects in Illustrator - selecting objects only completely contained within your selection box

    Hi
    Macbook Pro, Illustrator CC 2014.1.0
    When selecting objects in Illustrator using a selection box created by dragging a selection tool, everything that the box touches gets selected.  On programs like AutoCad, there are options to select only what is completely contained within the selection box.  This can be very helpful.  Can one do this in Illustrator?
    Thanks in advance

    I use Illustrator pretty often but I'm not at a level that I understand scripting.  Maybe I'm out of luck then.

  • Conditional Processing: Request is Contained within Expression 1

    I believe I have found a bug with the Process Conditional Processing logic, where "Request is Contained within Expression 1" is used.
    Here are three of the buttons that I have on my page:
    GET_RES_CIVIC_ADDR - This button is displayed among the Region Items (Region 2)
    CRE_RES_CIVIC_ADDR - This button is displayed among the Region Items (Region 2)
    ADD - Automatically created as part of a Tabular Form (Region 3 - Updateable Report).
    I have a process that is conditional on either GET_RES_CIVIC_ADDR or CRE_RES_CIVIC_ADDR being run (meaning the Process has its "Conditional Processing" "Condition Type" set to "Request Is Contained within Expression 1" and where "Expression 1" is set to "GET_RES_CIVIC_ADDR,CRE_RES_CIVIC_ADDR" (without the quotes).
    The problem I have encountered is that this Conditional Process also gets run if I submit the ADD Button. The reason being is that the word "ADD" is contained within the Expression 1 string "GET_RES_CIVIC_ADDR,CRE_RES_CIVIC_ADDR".
    Note that if I change the REQUEST value for these two Item Level Buttons to names that do not contain the word ADD, the problem is fixed.
    Is this a known bug? Or do I have to edit the value of Expression 1, so that each Button Name/Request Value is enclosed in quotes or the like?

    Scott,
    I was under the impression that the values in Expression 1 would be a list of comma delimited values (e.g. A,B,C and not ABC) and would be evaluated individually. However, you are correct. It is being evaluated as advertised.
    A note for others that have this problem - the evaluation of :REQUEST is Case Sensitive, so if the Item Level Button had been named 'Get_Res_Civic_Addr' (using Camel Case) instead of 'GET_RES_CIVIC_ADDR', (Upper Case), there would not have been a match with the 'ADD' Request and therefore the After-Submit process would not have been run by the ADD button.
    To prevent this in the future, we are going to standarise using the PL/SQL Expression Condition (checking :REQUEST) and also ensure that our Item Level Buttons "Request Value" is Camel Case (just an extra precaution).

  • Can I change the folder art picture to something different from the file art pictures contained within ?

    I have a folder on my PC called downloaded singles, contained within this folder is the top 40 singles from each week and each song has it's own cover art. When i add the folder to iTunes it will display a randomly picked image from one of the 40 songs as the main folder art or cover picture that you see in your iTunes Album screen. What i would like to achieve is having an image for the main folder that reflects the name of the folder i.e. an image for take 40 Australia showing that the "Album" is a top 40 album and then all the songs contained with the folder each keep their own cover art. Is this possible??

    Yes you can change it, I have done so in the past, but if you run a combo update it gets changed back, so I haven't bothered lately--although since we're now at 10.4.9 that will no longer be a problem.
    You need a way to create and edit icns files and a willingness to mess with system files. You then go here:
    "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/iMac.icns"
    When you get to the CoreTypes.bundle you need to use the Contextual Menu and select Show Package Contents, then continue travelin' on down. Copy the iMac.icns file by dragging to your Desktop (it won't move out of the original folder), open the copy in an icns editor and modify it to what you want, then save. Next drag your modified file into the Resources folder--you'll be asked to Authenticae in order to do that thing, and asked if you want to replace the original, when you say yes you will have to give your admin password. You will then need to restart to see the change.
    If you've never done this sort of thing before and don't know a thing about icns files, nor have an icns editor installed (there's one in Developer Tools), it probably isn't worth it.
    Francine
    Francine
    Schwieder

  • Order by the names in hashMaps which are contained within a collection

    Hi All,
    Is there a way to order by the names in hashMaps which are contained within a collection?
    Collection-->hmp1(nrPerson1, nameB);
    hmp2(nrPerson2, nameC);
    hmp3(nrPerson3, nameA);
    Now what i need to display is (nrPerson3,nameA), (nrPerson1,nameB), (nrPerson2, nameC)...
    Any suggestion will be greatly appreciated!
    Shuaibing

    I just set the TreeSet with the values as you suggested, but the results seems to the same as usual, Can you check the following codes? I think I need have to give a initial parameter for the TreeSet constructor, but I do not know how to write the Comparator.
    public String getIntermediaryCO(){
    Contact contact=new Contact();
              Collection colnNrContactsInterCo=contact.getAllIntermediaryCompany();
              //test
              TreeSet treeSet=new TreeSet();
              HashMap hmpForOrder=new HashMap();
              if(colnNrContactsInterCo!=null && !colnNrContactsInterCo.isEmpty()){
                   Iterator iter=colnNrContactsInterCo.iterator();
                   while(iter.hasNext()){
                           HashMap hmp=(HashMap)iter.next();
                           hmpForOrder.put(hmp.get("name"),hmp.get("nrContact"));
              treeSet.add(hmpForOrder.keySet());
              //print the ordered, unique set
            Iterator iterator = treeSet.iterator();
            while( iterator.hasNext() ) {           
                System.out.println( "the list of sorted intermediary companies' names="+iterator.next() );
              //test
    public Collection getAllIntermediaryCompany(){
               Collection colnContacts=new ArrayList();
               ContactCov contactCov=new ContactCov();
             try{
                    String sql="SELECT DISTINCT NR_CONTACT from CONTACT_TYPE where CD_CONTACT_TYPE=5";
                    jdbc = new JDBCConnection("1");
                    rs=jdbc.executeQuery(sql);
                    if(rs!=null){
                         while(rs.next()){
                                   String nrContact=rs.getString("NR_CONTACT");
                                   VOContact voContact=contactCov.getContactByNrContact(nrContact);
                                   if(voContact!=null){
                                        HashMap hmp=new HashMap();
                                        hmp.put("name",voContact.getName());
                                        hmp.put("nrContact",nrContact);
                                        colnContacts.add(hmp);
                  }catch(Exception e){
                      logger.error(e.toString());
                   }finally{
                       try{
                            if(rs!=null)rs.close();
                            if(jdbc!=null)jdbc.close();
                       }catch(Exception e){}
               return colnContacts;     
            }     

  • TS3899 Links contained within emails on my ipad do not work

    Links contained within emails on my ipad do not work - help please.

    Links contained within emails on my ipad do not work - help please.

  • Using characters contained within brackets only once

    Hi everybody!
    I have a list of numbers which go from 0 to 999. Given a set of three numbers, I want to use regex to choose from that list of elements (0 to 999) using each number from the set only once:
    If the user enters 123, the regex should choose all the posible permutations of this set from the list:
    123
    132
    312
    321
    213
    231
    but should NOT choose 122, 113 or any other posible combination that would repeat numbers of the given set.
    If I use the regex
    [123]it of course outputs numbers like 111, 122 which are not permutations of the given set.
    How can it tell regex to use each number contained within the brackets only once? Of course if the users enters 122 then it should choose all the permutations of this set:
    122
    122
    212
    221
    212
    221
    Any help would be really appreciated!
    Edited by: Vulture on Oct 19, 2008 9:55 PM
    Edited by: Vulture on Oct 19, 2008 9:56 PM

    prometheuzz wrote:
    Vulture wrote:
    Exactly! What exactly? It would help if you quote the part of someone else's post you're replying to.
    Exactly, I'm trying to create some sort of spell-suggestion app, I say "some sort" because it should work also with numbers.
    prometheuzz wrote:
    Okay, forget regexes. What you can do is convert the String the user has entered into an array of characters:
    String userInput = /* your code here */
    char[] userInputArray = /* your code here: look at the methods from the String class to see which one converts it to an array of char's */Now sort the array
    java.util.Arrays.sort(userInputArray);and convert this sorted array to a String:
    String userInputSorted = new String(userInputArray);If the user has entered "bza", your 'userInputSorted' will be "abz".
    Now just iterate over your list of Strings, and sort each String in the same fashion as you did with the 'userInput' and compare each of them with 'userInputSorted'. If they're equal, you've got a match.
    I've tried what you told me, but the idea is to find in the list the substrings that can be formed with at least three letters of the user input string. Anyway here's the code:
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    public class Main {
         * Given a user input, displays (or should display) a set of words from a list that can be formed using at least three characters
         * contained within the user input.
        public static void main(String[] args) {
            // Set a bogus user input
            String userInput = "plasma";
            // Get the sorted input
            String userInputSorted = sortInput(userInput);
            // create a prepared list of know words that can be formed with the characters of the user input and should be selected for output
            List list = new ArrayList();
            list.add("ala");
            list.add("alp");
            list.add("amp");
            list.add("asp");
            list.add("lam");
            list.add("lap");
            list.add("las");
            list.add("map");
            list.add("mas");
            list.add("pal");
            list.add("spa");
            list.add("alas");
            list.add("alma");
            list.add("alps");
            list.add("amps");
            list.add("lama");
            list.add("lamp");
            list.add("lams");
            list.add("laps");
            list.add("maps");
            list.add("palm");
            list.add("pals");
            list.add("slam");
            list.add("slap");
            list.add("spam");
            list.add("lamas");
            list.add("lamps");
            list.add("palms");
            list.add("plasm");
            list.add("psalm");
            list.add("plasma");
            // add some entries of Strings that can't be formed with the user input's characters and that should not be selected
            list.add("llama");
            list.add("llamas");
            list.add("lamma");
            list.add("mass");
            list.add("plasmas");
            list.add("java");
            list.add("firefox");
            list.add("netbeans");
            // now iterate the list
            Iterator it = list.iterator();
            while (it.hasNext()) {
                String listEntry = it.next().toString();
                String listEntrySorted = sortInput(listEntry);
                if (userInputSorted.contains(listEntrySorted))
                    System.out.println(listEntry);
        public static String sortInput(String userInput) {
            // Convert user input to an array
            char[] userInputArray = userInput.toCharArray();
            // Sort the array
            java.util.Arrays.sort(userInputArray);
            // Convert this sorted array to a String
            String userInputSorted = new String(userInputArray);
            return userInputSorted;
    }This is the output that I get when I execute the code:
    ala
    lam
    alma
    lama
    lamp
    palm
    lamps
    palms
    plasm
    psalm
    plasma
    Process finished with exit code 0I don't get all the wanted output because the length of the Strings in the list is not the same as the user's input's. My mistake, I should have explained my desired output with an example from the beginning.
    The list could contain a large number of words and numbers, that's why I thought that a faster way would be using regex! So, if your patience has not become exhausted yet, here's my code using regex; it chooses all the words that it should but also some it shouldn't because I haven't found anywhere the way to tell regex to use the characters within the brackets without repeating them (unless they are specifically repeated):
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class RegexMain {
        private static final String bogusList =
                // here the words that should be choosed
                "ala alp amp asp lam lap las map mas pal spa alas alma " +
                "alps amps lama lamp lams laps maps palm pals slam slap " +
                "spam lamas lamps palms plasm psalm plasma " +
                // here 8 words that shouldn't be choosed
                "llama llamas lamma mass plasmas java firefox netbeans";
        public static void main(String[] args)
            // Set a bogus user input
            String userInput = "plasma";
            // [charsFromUserInput]{3,} choose words that contain at least three chars
            String regex = "[" + userInput + "]{3,}";
            Pattern pattern = Pattern.compile(regex);
            Matcher matcher = pattern.matcher(bogusList);
            while(matcher.find())
                String listEntry = matcher.group();
                System.out.println(listEntry);
    }It chooses all the words it should, but it lets pass 5 from the 8 unwanted words contained in the list.
    ala
    alp
    amp
    asp
    lam
    lap
    las
    map
    mas
    pal
    spa
    alas
    alma
    alps
    amps
    lama
    lamp
    lams
    laps
    maps
    palm
    pals
    slam
    slap
    spam
    lamas
    lamps
    palms
    plasm
    psalm
    plasma
    llama
    llamas
    lamma
    mass
    plasmas
    Process finished with exit code 0The last five words contain characters that are in the user input, but more times that in there (like in the case of the "l", the "m" and the "s". How could I tell regex to match words with the same or less repetition of chars, but not more? Thanks a lot for your time, I really appreciate it.

  • Problem with SQL query region source containing OLAP clauses

    Hi team,
    I believe I found a bug when HTMLDB validates the SQL Query in a report region.
    My query includes an ORDER BY clause within a windowing function and HTMLDB refuses to accept the source owing to the presence of the ORDER BY and the column heading sort preference.
    Clearly the order-by in a window function has little to do with the column heading sort, but this error prevents me from updating the conditional display item in the page definition.
    Note also that the page was imported smoothly from the 1.5 version, so probably the region source is not checked at that time, but only when you update it "manually".
    So, in the end, if I don't change anything the page works because the sql query is assumed to be correct but unfortunately I need to change the condition and I cannot.
    The problem shows up in page 126 of app 21670, SQL query region.
    Bye,
    Flavio
    PS: may be I can work around this by using the pl/sql function returning the sql query.

    Flavio,
    We're aware of this problem. For now, your workaround is described in this thread:
    HTMLDB 1.6 and "order by" in analytic functions
    Sergio

  • SELECT Fails for a WITHIN clause if the xml element have a DASH

    I am using a context index on a CLOB Column and one of my records is like this.
    ?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <cid-spf xmlns="java:com.verid.ident">
    <tran-id>1020022445889</tran-id>
    <tran-time>1187984936000</tran-time>
    <mode>3</mode>
    <spoofer>
    <name/>
    <ph>
    <number>12106337000</number>
    </ph>
    </spoofer>
    <spfd>
    <name/>
    <ph>
    <number>13173708869</number>
    </ph>
    </spfd>
    <st-time>1187984936000</st-time>
    <dest-number>12106878012</dest-number>
    </cid-spf>
    When I run a query
    SELECT * FROM identity_event
    WHERE contains (identityeventdata,'1187812924000 WITHIN ST-TIME')>0
    All my other xml elements works just fine.
    I get this error.
    [1]: (Error): ORA-12801: error signaled in parallel query server P003, instance maralpinor03.trogdor.com:maralpin3 (3) ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: Oracle Text error: DRG-50901: text query parser syntax error on line 1, column 24

    The dash or hyphen (-) has special meaning to Oracle text. It means MINUS. Any time that you want Oracle Text to treat such a special character as regular text, you need to escape it, either by putting a backslash (\) in front of each special character or by enclosing a whole word or phrase within curly brackets ({}). Please see the demonstration below.
    SCOTT@10gXE> CREATE TABLE identity_event
      2    (identityeventdata  CLOB)
      3  /
    Table created.
    SCOTT@10gXE> INSERT INTO identity_event VALUES
      2  ('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      3  <cid-spf xmlns="java:com.verid.ident">
      4  <tran-id>1020022445889</tran-id>
      5  <tran-time>1187984936000</tran-time>
      6  <mode>3</mode>
      7  <spoofer>
      8  <name/>
      9  <ph>
    10  <number>12106337000</number>
    11  </ph>
    12  </spoofer>
    13  <spfd>
    14  <name/>
    15  <ph>
    16  <number>13173708869</number>
    17  </ph>
    18  </spfd>
    19  <st-time>1187984936000</st-time>
    20  <dest-number>12106878012</dest-number>
    21  </cid-spf>')
    22  /
    1 row created.
    SCOTT@10gXE> CREATE INDEX your_index ON identity_event (identityeventdata)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('FILTER        CTXSYS.NULL_FILTER
      5        SECTION GROUP CTXSYS.AUTO_SECTION_GROUP')
      6  /
    Index created.
    SCOTT@10gXE> -- wrong:
    SCOTT@10gXE> SELECT * FROM identity_event
      2  WHERE contains (identityeventdata,'1187812924000 WITHIN ST-TIME')>0
      3  /
    SELECT * FROM identity_event
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 24
    SCOTT@10gXE> -- correct:
    SCOTT@10gXE> SELECT * FROM identity_event
      2  WHERE contains (identityeventdata,'1187984936000 WITHIN {ST-TIME}')>0
      3  /
    IDENTITYEVENTDATA
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <cid-spf xmlns="java:com.verid.ident">
    <tran-id>1020022445889</tran-id>
    <tran-time>1187984936000</tran-time>
    <mode>3</mode>
    <spoofer>
    <name/>
    <ph>
    <number>12106337000</number>
    </ph>
    </spoofer>
    <spfd>
    <name/>
    <ph>
    <number>13173708869</number>
    </ph>
    </spfd>
    <st-time>1187984936000</st-time>
    <dest-number>12106878012</dest-number>
    </cid-spf>
    SCOTT@10gXE> SELECT * FROM identity_event
      2  WHERE contains (identityeventdata,'1187984936000 WITHIN ST\-TIME')>0
      3  /
    IDENTITYEVENTDATA
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <cid-spf xmlns="java:com.verid.ident">
    <tran-id>1020022445889</tran-id>
    <tran-time>1187984936000</tran-time>
    <mode>3</mode>
    <spoofer>
    <name/>
    <ph>
    <number>12106337000</number>
    </ph>
    </spoofer>
    <spfd>
    <name/>
    <ph>
    <number>13173708869</number>
    </ph>
    </spfd>
    <st-time>1187984936000</st-time>
    <dest-number>12106878012</dest-number>
    </cid-spf>
    SCOTT@10gXE>

  • 'contains' query  clause in GET_SEARCH_RESULTS

    Hi,
    I'm using UCM & Oracle DB 11g and I would like to do invoke GET_SEARCH_RESULT service with a query string like this; "dDocTitle <contains> `alle*`".
    If I run this query I obtainn the error:
    "Unable to find parsed elements with engine label 'DATABASE.METADATA.ORACLE', field name 'dDocTitle', operator name 'hasasword'."
    So I enabled the component: DBSearchContainsOpSupport
    But now, running the query, it produces a different error:
    Caused by: oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve search results. Error occurred while processing. Unable to return results. Unable to create the result set for query 'SELECT Revisions.dID, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, dFileSize AS VaultFileSize, DocMeta.*, RevClasses.*
    FROM Revisions, DocMeta, Documents, RevClasses
    WHERE Revisions.dID=DocMeta.dID And Revisions.dID=Documents.dID And Revisions.dDocName = RevClasses.dDocName And dIsPrimary = 1 And dReleaseState IN ('Y', 'U', 'I') AND (((CONTAINS(dDocTitle, 'alle%')> 0 AND ( xCollectionID = 811441310542000029 OR xCollectionID = 811441310542000028 OR xCollectionID = 811441310542000036 OR xCollectionID = 811441310542000031 OR xCollectionID = 811441310542000032 OR xCollectionID = 811441310542002002 OR xCollectionID = 811441310542000033 OR xCollectionID = 811441310542002001 OR xCollectionID = 811441310542000034 OR xCollectionID = 811441310542000030 OR xCollectionID = 811441310542001602 OR xCollectionID = 811441310542001601 OR xCollectionID = 811441310542000005 OR xCollectionID = 811441310542000004 OR xCollectionID = 811441310542001603 OR xCollectionID = 811441310542002605 OR xCollectionID = 811441310542000403 OR xCollectionID = 811441310542000404 OR xCollectionID = 811441310542000602 OR xCollectionID = 811441310542000401 OR xCollectionID = 811441310542000601 OR xCollectionID = 811441310542000012 OR xCollectionID = 811441310542001409 OR xCollectionID = 811441310542000011 OR xCollectionID = 811441310542000010 OR xCollectionID = 811441310542001407 OR xCollectionID = 811441310542001408 OR xCollectionID = 811441310542000016 OR xCollectionID = 811441310542001405 OR xCollectionID = 811441310542000015 OR xCollectionID = 811441310542001406 OR xCollectionID = 811441310542000014 OR xCollectionID = 811441310542000801 OR xCollectionID = 811441310542001403 OR xCollectionID = 811441310542000013 OR xCollectionID = 811441310542001404 OR xCollectionID = 811441310542000008 OR xCollectionID = 811441310542001412 OR xCollectionID = 811441310542000009 OR xCollectionID = 811441310542001411 OR xCollectionID = 811441310542000006 OR xCollectionID = 811441310542001410 OR xCollectionID = 811441310542000007 OR xCollectionID = 811441310542002803 OR xCollectionID = 811441310542002802 OR xCollectionID = 811441310542002801 OR xCollectionID = 811441310542003802 OR xCollectionID = 811441310542003801 OR xCollectionID = 811441310542003803 OR xCollectionID = 811441310542002401 OR xCollectionID = 811441310542000021 OR xCollectionID = 811441310542000020 OR xCollectionID = 811441310542000023 OR xCollectionID = 811441310542000022 OR xCollectionID = 811441310542000025 OR xCollectionID = 811441310542000024 OR xCollectionID = 811441310542000027 OR xCollectionID = 811441310542000026 OR xCollectionID = 811441310542000017 OR xCollectionID = 811441310542000018 OR xCollectionID = 811441310542001402 OR xCollectionID = 811441310542000019 OR xCollectionID = 811441310542001401 OR xCollectionID = 811441310542003201 OR xCollectionID = 811441310542003202 OR xCollectionID = 811441310542002201 )))) ORDER BY dInDate DESC'. ORA-20000: Oracle Text error:
    DRG-10599: column is not indexed
    java.sql.SQLException: ORA-20000: Oracle Text error:
    DRG-10599: column is not indexed.
    How can I solve this error (DRG-10599: column is not indexed)?
    P.S.
    SearchEngineName used while calling GET_SEARCH_RESULT: "database"
    and in UCM config.cfg:
    SearchIndexerEngineName=OracleTextSearch
    The same query ("dDocTitle <contains> `alle*`") runs successfully if I use the UCM search interface.
    Any help will be greatly appreciated.
    Thank you very much,
    best regards,
    S.

    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.

Maybe you are looking for

  • Aperture to MobileMe sync

    OK, working in aperture, have a folder that I would like to upload to to my mobileme gallery... i select the folder and then hit the mobileme button at the top... it places the album under mobile me in the inspector. The problem is, is that it only u

  • Which table contains the field CNTRC(Counter Reading)?

    Hi Guys, 1) Can anybody tell me which table contains the field CNTRC (short description is Counter Reading) ? 2) CNTRC is available in the structure RIMR0. In a situation like this, how do we identify the table name? Thanks in Advance, Vijay

  • DDL Query for ANY EVALUATION CONTEXT and ...

    Hi there, this is a cross posting from SQL: maybe I will have more luck here: Problem: there is a grant in my DB: GRANT CREATE ANY EVALUATION CONTEXT to "MYNAME"; Which DDL can I use to get this grant: SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRA

  • Multi-Master Replication Problem

    Hello all, I am working an environment where I am trying to keep two masters in sync with no extra consumers. I have followed the proceedures in the documentation but for some reason I am only seeing replication in one direction. IE: Server B -> Serv

  • Get part of string

    I have the following string: jdbc:odbc:dbName I wish to get "dbName" from the string?