SCN Association with Modified Data

Hi All,
Q1: When SCN got assicated with  the DBMS changes either when dirty blocks buffers are written by DBWR to data files or when LGWR writes changed blocks to online redo log buffers?
Q2: Data hold by redo log buffer is after commit or before commit?
Thanks in Advance..

When SCN got assicated with  the DBMS changes either when dirty blocks buffers are written by DBWR to data files or when LGWR writes changed blocks to online redo log buffers?
Actually none of the above mentioned events would bring any change to the assigned SCN of a data buffer. The SCN is a time clock(internal to Oracle) assigned to the buffer at the time of the commit representing that now, the transaction is committed. Any write done of the dirty buffer would be writing it with the Transaction SCN which would represent that that buffer is still undergoing an active transaction and would need an explicit rollback or commit to end that transaction.
Q2: Data hold by redo log buffer is after commit or before commit?
Not sure that I understood this statement.
Aman....

Similar Messages

  • Updating table with Modified date/time when updating any row

    Hi guys,
    What I am trying to do is this. I have a several rows in my table, alongwith the field 'Modified_date'. I want to insert a modified_date if and when I update the row in the table. Here's my code, but it's not working:
    PROCEDURE ip_maint_save (p_submit IN VARCHAR2 DEFAULT NULL ,
    p_user_no IN varchar_array_type,
    p_user_id IN varchar_array_type,
    p_ip_first IN varchar_array_type,
    p_ip_last IN varchar_array_type,
    p_user_type IN varchar_array_type,
    p_user_language IN varchar_array_type,
    p_blue_jays IN varchar_array_type,
    p_created_by IN varchar_array_type,
    p_modified_by IN varchar_array_type,
    p_modified_date IN DATE := SYSDATE
    IS
    v_count_rec PLS_INTEGER := 0;
    BEGIN
    FOR i IN NVL (p_user_no.FIRST, 1) .. NVL (p_user_no.LAST, 0) LOOP
    IF p_user_id (i) IS NOT NULL THEN
    BEGIN
    UPDATE IP_MAP
    SET IP_FIRST = p_ip_first (i),
    IP_LAST = p_ip_last (i),
    USER_ID = p_user_id (i),
    USER_TYPE = p_user_type (i),
    USER_language = p_user_language (i),
    IP_FIRST_number = Mr_Ip_Maint.ip_to_number (p_ip_first (i)),
    IP_LAST_number = Mr_Ip_Maint.ip_to_number (p_ip_last (i)),
    MODIFIED_DATE = p_modified_date (i)
    WHERE USER_NO = p_user_no (i);
    .....rest of the code/exceptions follow....
    It's not working. Although, I am able to update a row, but it's not inserting/updating the modified_date field in the table for which the row is updated.
    Thanks in advance.

    Hi,
    As per my understanding, you are passing many values at a time to be updated using varchar_array_type type. In such scenario if your User_no is 100,101,102 all are being looped and the table is updated. But where are you checking the updated field or on what bases you will come to know that this particular field is updated.
    I will suggest you to use before update triggers. As in triggers you can check the rows old and new value and then set sysdate for modified_date column.
    Something like this,
    create or replace trigger trg_IP_MAP on IP_MAP
    before update
    For Each Row
    Begin
         If (:OLD.IP_FIRST != :NEW.IP_FIRST  OR
              :OLD.IP_LAST != :NEW.USER_ID OR
              :OLD.USER_TYPE != :NEW.USER_TYPE OR
              :OLD.USER_language != :NEW.USER_language OR
              :OLD.IP_FIRST_number !=:NEW.IP_FIRST_number OR
              :OLD.IP_LAST_number != :NEW.IP_LAST_number) THEN
                   :NEW.MODIFIED_DATE = SYSDATE
         END IF;
    END;Twinkle

  • Refresh the object associated with a Row in a Data Control?

    I am using EclipseLink & have an issue with multiple updates of the same Row. During an update, a new instance of the entity is returned by the update method. The instance bound to the Row is not updated with this new version and subsequent updates fail with an optimistic locking exception since the entityVersion hasn't been updated.
    Question: Is it possible to refresh the instance associated with a data control Row? I can remove rows, create rows, but it is not apparent to me how to update a row. I am trying to avoid doing a full retrieve on the bound iterator.

    Hi!
    The issue here is, by my opinion, a gap between ADFm and EJB 3.0 in use-cases with large data sets. If you search this forum, you may find related thread by Pedja about problem of feasible "scrollable" af:table with large number of entities in EJB finder result list. Unfortunately, the ADFm "paged" fetching is in mismatch with EJB support for "paged" (or scrollable) results lists. The all results of EJB finder method are retrieved from data source, stored in memory (thus breaking the heap) and transferred to ADF datacontrol. Then, and only then, ADFm paged fetching and caching mechanisms are employed – but they are just cosmetics as the main data set is permanently stored in memory as List<?>. The workaround is, as Pedja discovered, to write completely proprietary TableCollectionModel which completely evades ADFm and is implemented by set of EJB Session methods for paged acces to datasource through TopLink and native database queries (enabling retrieval of particular range of rows instead a complete result set). Of course, this is very complex coding experience and I find it a not acceptable for efficient development of modern applications on ADF + EJB stack, especially as it brakes a technology independence promoted by EJB and EclipseLink and other standards-based technologies (as you have to use database-specific native query implementation for paged /scrollable access!).
    What I want to say is that I have feeling that ADF support for EJB is not complete in full extend and that ADFm is still much better suited for BCs then for EJBs. I hope that this will be solved in future as this issue may pose a significant issue on application development in enterprise-level area where it is supposed that we are dealing with BROWSING also a large data sets.
    Yes, I emphasize a BROWSING as I strongly oppose a dogmatic approach that SEARCHING is a solution for every use-case. From theory of information, the system SHOULD NOT limit the user in accessing ALL information (based on access rights, of course). So the idea that SEARCH forms should be used to bridge a architectural gap between a ADFm and EJB is not acceptable, as the search MAY limit the user in acquiring the information he (or she) is not able to describe in adequate manner based on search criteria offered by the developer. So, the developer may be responsible for misinformation of user, by limiting his access to information, jus for technology limitations of ADFm which forces a development of purely SEARCH-based functionalities.
    I hope that development team would appreciate and consider this remarks, and invest effort in closing (not bridging!) the gap between ADFm and EJB.
    Regards,
    PaKo

  • When the cell number associated with your ipad in itunes preferences is not yours.

    When looking up my ipad's serial number in itunes preferences, there is a cell phone listed with this device that is NOT MINE.
    Would there be ANY REASON that the cell phone number attached to my ipad in itunes preferences is not be mine?
    Considering my ipad has been missing for several weeks - could this be the cell phone number of the person who has it?
    Thanks

    I'm not sure just where you are seeing this phone number, but could it be the "phone" number associated with a data plan? (It's just used as an identifier for the data traffic.)

  • Power Shell script to export items by Modified date - SharePoint 2010

    Could any one help me in finding a script to move few the List items from one list to another list within the site collection the required criteria is, want to move the List item which is being kept idle for more than 90 days i.e. an list items which
    has not been modified for more than 90 days.

    This PowerShell script will loop through all libraries in all webs within your site collection.  It will then look at each document in the library and if it's modified date is greater than 90 days ago, it will move it to a new destination library.  You
    will need to update a few variables at the top of the script to get it to run in your site. $destinationURL is the full path to the library where you want the documents to be moved.  All files from all webs will be moved to this location in this example.
    You could then use the Windows Task Scheduler to set this up to run on whatever schedule you need.
    Do not run this in production without testing first.
    #Add SharePoint PowerShell SnapIn if not already added
    if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) {
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
    $siteURL = "http://sitecollectionroot"
    $destinationURL = "http://path/to/destination/web/including/library"
    $numDaysToExpire = 90
    $expireDate = Get-Date
    $expireDate = $expireDate.AddDays(-$numDaysToExpire)
    Get-SPSite -Identity $siteURL | Get-SPWeb -limit all | foreach {
    write-host "Working on Web: "$_.Title -ForegroundColor Green
    foreach ($list in $_.Lists){
    if($list.BaseType -eq "DocumentLibrary" -and $list.Title -ne "Style Library" -and $list.Title -ne "Master Page Gallery" -and $list.Title -ne "List Template Gallery" -and $list.Title -ne "Theme Gallery" -and $list.Title -ne "Web Part Gallery") {
    write-host " Working on library: "$list.Title -ForegroundColor Cyan
    foreach($item in $list.Items){
    if($item["Modified"] -lt $expireDate){
    write-host " Moving $($item["Name"]) with modified date $($item["Modified"])"
    $item.File.MoveTo($destinationURL + "/" + $item.Name, $true)

  • I can change Image Date, but file now has 2 dates associated with it!

    I have been able to successfully change the image date of the file using Timeature (I need to do this for a handful of images that have an incorrect date), as recommended elsewhere on the discussion board.
    What happens now is that:
    1. The metadata inspector shows the Image Date field as 9/1/02 12:00:00 PM PDT
    (this is correct - I set it to be that date and time, so that is great)
    2. When I click on the "EXIF" button at the bottom of the inspector (which allows me to choose what fields appear in the metadata inspector), the Image Date field is 2/1/04 9:51 AM GMT
    (this is the time the photo was taken, but it is what I am trying to change)
    So I now seem to have 2 image dates associated with the file.
    Any thoughts on how to "clear" the one I am trying to change?
    Thanks!

    Yeah, and worse the date set by Timeature is not set in the EXIF data so if you try to export the version the date you set won't go with the JPG. Even worse, I'm pretty sure the export will have the original photo's EXIF date, if it had one. You can get export to put the version date in the file name with the right export options.
    Export should really allow you to set the EXIF date on versions you export. One reason I bought Aperture was to be able to manage metadata so well that I wouldn't be beholden to it forever. Figured paying the big purchase price for Aperture was my ransom. We'll see in the next few versions if they fix this.
    The two dates are 1) the date in the per-version metadata and 2) the EXIF date in the original JPG. It doesn't modify the EXIF date in the original because Aperture doesn't modify the original by convention. Not updating EXIF data in the original jpg is probably right (IF they would provide a way to export all the version meta data into EXIFs).
    I've resorted to using some command line freeware jhead to set the EXIF dates before import for most of the stuff. You have to do that before the import though because once imported Aperture seems to ignore the EXIF date save for displaying it (to confuse you :-)).
    Since I don't actually care that the original JPG is preserved for me it would be nice to have a utility that read the date out of the latest version meta data and set the EXIF date on the original. That would compliment Timeature (which I find really really tedious and slow).
    Please correct me if I got this wrong!

  • Show days left until reset based on date and condition associated with date

    My question is simlilarly based to the previous discussion https://discussions.apple.com/message/15134714#15134714
    What I need to do is display the number of days until I have to reset a flight condition (FS Column) based on a set number of days (60 days).  I have several colums of information but the two I would use is a Date Column and the FS Column(drop down menu with text for options). I would need to be able to look at certain FS options and use the date associated with it to subtract from 60.
    If FS= "NG" use date associated with it to add 60 days, and then use that date to compare it with today's date to show how many days are left till the 60 day mark.
    So if the last "NG" was Jan 1, 2011 and today was Feb 1, 2011 I would want one cell to show 30 days and another cell to show Mar 2, 2011.
    I need to fly in a certain condition once every 60 days. I want to show how many days left I have until I need to reset that 60 day counter.  Also, I would like to have another cell show the date associated with the day I would need to reset that counter on.
    Unfortunately I am in a limited internet environment so I can not post a picture of my spreadsheet.  Sorry for the over explination, trying to make it as clear as possible first go round.
    Thanks in advance!

    Aron,
    I added a few columns to correlate the conditions and dates. There may be a better way than this brute force approach, but this will work.
    Date
    DS
    FS
    Hrs
    Seat
    Mission ID
    D
    H
    N
    NG
    NS
    Aug 1, 2011
    PI
    D
    1.0
    F
    C
    8/1/11
    Aug 1, 2011
    PI
    N
    0.5
    F
    C
    8/1/11
    Aug 2, 2011
    PI
    D
    0.5
    F
    C
    8/2/11
    Aug 2, 2011
    PI
    NS
    1.4
    F
    C
    8/2/11
    Aug 4, 2011
    PI
    NS
    0.2
    F
    C
    8/4/11
    Aug 12, 2011
    PI
    NG
    1.0
    F
    C
    8/12/11
    Aug 12, 2011
    PI
    NS
    1.2
    F
    C
    8/12/11
    Aug 14, 2011
    PI
    NG
    0.5
    F
    C
    8/14/11
    Aug 14, 2011
    PI
    H
    0.5
    F
    C
    8/14/11
    Aug 14, 2011
    PI
    NS
    0.6
    F
    C
    8/14/11
    Aug 20, 2011
    PI
    NS
    2.1
    F
    C
    8/20/11
    Aug 21, 2011
    PI
    NG
    2.0
    F
    C
    8/21/11
    Aug 22, 2011
    PI
    NG
    1.0
    F
    C
    8/22/11
    Aug 22, 2011
    PI
    NS
    0.4
    F
    C
    8/22/11
    Aug 29, 2011
    PI
    NS
    0.5
    F
    C
    8/29/11
    Then I added a summary table:
    FS Condition
    LastDate
    Plus 60 Days
    Today is Oct 11, 2011
    Alarm
    D
    8/2/11
    10/1/11
    10d
    Overdue
    H
    8/14/11
    10/13/11
    -2d

  • What is the best way to create a SSRS Report with Header Data and its associated child data

    So I have Member Information...Member ID...Member Addressing...etc.. I want to display this in the top part of the report like...
    Member Name:
    Member ID:
    Member Address Line 1:
    And then below I want to report on all the claims associated with a Member ID that is chosen by the Parameter. Obviously the Claim Data will be in Table format. Do I necessarily have to associate the Member Information with the Claim Information or simply
    use the same parameter? And what is the best Toolbox item to use to display the Member Information on top?
    Any help or guidance is greatly appreciated by this newbie.
    Thanks for your review and am hopeful for a reply.
    ITBobbyP

    Hi ITBobby,
    According to your description, you want to display all Claim Data for each Member. Right?
    In Reporting Services, we can use a table to display those Claim Data and make them group on Member ID. If you want to display the Member Information, we can put the data fields on parent group level. Then we can use create a parameter to filter the Member
    ID we need. We have tested this scenario in our local environment. Here are steps and screenshots for your reference:
    1. Create a DataSet(DataSet1) which contains the data fields of Member and Claim.
    2. Create a table and drag the Claim data into the table.
    3. In Row Group. Right click on Details and add a parent group.
    4. Select Member_ID in Group by.
    5. Right click on the textbox of Claim data. Select Insert Row->Outside of Group-Above. Drag the MemberName into the inserted row.
    6. In Report Data, right click on Parameter-> Add Parameter.
    7. Type Member_ID in Name and Prompt, select allow multiple values.
    8. In Available Values, select get data from a query. Choose DataSet1, select Member_ID in values and label. You can also set this in Default Values if you need.
    9. Save and preview.
    Reference:
    Understanding Groups (Report Builder and SSRS)
    Report Parameters (Report Builder and Report Designer)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • IPAD restores applications but not data or files associated with applications

    1) Today Itunes prompted me to update the OS on the IPAD.
    2) It warned me to back up IPAD before I did.  I did
    3) I updated software.
    4) It returned with an error saying it could not install software and I must restore to facotry settings
    5) I resotored to factory settings
    6) After that I attempted to restore contents of my IPAD from Itunes on my Windows 7 machine. 
    7) It restored only music but no applications and no other information
    8) I spent all day on the phone with Apple Support who managed to get the applications restored by going through one by one and syncing.
    9) It took a few hours
    10) After I finished I noticed that files/documents associated with various applications like Kindle, Goodreader, Penultimate Notes were missing on the IPAD.
    11) I have made a few phone calls to Apple and thy claim the following: "Apple is not responsible for restoring files or data associated with any applications, only the application itself.  It is your responsibility to contact the application developer to get your files restored."  This sounds patently absurd to me. I spent half an hour explaining the absurdity of this claim to the Apple representatives but they are firm and non-wavering in this opinion.  One even claimed that restoring does not restore applications which of course is not correct.
    12) I gave them the example of MS Word on MacBook Pro. If I save/back up on another machine and then restore back to the original machine I would expect to be able to see the Word files I had created and saved.  That in particular the failure to view them would not be Microsoft's responsibility but Apple's.  They disagreed saying it would be between me and Microsoft and the Apple devices had nothign to do with saving or successful restoring.
    13) So I have lost all e-books purchased on Kindle, plus all documents saved on Goodreader application, notebooks on Penultimate applications, and my children’s drawings on their drawing applications.  Apple Support say I should contact each application vendor to try and recover the missing data.  They refuse to tell me how to get it from ITUNES backup stored on my Windows 7 machine as they say it will not be there. 
    They have asked me to write to
    Apple Customer Support,
    Holly Hill,
    Cork,
    Ireland
    quoting case number 319718819.

    Did you try restoring from a backup of the iPad? If you have a backup with all of your app data and files, that should restore all of that content to the device.
    No - restoring does not restore applications. You have to either sync the applications back from iTunes on your computer, or you can download them again, BUT ... All of your data, files and device settings are stored in your backup. Do you have a backup in iTunes .... Edit>Preferences>Devices - that should show you all of your iDevice backups.

  • HT201363 My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    Very simple.  Turn off Find my iDevice, then  Tap Settings, General, Erase, Erase all content and settings.

  • Unable to copy the Price Modifiers associated with a Sales Order Line

    Dear All,
    I am copying Sales Order Line using the process_order API. I was not able to copy the Price Modifiers associated with the Lines. How can I accomplish this..?
    Is there any API available for copying the Price Modifier info associated with the Sales Order Line..?
    Environment is 11i and OS is SUN Solaris
    Please update...
    Many thanks in advance..

    Hello All,
    Please let me know is this possible to have the list of Invoices for an associated Sales Order.
    Thanks,
    Abdul

  • Changing the Modified Date of a List Item using the SharePoint Client Object Model (C#) with Contribute Permission

    I have a small snippet of code that I use to update the Modified Date of a list item and it works great for users with Full Control permissions.  However, for users with just Contribute access to the site the code doesn't work.  Instead, SharePoint
    just updates the Modified Date to now.
    I did some testing, and narrowed down the specific permission level that allows updating of Modified dates and oddly enough, it's the "Manage Permissions" level.
    Has anyone run into this issue? If so, how do I work around this and update the Modified date as a user with only Contribute access to a site/library?
    Here's the code:
    DateTime Test = new DateTime(2012, 5, 4);
    ListItem li = list.GetItemById(itemID);
    li["Modified"] = Test;
    li.Update();
    ct.ExecuteQuery();
    Thanks,
    Max

    Hello,
    As a workaround you can pass admin credential in your code because as per my knowledge contributor can't update default columns like: created by, modified by, modified, created.
    ClientContext clientContext = newClientContext(siteUrl);
    ClientContext.Credentials = newNetworkCredential(UserName, Password, Domain);
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • This database was connected to a Microsoft Access Services site that is not compatible with this version of Microsof Access. You cannot make design changes or modify data in database.

    Hello All,
    I am getting this error while I am connecting my access database website for the change
    "This database was connected to a Microsoft Access Services site that is not compatible with this version of Microsof Access. You cannot make design changes or modify data in database."
    I am using SharePoint 2010 and Microsoft Office 2010.
    I have created one Contact Database Site and now I am trying to modify the layout of the form in Access. and I am getting the error that I have mentioned.
    Please provide help on it.
    Thanks in Advance....

    Hello All,
    I got the answer, we have to enable the port 80 or where the access service is deployed and we have to change Trust setting and also, enable the macro from Access.
    Hope this will help to other....

  • I deleted all Apps on iPad as they were associated with an out of date Apple ID and I could not update them, but the "App Store" logo still shows that there are 2 to be updated and when I go there I cannot delete. Please assist. Thanks.

    I deleted all Apps on iPad as they were associated with an out of date Apple ID (which I have forgotten the password) and I could not update them, but the "App Store" logo still shows that there are 2 to be updated and when I go there I cannot delete. Please assist. Thanks.

    Why don't you explain what happens when you try to delete these two apps that are showing that they need updates. You can only delete them if they are actually installEd on the iPad. Are they on the device?

  • Is there a phone number associated with the at&t cellular data plan?

    Is the AT&T cellular data plan for the ipad associated with an at&t phone number and if so, how do you know what it is?

    OlgaJ wrote:
    That's true. But he can call AT&amp;T and cancel the account. Otherwise anyone who has the iPad will enjoy the data service on the original poster's dime.
    Good point.  Better then to logon to the AT&T's iPad account webpage to cancel the data plan.
    https://dcp2.att.com/OEPNDClient/Logout
    I just logged on to mine and I noticed that the phone number is listed on my account info.

Maybe you are looking for

  • Sorting photos by file size

    When I switched from my PC to the Mac the photos that were imported from my Picasa backup created more than one file, sometimes 3 of each image! I need to be able to start organizing my photos and I really need to delete the smaller images. I can not

  • InfoPackage ... want to load one specific gl acct

    Hi Gurus, I wanted to see if I can load all records related to only one specific gl acct. In InfoPackage in "Data Selection" tab, I was unable to bring Gl Acct InfoObject for selection. What do I need to do? Please help in this matter.

  • Full-screen Slideshow Set-up

    I want to create custom image slides from large scale high res photos in photoshop or illustrator to use in the Full-screen Slideshow widget in Muse. What height and width dimensions should I create the original image slides in before I load them int

  • IPhone: How to tell what SDK is installed....

    Is there anyway to tell what version of the iPhone SDK is currently installed?

  • Data transfer format

    Hi All, I heard that the data for some fields in an Idoc have to be in special format. For instance, the quantity field should be "13 digits, 1 dec. point and 1 sign, left-justified". For example ‘302.35_________’ or ‘302.35-________’" and the MATNR