Seaching a text from a large description column

Hi,
I have to search a text in a description column which is of Clob type.
For eg. I have to search for words 'january' and 'february' in the description column which contains around 1000 word description of each item.
I am using 'like' but it is taking too much time. I do not wish to index that column.
Is there any other way other than using 'Like' to search data.
Thanks,
Rahul

I do not wish to index that column.Why not?
You could use CONTAINS/Text Query, however you'll need an index then.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:350017644883
http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/csql.htm#CCREF0104

Similar Messages

  • How do I read text from specific rows and columns in a tree structure?

    How do I read text from specific rows and columns in a tree structure? In a table you can specify the cell to read from but I have not been able to figure out how to do this with a tree structure.

    You need to set two properties to activate the correct cell and then you can read it's string property.
    The positioning properties are the "ActiveItemTag" and
    "ActiveColNum" properties. With them you select the tree item by it's tag and the active column. The string can then be read from the "Cell String" property.
    MTO

  • How can I remove the 'Qty' text from individual product descriptions?

    I didn't know if this was possible or not... I've recently taken the reins of handling an ecommerce site that had been published before I got on board. My boss wants me to remove the 'Qty:' description from some products because the image shown for some products is a misleading description of the actual quantity available (i.e. there is a picture that shows a stack of conveyors parts, and it says 'Qty: 1' to represent one 'stack' of conveyor parts - this confuses customers into thinking there's only one individual conveyor part available however). To avoid any confusion he requested that I remove the 'Qty' text from similar images. I see that you can change the 'In Stock' amount of a particular product underneath the 'Inventory' tab of the 'Products' menu, but I didn't know if it was possible just to remove the quantity description altogether without just typing the quantity in at zero. This is likely a strange question but I didn't know where else to ask! I would appreciate any help or advice Thank you

    Hi ewhelhalu,
    I just figured out a way to do it, but it's a little weird and complex, and I have no idea what the consequences for editing this .plist string might be. I'm thinking it'll be OK, but you never know what might happen when you screw around with Apple's intentions.
    So if you have the Developer Tools on your install of OS X, you can use the Property List Editor to edit the Dock files. (If you don't have this program, you can use a program like [Pacifist|http://www.charlessoft.com> to selectively install stuff from your Leopard disk).
    The file you're interested in is within Macintosh HD > Users > Your Username > Library > Preferences, and it's called com.apple.dock.plist. Open that up with Property List Editor, and open the arrow drop-down next to "Root." The lines you're looking for are "persistent-apps" (the left side of your Dock) and "persistent-others" (the right side). If you open the drop-down arrows, you'll see there are numbers below each. The numbers correspond to your Dock items, from left to right.
    If you click on drop-arrows by the numbers, a sample hierarchy looks like this: 0 > tile-data > file-label. It's the "file-label" string that you want to edit. Just make it ("it" being the name of the icon under the "value" column) blank, save the file, go into Terminal and type "killall Dock" without the quotes, and your Dock icon should appear without a name. You'll have to do this for all of them.
    I should insert the usual caveats here about backing up beforehand and making sure that you have a copy of the .plist file before you start tweaking it so that you can replace it if things go wrong. And perhaps someone with more knowledge of Terminal or third-party apps than I have will come along and suggest a simpler solution. But that's the only one I have.
    Hope that helps!
    —Hazy

  • ORA-00600 occurs on an extract from a large xmlType column

    When running the extract() function where search criteria has been specified (for an existing node), I receive the following error:
    ORA-00600: internal error code, arguments: [qmxdMatchingChildren:overflow-1],[], [], [], [], [], [], []
    However, if I remove the search criteria, the fragment returns no error.
    Both queries have been working successfully on smaller documents.
    Example with criteria:
    SELECT extract(tab.xml_text,'//item[@val="2.1.2.2"]') ITEM
    FROM CUR.ITEMS tab
    WHERE item_id =271;
    Example without criteria:
    SELECT extract(tab.xml_text,'//item') ITEM
    FROM CUR.ITEMS tab
    WHERE item_id =271;
    I'm estimating that the document inside the xmltype column is 4MB.
    The database is Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production With the Partitioning, OLAP and Data Mining options.

    Jennifer,
    You may be encountering the following bug:
    Bug# 3617191 See Note 3617191.8
    OERI[qmxdmatchingchildren:overflow-1] using EXTRACT from large XML document
    Fixed: 10.1.0.4, 10.2

  • Problem on inserting text from file to a clob column

    Hi! I'm having problem in inserting text read from a text file to a clob column in my table.
    Here's my code
    public void addSyllabusOutline(int syllid)
              CLOB objclob1 = null;
              CLOB objclob2 = null;
              String query = "SELECT outline, projoutline FROM Syllabus WHERE syllabusid = '"+ syllid +"' FOR UPDATE";
              try
                   System.out.print("Getting syllabus outline and projoutline clob locator...");
                   DBConnection dbconnbean = new DBConnection();
                   dbconnbean.openConnection();
                   ResultSet rst = dbconnbean.executeQuery(query);
                   if(rst.next())
                        objclob1 = (oracle.sql.CLOB)rst.getClob("outline");
                        objclob2 = (oracle.sql.CLOB)rst.getClob("projoutline");
                        Writer clobwriter1 = ((oracle.sql.CLOB)objclob1).getCharacterOutputStream();
                        String filename1 = "c:\\o1u2t3l4i5n6e7.txt";
                        File outlinefile1 = new File(filename1);
                        FileReader outlineFileReader1 = new FileReader(outlinefile1);
                        char[] cbuffer1 = new char[10 * 1024];
                        int nread1 = 0;
                        while((nread1 = outlineFileReader1.read(cbuffer1)) != -1)
                             clobwriter1.write(cbuffer1, 0, nread1);
                        //clobwriter1.flush();
                        clobwriter1.close();
                        Writer clobwriter2 = ((oracle.sql.CLOB)objclob2).getCharacterOutputStream();
                        String filename2 = "c:\\p1r2o3j4o5u6t7l8i9n0e.txt";
                        File outlinefile2 = new File(filename2);
                        FileReader outlineFileReader2 = new FileReader(outlinefile2);
                        char[] cbuffer2 = new char[10 * 1024];
                        int nread2 = 0;
                        while((nread2 = outlineFileReader2.read(cbuffer2)) != -1)
                             clobwriter2.write(cbuffer2, 0, nread2);
                        //clobwriter2.flush();
                        clobwriter2.close();
                   System.out.println("done");
                   dbconnbean.closeConnection();
              catch(Exception e)
                   System.out.println("Error: " + e);
    My error is java.sql.SQLException fetch out of sequence. I don't have an Idea on what seems to be the problem. Please help.. Thank you very much. ^_^

    Hi,
    Print the whole stack trace. It will tell you the line which causes the error. How you use clob and blob in oracle is also version dependent. Try to google for
    oracle "your version" java clob example.
    /Kaj

  • ORA-01401: inserted value too large for column from 9i to 8i

    Hi All,
    Am trying to get the data from 9.2.0.6.0 to 8.1.7.0.0.
    The character sets in both of them are as follows
    9i
    NLS_NCHAR_CHARACTERSET : AL16UTF16
    NLS_CHARACTERSET : AL32UTF8
    8i
    NLS_NCHAR_CHARACTERSET : UTF8
    NLS_CHARACTERSET : UTF8
    And the structure of the Table in 9i which am trying to pull is as follows.
    SQL> desc xyz
    Name Null? Type
    PANEL_SITE_ID NOT NULL NUMBER(15)
    PANELIST_ID NUMBER
    CHECKSUM VARCHAR2(150)
    CONTACT_PHONE VARCHAR2(100)
    HH_STATUS NUMBER
    HH_STATUS_DT DATE
    HH_RECRUITMENT_PHONE VARCHAR2(100)
    HH_RECRUITMENT_DT DATE
    FIRST_NET_USAGE_DT DATE
    INSTALL_DT DATE
    FNAME VARCHAR2(4000)
    LNAME VARCHAR2(4000)
    EMAIL_ADDRESS VARCHAR2(200)
    EMAIL_VALID NUMBER
    PASSWORD VARCHAR2(4000)
    And by connecting to one of the 8i schema am running the following script
    CREATE TABLE GPMI.GPM_HOUSEHOLDBASE_FRMP AS
    SELECT PANEL_SITE_ID,
    PANELIST_ID,
    LTRIM(RTRIM(CHECKSUM)) CHECKSUM,
    LTRIM(RTRIM(CONTACT_PHONE)) CONTACT_PHONE,
    HH_STATUS, HH_STATUS_DT,
    LTRIM(RTRIM(HH_RECRUITMENT_PHONE)) HH_RECRUITMENT_PHONE,
    HH_RECRUITMENT_DT,
    FIRST_NET_USAGE_DT,
    INSTALL_DT, LTRIM(RTRIM(FNAME)) FNAME,
    LTRIM(RTRIM(LNAME)) LNAME,
    LTRIM(RTRIM(EMAIL_ADDRESS)) EMAIL_ADDRESS,
    EMAIL_VALID,
    PASSWORD
    FROM [email protected];
    Am gettinh the following error.
    Can anyone of you fix this one.
    PASSWORD
    ERROR at line 14:
    ORA-01401: inserted value too large for column
    Thanks in Advance
    Sudarshan

    Additionally I found this matrix, which explains your problem:
    UTF8 (1 to 3 bytes) AL32UTF8 (1 to 4 bytes)
    MIN MAX MIN MAX
    CHAR 2000 666 2000 500
    VARCHAR2 4000 1333 4000 1000 */
    For column PASSWORD the maximum length is used (4000). UTF8 uses maximal 3 bytes for a character, while AL32UTF8 may use up to 4 characters. So a column defined in AL32UTF8 may contain characters, which do not fit in a corresponding UTF8 character.

  • Importing text from large Word document ID freeze

    I'm converting a large Word document to PDF via InDesign and when I import the text from the Word doc, ID always freezes.
    I want to preserve the styles and formatting in the text but unfortunately the freeze occurs at the beginning where the Placing Microsoft Office Word 2007 document progress bar shows either "Processing character attributes..." or "Processing table attributes..."
    My problem is that it is such a large document with lots of italics, bolds and styles that I would like to take over to InDesign in order to speed up the design process.

    RTF will be fine and will retain all the Bold and Italic and other styles. RTF stands for RICH TEXT FORMAT and I think it's better than the standard .doc saved from Word; for importing to InDesign.
    Try these steps.
    In Word:
    File>Save As
    Choose RTF (that way you are not overwriting the original file)
    In InDesign:
    Start a new document - completely blank - don't worry about page size (A4 will do) and don't worry about margins (standard margins will do)
    Use File>Place and import the RTF file you just saved
    If that imports ok - then select all the text
    File>Export and choose RTF (rich text format)
    Now use that new RTF to import to your layout
    (there is no need to worry about images, you should reimport all  images that are in Word through File>Place; if you have any images in  your Word document. Make sure you use the same source file as when you  placed into Word)
    The reasons for the steps above is because there is a lot of unnecessary styles made with Word - and importing to InDesign and a fresh Export to RTF makes a cleaner file to use with InDesign.
    Have a look at  this too - http://www.paperspecs.com/mainblog/degunkifying-word-files/

  • Extracting text from PDF in columns?

    I'm trying to extract the text from a number of PDFs in which the text is in two columns. When I copy the txt and paste it into Word, it ends up being in a single column, the width of one of the original columns, but with a hard return at the end of each line.
    I don't really care if the extracted text ends up being in one column or two, I just want it not to have a return at the end of each line. Can anyone suggest an alternative method?

    i get the following error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/fontbox/afm/FontMetric
    at org.pdfbox.pdmodel.font.PDFont.getAFM(PDFont.java:334)
    at org.pdfbox.pdmodel.font.PDSimpleFont.getFontHeight(PDSimpleFont.java:104)
    at org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:336)
    at org.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:80)
    at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452)
    at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
    at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
    at org.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:336)
    at org.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:259)
    at org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:216)
    at org.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:149)
    at extracttext.Main.main(Main.java:55)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)
    I would appreciate if you can please help me writing a java program that can extract only test from a pdf file

  • How to get text from column  labels in pivot using javascript?

    Hi, is it possible to get text from column labels in pivot using javascript? How?

    You don't get a response from a URLRequest, you get the response from a URLLoader:
    View this sample page for URLRequest and URLLoader and I think it'll make more sense to you.
    http://help.adobe.com/en_US/air/reference/html/flash/net/URLRequest.html#URLRequest()

  • I have never used PS, and I am trying to edit a brochure created by someone else.  I need to move text from one column to another

    I have never used PhotoShop and do not have time at the present. Please help me to move a section of text from one column to another in a brochure.

    Here are 3 options for future reference:
    1. With the setup you've described, apply a Match Move behavior to  the text and make the rectangle the source. Change the Transform parameter to Mimic source.  This way you can still adjust the text postion as needed, but the rectangle will drive the animation.
    2. Use a group to do the animation.  Put both your rectangle and text in the same group and animate the group's postion.
    3. Use the Link behavior.
    Each of these has it's advantages depending on what you need.

  • I need to input text from PC to iPad with large font size. Too much to ask?

    Works well with PC to PC using just software likge Windows Live Messenger, but not with iPad because I haven't seen a Messenger app for iPad that can display large fonts or has custom font size option. They all use small font size that can't be changed.
    I've also tried many VNC apps by writing the text in my PC to notepad and using the VNC to display the large text for iPad. Probelm is VNC's wont work well with 3G.
    Is this really too much to ask from iPad?
    If some app developer reads this, I'll buy an app for 50$ that has white background and can receive text sent from PC with custom font sizes. Doesn't have to have any other features. Just receive text from PC using the existing IM softwares like Windows Live etc or simple custom software.

    I was wondering if you could help me out with my current situation. It seems like it is similar to your previous I/O delima. I think I might have to parse the data, but i dont know how to do that yet. I basically have to put the information from one text file into a database, and it is formatted in one way, and i need to format it a different way that SQL statements can read. Here are 2 entries of about 12,000 that i have in one text file:
    1
    UI - 4
    TI - 117-28
    Y2 - -32676
    RP - NOT IN FILE
    SO - <None Specified> -1 ;():
    2
    UI - 11721
    TI - The mechanism of genetic recombination in Escherichia coli.
    MH - mechanism
    MH - recombination
    MH - Escherichia coli
    RP - NOT IN FILE
    SO - Cold Spring Harb Symp Quant Biol 1953 ;18():75-93
    This is only 2 of the records, You notice that the record number is first, followed by another field ex. (UI), which then the data stored in that field are after the "-"
    Thanks for your help

  • HT1688 Is there an "easy" way to either 1) cut and paste a large block of text from the Messages app or 2) access this text through a computer?

    Is there an "easy" way to either 1) cut and paste a large block of text from the Messages app or 2) access this text through a computer?

    Tap and hold the text you want to copy, then tap Copy.

  • Description text from IT1002?

    Hi all,
    I'm trying to figure out where to pull the description text from IT1002 for a specific object.  I assume field TABNR on HRP1002 points to where the text is stored but I'm not sure where to go from there.  Any suggestions are appreciated.
    Cheers,
    Sharon

    I know this is answered already but here is another alternative:
    use function module 'RH_READ_INFTY_TABDATA'
    Paul

  • Move text from one column to another depending on character count

    Hello,
    I am trying to find a way to have text start in a specific column depending on the character count.
    Basically our site will have 3 columns. For example if the text only has about 300 Characters - it would start in the right column. If it had between 301 & 600 characters - it would start in the middle column and run to the right column. If it had more than 601 characters - it would start in the left column and run to the middle then right column.
    Is this possible?
    Thanks in advance for any help!
    James

    If you look at the String class you can probably devise a series of steps to do what you want using some basic logic.  The String class has a length property that tells you how many characters it contains.  Assuming you wouldn't want to split words, you could use something like the indexOf method to find the nearest blank space following the 300th character.  Then you would be wanting to build different strings for the different segments you create.

  • Selecting and importing text from Word

    Hi..
    I am interested in importing text from Microsoft Word into labview.
    The text will be identified by a particular 'style'. I have seen examples of reading text marked by 'bookmarks' however this doesn't appear to be sufficient or flexible enough for this application.
    I have tried adapting the 'bookmark' code (using different property/invoke nodes) but can't seem to find something that works in a similar way.
    Just wondering if anyone has already tried something similar.
    Any help is much appreciated.
    Regards,
    Mike
    (Labview 8.2.1 + Report Generation Toolkits)

    Hi Mark,
    The plan was to be able to sift through text in a Word document for blocks of text that match a particular 'style' (determined by us) and import the text into Labview to populate VI descriptions/free labels etc.
    I have adapted some code I have found to be able to cycle through table rows/columns and be able to match text/string patterns, however matching the 'style' property should make this operation a little cleaner or perhaps give us more control over what strings are matched.
    Mike

Maybe you are looking for

  • Open and cleared items FBL3n

    Hi Guys, I have a query. In FBL3n for G/L line item display , we select open items or cleared items on a particular date. What is the meaning of this? open in what sense? cleared in what sense? thanks.. srikanth

  • When I click SAVE PDF i need to get default dynamic name to save the PDF document.

    Hi All, When I click SAVE PDF option I need to get default dynamic name. In my case lets say Sales Order Number.pdf. Thanks, SP.

  • G-tech G-drive mini external h.d. won't turn on

    I have a new G-Tech G-Drive Mini (500 GB) external hard drive which was just fine the first time I had it connected to my iMac. I got it all set up, backed up some files, put it away and that was that. Today I got it out, turned the power switch to O

  • How to change the Date

    I am able to install trial and use it fine for couple of days. I tried to login with a test user id to install the license, I got a message saying that license expired. I logged back in as sap* and installed the license. Then I was trying to schedule

  • Syntax check of code

    I am passing certain code in table itab and then doing a syntax check using SYNTAX-CHECK FOR itab MESSAGE mess LINE lin WORD wrd .The problem with this method is it check the code line by line and assign mess with the first error msg  but I want to t