Having Problem with logon & logoff Triggers for the SCHEMA

hi,
I have created triggers "LOGOFF_TRIG" & "LOGON_TRIG" . This triggers fires each time the user SCOTT logings and logoff from the database and stores the info in table log_trig_table. Below the code of the trigger
LOGOFF_TRIG
CREATE OR REPLACE TRIGGER logoff_trig
BEFORE LOGOFF ON SCHEMA
BEGIN
     INSERT INTO log_trig_table(user_id, log_date, action)
     VALUES (USER, SYSDATE, ’Logging off’);
END;LOGON_TRIG
CREATE OR REPLACE TRIGGER logon_trig
AFTER LOGON ON SCHEMA
BEGIN
     INSERT INTO log_trig_table(user_id, log_date, action)
     VALUES (USER, SYSDATE, ’Logging on’);
END;But whenever i m loggin off or on using the user SCOTT there seems to be nothing being updated on table log_trig_table. Why ?

i tried the new code provided it is telling not sufficeint priviledge. But i have all the priviledges for user SCOTT.
Also i tried putting the commit in the below code. Tried disconnect command from theSQL* Plus. this time i didnt got any ERROR but still there were no data in table log_trig_table
CREATE OR REPLACE TRIGGER logoff_trig
   BEFORE LOGOFF
   ON SCOTT.SCHEMA
BEGIN
   INSERT INTO log_trig_table (user_id, log_date, action)
     VALUES   (USER, SYSDATE, 'Logging off');
      commit;
END;Below is what my requirement
1) Create a trigger on Schema SCOTT for logon and logoff
2) Whenever user scott is connect or disconnect the respective trigger should fire and stores the result in table log_trig_table which is in schema SCOTT

Similar Messages

  • I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them

    Can any one please help me I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them. I have tried all restoring options but no use. please help me

    The mic on my iPhone4 has just quit also. Similar symptoms to yours in that people I'm talking to hear only static or my voice very faintly. The voice/memo recorder also only really records static.
    It happened suddenly and seemed to get better after a day or two but then went completely after another day.
    I'm returning it to Vodafone New Zealand shortly but will have to wait 5-10 days for a replacement. There are NO Apple accredited means to speed this procedure up in NZ.
    We don't even have a single physical Apple Store where you could walk in and talk to a Genius.

  • I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Is anyone else having problems with there phone freezing after the 8.0 update?

    iis anyone else having problems with there phone freezing after the 8.0 update??

    Hello Chefboyharley,
    Thanks for the question. After reviewing your post, it sounds like the phone is unresponsive. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    iOS: Not responding or does not turn on
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I have been having trouble with my iphone 4 for the past day . i tried to update it to 7.0.4 then the screen went blank and it keeps telling me to connect to itunes . I have connected it to 2 computers , using different cords

    I have been having trouble with my iphone 4 for the past day . i tried to update it to 7.0.4 then the screen went blank and it keeps telling me to connect to itunes . I have connected it to 2 computers , using different cords and it doesnt recognize it . It says it is in recovery mode and i need to restore . after clicking restore it says that my iphone cannot be restored . I am very frustrated because i have been online searching for solutions all day and nothing seems to work . As soon as i turn on my phone it goes to the apple logo for about 2 seconds then the connect to itunes screen . SOMEBODY PLEASE HELP ! my phone is my life and i need it back on .

    Connect the device to iTunes and restore from the most current backup.
    If the issue continues, restore as new.

  • I have been having problems with my speaker. After the recent update I am unable to listen to movies or music using my speaker. The volume bar is completely missing. If I plug a headset into the port, the volume bar reappears.

    I have been having problems with my speaker. After the recent update I am unable to listen to movies, music or apps using my speaker. The volume bar is completely missing. If I plug a headset into the port, the volume bar reappears and then disappears after the headset is removed. This is quite annoying. My child's Apps that he likes to play will not even make a sound. HELP!!!

    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
    Note: You will not lose any data.

  • I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    Do you have Parallels installed by any chance?  There is a known problem that causes symptoms similar to this.  You do not need to actually be running Parallels at the time and nothing in ActivityMonitor would point to Parallels.  An update corrects the problem:
    http://kb.parallels.com/111541

  • Having problem with change of name in the datagrid Coding

    I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
    The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
    There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
    This is my flash code
      function goCourse(e : MouseEvent):void
      gotoAndStop(5);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      dataDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      function gridItemSelected (e: Event): void {
      ID = e.target.selectedItem.ID;
      courseTxt.text = e.target.selectedItem.Course_Name;
      priceTxt.text = e.target.selectedItem.Price;
      descTxt.text = e.target.selectedItem.Description;
      private function getParams () {
      var param: Object = new Object ();
      param.ID = ID;
      param.Course_Name = courseTxt.text;
      param.Price = priceTxt.text;
      param.Description = descTxt.text;
      return param;
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("Course.viewCourse", refreshResponder);
      private function refreshSuccess (result: Object): void {
      dataDG.dataProvider = RecordSetDP.toDataProvider (result);
         dataDG.columns = ["Course_Name","Price","Description","Display"];
      private function onFault (fault: Object): void {
      trace (String (fault.description));
    This is my php file code.
      function viewCourse()
      $this->connect();
      $sql = "SELECT Course_Name,Price,Description,Display
      FROM coursetb";
      return mysql_query($sql,$this->_connection);

    i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

  • Hi! having problem with aam program launch for downloading

    hi can you help me having problems downloading app I can't drag and drop and if I try to install using download link it tells me to choose the aam program I want to use.  I have successfully downloaded other apps before and dont know where to find this program really need some help with this. Thanks!

    Thanks
    for quick response
    I can access the aam now that I know what it stands for by opening the application seperately from the desktop and download. What I cant do is download from the cloud site where it is unable to locate and open the aam from there. As long as I can download I dont have a problem with it Im guessing it may well be a windows or browser issue. I will try from chrome if I it doesnt work I will let the firum know I would be interested to know whether its something Im doing or its a common issue.
    Cheers
    Helen

  • Anyone having problems with 4s after upgrading to the 5.0.1 Software

    My iphone 4s was working perfectly fine before i upgraded to the 5.0.1 software. Now i cant make calls or receive. Everytime i try to make a call its say " Call fails" and then its searches to connect to the network. I have tried restoring it 3 time to the factory settings in itunes but it still has the same problems. It has to be something with the 5.0.1 software as my phone worked perfectly fine before.  Is there anyway to go back to the 5.0.1 software?

    I found this workaround and it worked for me. 
    "According to Hontz, the issue seems to be affecting only iPhone 4S users. Hontz has provided the following workaround to fix the issue:
    1) Open the Phone and dial *228. This is a Verizon over-the-air programming number. 2) When the system answer press 1 for “Program or activate your phone” 3) Wait for the call to disconnect. You should get a prompt stating something like, “Settings updated.” 4) Open the Task Manager (double click the home button) and kill the Phone, Message, and Contacts Applications 5) Wait a few minutes (I waited 3 just to be extra safe) 6) Open the Message App to verify the fix.
    If you are still broken, kill the Message App again, then reboot your phone.
    Did iOS 5.0.1 also mess up your iPhone Contacts? Let us know if the workaround helped."
    via: TSF

  • Having problem with "artwork size & resolution exceeds the max that can be rasterized"

    Hi all,
    Ok, I created a 162.7" x 90.6" document (artboard) for an exhibition display I'm designing. The document was created using all the defaults - i think this is where i went wrong. Illustrator is now telling me that "the combination of artwork size and resolution exceeds the maximum that can be rasterized" after i open the document and when i try to add a drop shadow to anything.
    Other than some vector graphics i created in illustrator, I only have 3 180ppi and 4 300ppi photos tranfered right off the photograpers camera.
    I selected :
    1. "Print Document" from the initial splash window.
    2. I entered the artboard size, bleed and left the "Raster Effects" setting to "High (300ppi)"
    I think leaving the Raster Effects setting at 300ppi is where the problem is.
    Do i have to create a new document or can i fix the existing one?

    nados you are a little confused that's all I think things are ll right and you are probably set to go with out going to Photoshop.
    1. Your file is probably fine as is
    2. Make certain you images are linked and not embedded
    3. Your Images are probably ok as far as they are for the the specs required do not lower the resolution just make certain they are linked.
    You may have to reimport them and in the place dialog make certain link is checked.
    4. The Raster Image Effects setting is fine leave it as is.
    5. The jpegs are fine lee your images as is if that was what was supplied to you and they look clean.
    6. When saving the file save as .AI format and in the AI save as option dialog uncheck include linked files
    (you will send them the jpegs as well as the AI file.)
    7. Send the images in what ever format they are now since that is jpeg leave it be just make certain the dimensions are the same as is being used in the document at 100%.
    8 Make Certain you select the text and got Type> Create Outlines before saving the file.
    9 Do not export the file to any other format.
    10 Send the printer production house the AI file and the Jpegs you will be fine.
    You should not have a problem with this file.

  • Problem with my program looking for the settings file in the wrong folder

    I have been writing a simple FTP file uploader, what I want to do is be able to select the files I want to upload in windows explorer and then right click and click the menu item and it launches the program and passes the files paths that I have selected to it.
    So I use this in the windows registry "C:\Program Files\Java\jre1.6.0_03\bin\java.exe -jar D:\BenFTP\BenFTP.jar %1"
    It launches fine and has no problem finding the files I want to upload. The problem is that it tries to look for the settings file in the same folder that the file I am try to upload is in. Which it's not suppose to do since the settings file is in the same folder that the .jar is in.
    Edited by: ColNewman on Feb 5, 2008 6:55 PM

    So, you're looking for your settings file in your current working directory. There's no way to set the CWD in your registry entry (is there?) so that isn't a practical thing to do. Presumably you're using a File object or a FileReader or something? Can't do that.
    One alternative is to look for the settings file in the classpath. You can get a URL to a file in the classpath like this:URL settings = this.getClass().getResource("/settings.xml");Or you can get an InputStream to read the file by using the getResourceAsStream method. You would have to make sure that your executable jar file contained a Class-Path entry that specified the right directory, because the directory the jar is contained in isn't automatically in an executable jar's classpath.
    Another alternative is to ask the user where the settings file is supposed to be, and put an entry in the Preferences (java.util.prefs) to remember that location.

  • HT5622 hi is there a problem with down loading apps for the i phone 4s

    having a problem tring to down load apps is any bady having the same problem

    Hello rooster1969,
    I found an article with steps you can take when you are not able to connect to the iTunes Store.  I recommend following the steps in the section titled "Troubleshooting on an iPhone, iPad, or iPod touch" in this article:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Having problem with downgrading. Waiting for help)

    Hi) I recently bought Mac Mini 2012 (i7 2.3 GHZ, 4 Gb RAM, 1 TB HDD) with OS X Mountain Lion installed on it. Then I upgraded to Yosemite and didn't make a backup with Time Machine (I realize now that it was a mistake). So now I'd like to get back to Mountain Lion, but how can I do that? I found it on the apple store web site and it costs some money, do I have to buy to run it on my Mac or I can get it free because it was originally installed on my device? Thank you for your help))

    I recommend that you erase and reinstall OS X instead of downgrading it to an outdated version. Erasing and reinstalling OS X resolves most of the problems that are caused by upgrading it.

  • Having problems with one computer not "seeing" the Airport base station.

    Aloha:
    I have an Airport router hooked up to the internet via Cable. I have a laptop and G4 desktop talking to the the Airport Base Station via their respective Airport cards. This allows me to get to the internet with both of my computers. This system has worked just fine for several years, but recently my desktop computer has started to be unable to connect to my Airport Base Station. At first it was intermittent, but now it has stopped completely. The laptop continues to be able to get to the internet via my Airport base station.
    The desktop is running OS 10.3.9 and the airport card in the desktop passes the hardware test that came with the laptop. But it can no longer see the signal from the ABS.
    What might my problem be?
    Dan

    Hi Clinton:
    I have tried that to no avail. I don't see any
    signal, so I see no networks "in the box below" to
    choose. My airport card does not see a signal, but
    the airport card checks out ok in the hardware test.
    Thanks for replying, Clinton, much appreciated.
    Dan
    Have you tried choosing "other..." and then entering the name of your network?

Maybe you are looking for

  • New JAVA application with data from SAP CRM and R/3

    Hi All, We have a requirement to create a new application which will have CRM BP Master data and D&B Data from R/3 and based on authorization different roles be able to edit some of the fields and workflows to confirm the new data .Once users edit th

  • 4x6 print in PSE12:cannot crop thin white edge rt.side and bottom

    When printing 4x6 prints in PSE12, the print leaves a thin, white edge on the right side and bottom of the print. I have attempted to correct this through cropping, but the thin white edge remains. Computer is HP notebook running windows 7, printer i

  • Image viewer question

    I created a slide show using Insert>media>Image viewer in dreamweaver cs3. I removed the three default image link placeholders in the flash elements panel "image urls" using the"-"sign. I added 6 pics and removed the three image links also. The slide

  • Defaultaction is not called when displaying OptionDialog

    If the Enter-Key is pressed to fast after the setVisible Method for the Dialog is called (At this moment the dialog is not visible on Screen) not the defaultAction is called as expected. The action of the first focusable component ist called. A furth

  • Material Types and quantities in APO

    Hi, Please let me know whether we have the option  to find material types in APO  and how to find the base quantities for manufacture each material in APO as per the BOM in ECC. Prash