help find out what is wrong w / my before update trigger

Let me this prefix w / the fact that I am a fool, so be nice.

I have a trigger that does not (apparently), and I'll google out so I thought I would ask and see if someone could not provide thoughts, insults, suggestions or what have you.

Database used is 10g XE and updates are performed in a transactional way.

I have a table that contains (among other things) the status of a particular type of transaction (specific application). When this status changes to a particular value, I have a trigger that updates another table with the date on which that status change took place.

< pre > Table: XTransaction
ID (pk)
StatusID (integer)
... < / pre >

and here is my trigger:

< pre > create or replace trigger x_transaction_update before update on xtransaction
for each line
declare
Start
If (: old.statusid = 1) then - it's here because I got an error when I tried to use a when clause above
Start
-I log in before the update with some other info to tell whether or not I've been to this task
Update sometable set when_it_happened = sysdate where xtransid =: old.id;
-I log in after the update too
exception
while others then
-I connect sqlerrm
end;
end;
end if;
end; < / pre >


Here's what I could gather through tests and display the logs of the trigger:

1. There is no exception being connected,
2. the update of pre/post connects with all the correct data (to prove that the trigger is activated),
3. when I update xtransaction for visual studio (via the oracle complement that allows to execute queries against the database), the State is changed, the trigger is activated and the other table is updated.
4. when running the application that normally updates the xtransaction table, xtransaction is updated, the trigger is activated and sometable is not updated.



So I have absolutely no idea where to go with this one. Usually I could launch sql server Query Analyzer and watch what comes through, and I tried commercial tool use Toad to do this, but nothing is. I tried to change to an update after, but had the same results. I wrote this a few months ago and it worked then, but not now.

Thanks a lot for the display of the actual error.

Are you trying to work around the famous error table mutation here?
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:8323596621929

You should use the transaction autonomous only for error logging procedure.
You use a registration for different purposes.
You are being "independent" on totally different levels.
Creating a "while OTHERS" - registration procedure (being an autonomous transaction), or remove WHEN E.A.
(or: delete the other calls to your logging procedure).
This is a right step: get rid of the "distractions" and keep your code clean/crisp and clear as possible.

Tags: Database

Similar Questions

  • Microsoft indicates an error when I want to auto-mise to update security updates. How can I find out what's wrong?

    Want to know what has changed on my Windows XP Home Ed 2002, which allow me to last dnld updates to security.  I need help please.

    http://support.Microsoft.com/kb/956703/en-us

    Error message when you try to install updates by using Microsoft Update or Windows Update Web site: "0 x 80080008.

    What about XP, Ref: http://windows.microsoft.com/en-AU/windows/products/lifecycle

    and http://windows.microsoft.com/en-au/windows/help/what-does-end-of-support-mean

    Joan, what you do after the support for XP ends should be your decision. If your computer is still running and do all what you want, you will need to keep your security up-to-date until the software when you need to consider a new computer.  When you upgrade, will be when you decide that it's time for you to do.

  • How can I find out what version of Firefox I currently use?

    I use a website of electronic billing for some of my stuff. The site of billing is not compatible with Firefox 7.1. We were told to find out what version of Firefox that we use and if it is 7.1, it must reintegrate our last series of bills. Please notify. Thank you.

    in xp go to HELP then FIREFOX and you can see the word FIREFOX version.

    Thank you

    Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.

  • I try to use windows excel for windows vista and am asked for a product key. How can I find out what order to use the product?

    I try to use windows excel for windows vista and asks me to enter a product key. I am the sole owner of the computer but have no installation CD for recharge Excel. How can I find out what order to use the product? From now the product doesn't let me do anything. Help, please!

    Hello

    Did you pay for Office (including Excel) in a packaging separated when you bought your computer?

    Office is not included with your purchase of computer for free.

    Most new computers come with a trial version of Office that lets 'x' number of days usuage.

    After this test times out, you will have to buy Office.

    And the product key on the computer case or laptop for the operating system, not for the desktop Suite.

    Here is the link for the Microsoft Store to Office products:

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Office_Category_Page?ICID=Home_4up_1_OfficeCatPage

    And you might be interested in the free Open Office Suite of Office Applications.

    http://www.OpenOffice.org/

    For any other question about Office, please repost in the Office Forums:

    http://answers.Microsoft.com/en-us/Office

    See you soon.

  • I can't find out what motherboard I have for my HP Pavilion 15 t-n200

    Hello

    I have a HP Pavilion 15 t-n200 and I can't find out what motherboard I have. I have searched for answers days now and have decided to come on the forums.

    The specifications are:

    1.6 GHz to 2.3 Ghz i5-4200u

    8 GB of DDR3 RAm/memory

    64-bit operating system

    Windows 8.1

    If someone could help me find out what mother boar I have it would be great.

    It must be the 740 M so this motherboard:

    Intel Core i5-4200U 740 M 1.6 GHz (2 GB DC BGA 15 W) for use with Windows Standard 736377-501

    Page 42 of the manual for the memory upgrade. Yes, there are two slots, and it supports up to 12 concerts (8 + 4).

    An SSD is another matter. To get to the hard drive Bay, you must remove all cover it. It's not easy and it puts at risk the warranty. See Page 59. This set of video clips will help, too.

    http://support.HP.com/us-en/document/c04324972

    But yes, you can install an SSD if you jump through all the hoops.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • My machine suddenly began to access the internet every few seconds.__How can find out what is the cause? A virus scan led to no result.

    My machine suddenly began to access the internet every few seconds.
    How can I find out what is the cause? A virus scan led to no result.

    Something constantly running must be what actually happen. The network meter gadget shows that it is evenly spaced.

    O.K.  He finds!

    It is McAfee Network Agent - mcnas.exe

    Services of all the MCS crossed and off a
    This one did.

    Don't know if its corrupt or not
    And talk to McAfee is in talks with the India!

    Nothing seems not to be dangerous.

    Thanks again for all the help.

    TREV.

  • How can I find out what characteristics should be power in the "turn Windows features turn on or off.

    In the section (turn Windows features on or off) how can I find out what characteristics must be on, and which must be disabled? I looked everywhere for something to tell me what are the characteristics and that it uses has been, but I am not able to find something on the subject... Could you please tell me which ones should be on and which should be turned off. Thank you.

    Hello

    It's the kind of choice: (maybe this will help you decide)

    Feature of Windows Vista Guide
    http://www.bleepingcomputer.com/tutorials/tutorial134.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How can I find out what programs I should have started and what are the programs I can start myself to my computer to run correctly when starting?

    * Original title: startup

    How can I find out what programs I should have started and what are the programs I can start myself to my computer to run correctly when starting?

    Hello

    I understand you want to learn about programs, you should start your Windows startup. I will certainly help you to question.

    When you start Windows by using a normal startup startup, several applications and services automatically, and then run in the background. These programs include the base system, antivirus software, utility applications processes system and other software that was previously installed. These applications and services may cause interference when you install or run a program.

    The system configuration is a tool that can help identify problems that might prevent Windows from starting correctly. You can start Windows with common services and startup programs turned off and then reactivate them, one at a time.

    I suggest you to refer to the links below and check if this is useful:

    Using the Configuration System (msconfig)

    Perform a clean boot to determine if background programs interfere with your game or program

    Hope this information helps.

    Please get back to us with an update on the issue, we will be happy to help you.

  • How can I find out what files are multiplying?

    More about 700 meg hard drive / day.    How can I find out what files are multiplying?   I have the total space 1 t, exhausted 600 g.   Is there a directory command in w7?

    Tried to reset in time earlier, but had «system restore did not finish sucsessfully.»  Your computer setttings, unmodified files.   unspecified error has occurred (Oxc0000022)

    Recently installed WD backup items and ran about 4 times, but says backup windows no backup has never been run.

    Thanks for any help:

    http://answers.Microsoft.com/en-us/newThread?Forum=Windows&threadtype=questions&cancelurl=%2Fen-us%2Fwindows

    Investigating disk space use to download, install and run Treesize (freeware) as an administrator.
    http://www.Jam-software.com/treesize_free/

    Place a Treesize shortcut on your desktop, right-click on the icon and select run as administrator to open Treesize. You must run as administrator to see all the files.

    Information about Treesize
    http://www.Jam-software.com/treesize_free/

    When you open Treesize scan select in the Menu and you will see a list of drives. Click on C and it will generate a list of files. Display names and 6 larger files sizes and the total at the top of the list.

  • How can I find out what programs start or stop to start the computer?

    How can I find out what programs start or stop to start the computer? Now there's like 68 programs that start at startup of the computer, I know that this is the way to much, I just need if bought a laptop with windows7premium installed and the problem im having is that for a lot of programs running at startup the computer does runslow and being online is difficult. Can I just go back to the factory because im settings only to learn about computers. Any help would be late thanks all sorts niceome here

    Original title: need HELP

    Go in run and msconfig!

    Under the control of services tab hide all microsoft processes
    These are the programs that are running at startup you can go through the menu of your program and configure each individually to run at startup.
    If you decide it's not worth having to go to control panel and then programs and then decide to uninstall the program.
    If you decide to use your drive to factory restore do not forget to install the programs you need.
  • Find out what package is called from the frontend

    Gurus,

    I'm working on "Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production" and the front-end application is on .NET.

    When I click through the different pages of the application, different packages are called. Is it possible that I can find out what package is called?

    I'm just trying to understand the business, if I don't want to bug the frontend developer and ask the request for each click I do.

    Here's what I'm trying:

    Under query gives the last execute sql if we have the SYS user privileges. I don't have the privileges.

    Select sql_text from v$ sql

    where first_load_time = (select max (first_load_time) from v$ sql);

    Also, I need the package called not the sql!

    Can you please help?

    Thank you

    Lydiea

    You are on the right track...

    You can use the v$ sql to find out what is running or just ran.

    If you know the name of schema analysis (what user database is used by the application to connect to the database), you can use this query to get the sql statements and pl/sql.

    Select sql_text module, PARSING_SCHEMA_NAME,

    v $ sql

    where parsing_schema_name = upper ('& schema_name');

    If you know the module, you can use the following query. For example, the .NET application can be w3wp.exe under the name of the module.

    Select sql_text module, PARSING_SCHEMA_NAME,

    v $ sql

    where module = "& my_module;

    If you run the application and you want to watch the v$ sql at the same time, you can use this query.

    Select executions, sql_id, last_load_time, sql_text from v$ sql where users_executing <> 0;

    I hope that helps!

    Thank you

  • How can I find out what version of firefox I use

    How can I find out what version of firefox I use

    https://support.Mozilla.org/en-us/KB/find-what-version-Firefox-you-are-using

    Left thread Firefox Android for Firefox section.

  • How to find out what the police are actually using Firefox?

    How to find out what the police are actually using Firefox?
    Inspect the element don't say what substitute fonts.

    Firefox 24 ESR has the tab fonts in the Inspector, which shouldn't be a problem.

  • How can I find out what that different revisions of Firefox difficulty or address?

    How can I find out what that different revisions of Firefox difficulty or address?

    Hello charlesmiller000, you can see the firefox release notes:
    https://www.Mozilla.org/en-us/Firefox/releases/

  • How can I find out what kind of ipad I have?

    How can I find out what kind of Ipad I have?

    Click here and look it up.

    (140503)

Maybe you are looking for