Finding Text in triggers

Hi All,
I want to list the names os all the triggers stored in database whicg contain a particular word. I tried to use INSTR and Like '%search%' but as the trigger body column is a long type column I can not use these functions on this column. Can any body please help me how to do this.
Thanks in advance
Warm Regards
Vivek Bajaj

The USER_SOURCE solution will only work in version 9. If you are on 8 something, and need to do this as more than a one-shot deal, you can create a procedure similar to this to find trigger with your text.
PROCEDURE find_text_in_trigger (p_str_to_find IN VARCHAR2) IS
DECLARE
CURSOR trig_cur IS
SELECT trigger_name, trigger_boy
FROM user_triggers;
l_trigger VARCHAR2(30);
l_body VARCHAR2(32767);
BEGIN
   OPEN trig_cur;
   LOOP
      FETCH trig_cur INTO l_trigger, l_body;
      EXIT WHEN trig_cur%NOT_FOUND;
      IF INSTR(l_body, p_str_to_find) > 0 THEN
         DBMS_OUTPUT.Put_Line ('String exisits in trigger '||l_trigger);
      END IF;
   END LOOP;
END;This will, of course, bomb if you have triggers bigger than 32K, but if you do you probably have bigger problems anyway.
TTFN
John

Similar Messages

  • How can i find the SAPSCRIPT triggered by a standard transaction or program

    I am trying to find the SAPSCRIPT triggered by transaction F150.
    This transaction uses program SAPF150D2 for print but i am not able to find the SAPSCRIPT.
    I want a general way to find the SAPSCRIPT triggered by any transaction or program.

    Hi,
    As pointed out earlier using SE38--->rstxdbug, is the simplest & the best way.
    However alternate way would be -
    >se71-give form name->Click on change mode-->click on page windows->select any one window & Click on text elements ( Pencil Icon)--->Insert>symbols->Pgm symbols----->This will display all the pgms where this form is being used.
    I hope this helps,
    Regards
    Raju Chitale

  • Can't find text in distilled file, using some fonts

    The products I have are Mac OS 10.6.8, Acrobat X and 9, and Word 2011 and Apple Pages for Mac; Acrobat 9 and Word 2007 for Windows XP.
    There are numerous ways to create PDFs on both platforms, whether through save as or creating a PostScript file and distilling it. The problem is that with docs I have using Calibri, Cambria, and Candara, if I distill a PostScript file made from Mac Word or Pages, neither Acrobat nor Apple Preview can find text in the resulting PDF, whether the file distilled with Mac or Windows Distiller. (Meaning a "find" for a string comes up as not found.)  All other combinations are okay, even writing a PS file in Windows Word and distilling with Mac Distiller.
    I mention the fonts specifically because most of the time I use OTF faces, which always work. I even tried using the Windows TTF versions in the Mac operating system -- same failure.
    And even if I force these fonts to be embedded in the Distiller job options, still no joy. If I take so much as a comma and set it to an OTF, I can find the comma. Also, Acrobat *can* find Arial text in a Visio flowchart placed in the Word doc. I don't know how the author placed it there, but it's probably copy from Visio, paste into Word.
    The reason why I care about this is because the distilled PFDs are just a tiny bit better looking on the screen than other options, such as "Save as PDF" from the Mac OS Print dialogue. The only other one that looks as good is the Create PDF button in Windows Word, but I would rather not have to use Windows just to get a better-looking PDF.
    So to summarize:
    Mac app > write PS file > Mac Distiller = fail
    Mac app > write PS file > Win Distiller  = fail
    Win app > write PS file > Mac Distiller  = okay
    Win app > write PS file > Win Distiller  = okay
    Mac app > save as PDF directly > okay
    This might not be a problem with Distiller per se; it could be the Mac OS engine that creates the PS files. You see, I had heard that Apple used their own internally developed engine for the options to save PDF files directly, but was using Adobe code when one used the option to write a PostScript file, so that's why I'm so surprised and disappointed it fails.

    tlmurray23 wrote:
    The reason why I care about this is because the distilled PFDs are just a tiny bit better looking on the screen than other options, such as "Save as PDF" from the Mac OS Print dialogue. The only other one that looks as good is the Create PDF button in Windows Word, but I would rather not have to use Windows just to get a better-looking PDF.
    Hmmm. In what way are Distilled PDFs "a tiny bit better looking on screen" than those made by OS X?
    You are viewing both in the same app and platform?
    And you're referring to font display?
    What settings are you using in Distiller which you think might have some bearing on this?
    tlmurray23 wrote:
    This might not be a problem with Distiller per se; it could be the Mac OS engine that creates the PS files. You see, I had heard that Apple used their own internally developed engine for the options to save PDF files directly, but was using Adobe code when one used the option to write a PostScript file, so that's why I'm so surprised and disappointed it fails.
    OS X's native graphics drawing environment, Quartz, is essentially a "Display PDF", so creating a PDF file is a very simple procedure.
    Writing PostScript for printing uses Apple's own cgpdftops CUPS filter. I doubt there is any "Adobe code" as such, and I dispute the implication that "Apple code == bad; Adobe code == good", which you seem to suggest.
    The specifications for PDF and PostScript are clearly documented, and it should be easy for anyone to follow them.
    However, the fact remains that when Apple converts these MS fonts to PS, something goes wrong. It may be a bug in Apple's code; or it may be that Apple it strictly interpreting font data which MS is playing fast and loose with. Windows' own PS export would no doubt be designed to work with the looser implementation in MS's fonts. This is just hypothetical of course, though is in keeping with tradition.
    What you could do is use a decent text editor like TextWrangler (free from BareBones software) to compare the PostScript code from Windows and OS X.
    You could also look a the Properties tab in Acrobat of the PDFs, and compare the font encoding.
    You could also test running out PostScript from any other app on OS X that you have using those fonts.
    However, I think it is unlikely that you will see resolution unless MS releases a new version of their fonts, or some new version of OS X makes an amendment to fix the bug or cater for the MS issue. Perhaps Lion will do this; perhaps it won't.
    Are you using the versions of these fonts that came with Office 2011 for Mac? What happens if you use the Windows versions of the fonts on OS X?

  • Adobe reader  X and XI search don´t find text like other programs including adobe reader 9? Thanks

    Adobe reader  X and XI search don´t find text like other programs including adobe reader 9? Thanks

    You mean, you are trying to search text in a PDF file, and you can do it in Reader 9 but not in later versions of Reader (using the same file)?

  • Finding text in a PDF using preview has stopped working (correctly)

    Finding text in a PDF using preview has stopped working (correctly).
    When I search for certain words in a PDF using preview, it correctly finds all the pages in the document with that word.  However, it no longer highlights the word being searched for.  I have looked through the various settings and cannot figure out how to turn this back on.
    Thanks.

    4Shared worked, but having to register to retrieve files from there is a nuisance.
    The problem is that you use special graphic state operators inside text objects which is not allowed:
    BT
    /printmatic_F1 58.133398014634 Tf
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 86.448306387737 264.65046258267 cm
    (t) Tj
    Q
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 102.60939103581 264.65046258267 cm
    (e) Tj
    Q
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 134.93156033194 264.65046258267 cm
    (x) Tj
    Q
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 163.99825933926 264.65046258267 cm
    (t) Tj
    Q
    ET
    Have a look at the PDF specification ISO 32000-1:2008 (e.g. at http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf). Table 51 shows that q, Q, and cm are special graphics state operators, and Figure 9 illustrates that these operators, therefore, are not allowed in text objects, i.e. between BT and ET.

  • AcroPDF in VB6 - Find text in PDF and print that page.

    Okay, so I'm certain that this question has been asked and answered a hundred times, but for some reason my googling skills are seriously failing me today...
    I have a legacy application built in VB6 that generates PDF documents of a particular form letter.  Each PDF contains all of the form letters that were printed on that particular day.  I actually have it all working rather decently, but something came up a little while ago that set me on a new programming obsession.  I want to enable the following functionality from my application:
    The user provides a text string that should be unique among all pages of all PDF's (customer ID).
    The application then finds the PDF that contains that text string and identifies which page number contains that text string.
    Finally, send only that page to the printer.
    Currently I can easily create, display and print the PDF from my application.  While the creation of the document is done through a third-party reporting system, all display and printing functions are basically handled using AcroPDF.dll.  Going through the available properties and methods for an AcroPDF object, I see that I can tell it to print only specified pages, which gives me the last part of my requirements, and I've got the user input part down pat.  I'm just totally stumped at finding a solution for "step 2".
    Any suggestions, ideas or comments would be greatly appreciated.  I'm kinda tired of banging my head against a wall.  Thank you for your time.

    If you are only using Adobe Reader, then that feature isn't available.
    If you have Adobe Acrobat, then you have a few options.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 26 Oct 2011 08:15:12 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: AcroPDF in VB6 - Find text in PDF and print that page.
    AcroPDF in VB6 - Find text in PDF and print that page.
    created by GHosaPhat<http://forums.adobe.com/people/GHosaPhat> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3991293#3991293

  • Find text in pdf

    I need to develop a plugin that search for some text into the document, then when I found a particular string I need to examine the page where the text is found, and I need to export all the page as TIFF and also exporting all text in a text file.
    I suppose that I use the PD Layer. Anyone can give me a brief list of the function I have to use?
    Alk.

    The PDE layer is not recommended for finding text because
    * it is not broken into words
    * it may not be in reading order
    * there is no encoding conversion
    This means that you will only sometimes find text based on a simple
    scan of PDEText elements.
    In reading about AVConversion realise that there are two things being
    documented.
    1. How a plug-in can provide new formats for conversion to or from
    PDF. You do not want this.
    2. How a plug-in can use an existing AVConversion handler to convert
    to or from PDF. This is what you want.
    Aandi Inston

  • Find.text Then apply Paragraph.Style

    Hi Everyone,
    Is that possible we find the text then apply the paragraph style every find text.
    We find [CN] then apply paragraph style "Chap_Num", Find next  [CT] apply PS "Chap_TTL" Find next [COX1] apply PS "Chap_Para".
    Any trick find and apply para style one time.
    Thank you! I appreciate your help and explanation Adv.

    @s_ashok – you'll find the right methods and properties in the CHM file for InDesign CS2 at:
    http://www.jongware.com/idjshelp.html
    Just a few hints:
    InDesign CS2 does not support GREP search/replace, so every line in your code that points to GREP does not work.
    Further: "app.findTextPreferences" and "app.changeTextPreferences" were "app.findPreferences" and "app.changePreferences" in InDesign CS2. And then there were no "findChangeTextOptions" or any counterpart for that in CS2…
    That should get you running…
    I have no InDesign CS2 installed to debug, so this is all I can say…
    Uwe

  • How to find what are triggers are present in the database?

    Hi All
    Can any one tell me how to find what all triggers present in the database.
    Thanks in Advance

    Hi All
    Can any one tell me how to find what all triggers
    present in the database.
    Thanks in AdvanceYou should visit Pythia, the Oracle of Delphi, near Thermopile in Greece. She might be able to give you an answer. Pythia was an early leader in executive decision support systems and is not to be confused with the Oracle Corp. of Redmond, CA. Pythia also has a group of helpful colleagues in Toronto. Rumor is that they're also making predictions by inhaling laurel vapors. SQL, as you know, stands for "Said Quixotically on Laurel".

  • [AS][CS3] Finding text with character style

    Please help to tell me how to find text with a specific character style and then delete the text.
    I had no problem doing this with CS2 but its doing my head in now.
    Thanks,
    Andrew

    Here you go. This assumes that your character style is at the top level of the panel. If you're using style groups, you'll need to write code to get at the style you want to use.
    //DESCRIPTION: Delete text in named character style
    (function() {
      if (app.documents.length > 0) {
        deleteStyledText(app.documents[0]);
      function deleteStyledText(aDoc) {
        var cStyle = aDoc.characterStyles.item("CharStyleName");
        setupFindText();
        app.findTextPreferences.appliedCharacterStyle = cStyle;
        aDoc.changeText();
      function setupFindText(find, change, wholeWd, caseSense, foots, hidLayers, lockedLayers, lockedStories, masters) {
        app.findTextPreferences = null;
        app.changeTextPreferences = null;
        try { app.findTextPreferences.findWhat = find } catch(e) {};
        try {app.changeTextPreferences.changeTo = change } catch(e) {};
        app.findChangeTextOptions.properties = {
          caseSensitive:(caseSense == null ? false : caseSense),
          wholeWord:(wholeWd == null ? false : wholeWd),
          includeFootnotes:(foots == null ? false : foots),
          includeHiddenLayers:(hidLayers == null ? false : hidLayers),
          includeLockedLayersForFind:(lockedLayers == null ? false : lockedLayers),
          includeLockedStoriesForFind:(lockedStories == null ? false : lockedStories),
          includeMasterPages:(masters == null ? false : masters)
      } // end setupFindText
    Dave

  • How to find text or paragraph by giving style name?

    Hello,
    can any body tell me,How to find text or paragraph by giving style name?actully i have so many styles which is applied on document.
    i want to find text in the document which have particular style name.is any method to find text by giving name of style?

    Any of the various findText methods, plus your paragraph style name in FindTextPreferences: http://jongware.mit.edu/idcs5js/pc_FindTextPreference.html
    Use Google to locate exact samples, as this has been done countless times before.

  • How can I find text-item description and content in database?

    I make "Actual news" region with text and simple image items.
    With "Custom Search" autoquery I make news portlet with 10 latest news.
    But I will make with PDK-Java discussion portlet, in which users can read and write about last published (last created text item display name and content) news.
    My questions:
    - How can I find text-item description and content in database?
    - How I can sort text-items to find latest created in my region?
    I have Portal R2
    Thanks in advance.
    Cheslav

    I am sorry. The following are the related tables.
    WWV_TEXT
    WWV_TEXT_BLOCKS
    WWV_TEXT_BLOCK_USAGES
    WWV_USER_TEXT_BLOCKS
    WWV_USER_TEXT_BLOCKS$
    WWV_USER_TEXT_BLOCK_USAGES
    WWV_USER_TEXT_BLOCK_USAGES$
    May be you want to browse WWV_TEXT which is the core table.

  • Anyway to Find text and replace with variable FM10?

    I've just been informed that the current documentation set I've done will have different versions. I've created a brand variable, but I was wondering whether there was a quick way to find the text I need to convert, then replace it with the variable I've created?
    Mark

    Unless Fm10 is different than FM7 in this regard, you can copy an instance of the NewBrand variable in the text flow, then do an
    Edit > Find/Change
    Find [Text:] [OldBrand]
    Change [By Pasting]
    The usual issue is that each paste is not just pasting the variable, but also pasting the formats of the source instance of the variable. If all instances of the target text are the same format, say "Body", then this is not a problem.
    Otherwise, use the [Change & Find] button. Tweak formats as you go.
    I imagine that there are aftermarket enhancements for this. In FM10, you might even be able to script it, but it the number of changes is manageable, [Change & Find] suffices.

  • Any plugin api to find text ?

    Hi
    Is there any plug-in api to find text in the pdf ? . In the acrobat_pdfl_api_reference.pdf, I don't see the description and function definition of
    PDFindText.
    So, I want to know how we can find text using the plug-in code ?
    Regards,
    Arvind

    Hi,
    I want to simulate find Text , find next feature in my application. And I think Acrobat Plugin will have some api similar to iac_api named
    CAcroAVDoc::FindText. But I didn't find in the plug-in reference document.
    And I also looked PDWordFinder sample code but looks like to simulate findtext thru this , we need to scan whole document first and then compare the word and then we need to highlight it. So good amount of code, I have to write to simulate FindText.
    So don't we have any other way or api by which we can simulate FindText, Find next  easily . And also I want to know which plugin api use PDFindFlags (mentioned in the plug-in reference document).
    Please let me know your inputs.
    Regards,
    Arvind

  • Ignore Line break in find text using grep

    Hi everyone!
    I need to find the text in document using grep.
    find text for :
    Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.
    The above sentence cannot having line breaks. But document having multiple line breaks.
    so, please to give a tip to find the text using grep.
    I am not excepting this type of result by following.
    Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.  ------------this is not.
    Any another way to find (i.e)., ignore the line break
    simply like this, 
    (?s:Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.)      --------- the line break wherever it is found,ignore line break in single command.
    Thanks by,
    John Peter.

    johnp45247251,
    what do you really want to do?
    Like pkahrel in your other thread Find Grep And Ignore the line break said:
    pkahrel schrieb:
    You're a moving target: you change your question in each post. Do yourself a favour and go and read up on GREP.
    johnp45247251, one question:
    Could it be possible, that you doesn't understand correctly, how Grep really works?
    <edit by pixxxel schubser>
    Furthermore your example text is different to your screenshot. Your text is:
    »Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    And your screenshot shows:
    »Xereptatiuriaque\n alique volo\n eium qui dolupid ut \rvoluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    Normally the text should look like this:
    »Xereptatiuriaque\nalique volo\neium qui dolupid ut\rvoluptatiam earum\nsaestorepel iuscit im quas et\nmodisimodit.«
    Please explain what do you really want to do and exactly if additional spaces are exists or not!
    Could it be:
    you have a text with paragraphs and with many line breaks in that paragraph and there are no spaces exists before or after your line breaks. And is your destination to remove all the line breaks from your text?
    </edit by pixxxel schubser>
    Then the way is not to find the text completly and to ignore the line breaks – the way is to find the line breaks and replace with a space, e.g. like that:
    find:
    \n
    replace with:
    \s
    (change all)
    Regards
    pixxxel schubser

Maybe you are looking for

  • Remote desktop and smart cards

    I frequently work from home using my mac to access my windows based desktop at the office. I use the microsoft remote desktop v. 1.0.3. for MAC. Now that my agency is moving to smart card identification requirements for access I need to be able to us

  • Can't export to tape...HELP PLEASE

    Hi, I can't seem to export my sequence to tape on my Sony DCR-PC8E PAL camcorder. I select select File -> export -> export to tape It says it is ready; starts the camera recording automatically; but the camcorder screen remains blue and no signal is

  • Best way to connect iPod to Shelf Stereo

    I have a shelf stereo that has a simple 3.5mm Audio In (like in car stereos). Would it be better to connect my iPod to the stereo via a cable that had two 3.5 mm connectors OR one 3.5 mm connector on one end and a iPod dock connector on the other end

  • Where is the 27-inch iMac with Retina 5K display built?

    Is this computer built in the United States or somewhere else like China?

  • Bind Dynamic Table To a Context Node

    Hello, I created an internal dynamic Table. I want to show this table in an ALV-Table. So I want to bind it to a context node. I create the context node attributes by this: lr_node_info ?= lo_nd_template_exp->get_node_info( ). *Type of table type and