WHy can't you create several triggers in one single script ?

Hi i did a lot of sql requests to create triggers and now i want them to be executed all one after one, so i made a script with all the requests in it, problem is that only the first one executes, why ?
here are the first two requests from the code:
create or replace trigger TRBI_schema_bd_l before insert
on t_schema_bd_l for each row
begin
select SQ_GDI.nextval
into :new.ID_SBL
from dual;
sp_info_element_ctrl(:new.date_dern_maj_ctrl,:new.code_usager_ctrl);
end;
create or replace trigger TRBI_souscriptions before insert
on T_souscription for each row
begin
select SQ_GDI.nextval
into :new.ID_SOUS
from dual;
sp_info_element_ctrl(:new.date_dern_maj_ctrl,:new.code_usager_ctrl);
end;

Hi,
932262 wrote:
My oracle version is 11g, Starting in Oracle 11.1, you can use sequences directly in an assignment statement. For example:
:NEW.id.sbl := sq.gdi.NEXTVAL;You don't have to SELECT it from dual any more.
and i am not reading it because i don't know where to read. Oracle documentation is available on line. For version 11.1:
http://www.oracle.com/pls/db111/portal.all_books
I am trying to use simple sql and not PL/SQL as much as possible.That's great! Your code will be more efficient and easier to maintain.
As mentioned earlier, you can create as many triggers in the same script as you want to. Whether you use 5 scripts, or 1, or none at all, you have to put a / after the final END; statement in each one. Follow that by SHOW ERRORS to get complete error messages.
END;
SHOW ERRORSPersonally, I prefer having a separate script to create each object. If you want to have one script that calls 5 other scripts, use the SQL*Plus START (or @) command. If the 5 child scripts are on the same directory as the parent script, then you can call them like this:
@@child_script_1
@@child_script_2
@@child_script_3
@@child_script_4
@@child_script_5

Similar Messages

  • Why can't you create image hyperlinks in Yahoo mail??!!

    ''locking - duplicate - https://support.mozilla.com/en-US/questions/806494''
    The whole feature that allows images to be entered inline with text is messed up when using Firefox. And you can't make any image a hyperlink! This is a really useful feature that I hate to resort to IE for!! Why can't Firefox get this to work if IE can?? Firefox is better in every way except this one!!

    Hi,
    932262 wrote:
    My oracle version is 11g, Starting in Oracle 11.1, you can use sequences directly in an assignment statement. For example:
    :NEW.id.sbl := sq.gdi.NEXTVAL;You don't have to SELECT it from dual any more.
    and i am not reading it because i don't know where to read. Oracle documentation is available on line. For version 11.1:
    http://www.oracle.com/pls/db111/portal.all_books
    I am trying to use simple sql and not PL/SQL as much as possible.That's great! Your code will be more efficient and easier to maintain.
    As mentioned earlier, you can create as many triggers in the same script as you want to. Whether you use 5 scripts, or 1, or none at all, you have to put a / after the final END; statement in each one. Follow that by SHOW ERRORS to get complete error messages.
    END;
    SHOW ERRORSPersonally, I prefer having a separate script to create each object. If you want to have one script that calls 5 other scripts, use the SQL*Plus START (or @) command. If the 5 child scripts are on the same directory as the parent script, then you can call them like this:
    @@child_script_1
    @@child_script_2
    @@child_script_3
    @@child_script_4
    @@child_script_5

  • HT4818 Why can't you create a Windows USB on a computer with an optical drive because my optical drive has failed

    I get my USB and my Windows 7.iso but when I open bootcamp the option to create a Windows USB is not clickable. Please help because my Optical Drive doesn't work.

    Hi Rosera,
    This is bad and I am sorry to hear that you are running into these issues.
    Let me connect with you, so right now, the current state is that you have installed copy of PSE 8 in trial on your windows 7 machine, and when you are trying to enter the serial number from your PSE 8 Box, it is saying the serial number to be invalid?
    It might sound pretty obvious, but please make sure that you are entering the serial number correctly and of PSE 8(in case you bought a PEPE box)?
    Have you tried the steps mentioned below by Barbara?
    If possible, you can send me the serial number through PRIVATE MESSAGE and I can check it on my end that whether the serial number is indeed invalid or that the issue is with your machine?
    Regards,
    Ankush

  • Why can't you use your iCloud email address for your Apple ID?

    Why can't an iCloud.com email address be used to create an Apple ID?  Is iCloud email not to be used as a primary email?

    You can if you create an new Apple ID at the time you create the iCloud account, and choose to create a new @icloud.com email address as your primary email address when creating the ID.  See Imp68's post here for an example of how you would do this on a Mac: https://discussions.apple.com/message/22283348#22283348.
    You could not use your existing @icloud.com email address as it is already an alias for your existing iCloud ID; you would have to create a new one.

  • Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Acrobat 8 is not compatible with Windows 8,  for the simple reason it was
    created much before it and Adobe could not participate the changes to the
    OS that Microsoft implemented many years later on. You need to buy the
    current version for compatibility.

  • Why can't I create a document in my Facebook group on my iPad? It won't let me input any text into the text box field after I create a new document. Thanks.

    Why can't I create a document in my Facebook group on my iPad. It won't let me input any text into the text box field after I create a new document. Thanks.

    Just thought I'd add my solution, I decided to go with WebDAV and I think it actually works better than the iTunes way, the steps are pretty much the same but avoiding the iTunes interface just makes things easier and faster.
    I followed this guide but it does have a small mistake in the httpd-dav.conf file, on line 2, where it's WebServer/WebDAV">, it should be <Directory "/Library/WebServer/WebDAV">.
    The tricky part is setting permissions which if wrong will give you errors when connecting with the iPad, I opted to set all to Read&Write since my home network has a hardware firewall. Another convenience was to add an alias to the webdav share on the Desktop.
    I'm still expecting the call from Apple but even if they fix the iTunes I'm sticking with WebDAV, atleast until I see what's new with iOS5 and iCloud this fall which should bring true sync for documents (I'm hoping that they will offer encryption with my own keys, if not, then I'll probably keep using WebDAV).

  • Why can't I create a gallery in iPhoto in the normal way who in the past? If I sent the gallery to another the pictures are deleted!

    Why can't I create a gallery in iPhoto in the normal way who in the past? If I sent the gallery to another the pictures now will be deleted!

    Before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.

  • HT203909 Why can't you provide specific instructions here about how to make the USB drive bootable?  The article referenced is not dedicated to Bootcamp--too long, too many options.  How do you make it bootable?

    Why can't you provide specific instructions here in HT203909 (Boot Camp: Creating an ISO image from a Windows installation DVD) about how to make the USB drive bootable?  The article referenced for partitioning the drive is not dedicated to Bootcamp--too long, too many options.  How do you make it bootable?

    If your BC Assistant shows the option to create a USB Installer, it automatically is marked as bootable. There is no need to have manual intervention to make a bootable USB. Once the process is manually modified, it is supported by the person modifying it.
    You have two or three options (depending on your Mac Model).
    1. Create USB... - Use a USB2 flash drive, which is erased and formatted. If your Mac supports ISOs then BCA will prompt for the Media. Any Mac which does not have a built-in Optical drive will support an ISO. There are specific Mac models which support both, DVD and USB based installation.
    2. Download Software from Apple servers...
    3. Install Windows...
    Are any additional instructions really necessary?

  • Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    Why can I only create 4 forms when I have purchased the entire package at 100+ dollars?

    FormsCentral can be used from anywhere, but to purchase a subscription you need a credit card with the mailing address in one of the countries supported for purcahse:
    http://forums.adobe.com/docs/DOC-1375
    The partner can purchase if they have access to a card in one of those countries.  Alternatively they do not need to purchase a subscription to edit forms that you've created, they do in order to create multiple forms of their own, but by your sharing forms with them at the "Co-author" level they have access to the editing.  Here are the instructions to share a form:
    http://forums.adobe.com/docs/DOC-2462
    Thanks,
    Josh

  • How can i creat several rectangles with one draw rect.vi

    how can i creat several rectangles with one draw rect.vi? thanks
    Solved!
    Go to Solution.

    You can call it in a for loop, with an array of the rectangle coordinates you want to draw. Is this what you mean?
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    rectangle.png ‏11 KB

  • Why can't I create a new note on my iPad?

    Why can't I create a new note on my iPad?

    tammy313 wrote:
    the options in the tool bar at the bottom are not highlighted and it does not respond to my touch.
    You are talking about the forward, back, mail and trash can icons in the Notes App - correct?
    I've gone through restarting it and followed the instructions from the person last week.
    Have you restarted the iPad - is that what you mean? Have you quit and then restarted the app? Quit the app, and restart the iPad. It's worth a try.
    Double tap the home button and your recent apps will appear at the bottom. Hold down on the Notes app icon until it begins to wiggle. Then tap the minus sign to quit the app. Then tap the screen. Now restart the iPad.
    Carolyn explained this above (restart) but here it is again....
    Hold down on the sleep button until the red slider appears and slide to shut off. Hold down on the sleep button until the Apple logos appears then let go of the button and the iPad will restart. See if that helps.

  • Why can't I create property nodes for item in STRICT typedef cluster?

    I've tried this in LV7.0/WIN2k and LV 7.1/OSX - both versions work the same.
    I have a TYPEDEF consisting of a cluster of items A, B, and C.
    I have a front-panel instance of this typedef.
    Under certain conditions, I want to disable and gray Item C, because it's not applicable.
    So I need a property node connected to item C.
    If the typedef is STRICT, then I cannot create such a property node - the menu item to create anything is just not there.
    If I change to NON-STRICT, then I can create the property node.
    I can change it back to STRICT, and the property node works just fine.
    The question is, if the nodes WORK normally, why can I not CREATE one?
    If there's some sense behind this, someone please point it out to me...
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    I agree with you, It would be nice to be able to keep the non strict typedef auto-update and extend it to properities which effect the look of a control. I am not sure why you can change the properities on a strict typedef. A strict typedef should have private properities (can only be changed from within the definition and no public other vi scope for writing these values. I have in the past used a custom control for presentation purposes and contained the structure of the data to be displayed within the typedef cluster. This is not all that automatic since we need vi's to convert between the definition and control. Seperating data structure from presentation is much like XML where the file only contains data structure and a reference to a style for presentation. It would be a very nice option to allow nonstrict typedefs to have an additional auto-update properities which could be toggled on and off. I would be curious to here others opinions on how to keep data structure and presentation consistant across an application without being tied down to a strict typedef (allowing the optional change of teh presentation at runtime).
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Why can't I create view in Analytic Workspace?

    Why can't I create view in Analytic Workspace?

    Hi There,
    1) This is the OBIEE forum, by the sounds of your question, which doesnt have much detail, Im guessing you want the OLAP forum for AWM related issues.
    2) Trying to help, I guess your trying to create the AW cube views, what version of AWM are you using ? It was first provided as a plug in but Im pretty sure the latest version of AWM ships with the functionality.
    BTW I'd try posting in here : OLAP

  • Why can't I create a response to an email from the Viewer window?

    Why can't I create a response to an email from the Viewer window?
    When I select an email to respond to in the viewer window and click on the respond arrow that appears just under the header, a new response email opens for a split second then disappears.
    I have to actually click on and open the email message in its own screen to be able to then click on the respond arrow and succeed in having Mail open a response email that I can edit - one that remains open.
    This seems to be a bug that we need to have squashed.
    Steve

    Do I have to connect the iPad to a computer to make this work? Is the fact that I used another email address to set up my Apple ID years ago causing the problem? A friend of mine just got a new iPod and he was able to set up a me.com account. I am feeling rather stupid. Hope someone here can help.

  • Why can't you answer any of my question's? I'm done wasting my time

    Firefox has been a problem ever since it was installed!! It won't allow downloads,plugins,printer stopped working, getting error message I sent you. AGAIN WHY CAN'T YOU HELP ME BY AT LEAST TELLING ME HOW TO MINIMIZE ALL THE LETTERS. THIS JUST STARTED 2 DAYS AGO AND I DON'T KNOW HOW TO FIX IT. I'VE TRIED. WHY WON'T YOU ANSWER ANY OF MY QUESTIONS-DO YOU NOT GET IT EITHER?I'M SO UPSET W/ YOU! I CAN'T DO TROUBLESHOOTING-I'M IN THE RADIOLOGY FIELD FOR 38 YRS. I'M FAR FROM BEING A COMPUTER EXPERT!!YOU DON'T MAKE IT EASY!

    I don't see that you've ever asked a question here before, nor can I see a complete question in your all caps jumble which is very hard to read.
    However a couple of days ago the servers were messed up and undoubtedly questions as well as a great many answers may have been lost. So why don't you tell us in normal letter case what your questions are? Look at the bottom of the following report http://health.support.com/ and at the top of the report it looks like things are working now. We are volunteers (Firefox users like you).

Maybe you are looking for

  • Playing local MP4 and 3GP video in Flex app

    I try to load video from local computer. I alreary done it for FLV format via NetStream. Now i need to support MP4 and 3GP video formats. I don't know can I do it only in client or I need first upload video to server and than than use it.

  • What happened to over the air updates

    am I the only one, or has over the air updates been changed to over WiFi updates? Not the same thing. Pretty inconvenient when you're somewhere without WiFi and want to update your phone.

  • Photoshop Elements 6 - GROUP (or Batch) Editing

    Hello to all...  I'm using one of the older Adobe software packages...Photoshop Elements 6.  Does anyone know if it's possible to do BATCH or GROUP editing?  For example...you bring up 12 images for correction.  You apply changes to the 1st image and

  • Spatial conform and blend mode; what does it mean and wherefore?

    I can't find a explination in the help...: spatial conform and blend mode; what does it mean and when do you use it because there is e a big numbre of choises. Ican't find a explination in the help... Thanks!    

  • Replace with Icon

    On my exception reports in 3.x I created a table interface class that would replace the contents of a cell to an icon.  So, instead of have a red color cell in a report  I would have a column with a nice little icon.  Is there a way to achieve this i