Looking for a word in a string

Hi,
by this code
utl_file.get_line(vInHandle, vNewLine);
DBMS_OUTPUT.ENABLE(10000);
DBMS_OUTPUT.PUT_LINE(vNewLine);
I can the read the lines from a file and display them.
I whish to display them if and only if there is "ORA-" expression in them. How can I do that ? In other words how to find if "ORA-" exists in a string ?
Many thanks before.

The Oracle manuals are all online at
http://tahiti.oracle.com
If you search for INSTR, you'll get to this page
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions068.htm#SQLRF00651
which explains how to use that function, i.e.
IF INSTR( some_string, 'ORA-' ) != 0
THEN
  <<string contains ORA->>
END IF;Justin

Similar Messages

  • Looking for duplicated words

    please help me to do this problem
    to read a sequence of strings looking for duplicated words. The program should find places in the input where one word is followed immediately by itself . keep track of the largest number of times a single repetation occurs and which word is repeated . Print the maximum number of duplicates or else print the message that no word was repeated
    eg: how cow now now how cow cow now
    the output:
    now occurs 3 times

    This has nothing to do with JSF. Try the "New to Java" forum. Or if you can put the effort yourself, read on the String API and about the Collections framework.

  • I am looking for a word processing app

    I am looking for a word processing app that I can use for sending .doc and .docx format papers via email or uploading them to websites directly from my ipad 2 without having to export them to or sync them with my actual computer.  Does the Pages app allow users to do this?  I need to make a purchase of such an app soon.  If this app is incapable of these actions, can anyone suggest an app or design an app for me that does them?

    Pages can export documents in MS Word format. When I last did this (with Pages '09, the Mac version), the result was a .doc file.
    Note that this is a translation, and like most translations, it's not always a perfect one. Some features of Pages are not supported in MS Word, and some Word features are not supported in Pages.
    For a more precise answer wrt Pages for iOS, you should repost your question in the iWork For iOS community. The link will take you there.
    Regards,
    Barry

  • Looking for a word processor app

    I am looking for a word processing app that I can use for sending .doc and .docx format papers via email or uploading them to websites directly from my ipad 2 without having to export them to or sync them with my actual computer.  Does the Pages app allow users to do this?  I need to make a purchase of such an app soon.  If this app is incapable of these actions, can anyone suggest an app or design an app for me that does them?

    Pages, Documents To Go, Quick Office. For further information, check the "More Like This" box to the right.

  • Looking for a word processor without word wrap, text edit doesn't cut it

    I'm looking for a word processor without word wrap, text edit doesn't work. In text edit, it automatically scoots my text over to the next line but I just want it to keep going with a horizontal scrollbar. Is there a text editor I can download from the app store or can I get textedit to work somehow where it uses a horizontal scroll bar instead of entering text to the next line?

    Hi,
    thought TextWrangler can do it.
    But it seems that the 'no word-wrap' "feature" isn't that much wanted anymore.
    Maybe one of these http://www.macupdate.com/find/mac/text%20editor can do it.
    Regards
    Stefan

  • Does a Time Machine backup capture unsaved Word Documents? I am looking for a Word Document that I am guessing I deleted though I think it was open when I was doing a backup.

    Does a Time Machine backup capture unsaved Word Documents?
    I am looking for a Word Document that I am guessing I deleted though I think it was open when I was doing a backup.

    If you didn't save the document it would not be on your hard drive and therefore not copied via Time Machine.

  • Search for a word in a string.

    Hello everybody,
    Could anybody help me how to search for a word in a string ?
    Example: I have a string as below:
    String[] weather = {"snow", "rain", "sunny", "temperature", "storm", "freezing"};
    And I have a sentence like this:
    "Today is a sunny day"
    I want to break this sentence to pickup the word "sunny" and search this word in String[] weather to see if they match. How could i do that?
    Thank you very much. I really appreciate.
    still_learn

    1 iterate through the strings in your array.
    2. use String.indexOf(...) to test if the query string is present in the string

  • Looking for ipad word processor

    I recently purchased an ipad 2 (32G AT&T version) and had a question about word processors. I am looking for a word processor for the ipad that will open, compose and save documents in ODF and all the major Word formats. Something like Bean which I use a lot on my MacBook Pro . I have also used Pages on my MacBook Pro and installed it on my ipad and it is great for some things but will not open ODF docs and will not save in all Word formats. I also installed GoodReader on the ipad which opens almost everything but it seems I cannot compose a document using GoodReader (maybe I have the wrong version--don’t know). I looked at QuickOffice but I have no use for the presentation and spreadsheet apps that come with it and would rather not load the ipad with too many things. Any suggestions would be appreciated. Thanks in advance.

    I am sorry to tell you. I had done a lot of searches in different search engine, the answer is no. There is not an App support ODF edition for iPad.
    I got another news which Google may promot the new Google Document to support ODF in future, even through this is a rumor, but you may keep an eye on it. And you would be able to edit ODF online through Google Document.
    Finger cross.

  • Looking for a substring within a string (regexp)

    Hi folks,
    I want to select a substring from a string
    string:
    21;0000;4145054;4;A;4 mit ALU XEOFX,117107,XEOFX YWY,1,YWY
    or
    21;0000;4145054;4;A;4 goldglamsnu XEOFX,198877,XEOFX YWY,1,YWY
    I'm looking for the substring:
    YWY,1,YWY
    and try this SQL statement
    SQL> select REGEXP_substr('21;0000;4145054;4;A;4 mit ALU XEOFX,117107,XEOFX YWY,1,YWY' ,',[^YWY]+[0-9]')
    2 from dual;
    REGEXP_
    ,117107
    I don't know where my mistake is. Can anybody please help me?
    Database Version 11G R2
    Thanks,
    ben
    Edited by: ben512 on May 14, 2013 5:05 PM

    Hi,
    ben512 wrote:
    Hi folks,
    I want to select a substring from a string
    string:
    21;0000;4145054;4;A;4 mit ALU XEOFX,117107,XEOFX YWY,1,YWY
    or
    21;0000;4145054;4;A;4 goldglamsnu XEOFX,198877,XEOFX YWY,1,YWY
    I'm looking for the substring:
    YWY,1,YWYWhy do you want that substring. Do you always want the last 9 characters of the string?
    If you're looking for a substring that starts with 'YWY', and then has any number (including 0) of commas, digits, and additional 'YWY' strings after it, then:
    REGEXP_SUBSTR ( str
               , 'YWY[,[:digit:]]*)
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, maybe 5 or 10 rows), and also post the results you want from that data. Include examples of any special cases you need to handle (e.g., the target pattern is not found at all, or it is found at 2 different places in the string).
    Explain, using specific examples, how you get those results from that data. Say what your business rules are.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • I have new ipadmini.. Is there an APP for word processing? Looked for Microsoft Word but couldn't find it

    Looking for word processor for ipad mini

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • Looking for a Word Perfect app to open a .wpd document

    Anybody know of an app that could do this for me? I have both Applworks 6 and MacOffice 2004. Thanks!
    Matt

    Matt,
    NeoOffice will open .wpd files.
    Ernie

  • Help me about Searching for a Substring within a String

    Hello everybody,
    I have a problem like this:
    Assume i type a sentence from keyboard: "I want to play football"
    And computer will look for the word "football" to see if this word is in that sentence.
    In this case, computer found it.
    That is it ! Could anybody help me about this ?
    Thank you very much in advance.
    still_learn

    Use the String.indexOf() method:
    String original = "I want to play football";
    int result = original.indexOf("football");
    if (result != -1)
    System.out.println("computer found it");
    If the word "football" is in the original String, the indexOf() method will return the index of the word. If it does not find the word "football", it will return a value of -1. The String API is full of useful methods.
    fitz

  • How to search for a word in a text editor

    Hi,
       I have created a custom container and added some text to it. Is there any method to search for words in this?

    Lilan,
    To search a character field for a particular pattern, use the SEARCH statement as follows:
    SEARCH <c> FOR <str> <options>.
    The statement searches the field <c> for <str> starting at position <n1>. If successful, the return code value of SY-SUBRC is set to 0 and SY-FDPOS is set to the offset of the string in the field <c>. Otherwise, SY-SUBRC is set to 4.
    The search string <str> can have one of the following forms.
    <str>
    Function
    <pattern>
    Searches for <pattern> (any sequence of characters). Trailing blanks are ignored.
    .<pattern>.
    Searches for <pattern>. Trailing blanks are not ignored.
    *<pattern>
    A word ending with <pattern> is sought.
    <pattern>*
    Searches for a word starting with <pattern>.
    Words are separated by blanks, commas, periods, semicolons, colons, question marks, exclamation marks, parentheses, slashes, plus signs, and equal signs.
    <option> in the SEARCH FOR statement can be any of the following:
    ABBREVIATED
    Searches the field <c> for a word containing the string in <str>. The characters can be separated by other characters. The first letter of the word and the string <str> must be the same.
    STARTING AT <n1>
    Searches the field <c> for <str> starting at position <n1>. The result SY-FDPOS refers to the offset relative to <n1> and not to the start of the field.
    ENDING AT <n2>
    Searches the field <c> for <str> up to position <n2>.
    AND MARK
    If the search string is found, all the characters in the search string (and all the characters in between when using ABBREVIATED) are converted to upper case.
    Pls. Mark

  • Looking for free Software Demonstrations

    NEWSTART INSTITUTE
    We would like to make available for free, courses on how to
    use office software. We are planning to offer free bookkeeping,
    secretarial and other diploma programs. Our program can be viewed
    at www.educationfree.org . We are mainly looking for Windows, Word,
    Excel, Explorer, Outlook Express, and other office utility
    software. We are also interested in their free counterpart like
    Open Office etc. We would greatly appreciate any referrals to such
    software. We would then ask permission to use the original work and
    we would incorporate it in a full course on how to use the
    software.
    If you have written yourself such software or if you know of
    a web site that offers this software for free, we would greatly
    appreciate a reply.

    Hi Lulu
    Nice of you to do this. Unfortunately, I personally do not
    understand Chinese. I have a huge respect for anyone that is able
    to understand multiple languages!
    One small suggestion based on what I saw. You might want to
    change all instances of "Macromedia" to reflect "Adobe".
    Good luck with your forum! Rick

  • Looking for Work Bench

    Hi SAP Gurus,
    I am looking for the word work bench in SAP, can any body tell me that what is it? In SAP whit is the use of it .
    Regards,
    Pavan.

    Dear Pavan
    Check this help link
    [ABAP Workbench|http://help.sap.com/saphelp_47x200/helpdata/en/d1/8018d1454211d189710000e8322d00/frameset.htm]
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Oracle Express 6.3.4 on Win2K Install bug

    Downloaded Oracle Express Server 6.3.4 build on Technet. It says its a Maintenance Release, but it needs some fixing itself. The release when 'Typical' installed on clean Win 2K with Oracle 9iR2 and OWB9i, skipping Oracle HTTP server configure, singl

  • BPM Monitoring

    hi I am working with BPM and I am trying to monitor it using SXMB_MONI_BPE. I want to know whether my BPM is processing messages or not so where do I check that ?  Can I check whether each step has been successfully executed or not ? Ajith

  • Shutdown from a logoff script

    I have created a GPO that calls a  logoff script.  This script looks for other batchfiles and executes them.  I am using this method install an applications and then reboot.  However, when the batch file runs shutdown -r  -f -t 0, I get device not re

  • ER Time Dimension

    HI i have a problem of creating a ER diagram for Time Dimension which consist of tables are DAY , WEEK , MONTH , QUARTER , YEAR and the relationship between those tables can someone help i need a full solution with attributes for each table

  • Creating a web page

    i m beginer to java. i want help to create a web page having login tag and password tag and few menus. these menu must be activated after login