Do something on a Record if it not updated for sometime

I'm in need of answer for the below. Kindly help
I would like to perform some operation on a record, if it not updated / modified for more than 30 seconds. How can we achieve this in Oracle ?

Hi,
You should have a column in the table called last modified date,
which will be updated using a trigger that updates the column with sysdate when ever it is updated.
See the follwoing
SQL> CREATE TABLE TEST
  2  (
  3     ID             NUMBER
  4    ,LAST_MODIFIED_DATE DATE
  5  );
Table created.
SQL>
SQL> CREATE OR REPLACE TRIGGER TRG_TEST_UPDATE
  2     BEFORE INSERT
  3     ON TEST
  4     FOR EACH ROW
  5  BEGIN
  6     :NEW.LAST_MODIFIED_DATE := SYSDATE;
  7  END;
  8  /
Trigger created.
SQL>
SQL> INSERT INTO TEST (ID)
  2       VALUES (1);
1 row created.
SQL>     
SQL> SELECT * FROM TEST;
        ID LAST_MODI
         1 08-MAR-11
--After 30 seconds.
SQL>     
SQL> SELECT *
  2    FROM TEST
  3   WHERE (SYSDATE - LAST_MODIFIED_DATE) * 24 * 3600 > 30;
        ID LAST_MODI
         1 08-MAR-11
SQL> G.

Similar Messages

  • What is the best way to record a video(not big) for free on a mac w/isight?

    What is the best way to record a video(not big) for free on a mac w/isight? I need to just make a short (less than 5 minute, no special effects) video, but I can't figure out any programs that will make this possible for me.
    Thanks.

    Hi Carolyn,
    you can use iMovie to record a video for free on a Mac with iSight.
    1. Open iMovie HD
    2. Choose “Create a new project”
    3. Name the project for example “iSight Movie” (first field). In the second field, let the default location “Sequences”, in the third one, video format, choose “iSight”. Push “Create”
    4. iMovie window opens, next to the scissors, choose the camera (Camera mode), then iSight. Now you appear on the screen, right?
    5. Press “Record with iSight” in the main picture window.
    6. Press the same button to stop. Your new clip appears now in the clip panel at the right.
    7. You are done!
    iMac G5 PPC 2,1 Ghz   Mac OS X (10.4.8)  

  • Hi...i have a real problem i keep getting in game when i want ot buy something ...ur purchase could not be for assistance contact itunes suppocompleted rt any help plzzzz????

    hi...i have a real problem i keep getting in game when i want ot buy something ...ur purchase could not be for assistance contact itunes suppocompleted rt any help plzzzz????

    Slow down, take a deep breath and start over. Use complete sentences so your thoughts are lucid.

  • Inspection Lot Status (CROK)not updating for Certificate Reciept

    Hi
    I want to inspect vendor materials on the basis of thier Quality certificates
    1) Config Set up:
    a) Certificate type :YA72
    Cert for each PO  item :checked
    Certificate Check reqd:  :Checked
    Enhance cert processing: Checked
    b) Control key :0005 ( Delivery release ,Certificate)
    2) Material Master (QM View)
        QM Procurement : Checked
       Control Key :0005
       Certificate Type :YA72
    3) Goods Recipt
        MIGO < Purchase Data<Cert Reciept :Yes
        Inspection lot is created
    Question : Inspection lot status is not updating for Certificate Recived or not
                      My understanding is Inspection lot status should be :CROK -Certificate Recieved                                                                               
    CTCM-Certificate Missing
    Pls correct my understanding in case i am missing something
    Thanks in advance

    Is the status in the GR document have the cert field set as 5?
    Since you set the "certificate check required" you must do an explicit check of the cert.  I included below the help screen from this indicator in SPRO.
    You should be able to review the status of your cert in transaction QC53.
    FF
    Explicit Inspection of GR Certificate Necessary
    If you set this indicator, at goods receipt the system will generally perform as described in the field "Control without certificate".
    This means that even if you confirm the certificate receipt at goods receipt, and thereby set the status "2 - Certificate received", the system will still perform as specified in the field "control without certificate". See Control without certificate.
    You must explicitly check the content of the certificate recieved at goods receipt and set the status "5 - Certificate filed and inspected ", before, for example, the inspection lot status will be set to CROK.
    You can confirm that you have checked the content of the certificate in the certificate transaction or when making the usage decision.
    Note
    If you have set the indicator and chosen an unsuitable setting in the field "Control without certificate", the goods receipt can be generally blocked.
    This security function is generally used at electronic certificate receipt to check the accuracy of the certificate contents.

  • Issue regarding 0MATERIAL_ATTR  - Attribute not Updated for Some Materials

    Hi All,
    As per requirement, I had enhanced 0MATERIAL_ATTR DS with one customer field MRP Controller.
    After enhancing 0MATERIAL_ATTR, I had made necessary changes in related objects like 0MATERIAL Info Object & related transformation for this new attribute.
    After making changes, when I had done Repair full request for 0MATERIAL_ATTR, newly added attribute had not updated for all material, other attributes were updated correctly but MRP controller had not updated for some records.
    I am confused with why attribute(MRP controller) updated in some Materials & for some materials its not updated.
    I had checked in PSA, data for this added attribute is come in PSA but not updated in data target (0material).
    I had also activated master data by running Attribute change run but still problem persist.
    Please help.
    Regards,
    Divyesh Khambhati

    Hi Venkatesh,
    I had write code in CMOD for MRP controller.
    As data is coming fine till PSA but its not updated in Data Target (0MATERIAL) .
    if I take one example..
    For exp Material XYZ has two entries in PSA table, one is updated during delta load & recent one which come though Repair Full request.
    Now newly adder attribute MRP controller available in recent request of Repair Full but that is blank in case of prior delta update.
    I am confused because MRP controller attribute is updated for some Material but for some material its remain blank.
    please help.
    regards,
    Divyesh Khambhati

  • HT201077 As of recently any photos I add to a shared photostream will not update for others. Only I can see them. How come others sharing this photo stream are not getting the new photos?

    As of recently any photos I add to a shared photostream will not update for others and I don't see the updated photos on my other devices. Only I can see them from the device that i've posted from. How come others sharing this photostream are no longer getting the new photos? My iphone (the device i'm adding from) shows 20 pictures in this shared photostream and yet 4 other people that I share this photostream album with and my ipad only show 12 photos. For the past week I keep adding photos thinking people will see them but it just won't update the new ones. Any ideas how to fix this?

    You can stop new photos being automatically added to Photostream in iPhoto from iPhoto preferences > Photostream.

  • Originating document number not updated for one invoice line item

    Hi,
    We have a invoice document number in which the originating document number is not updated for one of the line items ,this is order related down payment invoice .May be this is due to system inconsistency so is there any SAP note to overcome this problem.
    Best Regards,
    Rohit

    Dear All,
             I found out the problem for not updated in F-04. "While create the receipt document in GL master Open item management maintained box was not checked". It can be found in BSIS table - OI Management'.
             Is there any other way to clear this document.
    Thanks...

  • Validity Table not updating for 0IC_C03 while updating data

    Hi,
    1.Validity table not updating for 0IC_C03 while updating data in my BW 7.4 With HANA data base?
    Key fields : 0Plant
                       0Calday
    if you run this programe after loading data - RSDG_CUBE_VALT_MODIFY it is updating.
    2. I am not getting no marker update option in non-cumulative Info cube 0ic_c03 manage tab or in DTP tabs check as per 7.4 modifications?
    and  2LIS_03_BX in DTP I am getting below this option only
    Can you please give me solution for this issues.
    Regards
    Umashankar

    Hi Uma,
    Please go through the below link which might be helpful.
    Not able to Edit Validity Table : RSDV
    Marker Update Option is available under Collapse tab of Info cube.
    Thanks,
    Karan

  • I have a samsung smart tv i want to play my pogo but will not update for me

    i have a samsung smart tv and want to play my pogo but it will not updat for me what do i do

    Your Smart TV uses Google Chrome as its browser, yes?

  • KSPP -Scheduled Activity are not updated for last 2 periods

    Hi All,
    When we run KSPP by using LTP, noticed that for one cost center and activity type the plan scheduled Acivities are not updated for last 2 period's.(shows Zero)
    Do we miss any thing.
    Regards,
    Raj

    Hi,
    It can be due to the sales demand you have uploaded and the Lead time in the material master
    because of the that, the demand gets shifted before (say, Dec demand gets shifted for manufacturing in October) and the activity qty in the last month comes zero
    So, upload 14 months demand where 13 and 14th month is the same as 12th month... Most of the companies do this way
    Ajay M

  • Message server information not updated for SIDs in SMSY

    How do I get the message server information updated for systems in SMSY?
    I moved a system from one server to another but the information is not updating for the Java stack. The informatoin was updated successfully for the ABAP, but not the Java side. I've reviewed the SLD information and everything there is correct.
    In change mode the information is greyed out, so it's updated automatically somewhere.
    Thanks for any help.
    Ryan

    Hi Ryan,
             What's your solution manager version?
             Have you taken a look into this note?
             ->     1301106 SMSY: Enhancements and errors in Enhancement Package 1
            Within this note you will find another list of related notes that may fix your issue.
            Please take a look as there are many notes reporting similar issues, like:
           1298517   SMSY: Server of SCS instance not known in SMSY
           1273095   SMSY: Incorrect database server (Java)
    Regards,
    Daniel.

  • My Mail has frozen - can access my hotmail through Safari but Mail now has a blank rectangle on the screen and the inbox underneath it has not updated for 2 days

    Mail giving problems. Small white rectangular box comes up on screen and inbox underneath has not updated for 2 days.
    I can use Safari to get new messages but, since getting this laptop, when I go to Hotmail via Safari old messages self delete every so often, whereas via Mail messages stay in the inbox unless I actually delete them. Any suggestions?

    Here is a photo of what I see when I tap on the mail icon to open it. It stays there for a second or two and then goes dark. Then I actually have to put my iPad into sleep mode in order to use it again. The app will NOT close no matter what I do, just shutting it down or put it in sleep and then restart  it.
    here is when I tap the mail icon. It looks like an empty page but you will see the format of the mail page. Next photo is what is see after a second. And the last photo is what I see before the iPad locks up or Les blank. I hope this makes things clearer as to what the problem is. Thanks for your help, hope this helps! Diane May.

  • Accruals not updated for Changed Rebate agreement when VBOF  performed.

    Hi Pals,
    Need your assistance in solving an incident  . our client has changed the  valid to date  of the  rebate agreement on 29.04.2014  in VBO2  from 28.02.1014 to 31.12.2014, later it was observed that  the rebate accruals for the blling documents generated after 28.02.104 to till date were not updated even after running the report VBOF. There are 15000 invoices after 29.04.2014 , hence it is difficult to check which invoices carries my rebate condition type.
    hence pls advice on
    1. how to find out the invoices for the changed agreement .
    2. How to update the accruals for the invoices that were created after  28.02.2014 to till date.
    An early reply would be highly appreciated.
    Br
    Krishna.K

    Dear krishna
    i tried your scenario--so after changing the validity for my Material rebate agreement type--i ran VBOF(SDBONT06)--so system has shown the updated billing doc with rebate which was not having any rebate condition earlier.
    Have you tried by retrieving all the billing docs created after service render date of 28th Feb14.
    Please take all the billing docs created after this date from VBRK table and you check some random billings docs whether rebate condition type is active with condition record or not.
    (other wise you try with by executing condition record numbers in KONV(doc condition number--then followed by VBRK)
    pl update us..
    Phanikumar

  • Line item not updated for F-04

    Dear All,
              Previously I have posted a receipt document with Bank account 'A'. The customer line item is cleared already. And I would like to do transfer posting from Bank 'A' account to Bank 'B' account by F-04. But the document number is not available in F-04. In FBL3N the document showed as open item for Bank account 'A'.
    Earlest reply would be invited...
    Thanks...

    Dear All,
             I found out the problem for not updated in F-04. "While create the receipt document in GL master Open item management maintained box was not checked". It can be found in BSIS table - OI Management'.
             Is there any other way to clear this document.
    Thanks...

  • Results not updating for every row in BIpublisher

    Hi all I have a Bi publisher report that is updating the results for the first row and in the second row to update the results it is picking the values from the first column itself and using the same values for all the other rows.
    Here is my report format
    Month saves Total, for 30,60,90,120
    Jan
    feb
    Mar
    Total are the enrolls by each month and days shows after 30,60,90,120 how many are still active. Following eg should give an idea of exactly whats happening
    Eg:
    Total 30days 60days 90days 120days 150days 180days 210days
    ------------------------------------------------------------------------------------------------------------------------------------------------------------ Jan saves 330 287 274 270 263 262 259 257
    Feb saves 298 255 242 238 231 230 227 225
    Mar saves 291 248 235 231 224 223 220 218
    So what is happening is lets say for example there are a total of 330 enrolls in january and after 30days 287 are still active and after 60days 274 are still active after 90 270...... etc
    Am getting the January active values correctly.
    BUt going forward when I see the values for february The total enrolls for february is 298 and after 30 days which are active is not giving me the correct.
    It is substracting the same amount as jan. looking at the numbers it is substracting
    -43, -13,-4,-7,-1,-3,-2 for Jan which are the cancels after the consecutive days
    It is substracting the same amount for feb also but my actual cancels for feb are different it should be 45,12,8,9,2,2,
    It is doing the same for all the months.
    There should be a change in the code. Following is the XSL code am using in
    <?xdoxslt:set_variable($_XDOCTX, 'v_SavesCanceled', SAVES_CANCELED_COUNT)?>
    <?xdoxslt:set_variable($_XDOCTX, 'v_RtSaves', xdoxslt:get_variable($_XDOCTX, 'v_RtSaves') - xdoxslt:get_variable($_XDOCTX, 'v_SavesCanceled'))?>
    <?xdoxslt:get_variable($_XDOCTX, 'v_RtSaves')?>
    Actually the cancels should be updated for each row but its picking the same cancels for every month.
    Hope it is clear let me know if you need any further info
    Any help is appreciated.
    Thanks

    Thank you very much for your help. The rtf file sent worked and updating results as required.Thank you
    Thanks

Maybe you are looking for

  • Tag casing in XML using XMLDOM

    Hi, Is there a way of disabling the Uppercasing function with XMLDOM, as I like to produce a tag which is of mix case, it always makes it uppercase as the tag....

  • Has anyone noticed how much slower it is to import photos from iphone to iphoto

    has anyone noticed how much slower it is to import photos from iphone to iphoto in Mac OS.?

  • Lightroom Adobe Revel Smart Collections

    Hi There, when i first tried the export function from LR to Revel i was totally thrilled because most of the time i work with smart collections. i just upoaded them to Revel from LR. From time to time some of the photos belong to more of one smart gr

  • Photoshop CS3 not 3 crashing

    My mistake, sorry, it's PS CS3 not PS3.  I did load the Canon Software for EOS and the Wacom tablet software and that is all I can recall doing on this computer before opening Photoshop.  Any suggestions would be great, need to fix this fast so I don

  • Losing Comments in Get Info

    Help!! I keep losing the comments I add to the Get Info window. I read in some thread that deleting .DS_Store files will cause this. I have tons of these files but no comments. How can I stop losing the comments or restore what's in the .DS_Store fil