DDL trigger not pulling when executing other ddl schema.

While learning to a review of the oracle and try a few things on my test database, I came across something strange.
I have in my database, smithj and erik of Figure 2.

While signed in as erik, I created this trigger:

create or replace trigger drop_trigger
before the fall on smithj. SCHEMA
Start
raise_application_error (-20000, 'NOT ALLOWED');
end;

and this table:

create table smithj.test (kol1 varchar2 (10));

When I connect you like smithj, then try to delete the table, the trigger is activated as expected:

SQL error: ORA-00604: error occurred at the SQL level 1 recursive
ORA-20000: UNAUTHORIZED

Yet when I try to fall when I am logged in as erik that he succeeds:

drop table smithj.test;

table SMITHJ. TEST has fallen.

I was wondering if someone could explain this behavior to me. I have a sort of expedted triggered when any user has tried to give up anything in the smithj schema.

I have a sort of expedted triggered when any user has tried to give up anything in the smithj schema.

Have a look here:
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25519/triggers.htm#LNPLS99886

Tags: Database

Similar Questions

  • Why the tableStyle script not working, when the other two are

    Hi, please can you help and thank you in advance. I'm puzzled. As you can see, I am new to scripting - a glance through the 15 pages on the forum showed me how the news - and I want a workflow in which I put the styles and then use in this case, "appliedTableStyle" to connect to the appropriate table.
    My question is why this style of table script not work and appear in the palette? (when the two scripts below paragraphs and cells are) I tried the doc.tableStyles.add and the doc.tableStyle.add. Please show me where I'm wrong, or a better alternative. Thank you.
    docTest = app.documents.add)
    table_styles (docTest)
    cell_styles (docTest)
    para_styles (docTest)
    function table_styles (doc)
    {
    with (doc)
    {
    //try {doc.tableStyles.add
    try {doc.tableStyle.add
    ({
    name: "tableGLOBAL."
    bodyRegionCellStyle: doc.cellStyles.item ('cellGLOBAL'),
    headerRegionSameAsBodyRegion: true,
    bodyRowCount: 10.
    headerRowCount: 1.
    })
    }
    catch {} (_)
    }
    }
    function cell_styles (doc)
    {
    with (doc)
    {
    try {doc.cellStyles.add
    ({
    name: "cellGLOBAL."
    appliedParagraphStyle: doc.paragraphStyles.item ('paraBodyGLOBAL'),
    topInset: 0,
    leftInset: 0,
    bottomInset: 0,
    rightInset: 0,
    verticalJustification: VerticalJustification.CENTER_ALIGN,
    firstBaselineOffset: FirstBaseline.LEADING_OFFSET,.
      })
    }
      catch (_){}
    }
    }
    function para_styles (doc)
    {
    with (doc)
    {
    try {doc.paragraphStyles.add
    ({
    name: "paraBodyGLOBAL."
    appliedFont: "Arial,"
    firstLineIndent: 0,
    justification: Justification.LEFT_JUSTIFIED,.
    pointSize: "6 pt."
    main: '8 '.
    })
    }
    catch {} (_)
    }
    }

    Your trial... construction of capture hides the real error - during the development of a script, you can not use.

    When I removed it, ID has reported only with the message quite without value

    "Error string: this attribute is not defined for the table styles.

    Source: ts = doc.tableStyles.add({")

    without saying what attribute... Try one by one, I found this particular result: you cannot initialize 'headerRegionSameAsBodyRegion '... Probably because you cannot initialize without a header first, and you don't "do" again because you always initialize the entire style.

    But this workaround works:

    ts = doc.tableStyles.add({
     name: 'tableGLOBAL'
     , bodyRegionCellStyle: doc.cellStyles.item( 'cellGLOBAL' )
     , headerRowCount: 1
     , bodyRowCount: 10
    });
    ts.headerRegionSameAsBodyRegion = true;
    
  • Sequence of not generated when executing Sp.

    I created a sequence column (numbering auto incre by 1) MSGID in a table, when I insert data with the help of Toad 9 browser when the schema is generated on the specified column. But the problem is when I call asp to insert data, the sequence is not get generated.pls help me with this problem. Urgent pls...

    Please post script in '{code}' tags for readability.

    I took a quick glance to your procedure, and I've not seen all calls to the BILLING_NOTIFY. Sequence MSGID. Why do you expect this value to be entered in the column MSGID when it is not called in the stored procedure? Are there triggers on this table that you plan to make use of the sequence?

    Published by: Centinul on December 31, 2008 07:35

    In addition, what is the purpose of this sequence and the MSGID column? Is it supposed to be a surrogate key? If so, then why the primary key is specified in the creation of the table and why is the NULLABLE column?

  • error identifier not valid when executing a Ref cursr

    I'm ORA00904: 'MARKETING': identifier invalid... and it drives me crazy!
    Here is my sql code...

    Varchar2 (500) StrTitle;
    TYPE RefCurCusts IS REF CURSOR;
    rec_ref_custs RefCurCusts;
    strCusts varchar2 (500);


    StrTitle: = 'MARKETING ';

    OPEN FOR Rec_ref_custs
    ' Select distinct b.account_number, b.marketing_rep_name, c.customer_name, a.meter, a.mappole, a.feeder, b.last_or_corp_name, b.house_number, b.street_direction, b.street_name, b.street_suffix, max (odate) (b.account_number partition) last_called, n.message_type, c.list_name

    Of srs.current_outage_calls o, tlm.customer_electric b, srs.notification_list n, SRS. NOTIFIABLE_CUSTOMERS_VW c, srs.est_customer_outages a

    Where c.SERVICE_ADDR_NUMBER = b.SERVICE_ADDR_NUMBER and substr (b.meter_number, 2, 6) = a.meter and b.service_point_end_date is null and o.meter (+) = a.meter and n.list_name = c.list_name and c.list_name = ' | StrTitle;


    LOOP
    SEEK rec_ref_custs INTO strCusts;
    EXIT WHEN rec_ref_custs % NOTFOUND;

    StrBodyHTML: = StrBodyHTML | ', ' || strCusts;

    END LOOP;


    CLOSE Rec_ref_custs;


    ----------
    Help, please!
    Thank you

    Fuse_5a wrote:
    Why didn't think of this? I was struck by a moment stupid and my brain is fried!

    Thanks a lot for your help :)

    No problem.

    If your question is resolved, please mark it as answered so that people stop to check to see if there are more answers to give.

  • ORA-06592: not found CASE when executing CASE statement

    Hello

    I have a table of application where I built a form master detail (table with 33 columns, 13 is not hidden items and rest are hidden).

    When I run the page I get an error "error while rendering page, article. P10_TIME_SAVED_FREQUENCY, ORA-06592: not found when executing CASE statement CASE"

    Error:

    Error during rendering of the element on the page P8_MONEY_SAVED_FLAG.

    ORA-06592: not found CASE when executing CASE statement

    Technical information (only visible to developers)

    is_internal_error: true

    apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR

    ora_sqlcode:-6592

    ora_sqlerrm: ORA-06592: not found CASE when executing CASE statement

    Component.type: APEX_APPLICATION_PAGE_ITEMS

    Component.ID: 13345536607188241

    Component.Name: P8_MONEY_SAVED_FLAG

    error_backtrace:

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 1751

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4241

    ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN", line 1251

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 977

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 1406

    DEBUG:

    Exploitation forest exception in final_exception_handler:

    SQLERRM: ORA-20987: APEX - error during rendering of the element on the page P8_MONEY_SAVED_FLAG. -

    ORA-06592: not found CASE during the execution of the instruction BOX Backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 853 ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 888 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS"

    line of 3240 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1780 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1950 ORA-06512: at "APEX_040200.WWV_FLOW", line 6725

    How to solve this problem. Please advice

    Oracle Apex Vesion: 4.2.1

    Thank you

    BO123 wrote:

    Hello

    I have a table of application where I built a form master detail (table with 33 columns, 13 is not hidden items and rest are hidden).

    When I run the page I get an error "error while rendering page, article. P10_TIME_SAVED_FREQUENCY, ORA-06592: not found when executing CASE statement CASE"

    Error:

    Error during rendering of the element on the page P8_MONEY_SAVED_FLAG.

    ORA-06592: not found CASE when executing CASE statement

    Technical information (only visible to developers)

    is_internal_error: true

    apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR

    ora_sqlcode:-6592

    ora_sqlerrm: ORA-06592: not found CASE when executing CASE statement

    Component.type: APEX_APPLICATION_PAGE_ITEMS

    Component.ID: 13345536607188241

    Component.Name: P8_MONEY_SAVED_FLAG

    error_backtrace:

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 1751

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4241

    ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN", line 1251

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 977

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 1406

    DEBUG:

    Exploitation forest exception in final_exception_handler:

    SQLERRM: ORA-20987: APEX - error during rendering of the element on the page P8_MONEY_SAVED_FLAG. -

    ORA-06592: not found CASE during the execution of the instruction BOX Backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 853 ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 888 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS"

    line of 3240 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1780 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1950 ORA-06512: at "APEX_040200.WWV_FLOW", line 6725

    How to solve this problem. Please advice

    Oracle Apex Vesion: 4.2.1

    Post a backtrace of the page see the request and the item type properties and the source / default to the value of the P8_MONEY_SAVED_FLAG element.

    Seems to be similar to ORA-06592 with the page only items appear, which also involved a master/detail form. Can you reproduce this on apex.oracle.com?

  • Added system ok but as far as I know, powerUp listener not pulling

    Hey. My application, in main(), adds a listening on starting system to cold (battery replaced), without error. However, the powerUp method below does not pull when I switch off my BB and sur-Appuyez the red end button for 5 sec and press once again (a warm start). How do you get powerUp to call? Code is below.

    MSL MySystemListener = new MySystemListener();
    MonthlySpend ms = new MonthlySpend();
    ms.addSystemListener (msl);

    private static class MySystemListener implements SystemListener
    {
    public void batteryStatusChange(int a) {}
    public void batteryGood() {}
    public void batteryLow() {}
    public void powerOff() {}
           
    public void powerUp() {}

    PerformAnyReset... schedule, calls so if not reset, don't program twice
    If (!.) PerformAnyResetWhichWasScheduledWhilePhoneWasSwitchedOff())
    ScheduleTotalResetForStartDateOfNextBillingCycle();
                                   
    SetIconAndTitle();
    ScheduleIconUpdateOvernight();
            
            
    String logMessage = "Warm" started
    If (EventLogger.logEvent (0x4c9d3452d87922f2L, logMessage.getBytes (), EventLogger.ALWAYS_LOG)) {}
    System.out.println ("Log successful!");
    }

    Hey - fixed. The application itself must be a SystemListener, not another class

    J

  • When I share a note with a checklist, I can see when the other person check of an item. I do not see when registering an item (it is disabled). Why?

    When I share a note with a checklist, I can see when the other person check of an item. I do not see when registering an item (it is disabled). Why?

    Try switching your Notes on / off under settings > iCloud or maybe restart the device-restart your iPhone, iPad or iPod touch - Apple Support to see if this could solve the problem.

  • When a pdf file is open in a tab, automatic scrolling of the cushion does not work in the other tabs, but only for the specific PDF tab.

    The Tablet/mouse scroll function does not work for the other tabs when a PDF file is opened.

    Hi ESNE,.

    Have you checked to see if your PDF is updated? You should take a look at the Base files display PDF in Firefox article. There are lots of good information in there. You should try both of the suggested PDF Add-ons to see if this solves the problem.

    Hope this helps!

  • VI front panel does not close when it is done executing, when this vi was called by reference.

    I created a simple vi set to indicate the problem I'm having. I run dynamically under vi to leave a main application. Simply the main application is my test exec and the Subvi I call dynamically is different tests. In the example I have write here the criterion vi is called Test electric 1(vi). I configured this electric Test 1 vi to see the front when it is called and close later while initially closed.  Problem is that it doesn't close before.

    Other things to keep in mind

    • I want to be able to run the vi test and do not wait until it is done.

    I'm using LabVIEW 2012 SP1.

    Basically the fence after that call questions only if the VI is called as a Subvi (as if you open you a VI and run it, it does not close when it's done).  Are two ways to work around this or have your app high lvl close the VI when it's done, it's explained here:

    http://digital.NI.com/public.nsf/allkb/987B2026B41BD39786256CF800032E8C

    or having your VI close when it's done.  A reference of the VI and the front panel: Close call node.

    I hope this helps.

  • Keyboard Dell Bluetooth is not recognized when energy savings and will not wake my computer. My usb mouse not recognized or the other.

    My Dell Bluetooth keyboard is not recognized when energy savings and will not wake my computer. My usb mouse not recognized or the other.  I use keyboard now, but it seems not be installed yet when I check my keyboard or bluetooth devices. Keyboard does not work after so I'll try to figure out what to do before moving into the power saving mode. Help, please. I did all the updates from microsoft, and there is no update for my bluetooth device, I checked.

    Hello

    1. have you made changes on the computer before this problem?
    2. What is the model of the keyboard?
    3. are you an error message or error code?
    4. which version of the Windows operating system is installed on your computer?

    I suggest you to consult the following Microsoft article and check if it helps.

    On troubleshooting in Windows 7 power management: http://support.microsoft.com/kb/980869

    Troubleshoot keyboard: http://windows.microsoft.com/en-US/windows-vista/Troubleshoot-keyboard-problems

    Keyboard and Microsoft mouse refer:

    Troubleshoot the incidents of the response to the mouse or wireless keyboard: http://support.microsoft.com/kb/838398

    Reference:

    Troubleshooting external Dell Wireless or Bluetooth keyboards and mice: http://support.Dell.com/support/topics/global.aspx/support/KCS/document?docid=277550#Issue0_1

  • Prospective Golf Sports simulation mode full-screen on one monitor, but when it runs the mouse would not return to the other monitor.

    original title: two monitors, mouse stuck
    I'm under Simulation of Golf Sports prospective mode full-screen on one monitor, but when it runs the mouse will not return to the other monitor. It seems that the mouse is not bound by the program, but I want to be able to use another application on the other monitor. Any suggestions?

    Hello

     
    What operating system is installed on the computer?
     
    Method 1: You can press the Windows key on the keyboard that appears in the start window and your mouse will automatically gets shifted to the main monitor.
     
    Method 2:
    (a) click Start, type change the mouse settings.
    (b) go to the pointer Options tab of
    (c) uncheck Display pointer trails
    (d) click apply and OK.
     
    Method 3: See if he has all the parameters of the Simulation of Golf to release the mouse button.
     
    If the methods above do not help, you can contact the Golf Simulation for additional help.
     
  • When executing "Difficulty It Center Microsoft" I get a message "input string was not in a correct format." What does that mean?

    When executing "Difficulty It Center Microsoft" I get a message "input string was not in a correct format." What does that mean?

    Hello

    The question you have posted is related to Microsoft fix and would be better suited in the Microsoft Support Tools Forums. Please visit the link below to find a community that will provide the support you want. http://social.Microsoft.com/forums/en-HK/fixitcenter/threads

  • My wireless router does not appear when I shoot to the top of my devices. It shows my fax, modem, scanner and a few others. But not my belkin wireless.

    My wireless router does not appear when I shoot to the top of my devices. It shows my fax, modem, scanner and a few others. But not my belkin wireless. And when I try to add it, the system can't find it. Please help

    Belkin support for your model, for installation instructions.

    Your router will not appear in the devices

  • The bean code is not activate when-custom-point-event trigger

    I wrote a java bean to read card reader Omnikey.  It works - almost.  When-custom-point-event is not fired.  Get the key of the reader in the java console, but then follows an exception.  The exeption complains, I believe, m_handler null variable in dispatchMessage() call which is what should be pulled when-custom-point-event in the form. I'm missing something minor and that everything works.  See Oracle Forms java console ATR key followed then path exception at the bottom of this post.  I have to FBean.Enable_Event.  What would be the name of the event listener?   I got the kifani of this example code: https://community.oracle.com/thread/68004------ this example isn't mention or implement a listener.  I just need to return the key and place it in a named text field: test.atr.

    a time new form instance

    FBean.Register_Bean('TEST.) CARD_READER_BEAN_AREA', 1, 'CardReader.CardReaderWrapper');

    FBean.set_logging_mode('TEST.) CARD_READER_BEAN_AREA', 1, FBEAN. LOG_ALL);

    button with when button pressed

    fbean. Invoke('TEST.) CARD_READER_BEAN_AREA', 1, 'main');

    When-custom-point-event

    DECLARE
    eventName varchar2 (30): =: system.custom_item_event;
    eventValues ParamList;
    number of eventValueType;
    tempString varchar2 (100);
    BEGIN
    IF (eventName = "CARDINFO_EVENT") THEN
    eventValues: = get_parameter_list(:system.custom_item_event_parameters);
    get_parameter_attr (eventValues, 'CARDINFO_DATA', eventValueType tempString);
    END IF;

    - Then do something with tempString...
    -for example
    -message ("payload has been: ' |") tempString);
    : test. ATR: = tempString;
    END;

    Java Bean code...

    package, card reader;

    import java.util.List;

    Javax.smartcardio import. *;

    Import oracle.forms.ui.VBean;
    Import oracle.forms.properties.ID;
    Import oracle.forms.handler.IHandler;
    Import oracle.forms.ui.CustomEvent;

    SerializableAttribute public class CardReaderWrapper extends kifani {
    Property registered under the name of the custom event
    Call it what you want...
    public static String strOut = null; used in part of the code ATR

    public static final ID CARDINFO_EVENT = ID.registerProperty ("CARDINFO_EVENT");

    Property to set the name of the parameter that contains the payload
    the event - for example your data
    public static final ID CARDINFO_DATA = ID.registerProperty ("CARDINFO_DATA");

    A reference to the Forms Manager associated with this component.
    It is used to send custom form events
    private IHandler m_handler = null;

    /**
    * Method of the oracle.forms.ui.IView class and substitute of the kifani
    * base class.  This life cycle method is called one time what forms creates a
    the instance of the JavaBean.
    *
    < B > @param Manager < /b > a reference to the handler for the JavaBean class.
    */
    {} public void init (Manager IHandler)
    Manager = m_handler;
    Super.init (Handler);
    }

    /**
    * Function to dispatch an event and the data payload
    * Return to forms
    * In this case, we use the pre-defined event and the IDs payload
    *
    @param payload < b > < /b > to return to the event data.
    */
    Private Sub dispatchMessage (String payload) {}
    try {}
    The CustomEvent = new CustomEvent (m_handler, CARDINFO_EVENT);
    m_handler. SetProperty (CARDINFO_DATA, payload);
    super.dispatchCustomEvent (this);
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }


    the rest of your bean code follows
    and calls the dispatchMethod() method, which precedes
    to contact forms

    Public Shared Sub main (String [] args) {}

    CRW CardReaderWrapper = new CardReaderWrapper();
    Plant of TerminalFactory = TerminalFactory.getDefault ();

    CardTerminals cardTerminals = factory.terminals ();
    The list < CardTerminal > cardTerminalList;

    try {}

    cardTerminalList = cardTerminals.list ();

    for (CardTerminal cardTerminal: cardTerminalList) {}

    If (cardTerminal.isCardPresent ()) {}
    Card card;

    try {}

    map = cardTerminal.connect ("T = 0");

    card.beginExclusive ();
    } catch (CardException e) {}
    strOut = ("8"); This card but with card error
    System.out.println (strOut);
    crw.dispatchMessage (strOut);
    continue;
    }
    ATR atr = card.getATR ();

    Byte [] atrBytes = atr.getBytes ();
    System.out.println ("0" + javax.xml.bind.DatatypeConverter.printHexBinary (atrBytes));
    strOut = '0' + javax.xml.bind.DatatypeConverter.printHexBinary (atrBytes);
    card.endExclusive ();
    Card.Disconnect (true);

    crw.dispatchMessage (strOut);
    }

    }

    } catch (CardException e) {}
    System.out.println("7"); no card reader not connected? ») ;
    crw.dispatchMessage("7");

    }
    If (strOut == null) {}
    System.out.println("9");
    crw.dispatchMessage("9");
    }
    }


    }

    Key to Java Console ATR with the Exception

    0 3B0500026E05BA

    java.lang.IllegalArgumentException: null source

    to impossible. < init >(Unknown Source)

    to oracle.forms.ui.CustomEvent. < init >(Unknown Source)

    at CardReader.CardReaderWrapper.dispatchMessage (CardReaderWrapper.java:48)

    at CardReader.CardReaderWrapper.main (CardReaderWrapper.java:97)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at oracle.forms.beans.MethodHelperPM.invokeMethod (unknown Source)

    at oracle.forms.beans.MethodPM.setProperty (unknown Source)

    at oracle.forms.ui.VBean.setBeanProperty (unknown Source)

    at oracle.forms.ui.VBean.setProperty (unknown Source)

    at oracle.forms.handler.ComponentItem.setCustomProperty (unknown Source)

    at oracle.forms.handler.ComponentItem.onUpdate (unknown Source)

    at oracle.forms.handler.JavaContainer.onUpdate (unknown Source)

    at oracle.forms.handler.UICommon.onUpdate (unknown Source)

    at oracle.forms.engine.Runform.onUpdateHandler (unknown Source)

    at oracle.forms.engine.Runform.processMessage (unknown Source)

    at oracle.forms.engine.Runform.processSet (unknown Source)

    at oracle.forms.engine.Runform.onMessageReal (unknown Source)

    at oracle.forms.engine.Runform.onMessage (unknown Source)

    at oracle.forms.engine.Runform.processEventEnd (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.redispatchEvent (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.processEvent (unknown Source)

    at java.awt.Component.dispatchEventImpl (unknown Source)

    at java.awt.Container.dispatchEventImpl (unknown Source)

    at java.awt.Component.dispatchEvent (unknown Source)

    at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)

    at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)

    at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)

    at java.awt.Container.dispatchEventImpl (unknown Source)

    at java.awt.Window.dispatchEventImpl (unknown Source)

    at java.awt.Component.dispatchEvent (unknown Source)

    at java.awt.EventQueue.dispatchEventImpl (unknown Source)

    at java.awt.EventQueue.access$ 500 (unknown Source)

    in java.awt.EventQueue$ 3.run (unknown Source)

    in java.awt.EventQueue$ 3.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)

    in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)

    in java.awt.EventQueue$ 4.run (unknown Source)

    in java.awt.EventQueue$ 4.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.ProtectionDomain$ JavaSecurityAccessImpl.doIntersectionPrivilege (unknown Source)

    at java.awt.EventQueue.dispatchEvent (unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForFilters (unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForFilter (unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)

    at java.awt.EventDispatchThread.pumpEvents (unknown Source)

    at java.awt.EventDispatchThread.pumpEvents (unknown Source)

    at java.awt.EventDispatchThread.run (unknown Source)

    Well... I solved this problem by making static m_handler.  Now I have another question.  I post another question...

  • What is wrong with this sequence, it does not work when, after 3 inserts, I add a new record with the trigger it gives an error.

    Mr President.

    What is wrong with this sequence, it does not work when, after 3 inserts, I add a new record with the trigger it gives an error.

    --SL_CUSTOMERS table data
    
    
    INSERT INTO SL_CUSTOMERS VALUES(1,'Kamrul Hasan',NULL,NULL,'Moghbazar', 'Dhaka','0456789123',NULL,NULL,NULL,'Y',NULL);
    INSERT INTO SL_CUSTOMERS VALUES(2,'Rabiul Alam',NULL,NULL,'Motijheel', 'Dhaka','0567891234',NULL,NULL,NULL,'Y',NULL);
    INSERT INTO SL_CUSTOMERS VALUES(3,'Shahed Hasan',NULL,NULL,'2-G/1,2-2,Mirpur', 'Dhaka','0678912345',NULL,NULL,NULL,'Y',NULL);
    
    
    
    

    CREATE SEQUENCE  "ALIZA"."SL_CUSTOMERS_SEQ"  MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER  NOCYCLE ;
    
    
    CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG 
    BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS"   
    FOR EACH ROW   
    BEGIN   
    IF :NEW.CUSTOMER_ID IS NULL OR :NEW.CUSTOMER_ID < 0 THEN  
      SELECT SL_CUSTOMERS_SEQ.nextval   
        INTO :NEW.CUSTOMER_ID  
        FROM DUAL;   
      END IF;   
    END;   
    /
    
    
    
    

    When I try to insert several records with the seq.nextval it gives error

    violation of primary key.

    INSERT INTO "ALIZA"."SL_CUSTOMERS" (CUSTOMER_NAME) VALUES ('sdfsd')
    ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated
    ORA-06512: at line 1
    
    
    
    
    One error saving changes to table "ALIZA"."SL_CUSTOMERS":
    Row 4: ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated
    ORA-06512: at line 1
    
    
    
    
    
    
    
    

    Concerning

    Mr President.

    I find the solution by creating a function before the triiger

    as below

    CREATE SEQUENCE  "ALIZA"."SL_CUSTOMERS_SEQ"  MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER  NOCYCLE ;
    
    CREATE OR REPLACE FUNCTION get_SL_CUSTOMERS_vId RETURN VARCHAR2 AS
    BEGIN
       RETURN SL_CUSTOMERS_SEQ.NEXTVAL;
    
    END;
    /
    
    CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG
    BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS"
    FOR EACH ROW
    DECLARE
    dummy VARCHAR2(200);
    BEGIN
      dummy := get_SL_CUSTOMERS_vId();
      :NEW.CUSTOMER_ID := dummy;
    END;
    /  
    

    It works very well

    Thank you all for the suggestions.

    Concerning

Maybe you are looking for

  • Request photos and Time capsule

    Hi, could you please let me know if time capsule capsule could be used to share a library of photos? Incidentally, it's a very bad idea to gave this name to a request (pictures), it is impossible to retrieve information on a search engine using 'phot

  • Satellite A200-1N7: activity 2, 10 - WIN fan of Bios

    Hi all I know already what the problem discussed with high activity fan in bios 2.10 - WIN. But I have yet to find any solution. Model: A200 1N7OS: Windows Vista 32 b Is a solution how to speed down the fan or reduce the activity of the fan?TOSHIBA P

  • OfficeJet Pro 6830: Officejet Pro 6830 display is disabled

    The LCD of my Pro Officejet 6830 is off and does not start.  Looks like the touch screen works - at least I hear tones click when I touch the screen, but it is off and I can't do any copy or scan function since I can't find where to touch. Printing f

  • Vector images

    Hi, I use windows vista, and I recently downloaded vector images purchased. They were saved as an eps file. How can I open them on my computer without going through adobe illustator. Whenever I try to open it, it just says that it is not a supported

  • HOW TO SWITCH FROM STANDARD TO ADMINISTRATOR__

    I WANT TO SWITCH TO ADMINISTRATOR STANDARD