Is it possible to create a trigger with a trigger?

Hi,
I'd like to create an AFTER CREATE system trigger that will create a BEFORE INSERT trigger on a certain table once it is created.
Is this possible, or is there a better way? The problem I am having is that I'm getting an error when I put a trigger body inside a trigger body; the "/" is causing problems.

You could create a prcoedure that is responsible for building the trigger body in a varchar2 and then issue an execute immediate on the string....and call it from your trigger.

Similar Messages

  • How to Create a table with numeric trigger for INSERT

    Let me start off by saying that I am very new to DBMS.
    I need to create a Table with INSERT Trigger. I am not exactly sure if I need to have a BEFORE ot AFTER insert trigger but leanning towards AFTER.
    I have a Java code that will need insert a row each time that piece of code is executed. I would also like an oracle trigger to insert a unique numeric value (REC_ID) for that that record.
    I am totally lost and I am not sure how to go about it. Can you point me to the right direction?
    Basically my table will have the following 3 columns
    REC_ID NUMBER NOT NULL (uniquie value inserted by the trigger)
    PROPERTY_NAME VARCHAR2(100 BYTE)
    PROPERTY_VAL VARCHAR2(100 BYTE)
    Thank you in advance
    Eric

    Take a look at the following: Also please do a search in this forum.
    http://infolab.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html

  • Is it possible to create a form with multiple form fields on a single line?

    Is it possible to create a form with multiple form fields on a single line?  I can't find anything in the documentation or a template that does this.
    I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
    In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor.  I would prefer to use FormsCentral if it is possible.

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • Is it possible to create a Column with Conditional Mandatory with another Column?

    Is it possible to create a Column with Conditional Mandatory with another Column?
    For example
    In a Table we have column A, B, C.
    A is Primary Column.
    B is Optional
    C is Conditional Mandatory.
    A B
    C
    12345 ABC
    OK
    12346 NULL
    NULL
    12347 ABC
    OK
    Only if the B Column has the value then only C column should be mandatory

    I guess you can't create a condtional mandatory column directly. However, you can use check constraint to on the column
    create table YourTable
      A int primary key,
      B char(3),
      C int,
      constraint ch_con check(
                                B
    is not null
    or C is null

  • Is it possible to create DVD Templates with Motion for burning Blue Ray DVDs from Final Cut Pro X?

    Is it possible to create DVD Templates with Motion for burning Blue Ray DVDs from Final Cut Pro X?

    As far as I know, motion templates can only be used with DVD Studio Pro. FCP X only lets you add a background image to the DVD menu.

  • Is it possible to create a timestamp with an accuracy of 1ms?

    I want to acquire data with PCI-6023 and write them with a precise timestamp to a file. Is it possible to create a timestamp with an accuracy of 1ms?
    Maybe somebody can tell me experiences with logging data over a time periode up to 24 hours (and time-accuracy of 1ms)?

    Hi Hans, This forum is related to one of National Instruments' automation products rather than data aquisition. Perhaps you will acheive better results if you post your question to one of the "Measurement Devices" forms instead.

  • Is it possible to create a tree with drag-and-drop functionality using ajax

    I saw these samples;
    Scott Spendolini's AJAX Select List Demo
    http://htmldb.oracle.com/pls/otn/f?p=33867:1:10730556242433798443
    Building an Ajax Memory Tree by Scott Spendolini
    http://www.oracle.com/technology/pub/articles/spendolini-tree.html
    Carl Backstrom ApEx-AJAX & DHTML examples;
    http://htmldb.oracle.com/pls/otn/f?p=11933:5:8901671725714285254
    Do you think is it possible to create a tree with drag-and-drop functionality using ajax and apex like this sample; http://www.scbr.com/docs/products/dhtmlxTree/
    Thank you,
    Kind regards.
    Tonguç

    Hello,
    Sure you can build it, I just don't think anyone has, you could also use their solution as well in an APEX page it's just a matter of integration.
    Carl

  • Is it possible to create purchase order with zero value ?

    Is it possible to create purchase order with zero value ?

    Hi,
    There are two scenarios where the purchase order is created with zero value.
    1. Standard Purchase order with Free tick indicator.
    Whenever we expect a material with free of cost from vendor, we use to put the free indicator in item overview.  This means the material is valuated at zero price irrespective of price control in material master. Quanitiy is updated while receipts.
    Conditions tab in item detail doesnt appear.
    2. Consignment PO.
    While creating a purchase order for consignment, the system doesnt ask us the price and the condition tab doesnt appear in item detail.
    An info record for consignment must be maintained before making the GR.
    Hope i have clarified.  If you want any further clarification. please do reply.

  • Is it possible to create sub-client with in SAP production (PRD) client

    Hello Experts,
    Is is possible to create sub client with in SAP production client?
    The question came to mind is that if I am the father company of two child/sub companies and both these function under my company and the users of all the companies will have different SAP log in . But, I can I create a Main PRD client say 'PRD L1 and under this client I create PRD L2 and PRD L3.
    Is that possible and seems logical?
    Thanks & Regards
    Saurabh

    This is not a question for this forum, because you are trying to discuss security where you should be trying (or rather your FI/CO department should be) to discuss business scenarios.
    I never dreamed (after 20 years doing SAP), that I'd quote the original SAP documentation on clients vs. company codes again, ever - but here it goes:
    Company Code
    Definition
    Smallest organizational unit of external accounting for which a complete, self-contained set of accounts can be created. This includes the entry of all transactions that must be posted and the creation of all items for legal individual financial statements, such as the balance sheet and the profit and loss statement.
    The definition of the company code organizational unit is obligatory .
    Anything bigger goes to a different client.
    Try to come up with a business architecture first and adapt security after, accordingly.

  • Is it possible to start a PCI4472 and a PCI-MIO-16E-1 simultaneously using an analog trigger (with pre-trigger)?

    I would like to start several PCI 4472 and a PCI-MIO-16E-1 simultaneously. All boards are connected via a RTSI cable.
    My program works fine if I use software trigger, or an analog trigger from a PCI4472 channel. However, the analog trigger works only when I set pre-trigger (or pre-scan) to 0.
    Is it possible to start a PCI4472 and a PCI-MIO-16E-1 simultaneously using an analog trigger (with pre-trigger)?
    Thanks.
    Ian Ren

    Hi, Bill
    I think it is possible to set more than 38 pre-trigger scans on a single 4472 card. I've done this before. You can verify this by running the Labview example "Acquire N - Multi-Analog Hardware Trig.vi" which comes with LabView.
    What I try to do but without success/luck so far is to start data acquisitions of several 4472 cards and a PCI-MIO-16E-1 card using an anlog trigger (with pre-trigger).
    Thanks for your help.
    Ian

  • Is it possible to create a dynamic(with a select) check constraint?

    create table a (col_to_be_coded_fora number);
    create table b (col_to_be_coded_forb number);
    create table c (col_name varchar2(20), col_code number, col_desc varchar2(20));
    insert into c values ('col_to_be_coded_fora', 1, 'active');
    insert into c values ('col_to_be_coded_fora', 2, 'de-active');
    insert into c values ('col_to_be_coded_fora', 3, 'pending');
    insert into c values ('col_to_be_coded_forb', 10, 'school');
    insert into c values ('col_to_be_coded_forb', 20, 'hospital');
    insert into a values ( 1); -- meaning 'active' for table a, column col_to_be_coded_fora, can go in
    insert into a values (10); -- meaning nothing for table a, column col_to_be_coded_fora, must give error
    insert into b values ( 1); -- meaning nothing for table b, column col_to_be_coded_forb, must give error
    insert into b values (10); -- meaning 'school' for table b, column col_to_be_coded_fora, can go in
    I know i can handle this problem with dividing table c into to tables and creating foreign key relationship.
    in this demo case i have only a and b, 2 tables but i want to encode thousands of tables with a table like c.
    İs it possible to create a dynamic check constraint on a table which selects c table for the inputs that have permision?
    Or do i have to use after insert, update triggers on table a and b to ensure this functionality?
    Is there a smarter implementation for this need, may be a design change?
    Thank you,
    Kind regards.
    Tonguç

    Hi Tonguç,
    A small design change makes it possible to do this with simple foreign key constraints.
    I would do something like:
    ual303@ORKDEV01> CREATE TABLE c (
      2    col_name VARCHAR2(20),
      3     col_code NUMBER,
      4     col_desc VARCHAR2(20),
      5     PRIMARY KEY (col_name, col_code)
      6  );
    Tabel is aangemaakt.
    ual303@ORKDEV01> CREATE TABLE a (
      2    col_to_be_coded_fora NUMBER PRIMARY KEY,
      3     col_name VARCHAR2(20) DEFAULT 'col_to_be_coded_fora' CHECK (col_name = 'col_to_be_coded_fora'),
      4     FOREIGN KEY (col_name, col_to_be_coded_fora) REFERENCES c
      5  );
    Tabel is aangemaakt.
    ual303@ORKDEV01> CREATE TABLE b (
      2    col_to_be_coded_forb NUMBER PRIMARY KEY,
      3     col_name VARCHAR2(20) DEFAULT 'col_to_be_coded_forb' CHECK (col_name = 'col_to_be_coded_forb'),
      4     FOREIGN KEY (col_name, col_to_be_coded_forb) REFERENCES c
      5  );
    Tabel is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_fora', 1, 'active');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_fora', 2, 'de-active');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_fora', 3, 'pending');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_forb', 10, 'school');
    1 rij is aangemaakt.
    ual303@ORKDEV01> insert into c values ('col_to_be_coded_forb', 20, 'hospital');
    1 rij is aangemaakt.
    ual303@ORKDEV01> -- meaning 'active' for table a, column col_to_be_coded_fora, can go in
    ual303@ORKDEV01> insert into a(col_to_be_coded_fora) values ( 1);
    1 rij is aangemaakt.
    ual303@ORKDEV01> -- meaning nothing for table a, column col_to_be_coded_fora, must give error
    ual303@ORKDEV01> insert into a(col_to_be_coded_fora) values (10);
    insert into a(col_to_be_coded_fora) values (10)
    FOUT in regel 1:
    .ORA-02291: integrity constraint (UAL303.SYS_C0033537) violated - parent key not found
    ual303@ORKDEV01> -- meaning nothing for table b, column col_to_be_coded_forb, must give error
    ual303@ORKDEV01> insert into b(col_to_be_coded_forb) values ( 1);
    insert into b(col_to_be_coded_forb) values ( 1)
    FOUT in regel 1:
    .ORA-02291: integrity constraint (UAL303.SYS_C0033540) violated - parent key not found
    ual303@ORKDEV01> -- meaning 'school' for table b, column col_to_be_coded_fora, can go in
    ual303@ORKDEV01> insert into b(col_to_be_coded_forb) values (10);
    1 rij is aangemaakt.
    ual303@ORKDEV01>Cheers,
    Colin

  • Is it possible to create a panel with JavaScript?

    Hi friends
    As I´m studying JavaScript and the user interface creation...would like to ask (more for curiosity):
    Is it possible to create a new panel for Illustrator using JavaScript? Or this is only possible using C++?
    (in the Window Class UI we have the "palette" creation method..so wondering the result of it too)
    Thank you a lot
    Gustavo

    Hi Larry
    Thank you a lot for sharing this reference. This has alternative explanations from the JavaScript Tools Guide that already come with the Extended Script Toolkit SDK (I´m reading this and finding very very useful).
    My question, however, is not covered in any of the manuals.
    I´d like to confirm if a panel (like Brushes, Swatches, Appearance and Layer Illustrator panels) can be made only via C++??? (and not via JavaScript).
    Can I assume the Script UI capabilites in JavaScript can resume itself on creating dialog boxes only (not panels that persist, keep opened in the software, also could be docked in the side of app)?
    Thank you
    Gustavo.

  • Is it possible to create a page with a signature, that can be then applied to other pages?

    I want to know if I can create a page, with a place for an ink signature, and that signature can be then copied onto other pages within the pdf where the same person's signature is needed.

    I would like to invite you to take a look at my Nugget on Action Engines.
    Since you have a data value that must be available for live updates in more than one place in the code, an Action Engine will provide a reliable method to share that value. You will update the Action Engine any time the control changes. All other function that require that information can read the the value form the Action Engine.
    That method has been in use since LV version 2 and provided the AE is implemented correctly (see Nugget) it gives good performance and helps keep code modular.
    I hope that help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is it possible to create a Synonym with different column names

    Hi,
    I want to create a Synonym with different columns names (Columns not in original table) . I am not sure if this can be done . Any suggessions...
    Thanks in advance....

    Synonyms are not limited to tables. Accroding to the SQL Reference, a synonym is:
    an alternative name for a table, view, sequence, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym.
    In fact, synonyms are not even validated until they are used:
    SQL> create synonym my_synonym for table_which_does_not_exist;
    Synonym created
    SQL> select * from my_synonym;
    select * from my_synonym
    ORA-00980: synonym translation is no longer valid

  • Is it possible to create a PDF with different colors for screen and printing?

    I'm working on a document that features light colored text on a dark background. I'll be sending this document as a PDF to someone who will likely want to print it. Is it possible to set up the document such that it will display this way when viewed on screen, but will print as black text on a white background, without requiring any special action on the part of the recipient?
    Printing a color separation of just the text color produces exactly the results I'm after, but I can't ask the recipient to do that. I need it to happen automatically any time it's printed.
    I've tried setting up a duplicate text layer in black and placing it under the background layer, then setting the background layer and colored text to 'never print'. This works within Acrobat Pro, but not when I print the same document from Preview.
    Is there an acrobat equivalent of a CSS print stylesheet?
    Thanks.

    Create the document in layers with the background on a seperate layer than the text. Export the PDF with"Create Acrobat Layers" selected (it will need to be at least version 1.5).
    Open the PDF in Acrobat, choose the background layer then Options>Properties>Initial State and under "print" choose "Never prints".

Maybe you are looking for

  • Change FB02 display. Documents with Special GL Posting

    Hello. I've been trying to modify FB02 layout in order to display BSEG-ZFBDT under the additional data section (below the line item information) The problem is that if I do an FB02 with a regular customer document that posted to the reconciliation ac

  • Java Proxy- Exchange Profile Parameters

    Hi all, Do we have to set any exchange profile paramters for the java runtime to function to transfer the data from the messaging system to java proxy method. Pleas let me know if we need to set any such parameters. Thanks and Regards Arvind

  • Can send - not receive

    Finally got mail half running. I can send and receive directly using one of the mail server's accounts but if send from an outside account it bounces saying Relay access denied (in reply to RCPT TO command) Where should I be looking to remedy the pro

  • Java.lang.ClassCastException when invoking EJB from BPEL

    Hi, We have a EJB deployed in one OC4J instance and the BPEL is deployed in another OC4J instance. ClassCastException occurs when the BPEL invokes the EJB. Any feedback would be appreciated. Regards, M.Rajesh

  • License issues

    Hello I would like to know if you can have access to different CS programs at the same time using the same license in different computers, example using Adobe Illustrator and Adobe Photoshop at the same time in two different computers.