How can one keep a history of PL/SQL code changes?

Hello All,
I am trying to execute the following code found at
http://www.orafaq.com/faqplsql.htm#HIST
CREATE OR REPLACE TRIGGER change_hist -- Store code in hist table
AFTER CREATE ON OPERADWOWNER.SCHEMA -- Change SCOTT to your schema name
DECLARE
BEGIN
if DICTIONARY_OBJ_TYPE in ('PROCEDURE', 'FUNCTION',
'PACKAGE', 'PACKAGE BODY', 'TYPE') then
-- Store old code in SOURCE_HIST table
INSERT INTO SOURCE_HIST
SELECT sysdate, user_source.* FROM USER_SOURCE
WHERE TYPE = DICTIONARY_OBJ_TYPE
AND NAME = DICTIONARY_OBJ_NAME;
end if;
EXCEPTION
WHEN OTHERS THEN
raise_application_error(-20000, SQLERRM);
END;
It is giving the error
6/14 PL/SQL: SQL Statement ignored
9/31 PL/SQL: ORA-00904: "DICTIONARY_OBJ_NAME": invalid identifier
I want to understand what is DICTIONARY_OBJ_NAME in the above given code.
Regards

It's supposed to be ora_dict_obj_type. This is one of many event attributes that we can interrogate in DDL triggers. You can find out more in the online docs.
Cheers, APC

Similar Messages

  • How can I keep the history of my dialed and received calls for one or two weeks on my iPhone 5?

    How can I keep my history for my dialed and received calls on my iPhone 5?

    The only thing is, I have read where it will only keep 100 entries at tops. I'm not sure as I have never let it get that high, however many business users have reported this.
    OP, how much history are you talking about keeping? Also, there is no method to archive this in any fashion to be looked at or searched at a later date.

  • How can I keep Dreamweaver from re-writing my code?

    How can you stabilize your code so Dreamweaver leaves it as
    you wrote it? I get it right, then dreamweaver rewrites it wrong. I
    fix it, then dreamweaver 'fixes' it and it's wrong again. I've done
    this over and over and can't get the code I wrote to stick.

    That would sure be the ticket.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:[email protected]...
    >I think your original code is invalid. You start a form
    inside a table cell
    >(<td>) but your form closing tag (</form>) is
    outside that table cell. I
    >don't believe that is allowed. DW is merely moving the
    misplaced (</form>.
    >
    > --
    >
    > Walt
    >
    >
    > "moabyte" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> Thank you all for replying! I can't keep Dreamweaver
    from putting in
    >> small
    >> changes that make a cgi form quit working. It works
    in the 'before'
    >> stage,
    >> below, but doesn't work either after sending to
    remote server, or maybe
    >> it's
    >> after closing Dreamweaver and reopening. It has
    happened numerous times
    >> and for
    >> a while I thought I was crazy, but finally I
    realized Dreamweaver is
    >> doing
    >> this. When I reopen the document, it has changes as
    'after' below.
    >>
    >> Under 'code rewriting' in Preferences, the "never
    rewrite code' option is
    >> grayed out. Is that the spot where you turn it off
    or is it somewhere
    >> else?
    >>
    >> You can view the 'finished' page, but with cgi form
    that doesn't work
    >> (because
    >> I can't get Dreamweaver to leave it alone) here:
    >>
    http://www.slickrock.com/adventureisland.html
    >>
    >> Many Many thanks.
    >>
    >>
    >>
    >> Before:
    >>
    >> <table border="0" width="212"
    class="datestable">
    >> <tr>
    >> <th colspan="2" scope="col"><div
    align="center">Get Belize
    >> Travel
    >> Specials</div></th>
    >> </tr>
    >> <tr class="alternate">
    >> <td colspan="2"><p align="center"
    >> class="datestablebold">$50-off
    >> coupon in every
    >> newsletter! We notify you as soon as we put a trip
    on
    >> sale</p></td>
    >> </tr>
    >> <tr class="alternate">
    >> <td><p>E-Mail
    Address</p></td>
    >> <td><!--text to make a form work-->
    >> <form name="formmail"
    action="/cgi-bin/formmail/formmail.cgi"
    >> method="post" >
    >> <input type=hidden name="recipient"
    >> value="[email protected]" >
    >> <input type=hidden name= "subject"
    value="Specials Sign-up from
    >> the
    >> Adventure Island page" >
    >> <!--end of top of form-->
    >> <p>
    >> <input type="text" name="email" value="E-Mail
    Address"
    >> onfocus="this.value=''" size="16" >
    >> </p>
    >> </td>
    >>
    >> </tr>
    >>
    >> <tr class="alternate">
    >> <td><p>First/Last
    Name</p></td>
    >> <td><input type="text" name="Name"
    value="First and Last Name"
    >> onfocus="this.value=''" size="16"> </td>
    >> </tr>
    >>
    >> <tr class="alternate">
    >> <td></td>
    >> <td><input type="submit" name="Submit"
    value="Sign up!">
    >> <!--text end of form-->
    >> <input type="hidden" name="redirect"
    >> value="
    http://www.slickrock.com/thankyouspecial.htm"></form>
    >> <!--text end of form end--> </td>
    >> </tr>
    >> </table>
    >>
    >>
    >> After:
    >> <table border="0" width="212"
    class="datestable">
    >> <tr>
    >> <th colspan="2" scope="col"><div
    align="center">Get Belize Travel
    >> Specials</div></th>
    >> </tr>
    >> <tr class="alternate">
    >> <td colspan="2"><p align="center"
    class="datestablebold">$50-off
    >> coupon
    >> in every
    >> newsletter! We notify you as soon as we put a trip
    on
    >> sale</p></td>
    >> </tr>
    >> <tr class="alternate">
    >> <td><p>E-Mail
    Address</p></td>
    >> <td><!--text to make a form work-->
    >> <form name="formmail"
    action="/cgi-bin/formmail/formmail.cgi"
    >> method="post" >
    >> <input type=hidden name="recipient"
    >> value="[email protected]" />
    >> <input type=hidden name= "subject"
    value="Specials Sign-up
    >> from
    >> the Adventure Island page" />
    >> <!--end of top of form-->
    >> <p>
    >> <input type="text" name="email" value="E-Mail
    Address"
    >> onfocus="this.value=''" size="16" />
    >> </p>
    >> </form></td>
    >> </tr>
    >> <tr class="alternate">
    >> <td><p>First/Last
    Name</p></td>
    >> <td><input type="text" name="Name"
    value="First and Last Name"
    >> onfocus="this.value=''" size="16" /> </td>
    >> </tr>
    >> <tr class="alternate">
    >> <td></td>
    >> <td><input type="submit" name="Submit"
    value="Sign up!" />
    >> <!--text end of form-->
    >> <input type="hidden" name="redirect"
    >> value="
    http://www.slickrock.com/thankyouspecial.htm"
    />
    >> <!--text end of form end--> </td>
    >> </tr>
    >> </table>
    >>
    >
    >

  • I've selected "remember history", yet Firefox keeps deleting it. How can I keep my history? Thanks

    Version 3.6.8 running on a laptop with Win XP Home. Don't know what else to tell you.

    You can also check the settings in some of the extensions to make sure that they are not causing it.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How can I keep Tuvalo or other invasive sites from changing my homepage?

    Why can't Firefox add a simple opt-out question or password-protection for changing the homepage?
    "X is trying to change your homepage to X.com. Allow? Y/N"
    After you add that, add: "Permanently block access by X.com. Y/N"

    Websites do not have permission to change your home page. If you find it is getting switched, consider the possibility that you've somehow installed a rogue extension.
    Try this:
    Disable ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable. (Or if it's clearly badware, remove.)
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that let you restore your home page?
    A few related issues:
    (1) If there is no remove button for an extension, visit the Windows Control Panel. In Windows Vista-7, the relevant dialog is "Uninstall a Program"; not sure what it is called in Windows 8.1. Clicking the "Installed on" column heading will sort by date and help uncover possible bundled items that you didn't know were being installed. Remove all the crap you can. (If you find anything named Search Protect or BrowserSafeguard, remove it.)
    (2) Third party software can create a file named user.js that Firefox reads at startup and which will override your saved settings from your previous session. This article describes how to track down and remove that file if you have one: [[How to fix preferences that won't save]].
    (3) Some utilities such as Advanced SystemCare have a feature to roll back your settings changes, which can lock in unwanted settings. Theirs is called Surfing Protection. If you have that or a similar Homepage Protection (etc.) setting preventing you from making desired changes, turn it off temporarily (or permanently).
    (4) To mop up unwanted software, try the scanners other Firefox users have found helpful in this article: [[Troubleshoot Firefox issues caused by malware]].
    Hopefully that will tame it.

  • How can one edit a .gif file graphics background and change the fonts in Photoshop Elements 13?

    I am trying to change the color and fonts of some of my web sites .gif files. Can I change the color to another hexadecimal color and change the fonts of the letters in Photoshop 13? I am using Windows 7 and heard that you could save the .gif file to another format, edit it, then change the file back to a .gif file. Is this true? If so, how do you do it? The file just has a solid color with the letters "Firm " on it. No animation.

    You can edit a gif without changing the format, but once you save the file as a gif the text becomes part of the image, not text anymore, so you would need to clone or heal away the existing text and then create a new text layer and use save for web to create a new gif.
    For access to the most editing tools, while the file is open in the editor go to image>mode and change it from index color to RGB. Saving as a gif will change it back to index mode.

  • On a page change, GIFs in the orignating page stop animating - how can I keep them animating until the page actually changes?

    On some pages in my application I put up a mask and a loading dialog when changing page. This dialog has a GIF as a background image as a loading/waiting indicator. This GIF plays one or two frames and stops when the pages begins its redirection to the target page.
    Page change initiated using javascript: location.href ...
    FF 19 MAC OSX

    You can render the ebook on an instructional application called Zankura. Not only can you control the screen scrolling, but all the students can freely annotate with their stylus. www.zankura.com.

  • How can I keep the leading zero in zip codes from disappearing in Numbers spreadsheet?

    I have a spreadsheet with addresses, and the leading 0 of the zip codes (thanks New Jersey) keeps disappearing... How do I correct this?

    Penny,
    It's easy for 5-digit ZIP codes to use the Number System format. Set to Base 10 and 5 places. Part of the goodness of this approach is that if you have already lost the zeros to the Automatic Format, this will reconstitute them.
    ZIP 5 plus 4 codes are not a problem because the dash in the middle causes a default to Text.
    Jerry

  • Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.

    Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.
    Is there any way to re-number them in the order I have chosen so that they can then be sorted by number? The scans are all from pre-digital images that I wish to move to a photobook and I don't want to have to organise them twice!
    Thanks for any suggestions.

    I was a bit short, Chris, sorry. It is limited, what can be posted, when typing on an iPad.
    Now I am back on my Mac. I meant the following:  Batch Change the date for a large range of photos, that should have a date stepped in increments.
    Select all Photos at once and use the command "Photos > Batch Change".
    Then set the date for the first photo and select an increment, e.g. one minute.
    Now all photos will get a new date assigned, incremented by one minute, in the sequence you have selected. So you will be able to sort them by date.  This way it will be unnecessary to change the titles or filenames.

  • I plan to loan my iPod Touch to a friend for one month to use in Europe.  How can I keep my iTunes account private, but enable him to create his own iTunes account to use on my iPod Touch?

    I plan to loan my iPod Touch to a friend here in the USA for one month to use on his trip to Europe.  How can I keep my iTunes content and my account private, but enable him to create his own iTunes account to use on my iPod Touch?  Also, do I need to de-register my iPod Touch for all of this to happen--and have him register my iPod Touch in his name for that month he is using it in Europe?

    very_nice wrote:
    The suggested advice in this support article http://support.apple.com/kb/HT1478 wasn't a help at all, because the option "enable disc use" in the summary window of itunes doesn't appear.
    *From the article*:
    Products Affected
    iTunes 7 for Mac, iTunes 7 for Windows, iPod nano, iPod shuffle, iPod mini, iPod, iTunes 8 for >Windows, iTunes 8 for Mac
    No mention of the Touch, it works differently from other iPods and has no "disk mode" as such.
    I think it can be used as a storage device by using a 3rd party App, search the the App Store for such items.
    Photos transferred to your Touch via iTunes will be of severely compromised quality i.e 640x480 pixel resolution and file size around 600-700 kb. These can be retrieved, again using a 3rd party application on your computer, such as [Touch Copy|http://www.wideanglesoftware.com/touchcopy> but you will not get back original quality images.
    Good luck,
    Dud.

  • I have 2 iphones and a macbook on one mobile me account.  How can I keep mail in the macbook and one iphone private from the other iphone?

    I have an iPhone 3G, an iPhone 3GS, and a MacBook on one macmail and mobile me account.  How can I keep mail on the MacBook and iPhone 3 private from the iPhone 3GS?

    Pretty much. I don't understand why you need to worry about MobileMe, though. I'd guess the vast majority of us with iDevices don't have MobileMe accounts at all. That's pretty much why it failed.

  • I couldn't find the "Reload Page" icon and went to "Customize" found it and moved it to the top tool bar but when I clicked "Done" it dissapeared. It won't stay visible. How can I keep it there for my use?

    I have V6 of Firefox and never had to worry about the "Reload Page" icon before so when I upgraded to V6 I was sorry to see that it was gone. Also the "Page Back" arrow isn't lit up and won't work. I have to go to the history and go back using that.. what happened to the back arrow? Now there are 2 clicks instead of one?
    I went to the "customize Toolbar" and moved the "reload Page" icon back to the top and it disappeared when I was done. How can I keep the "Reload Page" visible and useful?

    You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).<br />
    If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.<br />
    You only see the Bookmarks menu button if the Menu bar is hidden.

  • My computer with my original library has crashed, how can i keep all the songs on my iphone, but still add new songs from my new library?

    My computer has died and will not be working ever again. Problem is, i have all of my songs on that computer in my itunes library as well as on my phone. Now i want to add some songs to my phone from some new cds and it tells me i will loose all my songs on my phone right now when i perform the sync. How can i keep all of the songs on my iphone because now i do not have copies of these songs anymore except on my iphone?????? From what i have read, itunes is a joke because it only goes one way apparently. Not happy with itunes right now, more then a bit of a joke

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.  Use your backup copy of your computer to put everything on the new one.
    If for some reason you have failed to backup, big mistake, then you can transfer itunes purchases from the iphone to the computer:  File>Transfer Purchases
    You may be able to buy a 3rd party program to get any other music off of the iphone ( not supported by Apple).
    When you sync the iphone, it will erase the current content and replace with content form the new computer.
    "Not happy with itunes right now, more then a bit of a joke"
    Not itunes fault that you did not do the very basics and maintain a backup copy.

  • HT204053 I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    ColleenMcG wrote:
    You can continue to share the same iTunes account ID with your daughter and set up a separate iCloud account with a different ID.
    => is this a different iCloud account for each device?  I thought iCloud account ID had to match some iTunes account ID, for which we only have one i Tunes account?
    You need to set up a separate iCloud account for each person that does not want to share their iCloud data.  If you share an iCloud account with someone, any data you both sync with the shared account is merged, and you end up with each other's data on your device(s).  If, for example, you owned two devices and someone else in the family also owned two devices, you would both want your own iCloud accounts, and you would each set up your personal iCloud account on the two devices you own.  In other words, you want a separate iCloud account for each person to be used on the devices they own.  Each iCloud account has to have a separate Apple ID.  The ID does not need to be the same as the ID used for iTunes.  Many families perfer to share the same iTunes account/ID, but maintain separate iCloud accounts with different IDs to keep there data separated.
    ColleenMcG wrote:
    It does not need to be the same as the ID used for iCloud.
    => what ID, iTunes?  So I can have a separate iCloud account "only" ID which I also assume must be some [valid] email address?  The children currently do not have email accounts anywhere.
    Yes, I was referring to the iTunes ID not needing to be the same as the ID used for iCloud.  In order to set up an Apple ID your children will need to have a valid email address that can be verified by Apple.  Apple requires this so they have a way of contacting the owner if there is a problem with the account, such as when you may need to reset the password on the account.  When you set up the ID, Apple will send a verification email to this email account and you will need to click on the verificating link in the email to complete the process.  If they don't currently have an email account you can just set one up with gmail or another free email hosting service.  They don't have to use the account but you will need it to set up the ID.

  • My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps?

    My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps? I'm worried that I won't have any ability to access my apps and music. We have our itunes separated on different computers, so I have all of my stuff separated from his, but I don't know how to put them in my new account.

    Well... there really isn't any fully legal way to do this.
    The simplest solution is to continue sharing the same iTunes purchasing acct, but create different ones for iCloud (assuming that's why you needed to do the split).
    Slightly less kosher: Burn AUDIO CD's, of the music then copy them back to your new account.
    BE sure to do this from original acount, To keep the music info, you'll  copy over the CDDB file (in prefs somewhere) - since this maintains the data of CDs that you've had in library.... (it isn't carried over onto a user created CD.)
    There's also

Maybe you are looking for