Referencing TRIGGER_BODY text from DBA_TRIGGERS

Running 11.2.0.1.0
In PL/SQL I want to select data from DBA_TRIGGERS dependent on the contents of the TRIGGER_BODY.
i.e.
select * from dba_triggers where trigger_body like '%XXX%'
Executing the above gets:
SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got LONG
trigger_body is defined as a long.
If I just execute "SELECT * from DBA_TRIGGERS" I can see the trigger_body data as text.
I have tried the below but they all fail with data type errors:
select utl_raw.cast_to_varchar2(trigger_body, 1, 10) from DBA_TRIGGERS
select utl_raw.cast_to_varchar2(dbms_lob.substr( trigger_body, 32000, 1 )) from DBA_TRIGGERS
Is what I want to do possible?
thanks for any help on this.

In reply to Karthick_Arp...
"select to_lob(trigger_body) from dba_triggers" gives me:
Error starting at line 124 in command:
select to_lob(trigger_body) from dba_triggers
Error at Command Line:124 Column:8
Error report:
SQL Error: ORA-00932: inconsistent datatypes: expected - got LONG
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:   
*Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • ID CS4 slow after pasting text from MS Word

    Each time I paste text from a Word document into my ID CS4 document, ID begins to run very slowly. I can't even type properly. Has anyone else seen this?
    I have fixed this problem by copying all the text and pasting in the a new document (I thought the document was possibly corrupted). This fixed the problem, but it has happened multiple times now. Much of my information comes from engineers' word documents, so this is not convenient.

    The best I can tell, it is related to the cross references, and that it happened after pasting was coincedental. It could have been that pasting made a cross referenced section move to another page, so it was trying to update.
    The cross references are a little buggy:
    EVERY time I create a cross ref from the cross ref menu (in the cross ref window), ID CS4 (with all patches) crashes. If I create them from the Text menu (at the top), it doesn't crash.
    If you have a large number of cross refs in a doc, it becomes slow.
    When slowness occurs, I have found that updating the cross refs and then resolving all errors in the cross ref window usually clears it up.

  • I received a text from a friend that she didn't send. Is there an explanation for this?

    So I was texting my friend, we both have iPhones and are both using iMessage to text each other. We got into a rather personal conversation (not that important). But in the middle of the conversation I received a text message (SMS) instead of an iMessage which we'd both been using, but then immediately back to iMessage, so I thought nothing of it. Then later it happened again, I got another text message in the middle of our iMessage conversation, and then back to iMessage. Although this time it was a strange question to which I inquired about and my friend was confused as to what I was talking about. I screenshotted the text message I received in the middle of OUR iMessage conversation and sent it to her. She said "I never sent that" and was adamant about it. I believe her, although I am not by any means ruling out that she lied to me. All the text messages came from the same number that I've always texted from previous phones and iMessage'd since we've had out iPhones. What makes me both scared (and suspicious of my friend in a way) is that in the text messages I got, they referenced the very personal conversation that her and I were having through iMessage. She swears by god that she neither told anybody about our conversation, nor let anybody see her phone. Is there a legitimate explanation for what has occurred? It has made me very paranoid as to the fact that either she lied to me, or perhaps to the even more frightening fact that our conversation is being watched and apparently intervened into by an unknown stranger, by which an explanation may help. However unlikely that is, I will not rule it out. Technology has come far and can do many things. Any insight/feedback as to a possible explanation or anything to ease my stress and paranoia would be greatly appreciated. Keep in mind, the messages I got that are in question are from her phone number, not her iMessage/apple ID address/email address. She swears she did not send then, which I trust, but they came from her phone number.
    <Email Edited by Host>

    Gave me a URL on Apple.ie...
    What was that URL? Don't post the whole thing; just the part between the double // and the first single / or ? character. For example, if it was
    http://something.apple.ie.something/blahblah
    or
    http://something.apple.ie.something?blah=blahblah
    then just post
    something.apple.ie.something

  • Dunning Proposal - Accounting Text from vendor Master

    Hi,
    In F150, if you click on the change button, it will take you to Dunning proposal and on the selection screen, you have a check point Check Account long text and Check Document Long Text..
    1. What is the difference between the two?
    2. When you execute this Dunning Proposal, again you get a button for Change Texts, from where the texts can be maintained for each Vendor.. The requirement is to have the text displayed in the output report of Dunning Proposal against each vendor.. How is that possible? I changed Variant to bring in the field Text but it shows blank.
    Regards,
    SAPFICO
    Edited by: SAPFICO on Apr 4, 2011 12:18 PM

    Hi All,
    Any Pointers???
    Regards,
    SAPFICO
    Edited by: SAPFICO on Apr 8, 2011 7:22 AM

  • I made my own apple id because my family was getting my texts from other people. I want to add my device to my dads find my iphone app on his icloud but can't figure out how, without having to log in to his apple id on my phone. how do i add my device?

    I made my own Apple ID because when I was logged into my dad's my family was receiving my texts from other people. I want to add my device to my dad's "find my iphone" app but without signing into his Apple ID on my phone because that was causing them to get my texts. I was told by Apple I could add my device to his by signing into icloud.com but there is no option that I can find to add my device. And I don't want to log back in to his.. Any ideas???

    Also when I apply the safety copy it only imports the app the phones have had in common, so none of the apps that only the iPhone 4 had doesn't come in, only the ones I and the iPhone 4 has had in common. So you say the only way I can use the Apple ID to download on the old iPhone 4 is if I delete the apps that are in the phone and then download them again? How will that change the ID to download/update from. Won't it still have mine to update/download from?

  • My phone has been smashed I need to get records of all my iMessages and texts from the last month. How do I get these?

    My phone has been smashed I need to get records of all my iMessages and texts from the last month. How do I get these?

    Do you have a backup of your iPhone which contains these messages?
    If so, you can restore a new iPhone from that backup during setup.
    If not, the messages are gone.

  • When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified

    When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?

    settings -> iTunes & App Store
    click on apple ID listed there
    select Sign Out
    sign in with the proper account
    from then on, when the store ask for your password it should be with the correct ID

  • I switched from an iPhone to a Droid and can't receive texts from iPhones now, help?

    I switched from my iPhone 4s to a Droid and I do not have that phone anymore. I can not recieve texts from anyone with an iPhone and can not get in contact with my girlfriend or siblings now. I think their phones are trying to send their texts as iMessages to my phone that does not recieve iMessages. How can I just delete my Apple account and recieve texts again?

    Sounds like you didn't turn of iMessage on your iPhone before making the switch.  If you registered your iPhone with Apple using a support profile, try going to https://supportprofile.apple.com/MySupportProfile.do and unregistering it.  Also, try changing the password associated with the Apple ID that you were using for iMessage.

  • Select text from all_views returns an empty string

    My application allows the user to select between the Data Provider for ODBC and the Data Provider for Oracle. (ODP)
    When using the ODBC provider the statement:
    Select text from all_views where view_name='MYVIEW'
    returns the expected string.
    If I connect via ODP however it returns an empty string.
    (If I use 'Select *' it tells me the text_length is 154 in this specific case - so there is definately text available.)
    I'm thinking it has something to do with the fact that the data type is LONG.
    In both cases I retreive the data using rdr.GetChars(), which should work.
    If I use the dbms_metadata.get_ddl function instead, it does return the string (Probably because the return type is not LONG)
    Unfortunately that function only works for Views in the current schema, while the original Select works for any view.
    (And I dont know what version of Oracle this function was added in - I have to support older versions too.)
    Similarly, if I use one of the XML functions to retreive the text as XML it works fine.
    (Again it is probably returned as a VARCHAR2 instead of a LONG.)
    The strange thing is that when I created my own table containing a LONG column I was able to load and retreive data without any problems.
    The problem appears to be specific to this column in all_views.
    Anyone know a solution to this?
    Thanks
    Mike

    Thanks that was it.
    I had not seen those properties since I am working with the 'generic' objects (DbCommand rather than OracleCommand, etc.)
    What is strange is that I was able to retreive data from my own LONG column WITHOUT setting this value to -1.
    (It defaulted to 0 in both cases.)
    The only difference was that when I retreived data from my own column I specified CommandBehaviour.SequentialAccess.
    When I retreived the all_views.text column I did not specify a behaviour at all.
    However the Oracle docs said that SequentialAccess is not supported ... so I guess that is not correct.
    (Maybe it doesn't 'work', but it certainly seems to cause things to work differently)
    Thanks
    Mike

  • Only receive texts from certain numbers

    Aside from having the absolute worst customer support of the various phone services I've used ( I was seriously on the phone for 45 minutes trying various ways to get through the machine to get to a customer service rep. Continuously said, "Sorry we couldn't help you, goodbye." or, "We couldn't connect your call". ) I can no longer receive texts from certain numbers.
    I can send texts and people receive them. I can receive texts back from some of these people, however when others try to text me it goes instead to a random person. (Which seems to be the same person their texts are getting forwarded to each time. )
    I've turned off the call forwarding with *73, I've updated my software, I've TRIED to get in touch with a customer service representative about my account, but that's seemingly impossible.
    Offer me a suggestion or don't. This is my last month with Verizon no matter what. Inconvenience on top of inconvenience on top of inconvenience.

        Having text message work properly is very important. I'm sorry you are having so many issues with your service and that you have not been able to contact customer service. You can reach us at *611 or 1-800-922-0204 and hit 0 to speak to a representative. You can also send us a private message with your name and phone number so that we can call you and take a look at the account in detail. What phone do you have and are you using a 3rd party text messaging application?
    KinquanaH_VZW
    Follow us on Twitter @vzwsupport

  • Not receiving texts from iPhone contacts when I'm not connected to wifi or cell data. I can't send and receive regular SMS texts with non iMessage users but iMessage users message are not being converted to text when I don't have internet connect

    I can send and receive to any non iPhone user. I can send a message as a text to an iPhone user but if I'm not connected to cellular data or wifi I do not receive messages from iPhone contacts. From what I understand these message should automatically send to me as texts instead of iMessages but since the update it's not functioning properly. Please help. I've tried turning iMessage off and I still don't receive the messages until after I reconnect to wifi.

    I have the same problem! Before the upgrade, if I wasn't connected to the internet, any messages sent to me from an iphone would convert automatically to a text message. I have payg tarriff, so I turn cell data off, as it costs too much to use it. I have wifi at home and work, but if I'm out and about, I don't receive texts from iphone users until I'm on wifi. I get them ok from non iphone users. There was never any problem until ios7

  • IPhone 5 not getting all texts from Galaxy S6

    My girlfriend is having a problem not getting all of my texts. As far as we know, it is only happening to texts from my phone. They are showing as sent on the Galaxy S6, but do not show up, ever, on her iPhone 5. The missing messages are random. 

    Hi there
    I’m sorry to hear that there have been some issues with receiving texts. I’d be happy to look into this for you! Can you please send me a private message by Clicking Here and include the following information?
    Full name
    Cell number
    Recipient’s number
    Best time to call
    Thanks,
    Charise
     

  • On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else on top of it.

    On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else over the top of it. Some pages will run text and pictures together, like a car rear-ending another or a train pile up. Other pages will cut an image or text short, i.e. it will display a portion of the top of the image or text but not the rest. This happens on Amazon for example, the section where it says "Customers who looked at this also looked at" will allow only a certain amount of the upper portion of the description immediately below the picture of the product but below that section everything is fine until I get to another section displaying more products and their descriptions and then it cuts the bottom portions off again. I've noticed this behavior mostly in the sections with product photos, the text sections seem okay. YouTube also displays this behavior. It's even doing it on this page right now. Below this box I can read "The more information you can provide the better chance your question will be answered " , but directly below that in the next sentence I can see the start of it with "Troublshootin" and the "Automatically Add" in a green field covering the "g". The next clear text is "A window will open in the top corner. Click Allow, and then click Install. If the automated way doesn't work, try these manual steps." I tried turning of pre-fetching, clearing history, cookies, and cache, scanning for malware with Avast and Windows Defender all to no avail. It began when I upgraded from dial up to DSL via AT&T Uverse. I have a Motorola NVG510 modem. The modem was replaced an hour ago along with new dedicated lines and DSL/Phone splitter from the box by an AT&T technician to make sure my incoming lines were up to par. He ran a connection test and verified everything is up to standards. IE does not display this behavior. I am running Firefox20.0.1 and all previous versions have acted the same way since I upgraded to DSL about 3 months ago.

    If you have increased the minimum font size then try the default setting "none" in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with text not being displayed properly.
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • How to read text from a web page

    I want to read text from a web page. Can any body tell me how to do it.

    Ok i tell you detail. visit the site " http://seriouswheels.com/" you will a index from A to Z which are basically car name index i want to read each page get car name and its model and store it in data base. I you can provide me the code i will be very thankful.

  • How to select text from a webpage

    hi. i have firefox for my n900. i would like to know how to select some text from a webpage so i can copy and paste it. thanks for the help. i couldn't it anywhere.

    First tap where you want the selection to start. (It might help to zoom in as far as possible first. You can do this using the volume buttons in the newly-released Firefox 1.1rc1.) Then hold the Shift key while pressing the arrow keys on the N900 keyboard to select text.
    Note: We are aware that this is not a very user-friendly way to select text, and we hope to include a better design in a future version of mobile Firefox.

Maybe you are looking for