Trigger newbie question: when to start a fire on the table so insert same owner?

Let's say I have an owner/schema called JIM that contains a table named MYTABLE. The owner (Jim) is the only person to change this pattern, although many may view the tables it contains. I have a trigger in the scheme which is triggered when this table has been updated. It begins with:
create or replace
TRIGGER MYTRIGGER after INSERT or DELETE on MYTABLE
inside a stored procedure in this scheme, I add a new line to MYTABLE. I do then some other stuff before committing.
create or replace procedure MYSPROC()
...
insert into MYTABLE (item_number) VALUES (12345);
...
...
commit;
end MYSPROC;
QUESTION: The trigger fires immediately after the line of code above insert statement? Alternatively, it will pull after that the first statement commit located after the line of code above insertion? Why or why not?

I'm confused because the owner JIM has all the tables, procedures and triggers. Thus, when the procedure is run and the line is added to the table, the trigger (also owned by JIM) should be able to see this change, even though it may be in a different session. So I think the trigger would execute as soon as the line is inserted. Is this fair? If not, what missing am me?

UPDATE: note that the stored procedure that is mentioned here is outside the above trigger.

Published by: tem on April 17, 2012 11:48

>
I understand that different users cannot see changes made by the other user, until the user issues a commit.
>
Is no sound like you understand.

The 'user' has nothing to do with it. Replace the word "user" "session" in the above statement and you'll have it correct.

We're not your 'thinking '.

Tags: Database

Similar Questions

  • When it start printing; It intercepts the first part of the paper then stop

    Hello
    I have HP LaserJet 1100
    When it start printing; It intercepts the first part of the paper then stop; so it does not print and the part of the document come in but not out
    So what is the name of the part should be replaced?
    Let me know soon
    Concerning

    Hello

    Thanks for the post.  With it, we can have several questions the cause.  Type/paper weight, not enough paper in the tray, rollers which don't sting power or the remains of a previous paper jam.  I've included a pasted below document that can help with this and help refine the root cause.  Good luck!

    http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?lang=en&cc=us&TaskID=110&prodSeriesId=25470&prodTypeId=18972&prodSeriesId=25470&ObjectID=bpl05811

  • The screen of my laptop turns off when windows start. What is the cause and how can I fix it?

    Original title: computer failure

    the screen of my laptop turns off when windows start. What is the cause and how can I fix it. Thank you

    You have the screen image out to another monitor (one that is not plugged in fact). How you pass to the internal laptop display varies, but most cell phone companies make a combination of keys, such as Fn + F6 or something.  Looking for a symbol that looks like a monitor.  It is usually color coded and requires activation of a Fn key.

  • When I start my windows 7 laptop its showing two same username, but I don't see a single user, if I guset user also show two guset user

    When I start my windows 7 laptop its showing two same username, but I don't see a single user, if I guset user also show two guset user

    Hello

    I suggest you analyze your computer Microsoft Safety Scanner, it will help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    More information: Difficulty of a corrupt user profile: http://windows.microsoft.com/en-US/windows7/Fix-a-corrupted-user-profile

    Hope this information is useful.

  • Exception of null on the list pointer implementing values when there are n rows in the table

    Hi Experts,

    I use JDev 11.1.1.7.

    I have a VO that I defined a LOV with no search box. In my page, I've added it as af:inputListOfValues, but when there is no rows in the table that I will meet with NPES

    < AdfcExceptionHandler > < handleException > ADFc: when Manager application exception exception handling threw a new exception.

    java.lang.NullPointerException

    at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding(JUCtrlListBinding.java:5188)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:204)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getSearchRegion (FacesCtrlLOVBinding.java:2001)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getQueryModel (FacesCtrlLOVBinding.java:1612)

    to oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ InternalLaunchPopupListener.processLaunch (SimpleInputListOfValuesRendererBase.java:1560)

    at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)

    Excerpt from JSFF:

    < af:inputListOfValues id = "xxx" popupTitle = "" search and select: XXX ""

    simple value = "#{pageFlowScope.SearchBean.xxx}" = 'true' "

    model = ' #{bindings. " XXXLOV.listOfValuesModel} "columns ="30"

    searchDesc = "Select XXX" >

    < / af:inputListOfValues >

    PageDef:

    < listOfValues StaticList = 'false' use = "LOV_XXX".

    IterBinding = "XXXIterator".

    ID = "XXXLOV" / >

    Is - this bug?

    Surprisingly, it works very well if there are lines in the table that the VO is querying.

    -Soham

    Soham,

    I think you just create this LOV page by simply moving the VO, right?

    You can select the box to tick 'Include no. Selection' in your VO, and see if that helps?

    See you soon

    AJ

  • Satellite A200 - 28 p - question when it starts

    Hello

    I bought a Toshiba Satellite A200 - 28 p in October, it's a great laptop, but I always had a problem when it starts.

    Occasionally, and I mean at random without cause, when I turn it on the lights of disk hard flash but it beeps twice and nothing happens.
    I have to turn it off and try again, I found the best way to solve the problem is open and close the lid a couple of times and then try and start the machine. I took it to PC world where I bought it and they were a less useless place, the first time the ' + technician + ' said that he had set and it was losing RAM, when I asked if he had reproduced in fact he he looks some what confused.

    I took his word, even thought that I had done my own research that pointed to a problem of graphic\screen and took it home. Of course the problem reproduced immediately in a day or two, the second time I took it back they suggested because its so casual, that it is and I find no reproducible model, that it would not be worth sending away.

    Can anyone shed light on what could be the cause of this? It doesn't seem to affect the machine somehow when his works actually, checked all the Windows event logs and nothing so its occurring long before that.

    The second question is much easy one of my CTRL keys has broken the key is fine, is there anywhere I can get a replacement Cap? Please do not say PC World!

    Thank you
    Jon

    Hello

    I put t know why it happened, but to me this looks like a motherboard or RAM problem but I don't know m.
    The RAM, you can check with Memtest86. It s a special diagnostic for the RAM and the freeware tool. Use Google to find out.

    In addition if Memtest86 can t find a problem your laptop should be checked by a technician for laptop. They can determine what the problem is and they also have experience in laptop disassembly.
    And a new keyboard, you can also get to an authorized service provider.

    Sorry, but at the moment I can t tell more.

  • When I start my laptop, sometimes the sound does not work.

    When I start my laptop the sound sometimes play and sometimes does not play

    original title: his record game

    Hello
    1. what version of Windows is installed on your computer?
    2 - is specific to an application or a window?
    3 are you aware of any hardware or software changes, prior to the beginning of the question?

    Check the steps mentioned in the links below and check if the problem is resolved:

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    (Note: the link above fits Windows Vista, 7 and XP.)

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems

    Post back with the State.

  • When you start windows or turn the power off, on-screen messages in Spanish, is it possible to just switch to English?

    Hi team,

    My question is this. I installed windows 7 ultimate on my Lalonde and a virtual machine, two of them have been installed in Spanish, I downloaded the English MUI Pack and I installed successfully.

    Now, I'm able to see everything in English once I'm connected, however when windows is start or turn off, the messages on the screen appear in Spanish.

    On this basis, make is possible to just switch to English?

    Original title: language

    Ralph, try the procedure described on this page.

  • no suggested email address pop up when I start to write in the box "to".

    I'm on Thunderbird 29,0 - had upgraded to a beta version, not intentionally.

    Now, when I start typing in an address when you write an email names pop up, even if the initial letters refer clearly to an address or a name in my address book. Each email address must be typed from scratch. only the red letters appear. Problem.

    If you want to upgrade to the current version of Thunderbird, it can be found here:

  • When I start my computer and the connection to my office the Documents folder opens automatically.

    I use a Dell PC and running Vista.   Recently (in the last two weeks) whenever I start the computer, log on to my office, the first thing that loads immediately is the My Documents folder.   I checked the items in my Start Up programs, but I don't know what I'm looking for.

    Thanks for any help.

    Hi JeffWinbush,

    Method 1:

    (a) go to control panel > appearance and personalization > Folder Options

    (b) select the view tab, uncheck the restore windows files when connecting

    Method 2: Run the fixit available in the links below and check if that makes a difference-Worth to try

    Diagnose and repair Windows files and folders problems automatically
    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Note: FixIt would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of DATA loss from that particular area.

    If the problem persists, this could be an activity of the virus

    Method 3: Run Microsoft Security scanner (MSS) to any threat and try to correct

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: Infected files can be deleted from your computer; There is a chance of data loss.

  • When you start to print on the hp 6100 the computer stops and a blue error screen

    Starts to print on the hp 6100 the computer when to stop an a blue error screen appears, and the computer must be restarted? Help this is driving me nuts.

    Hi William,.

    Do you receive an error message or error code?

    Blue screen can be caused by hardware and software issues.

    Try the following and see if it helps.


    Method 1:

    Try to uninstall and reinstall the printer drivers and check if it helps.

    Uninstall a program: http://windows.microsoft.com/en-US/windows7/Uninstall-or-change-a-program

    Install a printer: http://windows.microsoft.com/en-in/windows7/install-a-printer

    Download HP drivers and software - specify product name


    Method 2:

    Refer to the steps in the following Microsoft article and check.

    Resolve stop (blue screen) errors in Windows 7:http://windows.microsoft.com/en-US/windows7/Resolving-stop-blue-screen-errors-in-Windows-7

    Notes:

    Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    Before you perform the upgrade on the spot, I would recommend you to back your files using windows backup.


    Note:
    I suggest you to provide us with the Mini Dump files to get a better understanding of the issue.

    Follow the steps to copy the contents of the minidump files:

    (a) copy the contents of \Windows\Minidump to another (temporary) location or anywhere on your machine.

    (b) zip copy.

    (c) attach ZIP archive to your message by using the button (attachments) "trombone".

    (d) please upload them to a service like Skydrive file sharing.

    You can view the following link to find out how to send the files minidump using Skydrive:

    http://social.technet.Microsoft.com/forums/en-us/w7itproui/thread/4fc10639-02dB-4665-993a-08d865088d65

    Keep us informed on the status of the issue.

  • Paragraph style by default when you add rows/columns of the table

    Hello

    I use InDesign CC and whenever I add a new row in the table or a column, that paragraph for these lines styles are in default in the styles I won't use. They are actually failed to really big styles title so I don't just add lines 3 and 4 and my table is out of the page. None of the surrounding cells, columns or lines contain the ID styles is emphasizing the use.


    How can I set the default style for a new row in the table or column?

    Thank you

    Paul.

    Hi, thanks for the help guys. I tried your suggestions but I always had the same problem. However I noticed that when the model documents have been opened there were styles by default selected in all the style panels. It seemed that it was these styles by default selected which were applied to new rows in the table.

    I opened the templates and all the panels style [none] or [standard paragraph], then saved the document.

    This solves the problem because no style is now applied when rows are added.

  • problem when adding a new row to the table.

    Hello

    I have a table in my ADF form. and when I click on CreateInsert adds a new to the table, but the premiere. I want that all the new lines to be added at the end of the table in a sequence. How can I do this?...


    Thank you and best regards,
    Helene

    Hello

    Try this:

    DCIteratorBinding dciter;
    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.
    dciter = bindings.get ("findAllTestAndryIter") (DCIteratorBinding);
    ViewObjectImpl vo = dciter.getViewObject ();
    If (vo! = null)
    {

    Line = vo.createRow ();
    int rangeSize = vo.getRangeSize ();
    int rowsInRange = vo.getAllRowsInRange () .length;
    int insertPos = rowsInRange< rangesize?="" rowsinrange:="" rangesize="" -="">
    vo.insertRowAtRangeIndex (insertPos, line);
    vo.setCurrentRow (row);
    }

  • When is a user created in the table record of $ WWSEC_PERSON?

    Hello-

    We use the OID for our SSO in the Oracle Portal. When we sync-> OID AD, when I ask the portal table $ WWSEC_PERSON and new users are not present. I must go to the Administration page of the portal, one of the users query and define a default group. After this action, they will have a record in the table for $ WWSEC_PERSON.

    The reason Im asking we try to automate the assignment of default group using the wwsec_api.set_defaultgroup api, but because these users are missing from the table of $ WWSEC_PERSON, they have obviously not possible to assign a group.

    Is there a way to force new users in the portal DB table? At all automated type of assignment?

    Thank you
    Brian

    I found this ODS. DS_ATTRSTORE comes in very handy to query OID using SQL data. There are several records attribute for each entry. The "uid" attribute contains the user name and "createtimestamp" contains the timestamp for when the user has been created in OID after being synced from AD. The attribute "orcldefaultprofilegroup" stores the default portal for the user group too.

  • Error when calling sous-modèle with the table for the invoice

    I have an invoice template setup and I need to call different tables based on which company they are run for. Calling the separate from the headers and footers of model sub works fine but when I try to use the approach of template void for the body of the invoice I get an error of caused by: oracle.xdo.parser.v2.XMLParseException: element 'when' not found in ' xsl: choose '.

    During the validation of the model sub I get error of * [031111_102337143] [] [ERROR] [line 427.180] illegal closure context XSL table: xsl: choose *.

    I think I have to use a different model for the body because a given business xml is one completely different structure than the others, but also the structure of the table.


    Any help would be greatly appreciated as this is the critical moment

    Thank you

    I sent you the modified model. Take a peek inside.

    Thank you
    BIPuser

Maybe you are looking for

  • Windows driver Modem UMTS 8.1: 3 presents problems in Device Manager

    Since the update of Windows 8 Pro Win 8.1 Pro the driver for the modem-umts-do not work correctly.In Device Manager, it is marked with the yellow exclamation point. Where can I get a driver? In the download area, I still find that x 86 drivers for wi

  • My hotmail email account does not open

    Once I connect to my email I'm able to place the cursor on an email to open, but it does not open

  • Computer does not start "Error code: OFOO:137 B.

    When I booted up my pc I got the message "Windows cannot start because the following file is missing or corrupt: \Windows\System32\Config\System you can try to repair this file by starting Windows Setup with the installation of original CD-Rom Select

  • used to install HP coolsense

    I used hp coolsense in the past and recently noticed it was no longer included in support Wizard, and the .exe file has been removed from my computer.  I followed the instructions online to level coolsense 1.0 to 2.1 and still nothing.  Is there some

  • x 220 card reader sd card

    X 220 supports to class 10 or more 32 GB and sdhc cards