How do to execute the statement commit in a procedure possibly?

We have a procedure which has DML operations and at the end there is a statement commit.
I want to execute the command eventually commit.
As when the procedure is executed directly to execute the command commit, but when this procedure is called by a trigger does not commit.
As you know validation operation is not allowed in triggers.
How do I understant the code is triggered by a trigger or another (or another procedure manual exec).
I'm looking for the word reserved who solve my problem. As the INSERT, delete...

Serkan
Thank you.

Add another 'CALLED_BY' parameter to the procedure and have the procedure call or fill it a trigger.
If you do not want to change another existing code, by default to NULL then existing procedures do not have to fill only relax, but it can be changed from its own name or just the string "TRIGGER."
The procedure then checks CALLED_BY.

Tags: Database

Similar Questions

  • Comment after the statement commit.

    Hello world

    Please take a look at this.

    Commenting on the VALIDATION: example, the following statement commits the current transaction and associates a comment:

    COMMIT COMMENT 'In-doubt transaction Code 36, Call (415) 555-2637';
    

    Now where I see this comment? What is the data dictionary, which will have this detail?

    Kind regards

    BS2012.

    If you look in the paper for the statement COMMIT , you will see this.

    COMMENT clause

    Specify a comment to associate with the current transaction. The ' text ' is a literal quotation of up to 255 bytes that stores Oracle database in the data dictionary view DBA_2PC_PENDING with transaction if ID a distributed transaction is in doubt. This comment can help you diagnose the failure of a distributed transaction.

  • What happens when executing the statement truncation is canceled

    Hi all

    I executed the statement Truncate table in TOAD by mistake and canceled the execution immediately.
    now I can see that this table has records in there,
    What is exactly? When the executed get statement? in the end, after he has removed all the lines? or after the deletion of each record?

    so just need to know when exactly the get commited statement?

    TRUNCATE is DDL; who undertakes implied.
    Either you have all lines or lines ZERO .
    Since you have a few lines, I find that you have all the lines.

  • How can I remove the 'State' that wants an installation package "status.msi" I do not have?

    This laptop does not accept even in SP3. It doesn't have enough RAM for Win7.   I got rid of bad bits with chkdsk.  Status tries to install all the time & I can't find how to remove it.

    Hello
    I've got SP3 now after 2-3 attempts.  (Just 'failed to install.")
    And for the status "the component you are trying to install is on a CD or another removable disk that is not available."
     
    "Insert the diskette in the State, and then click OK.   Use Source 1. "The next window"cannot find an installation package for the product status.  Again the installation again using a valid copy of the installation package "status.msi." "
     
    The link with Microsoft wasn't working, so I checked on Google and found this annoying file is a file of HP printer so I deleted the HP printer program, which got rid of the file.  It seems, I then have to re - install the program without checking the update box, I'll try it when I have the time.
    Thanks a lot for your help.
  • How can I customize the States in a menu bar vertical?

    I see that it is possible to change States of a horizontal bar here, but I can't make it work for the portrait.  Please tell me that we can edit the States in a menu bar vertical.

    Valerie

    Yes, you hit a bug in Muse, which will be fixed in the next version.

    The bug occurs when you have a gradient for the State by default, but no gradient fill for your state. The vertical menu has this default look. You can work around it by removing the default gradient mode or by adding a gradient to the other States.

  • How can I change the States on the part of a page, but not all?

    I cannot figure out how Word of this issue to make sense, but here goes...

    I have a page with 2 parts, graphics and Photos... I want the part Photos to have a "next page" and "previous page" button which does not interfere with the graphical part, in case I want to add a next/previous button to that too... but they are all on the same page... so what I have to do a new State for each combination of pages? (like the graphic page 2 and photos page 3 together, graphics page 2 and photos page 4 together, etc. etc.) because I could probably do this... Or y at - it an easier way?

    Thanks in advance!

    Your solution here is the custom, components, each of which can have its own States. Make graphics part a custom component, and the pictures part of a custom component. In this way, you can the buttons to the pictures component that changes its States, the graphic component leaving unaltered.

  • How to write change the statement in a trigger?

    Hi people,
    I know that triggers does not support DDL commands directly.is there any possibility to issue an alter statement in a trigger? for ex,.
    I would like to issue the command ALTER SESSION SET TIME_ZONE =' + 03:00 ' inside a trigger.i want this command so that when the user on her scheme immediately login session time zone must be set to '+ 03:00 '.
    pls help me with suggestions.


    Regarding
    VIDS

    Run immediately:

    SQL> create table mytable (a number);
    
    Table created.
    
    SQL> create or replace trigger mytrg before insert on mytable
      2  for each row
      3  begin
      4  execute immediate 'ALTER SESSION SET nls_date_format=''dd/mm/yyyy''';
      5  end;
      6  /
    
    Trigger created.
    
    SQL> select sysdate from dual;
    
    SYSDATE
    ---------
    23-FEB-10
    
    SQL> insert into mytable values (1);
    
    1 row created.
    
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    23/02/2010
    

    Max
    http://oracleitalia.WordPress.com

  • How do you see the State of the download?

    downloaded a file... would like to see download status... will display in the screen of the notification. only shows the status...

    By default it displays in the Notification screen

    Try again with the beta version

  • How can I fix the State of the media - media disconnected?

    I have a laptop that is running Windows XP, and I'm having problems connecting to the Internet and my router. I have another laptop running Windows 7, which connects well, including mobile phones and game consoles that can still connect to the router. I type in "ipconfig" in the command prompt and the message media disconnected rises. The same message appears in Windows 7 but the laptop connects to the router and the Internet fine.

    I tried to update, deactivation and activation of the network card, uninstall the network adapter and then put it back, and I don't always get no Internet connection.
    You have ideas or suggests this can solve my problem?

    Have you tried to reset the link speed / Duplex mode on 10 Mbit/s/full duplex? I got the same error for months while he was trying to resurrect my pc and could not figure out until I read somewhere that most of the older NIC is only supported this setting one sometimes will not work if the parameter is 'auto negotiation'.

    Click Start, right-click on 'my computer' and select Properties. Click on the "hardware" tab and select "Device Manager". Click on the sign '+' next to maps network to expand and right-click the NETWORK adapter, select a property in the Advanced tab, scroll down to link speed/duplex mode, click it. Set the value in the box on the right side of the page, click on OK, to see if it solved your problem.

    It will be useful.

  • Run the statement in a stored procedure with Out parameters and

    Hi all

    I have a stored procedure that calls a select statement. Here it is...

    CREATE OR REPLACE PROCEDURE BLABLA_VIEW_PROCEDURE

    * (BLABLA_KEY IN NUMBER, *)
    XML_OUTPUT ON VARCHAR)
    AS
    BEGIN
    SELECT SYS. XMLTYPE.getStringVal (OBJECT_VALUE) in XML_OUTPUT FROM BLABLA_VIEW WHERE extractValue (OBJECT_VALUE, ' / BLABLA_TYPE/BLABLA_KEY ') = 2876;
    END;

    Is to have both IN and OUT parameters as described above. I am able to compile and run the procedure.

    The problem I want to share with everyone is...
    I want to run the stored procedure together with a single EXEC command.

    I tried different ways using the EXEC command but of no use.

    Could someone help me?
    Thanks in advance.

    Published by: user10763276 on June 3, 2010 15:47

    Please visit the following...

    sudhakar@ORCL>CREATE OR REPLACE PROCEDURE BLABLA_VIEW_PROCEDURE
      2  (BLABLA_KEY IN NUMBER,
      3  XML_OUTPUT OUT VARCHAR)
      4  AS
      5  BEGIN
      6  XML_OUTPUT := BLABLA_KEY || ' and whatever else...';
      7  END;
      8  /
    
    Procedure created.
    
    sudhakar@ORCL>
    sudhakar@ORCL>var XML_OUTPPUT varchar2(100);
    sudhakar@ORCL>exec BLABLA_VIEW_PROCEDURE (9151, :XML_OUTPPUT);
    
    PL/SQL procedure successfully completed.
    
    sudhakar@ORCL>print XML_OUTPPUT;
    
    XML_OUTPPUT
    --------------------------------------------------------------------------------
    9151 and whatever else...
    
    sudhakar@ORCL>
    

    Post tells you...

    var OUTPUT VARCHAR
    exec BLABLA_VIEW_PROCEDURE (9151, :OUTPUT);
    print OUTPUT
    

    VARCHAR is not a valid TYPe to declare. Use VARCHAR2 (nnn) where nnn is a number.
    VR,
    Sudhakar B.

  • NB520, NB550D - how to set the volume to the State of sleep and music?

    I'm looking for an opportunity to adjust the volume to the State of sleep and the music...
    The mere fact that I noticed is that volume depends on the defined level when the computer was working. But how do I change the State of sleep and the music when the comp is off swich?

    Hi communication,

    I checked the user manual and found the following information:
    The volume control and mute setting may be different between the Windows mode and the mode of sleep and the music. Before connecting the audio device to the computer, turn down the volume of the audio device. Sound quality can also be different.

    So based on this information, you will need to adjust the volume in Windows, but it might be a little different. I have not found any information on the change of volume in sleep mode and music.

  • Restoring the State of an element of the ADF

    Hi all

    Jdev version: 11.1.1.7.1

    I'm iteration on a nested list and adf creating components at runtime from my bean in scope session based on the user input, now the problem is that I have to reset available to the Group Panel again when the user clicks the button of rest and recreate all children, based on a different user input.

    The layout of the Panel group is not even when using resets:

    or the other

    searchResultPanel = new RichPanelGroupLayout();

    or

    searchResultPanel.restoreState (FacesContext.getCurrentInstance (), null);

    Can someone tell me how can I reset the State of the provision of the Group Panel in my managed bean.

    Hello

    You create the PGL programmatically? If you are only his children to programmatically create, then bind the PGL to a bean, as well as in the valueChangeListener get PGL and then remove all its children, and then add accordingly. Also, be sure to trigger a partial update after adding.

    Arun-

  • Retrieve the State of the power supply

    Hello

    I am currently using the wonderful listVMByFolder script (http://communities.vmware.com/docs/DOC-10059), and I would like to know how I can retrieve the State of each virtual machine supply, I have the list. I've been using the Perl SDK for about 2 days (Yes, there is not a lot), and while I understand how I would 'normally', I don't do not understand how to retrieve this information while being in such a statement:

    If ($child_view-> isa ("VirtualMachine"))
    {
    # Some code here
    }

    How can I retrieve this information because I don't really work on a VM object, that I would find in any tutorial out there, like something like this:


    My $vms = Vim::find_entity_views (view_type = > 'VirtualMachine');

    foreach (@$vms)

    {

    Print "VM:". "." $_-> config-> name. ", powerstate:". "." $_-> performance - > powerState-> val. "\n";

    }

    I thank you and have a nice day!

    Was just when I saw that you caught the misspelling

  • Preserve the State of the radio between the frames button

    Is there a way to CS3 to preserve the radio button state (selected or not) from the frame to the frame?

    I have a multi application where users select Yes or no (radio buttons) to an array of questions; they complete these questions they click a button before moving on to the next section (set of questions). But I'm wanting to add a back button that allows them to go back and change their answers... How can I preserve the State of radio buttons clicked on the previous images, so that when they return to a previous image (or frameworks) these radio buttons, they chose are still selected?

    If the design is chronology based on you need to configure a form any memory (for example, a table) to keep the selection data so that when you enter a framework will you use what is stored to configure things.

  • Changing the State of the application from a custom component

    Hello, I have several custom components that are included in the original application.

    When I try to change the State of a custom component, I get an error saying "undefined state: name of the State." How can I change the State of the application from a custom component? All States are defined in the original application.

    @linrsvp,.

    If you are using Flex3 try Application.application.currentState = "somestate;

    If you use Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate;

    Don't forget to import the namespaces corresponding to the above.

    Thank you

    Jean Claude

Maybe you are looking for

  • MacKeeper puts in my system tracking cookies - how we prevent that?

    MacKeeper, without contact or action on my part, inserts itself on my browser, a tab opening and inserting tracking cookies and other items in my system folder.  Yes, I can close the tab and Yes, I can and run anti viral and anti spyware apps to loca

  • Hide the Finder sidebar permanently

    How do permanently hide you the sidebar Finder so that it does not appear in any Finder window? I'd be happy to be able to show when I want it, but not every time I opened a window. Like many Mac users (and pros in particular) I constantly work with

  • Can not hear the other party

    Had a weird start this morning problem. If I dial a number, even on speaker, the Cliq says it connects, but I never hear ringing or anyone pick it up. It's complete volumes and the speaker. I don't have a landline to see if it sounds or not, but I ca

  • Parental for separated parents

    Hello I have recently upgraded to windows 10, and in the order on behalf of my son move to windows 10 family settings, it prompted me to send him an invitation to my 'family' (of which he was already gone when it was Windows 8). However, it does give

  • HP 15-f039wm: Re: qualcomm-atheros wifi adapter does not work with windows 8

    Hello HP support. I have a HP 15-f039wm, product J8X12UA #ABA, running Windows 8.1.  I like it, but I thought I could improve it by upgrading to 8 GB, installation of a 240 GB SSD and move the 500 GB HARD disk to an external USB adapter.  So far, so