Is there a way to clear the content stored in dbms_error_code

Hi everybody,
Here is my situation. I'm doing an application in forms 6.i. There's an ON-ERROR trigger defined at form level which calls a procedure programmed to treat errors. Inside this procedure I issue a message like "record is being used by another user" when I get the -54 dbms_error_code.
So far, so good. The problem is when I test the lock. I do a select for update nowait to lock a record (at sql*plus) and then I try to update this record (in forms). The exception is raised just fine. But when I returned to sql*plus and issue a rollback to end the transaction and go to forms and try to continue with the operation, I succeed, the record is recorded in the database but i get the error message "record is being used by another user". This happens always in the commit line of my code and I know that it passes through ON-ERROR and issue the message.
I know that it's because of the last error that ocurred (-54 lock). So i was wondering if there is a way of clearing this last error. Please, anyone can help me?
Thanks anyway.

The On-error trigger gets raised for lots of different reasons. Only a few of these are caused by database errors, and ONLY THEN should you check dbms_error_code.
<p>When you get any other errors, ones caused by doing something wrong within the form processing, On-Error runs, but dbms_error_code is not changed. So you should not check it.
<p>EVERY time on-error runs, you should check Error_Code, and only with certain values should you check DBMS_Error_Text. Here is an on-error trigger I use:
<p>Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011

Similar Messages

  • Is there a way to list the contents of a particular directory?

    Hi,
    I'm creating the blue-print of a new iPad app and was wondering if there was a way to request the contents of a particular directory (eithre local to the device or a a particular directory on the web) and also get the "type" of each item.
    For example if inside a directory "Directory1" and inside that directory I have 4 files and another directory, (file1.gif, file2.txt, file3.mov, file4.mp3, Directory2)
    Is there a way to request the contents of Directory1 and the type of files they are?
    The ideal thing will be to get a recursive request and get an array of contents of all directories inside a particular directory.
    something like:
    Directory1[file1a.gif,file1b.txt,file1c.mov,file1d.mp3,[Directory2[file2b.mov,fi le2b.mp3]]]
    What I want is to create a navigation for the user based on the resultant strign.
    Am I re-inventing the wheel here?
    Any direction will be greatly appreciated. I rather adjust blue-print now based on what is possible.
    Thanks!

    We are users here. You might have better luck going to the developers forum.
    http://developer.apple.com/devforums/
    There are also links on that page that may help too.

  • Is there a way to clear the shell

    hi there,
    i am programming a game. since now i want to output the gameloop data with a shell.
    is there some way of clearing the shell?
    i would like to clear the shell and then output the data onto an emty shell?
    thx

    Why not just create another JFrame and add a JTextArea to that and then output all your game data there instead.
    Otherwise you'll need to possible send an escape code of some kind to the shell (depending on what terminal it is emulating) or simply output 25 (or more) empty lines.

  • Is there a way to view the content of my iCloud backup on a computer

    The back up to iCloud was from an iPhone 4 on IOS 6 (this was the IOS that the phone was on when it did a back up, before it was updated to IOS 7.1.2) , and I can see within iCloud drive that the back up is there, but is there a way to view the content of that back up like the pictures for the most part.

    No. The only way to see it is to restore the backup to an iOS device.

  • Is there a way to compare the contents of a library by comparing itl files or some other files?

    Is there a way to compare the contents of a library by comparing itl files or some other files?
    I need to compare the contents of my current library to one that existed 2 months ago but ALL I have is the itl file from 2 months ago.  Can this be done?

    You are correct, many people have noticed over the years that Sound Check does not work as advertised.
    A more effective approach is to treat the files with a 3rd party volume normalization program. Although I have not personally used it, many users on this Forum have reported good results from an inexpensive program called iVolume.

  • Is there a way to clear the cache on iPhone 4?

    Is there a way to clear the cache on iPhone 4?  Seems to be a bit slow checking for e-mail, etc., lately.

    Thank you for the info!!!!  I did go in and delete cookies and history, the only 2 options available.  Whether it helps or not, still a good thing to do once in a while, I would imagine.  Thanks so much!!!

  • Is there a way to bind the content of a ListProperty?

    Hi,
    Is there an existing way to bind the content of a ListProperty?  Consider the following:
    private final ListProperty<Worker<?>> workers = new SimpleListProperty<>(FXCollections.observableArrayList());
        public ListProperty<Worker<?>> workersProperty() {return workers;}
        public ObservableList<Worker<?>> getWorkers() {return workers.get();}
        public void setWorkers(ObservableList<Worker<?>> workers) {this.workers.set(workers);}
        private final ObservableList<Worker<?>> stateWatchedWorkers = FXCollections.observableArrayList(
                new Callback<Worker<?>, Observable[]>() {
                    @Override
                    public Observable[] call(final Worker<?> param) {
                        return new Observable[]{
                                param.stateProperty()
    What I want to do is bind the content of the stateWatchedWorkers list to workers.  If the entire workers list is replaced, I want stateWatchedWorkers to be updated to match the content of the new list.  Put another way, I want the stateWatchedWorkers list to be mapped to the current list being held by the workers property.

    James_D answered this on StackOverflow.  Using Bindings.bindContent(target, listProperty) is all that's needed.  It "just works".  Here's a code example to show how it works:
    import javafx.beans.Observable;
    import javafx.beans.binding.Bindings;
    import javafx.beans.property.*;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener;
    import javafx.collections.ObservableList;
    import javafx.util.Callback;
    public class ListPropertyContentBinding {
    /* This is a quick test to see how ListProperty notifies about list changes
    * when the entire list is swapped.
    * Conclusion: When the backing list is changed, ListProperty will perform
    * notification indicating that all items from the original list were
    * removed and that all items from the updated (new) list were added.
    ObservableList<Person> oldPeople = FXCollections.observableArrayList();
    ObservableList<Person> newPeople = FXCollections.observableArrayList();
    // A list property that is used to hold and swap the lists.
    ListProperty<Person> people = new SimpleListProperty<>(oldPeople);
    // A list that includes an extractor.  This list will be bound to people and
    // is expected to additionally notify whenever the name of a person in the
    // list changes.
    ObservableList<Person> nameWatchedPeople = FXCollections.observableArrayList(
            new Callback<Person, Observable[]>() {
                @Override
                public Observable[] call(final Person person) {
                    return new Observable[]{
                            person.name
    public ListPropertyContentBinding() {
        Bindings.bindContent(nameWatchedPeople, people);
        nameWatchedPeople.addListener((ListChangeListener<Person>) change -> {
            while (change.next()) {
                System.out.println("    " + change.toString());
        Person john = new Person("john");
        System.out.println("Adding john to oldPeople. Expect 1 change.");
        oldPeople.add(john);
        System.out.println("Changing john's name to joe. Expect 1 change.");
        john.name.set("joe");
        Person jane = new Person("jane");
        System.out.println("Adding jane to newPeople. Expect 0 changes.");
        newPeople.add(jane);
        System.out.println("Updating people to newPeople. Expect ? changes.");
        people.set(newPeople);
        Person jacob = new Person("jacob");
        System.out.println("Adding jacob to oldPeople. Expect 0 changes.");
        oldPeople.add(jacob);
        System.out.println("Adding jacob to newPeople. Expect 1 change.");
        newPeople.add(jacob);
        System.out.println("Changing jacob's name to jack. Expect 1 change.");
        jacob.name.set("jack");
        System.out.println("Updating people to oldPeople. Expect ? changes.");
        System.out.println(" oldPeople: " + oldPeople.toString());
        System.out.println(" newPeople : " + newPeople.toString());
        people.set(oldPeople);
    public static void main(String[] args) {
        new ListPropertyContentBinding();
    class Person {
        private final StringProperty name = new SimpleStringProperty();
        public Person(String name) {
            this.name.set(name);
        @Override
        public String toString() {
            return name.get();
    ...and the output from running the above.
    Adding john to oldPeople. Expect 1 change.
        { [john] added at 0 }
    Changing john's name to joe. Expect 1 change.
        { updated at range [0, 1) }
    Adding jane to newPeople. Expect 0 changes.
    Updating people to newPeople. Expect ? changes.
        { [joe] removed at 0 }
        { [jane] added at 0 }
    Adding jacob to oldPeople. Expect 0 changes.
    Adding jacob to newPeople. Expect 1 change.
        { [jacob] added at 1 }
    Changing jacob's name to jack. Expect 1 change.
        { updated at range [1, 2) }
    Updating people to oldPeople. Expect ? changes.
    oldPeople: [joe, jack]
    newPeople : [jane, jack]
        { [jane, jack] removed at 0 }
        { [joe, jack] added at 0 }

  • Is there a way to clear the list of "synched items" from phone?

    Please read the list of things I've done so far before responding with basic stuff.
    My iphone 4 was just updated with the latest firmware, 7.1.1. Full backup was done prior to upgrade. Subsequently, everything was wiped from the phone. Restore brought back a limited amount of apps and all pictures, but no music and no video. The Restore process displayed each file that should have been restored, but when completed, no music or videos were. restored. I tried again to restore with the same results. Tried syncing a few time and nothing was transferred.
    Frustrated as ****, I added a song to be synced. That song and only that song was synced. Short of deselecting and reselecting everything that I want on the phone, is there a way to tell the phone that nothing has been synced and to resync everything without verifying if it exists on the phone?

    You will find that by pressing the option key when you are in the File menu, that Duplicate changes to Save As… .

  • Is there an easy way to clear the contents of Download Folder?

    Is there an easier way to clear out files (send to trash) from the downloads folder, other than dragging one by one? The downloads folder closes immediately upon dragging one file out.

    You do not need to invoke Finder to do this. Create a new empty Automator workflow and use the "Run Shell Script" option. Paste in the following....
    mv ~/Downloads/* ~/.Trash
    You can then save the workflow as an application, attach it as a Finder action or add it to the scripts menu, whichever you like better.
    If you would like to bypass the Trash and just completely delete the Downloads folder contents immediately, then paste in this command:
    rm -rf ~/Downloads/*

  • Is there a way to clear the app stores "Not on this iphone" list of previously downloaded apps?

    with the new update there is a way to download all your old apps. however my list is immensly long, and i am looking for a way to clear or reset the list.
    the list im referring to is on my iphone 4, in the app store, under the tab "Updates" and "Not on this Iphone" alot of these apps are old or i have no interest ever downloading again and would prefer to not have them showing

    There are many threads that have recently been posted addressing this matter. Currently iTunes and iOS displays all Apps ever downloaded  and you can't control which ones you would like to delete from that list permanently and which you would like to keep in the Cloud, so to speak.

  • HT2480 Is there a way to clear the calendar invitations from the iPhone invite inbox when the Meeting is accepted by a delegate?

    I am running an Exchange / Outlook 2010 environment with many mobile users accessing email and calendars with iPhones.  Senior Executives have delegated their Calendars to Executive Assistants, who manage them mostly from Outlook.  When Meeting requests arrive for the executives, their assistants Accept, Decline or mark as Tentative as the calendar allows.
    The executives have only their mail account on their iPhone.  The assistants have both their account and the executive's Exchange ActiveSync account on their phones.  When the request is handled and a Send Response Now is submitted, the calendar invitation does not get cleared from the Senior Executive's Calendar invitation inbox, or the Calendar invitation inbox on their assistant's phone (which is to say, the Senior Executive's Calendar, which is a secondary calendar at this point) but it does show up properly on their Calendar.  It seems the cache doesn't know that the request has been handled and does not clear the flag.
    Other than turning off the Calendar, deleting the ActiveSync data and downloading fresh data, is there a way to correct this?  I have tried multiple switches and settings, notifications, etc.  I have even dabbled in Outlook's Rules, since this is where the delegation occurs.  Once a Meeting is accepted, how can it be cleared in the inbox?  This is not a badge, as I've turned off badges.
    It affects not only the iPhone 4 and 5, but also iPads and iPad Minis running iOS 6.0.1 or better.

    I have similar issue.  Sharing calendars in the house hold and when I did it lit up my calendars inbox with 21 messages and no way to clear them. Hope this is fixed in the next iOS release.

  • Is there any way to clear the Update badge from Settings?

    I don't want to update to IOS 5.1. I prefer to keep running 5.0.1 which is runing fine and fast for me. Seems like when I update too much, my i devices end up slowing down to a point where they frustrate me. Best to leave them the way they were when I got them. I'll get 5.1 when I get a new iPad and/or a new iPhone.
    But I'm not fond of staring at this red badge on settings for the next several months. Seems like there should be a way to clear it without having to obey it.

    GeneTucc wrote:
    I don't want to update to IOS 5.1. I prefer to keep running 5.0.1 which is runing fine and fast for me. Seems like when I update too much, my i devices end up slowing down to a point where they frustrate me. Best to leave them the way they were when I got them. I'll get 5.1 when I get a new iPad and/or a new iPhone.
    But I'm not fond of staring at this red badge on settings for the next several months. Seems like there should be a way to clear it without having to obey it.
    You MUST OBEY!! Repeat YOU MUST OBEY, YOU MUST OBEY!

  • Is There a Way to Clear the Screen ???

    I am building a Class that is text (command line) based. Is there anyway to clear the screen (output) in such a class.
    Similar to what CLS does in DOS...

    See my response here:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=317191

  • Is there a way to verify the contents of my Vault?

    I have recently attempted to move my vault to another drive and the process stopped part way through, the receiving drive ( Verbatim Firewire 500 Gig.) stopped and I got the "a drive has been improperly disconnected" type error message and the following pop-up:
    and this when I tried to eject the source drive (WD My Book 500 Gig.)
    I was able to eject it after a relaunch of Finder and a restart of my iMac  I did a disk repair to both the WD drive and the Verbatim drive. The latter had some errors in "Volume" information which were repaired by disk utility and I tried to move the Vault again with the same result again so I wonder whether the Vault file is corrupted and need to know if there is a way to verify the integrity of the files contained in it.

    Hi Kieran,
    You can read and set the tool tips using the .assist.toolTip property:
    this.assist.toolTip = "This is a tooltip...";
    Hope that helps,
    Niall

  • Is there a way to clear the default text in a form field onclick?

    I am trying to add javascript to clear the default text in a form field using onclick?  Any idea?
    Thanks!

    Instead of entering any default text in the field, get rid of any scripting you currently have for the field and use the following custom Format script:
    // Custom Format script
    if (!event.value) event.value = "Your default text goes here.";
    The string you specify here will be displayed when the field is blank, and the text that's entered in the fields otherwise. It will also go away when the field has the focus, which is what you want.

Maybe you are looking for

  • Reinstalling Mountain Lion

    Hi, My Mac is not functioning as it should be and the guy at the genius bar after running the tests told me that there is no problem with the hardware and I should reinstall OS X. I am taking a Time Machine back up and plan to use it to recover my da

  • Operating Chart of Account

    Hello SAP Gurus, I need your valuable suggetions for creating a Globla chart of account for doing reporting in IFRS, US GAAP reporting and Local coutry's reporting. Current Situation: Company codes                     Country                 Chart of

  • Youtube login older device

    Hi Having some problems with my Youtube account on my apple tv (1st generation ? bought in 2007), due to new security measures from Google/Youtube : 1st could not login on apple tv, to refresh my account content ( an issue from the beginning in 2007,

  • Catching JSP Compile Errors

    I would like to be able to display a user-friendly error page in the event that a JSP fails to compile. Is there some entry I can put in web.xml or weblogic.xml that will allow me to redirect to an error page? I have tried using error-code=500, and a

  • Trying to make sure my flash file doesn't require flash 11

    im working in cs5.5 flash and i published my flash file with flash player 9 and then added it in a dreamweaver file; uploaded everything to my site and it asks me to download flash player 11. http://www.rija.ca/CBC_test/CBC_Winter_2011_Test.html i ne