Most recent objects

Hi,
in 10g, can I see the last created objects by following query :
select owner,object_name, last_ddl_time from dba_objects where last_ddl_time > sysdate-1 and owner not in ('SYS','SYSTEM');Do you know any better query ?
Thank you.

Hi,
Try with "DBA_OBJECTS and V$BH "
I did not studied the "created " objects though of recent accessed with respect to subject you specified "most recent objects "
- Pavan Kumar N
Edited by: Pavan Kumar on Dec 23, 2008 9:53 PM

Similar Messages

  • I have downloaded the most recent itunes on my new computer with windows 8        but a message pops up saying "the itunes library.itl file is locked, on a locked disk or you do not have write permission for this file. How do I fix?

    I have downloaded the most recent itunes on my new computer with windows 8 but when I attempt to get in I get this message "The itunes library.itl file is locked, ona locked disk, or you do not have write permission for this file."  How do i fix this?

    Repair iTunes Security Permissions
    Right-click on your main iTunes folder and click Properties, then go to the Securitytab and click Advanced. Use the Change Permissions... button grant to your account (or the Users group) and SYSTEM full control of this folder, subfolders and files, then tick the option to Replace permissions entries... which will repair permissions throughout the library. When complete switch to the General tab, click in the Read-only check box to clear it, then click Apply.
    If you don't have the option to change the permissions then use the Owner tab and Edit... button to take ownership from an account with administrator privileges. Tick the option to Replace owner on subcontainers and objects.
    Repeat with the media folder if it isn't stored inside the main iTunes folder.
    If you've brought over the library from another computer you may also want to remove any "mystery" identities (S<string of dashes & digts>) that have come over from the old computer...
    The images above are from Windows 7. Hopefully the system isn't too different in Windows 8.
    tt2

  • Most recent date (UDATE) from CDHDR table based on CDPOS

    Hi,
    I am working on one object where i stuck with one issue. The requirement is I have to retrieve the most recent date from CDHDR table based on CHANGENR in CDPOS table. Where i am doing FOR ALL ENTRIES on CDPOS table to get the MAX( date )and i got the error, that aggregate functions are not allowed except COUNT( * ) with for all entries.
    Any thread which can solve this issue would help aswel.
    Please guide me how to achieve this. <removed>
    Edited by: Thomas Zloch on Mar 13, 2010 9:10 PM

    Hi Li,
    Thats was really helpful information , infact my requirement is same as what you said. I even checked in the table entries there is only one changenumber.
    You said we can take the first record, i even did the same. But for TABNAME I have to pass 3 table name 'LFA1', 'LFB1' and 'LFM1'. For FNAME 'LOEVM', 'SPERR'. I have written the code as below.
      SELECT objectclas
                   objectid
                   changenr
                   FROM cdpos
                   INTO TABLE i_cdpos_a1
                   FOR ALL ENTRIES IN i_lfabm1
                   WHERE objectclas = c_kred               "KRED
                   AND objectid EQ i_lfabm1-objectid       "Lifnr
                   AND ( tabname EQ c_lfa1 OR tabname EQ c_lfb1 OR tabname EQ c_lfm1 )          "LFA1, LFB1 and LFM1
                   AND ( fname EQ c_loevm OR fname OR fname EQ c_sperr )    "LOEVM, SPERR
                   AND value_new EQ c_x.
            IF sy-subrc EQ c_0.
              IF i_cdpos_a1[] IS NOT INITIAL.
    Select UDATE from CDHDR based on CHANGENR in CDPOS.
                SELECT objectclas
                       objectid
                       changenr
                       udate
                       FROM cdhdr
                       INTO TABLE i_cdhdr_a1
                       FOR ALL ENTRIES IN i_cdpos_a1
                       WHERE objectclas = c_kred             "KRED
                       AND  objectid EQ i_lfabm1-objectid               "Lifnr
                       AND changenr EQ i_cdpos_a1-changenr.   "(this is coming from CDPOS above selection)
    Here i got UDATE which have all the dates from 3 tables. I have to display in the output the field value (X) of LOEVM and UDATE for LFA1, SPERR value and UDATE for LFA1.Same way for other two tables, I have to display the UDATE and its field value (X). Where UDATE should be most recent date respectively.
    How can I populate the Recent date (UDATE) from one interal table for indvidual field values and table names.

  • My three most recent Lion Kernel Panics

    In case anybody is having the same problem - or, even better, has solved the same problem, here are my most recent Lion Kernel panics ( just the top of the panic in each case). They're all different - it's amazing how many panics lion throws - it reminds me of the first unix system I used back in the early '80s:
    **** Panic 1
    Interval Since Last Panic Report:  713699 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    771AE45B-5109-4899-ABCD-319F83542F39
    Tue Dec  6 02:23:06 2011
    panic(cpu 1 caller 0xffffff7f8090704f): NVRM[0/2:0:0]: Read Error 0x0061002c: CFG 0x00000000 0x00000000 0x00000000, BAR0 0xd2000000 0xffffff8080f99000 0x094700a1, D0, P2/4
    Backtrace (CPU 1), Frame : Return Address
    0xffffff807fbc3c80 : 0xffffff8000220702
    0xffffff807fbc3d00 : 0xffffff7f8090704f
    0xffffff807fbc3d90 : 0xffffff7f809f713c
    0xffffff807fbc3de0 : 0xffffff7f80bfa534
    0xffffff807fbc3e00 : 0xffffff7f809bfd7b
    0xffffff807fbc3e20 : 0xffffff7f80a680b6
    0xffffff807fbc3e90 : 0xffffff7f808f3f1e
    0xffffff807fbc3f40 : 0xffffff7f808adb86
    0xffffff807fbc3f70 : 0xffffff800023db2c
    0xffffff807fbc3fb0 : 0xffffff8000820057
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000->0xffffff7f80b7ffff
                dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f80822000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80894000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f8085c000
             com.apple.nvidia.nv50hal(7.1.2)[2E84958C-1EEC-316B-9F7A-68C368F83476]@0xffffff7 f80b80000->0xffffff7f80ea1fff
                dependency: com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000
    BSD process name corresponding to current thread: kernel_task
    Boot args: arch=x86_64
    Mac OS version:
    11C74
    Kernel version:
    Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
    Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
    System model name: iMac9,1 (Mac-F2218FC8)
    System uptime in nanoseconds: 50311643621186
    last loaded kext at 3686308265880: com.apple.driver.AppleUSBCDC 4.1.15 (addr 0xffffff7f810e8000, size 16384)
    loaded kexts:
    com.apple.driver.AppleUSBCDC    4.1.15
    com.apple.filesystems.afpfs     9.8
    *** Panic 2
    Interval Since Last Panic Report:  50721 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    771AE45B-5109-4899-ABCD-319F83542F39
    Sat Dec 10 12:58:59 2011
    panic(cpu 0 caller 0xffffff80002c266d): Kernel trap at 0xffffff7f81780f4e, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0x000000000000008c, CR3: 0x000000003a08f000, CR4: 0x0000000000000660
    RAX: 0x0000000000000000, RBX: 0x000000000000000e, RCX: 0x0000000000000024, RDX: 0xffffff800c302fb0
    RSP: 0xffffff807f9d3a30, RBP: 0xffffff807f9d3a30, RSI: 0x0000000000000024, RDI: 0xffffff801e53c400
    R8:  0x0000000000000003, R9:  0x0000000000000000, R10: 0xffffff800dc2cc00, R11: 0xffffff7f8174e39e
    R12: 0x00000000000007b0, R13: 0x00000000000007e8, R14: 0xffffff801ab08980, R15: 0x00000000000007e8
    RFL: 0x0000000000010206, RIP: 0xffffff7f81780f4e, CS:  0x0000000000000008, SS:  0x0000000000000010
    CR2: 0x000000000000008c, Error code: 0x0000000000000002, Faulting CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff807f9d36f0 : 0xffffff8000220702
    0xffffff807f9d3770 : 0xffffff80002c266d
    0xffffff807f9d3910 : 0xffffff80002d7a1d
    0xffffff807f9d3930 : 0xffffff7f81780f4e
    0xffffff807f9d3a30 : 0xffffff7f8178f83c
    0xffffff807f9d3a70 : 0xffffff7f817b2d58
    0xffffff807f9d3a90 : 0xffffff7f8174a0e7
    0xffffff807f9d3b10 : 0xffffff7f817489d4
    0xffffff807f9d3b40 : 0xffffff7f8174e429
    0xffffff807f9d3b70 : 0xffffff80006528dd
    0xffffff807f9d3be0 : 0xffffff8000652c7c
    0xffffff807f9d3c40 : 0xffffff800065343b
    0xffffff807f9d3d80 : 0xffffff80002a3898
    0xffffff807f9d3e80 : 0xffffff8000223006
    0xffffff807f9d3eb0 : 0xffffff8000214829
    0xffffff807f9d3f10 : 0xffffff800021bb58
    0xffffff807f9d3f70 : 0xffffff80002ae8a0
    0xffffff807f9d3fb0 : 0xffffff80002d8383
          Kernel Extensions in backtrace:
             com.apple.GeForce(7.1.2)[61E6C721-447E-39D3-BAB8-2A661467B517]@0xffffff7f817310 00->0xffffff7f817f0fff
                dependency: com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80894000
                dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f80822000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f8085c000
    BSD process name corresponding to current thread: WindowServer
    Boot args: arch=x86_64
    Mac OS version:
    11C74
    Kernel version:
    Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
    Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
    System model name: iMac9,1 (Mac-F2218FC8)
    **** Panic 3
    Interval Since Last Panic Report:  707147 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    771AE45B-5109-4899-ABCD-319F83542F39
    Tue Dec 27 11:39:55 2011
    panic(cpu 1 caller 0xffffff80005e0f42): "OSObject::refcount: Attempting to retain a freed object"@/SourceCache/xnu/xnu-1699.24.8/libkern/c++/OSObject.cpp:148
    Backtrace (CPU 1), Frame : Return Address
    0xffffff809640b2c0 : 0xffffff8000220702
    0xffffff809640b340 : 0xffffff80005e0f42
    0xffffff809640b380 : 0xffffff7f8176ba84
    0xffffff809640b3b0 : 0xffffff7f809071d9
    0xffffff809640b3e0 : 0xffffff7f808af312
    0xffffff809640b450 : 0xffffff7f80a668af
    0xffffff809640b4e0 : 0xffffff7f80a66333
    0xffffff809640b5d0 : 0xffffff7f80c534e8
    0xffffff809640b660 : 0xffffff7f80c5ff45
    0xffffff809640b7f0 : 0xffffff7f80c9a000
    0xffffff809640b910 : 0xffffff7f80a16259
    0xffffff809640b940 : 0xffffff7f8091098a
    0xffffff809640b9f0 : 0xffffff7f8090c28c
    0xffffff809640bbe0 : 0xffffff7f8090dd41
    0xffffff809640bcc0 : 0xffffff7f817b2a76
    0xffffff809640bce0 : 0xffffff7f817790c3
    0xffffff809640bd00 : 0xffffff7f81781112
    0xffffff809640bd20 : 0xffffff7f81777eb7
    0xffffff809640bd50 : 0xffffff7f81778789
    0xffffff809640be80 : 0xffffff7f817699e3
    0xffffff809640bea0 : 0xffffff7f8179c568
    0xffffff809640bec0 : 0xffffff7f8179c9e0
    0xffffff809640bef0 : 0xffffff8000639966
    0xffffff809640bf30 : 0xffffff80006386e0
    0xffffff809640bf70 : 0xffffff8000638584
    0xffffff809640bfb0 : 0xffffff8000820057
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000->0xffffff7f80b7ffff
                dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f80822000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80894000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f8085c000
             com.apple.nvidia.nv50hal(7.1.2)[2E84958C-1EEC-316B-9F7A-68C368F83476]@0xffffff7 f80b80000->0xffffff7f80ea1fff
                dependency: com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000
             com.apple.GeForce(7.1.2)[61E6C721-447E-39D3-BAB8-2A661467B517]@0xffffff7f817310 00->0xffffff7f817f0fff
                dependency: com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80894000
                dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f80822000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f8085c000
    BSD process name corresponding to current thread: kernel_task
    Boot args: arch=x86_64
    Mac OS version:
    11C74
    **** Panic 4
    Interval Since Last Panic Report:  43202 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    771AE45B-5109-4899-ABCD-319F83542F39
    Thu Dec 29 16:43:51 2011
    panic(cpu 0 caller 0xffffff80002c266d): Kernel trap at 0xffffff7f81780f4e, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0x000000000000008c, CR3: 0x000000003aa1f000, CR4: 0x0000000000000660
    RAX: 0x0000000000000000, RBX: 0x000000000000000e, RCX: 0x0000000000000024, RDX: 0xffffff800e009c40
    RSP: 0xffffff8095e73a30, RBP: 0xffffff8095e73a30, RSI: 0x0000000000000024, RDI: 0xffffff800de44400
    R8:  0x0000000000000003, R9:  0x0000000000000000, R10: 0xffffff800db31800, R11: 0xffffff806baea29c
    R12: 0x00000000000007b0, R13: 0x00000000000007e8, R14: 0xffffff800cd90e80, R15: 0x00000000000007e8
    RFL: 0x0000000000010206, RIP: 0xffffff7f81780f4e, CS:  0x0000000000000008, SS:  0x0000000000000010
    CR2: 0x000000000000008c, Error code: 0x0000000000000002, Faulting CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff8095e736f0 : 0xffffff8000220702
    0xffffff8095e73770 : 0xffffff80002c266d
    0xffffff8095e73910 : 0xffffff80002d7a1d
    0xffffff8095e73930 : 0xffffff7f81780f4e
    0xffffff8095e73a30 : 0xffffff7f8178f83c
    0xffffff8095e73a70 : 0xffffff7f817b2d58
    0xffffff8095e73a90 : 0xffffff7f8174a0e7
    0xffffff8095e73b10 : 0xffffff7f817489d4
    0xffffff8095e73b40 : 0xffffff7f8174e429
    0xffffff8095e73b70 : 0xffffff80006528dd
    0xffffff8095e73be0 : 0xffffff8000652c7c
    0xffffff8095e73c40 : 0xffffff800065343b
    0xffffff8095e73d80 : 0xffffff80002a3898
    0xffffff8095e73e80 : 0xffffff8000223006
    0xffffff8095e73eb0 : 0xffffff8000214829
    0xffffff8095e73f10 : 0xffffff800021bb58
    0xffffff8095e73f70 : 0xffffff80002ae8a0
    0xffffff8095e73fb0 : 0xffffff80002d8383
          Kernel Extensions in backtrace:
             com.apple.GeForce(7.1.2)[61E6C721-447E-39D3-BAB8-2A661467B517]@0xffffff7f817310 00->0xffffff7f817f0fff
                dependency: com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80894000
                dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f80822000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f8085c000
    BSD process name corresponding to current thread: WindowServer
    Boot args: arch=x86_64
    Mac OS version:
    11C74
    Kernel version:
    Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
    Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
    System model name: iMac9,1 (Mac-F2218FC8)
    System uptime in nanoseconds: 6775025831049
    **** Panic 5
    Interval Since Last Panic Report:  -33 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    771AE45B-5109-4899-ABCD-319F83542F39
    Thu Dec 29 20:35:21 2011
    panic(cpu 1 caller 0xffffff80005e0f42): "OSObject::refcount: Attempting to retain a freed object"@/SourceCache/xnu/xnu-1699.24.8/libkern/c++/OSObject.cpp:148
    Backtrace (CPU 1), Frame : Return Address
    0xffffff807fe9b2c0 : 0xffffff8000220702
    0xffffff807fe9b340 : 0xffffff80005e0f42
    0xffffff807fe9b380 : 0xffffff7f8176ba84
    0xffffff807fe9b3b0 : 0xffffff7f809071d9
    0xffffff807fe9b3e0 : 0xffffff7f808af312
    0xffffff807fe9b450 : 0xffffff7f80a668af
    0xffffff807fe9b4e0 : 0xffffff7f80a66333
    0xffffff807fe9b5d0 : 0xffffff7f80c534e8
    0xffffff807fe9b660 : 0xffffff7f80c5ff45
    0xffffff807fe9b7f0 : 0xffffff7f80c9a000
    0xffffff807fe9b910 : 0xffffff7f80a16259
    0xffffff807fe9b940 : 0xffffff7f8091098a
    0xffffff807fe9b9f0 : 0xffffff7f8090c28c
    0xffffff807fe9bbe0 : 0xffffff7f8090dd41
    0xffffff807fe9bcc0 : 0xffffff7f817b2a76
    0xffffff807fe9bce0 : 0xffffff7f817790c3
    0xffffff807fe9bd00 : 0xffffff7f81781112
    0xffffff807fe9bd20 : 0xffffff7f81777eb7
    0xffffff807fe9bd50 : 0xffffff7f81778789
    0xffffff807fe9be80 : 0xffffff7f817699e3
    0xffffff807fe9bea0 : 0xffffff7f8179c568
    0xffffff807fe9bec0 : 0xffffff7f8179c9e0
    0xffffff807fe9bef0 : 0xffffff8000639966
    0xffffff807fe9bf30 : 0xffffff80006386e0
    0xffffff807fe9bf70 : 0xffffff8000638584
    0xffffff807fe9bfb0 : 0xffffff8000820057
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000->0xffffff7f80b7ffff
                dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f80822000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80894000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f8085c000
             com.apple.nvidia.nv50hal(7.1.2)[2E84958C-1EEC-316B-9F7A-68C368F83476]@0xffffff7 f80b80000->0xffffff7f80ea1fff
                dependency: com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000
             com.apple.GeForce(7.1.2)[61E6C721-447E-39D3-BAB8-2A661467B517]@0xffffff7f817310 00->0xffffff7f817f0fff
                dependency: com.apple.NVDAResman(7.1.2)[3B24E838-5E73-362B-97FA-239F5AEE7D81]@0xffffff7f808 a6000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[6517D9A6-58F5-3CFC-B021-C882306150D5]@0xff ffff7f80894000
                dependency: com.apple.iokit.IOPCIFamily(2.6.7)[6D54F06A-46B7-37FC-AF22-DE68DC18A1A3]@0xffff ff7f80822000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[55FF26D3-292D-3B4B-8AB7-1D25C8B4313B]@0 xffffff7f8085c000
    BSD process name corresponding to current thread: kernel_task
    Boot args: arch=x86_64
    Mac OS version:
    11C74

    I'm no expert on crash logs, but it looks like something to do with your graphics card.
    Try reinstalling from a fresh App store download. Do not use the recovery partition or a saved installer.app unless you have already had one proven successful install. Start afresh.
    Took me five goes...my guess is with a 4GB download, at least some of the problems people are reporting with Lion is just down to corruption in the transfer.

  • Find the most recent file

    greetings,
    I am developing a web site in which we need to extract the 1st paragraph of the most recent press release and post it as content in a separate page. The press releases are all in their own separate files that get dynamically included into a templates page.
    I am able to open the file, get the text, set it to a variable and post to the separate page without a problem. What I need to know is how to know which file to open and read.
    I can use the lastModified() method to compare one file agains another, which I suppose would work fine it it was only a handful of files I Was comparing, but this could potentially be a pretty large number of files.
    Can anyone think of a relatively efficient way to do this? Are there any array sorting methods that may help here?
    Thanks,
    -d

    If you're looking to sort your File array by lastModified() date, then use the Arrays.sort() method with the following header...
    Arrays.sort(Object[] a, Comparator c)
    You can easily define the Comparator to sort by the date (either ascending or descending) and voila, you can quickly and easily find the most recent.

  • Most recently sold date

    Hi Friends,
    I have a requirement where my client wants to have a report that displays "most recently sold date ".
    The report should have " sales org", " material num" and " most recently sold date"
    upon execution, he should be able to find a recent date sold for a requested material.
    Please let me know, do any standard reports have this " most recent sold date"? if not how and from where get into report.
    Thanks
    Pavan

    Hi Pavan,
    Create an ODS which is having info objects like
    Sales org (Key field )
    Material(Key field )
    Invioce Date(Key field )
    Invoice Amount (KF) (Data field )
    Invoice amount should be an exception aggregate with excpetion on Last value and ref. characteristics should be invoice date . This way if there is material sold on 10 diff. invoice date , system will have only one record of last invoice date.
    Create update rule from 0SD* cube to custom made ods . And the required report could be achieved through this ODS.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • To change info in library file then info, only the most recent cd's allow me to change info, all others 14,000, do not, any ideas???

    Understand to change cd info in library  File then info, as of recent only the most recent music added to my library enabled to make changes, all others (14,000) do not highlight change categories, that is gray not black. Any suggestions.

    I suspect a permissions problem. This can happen when a library is moved between systems or the system is upgraded to a new version of Windows.
    Right-click on your main iTunes folder (or ithe Tunes Media folder if that is elsewhere) and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and SYSTEM full control of this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7 shouldn't be too different.
    If it won't let you change the permissions use the Owner tab to take ownneship from an account with administror privileges.
    tt2

  • 10 most recent receipts

    Have a table that contains data for items received into inventory.  Each record has an ItemNmbr,DateRecd, UnitCost etc.
    Need to pull the 10 (or 12 etc.) most recent receipts for each item number.  The dates will vary widely between the part numbers and even for a single part number there could be large gaps.
    Results should look like this
    ItemNmbr                  
         UnitCost             
    DateRecd
    70000
    24.2784
    February 1, 2003
    70000
    30.77
    February 25, 2003
    70000
    30.85
    February 25, 2003
    70000
    30.85
    March 27, 2003
    70000
    30.81
    March 27, 2003
    70000
    30.85
    March 27, 2003
    70000
    30.77
    March 27, 2003
    70000
    30.85
    May 13, 2003
    70000
    30.75
    May 13, 2003
    70000
    30.85
    May 27, 2003
    70053
    367.98
    July 16, 2008
    70053
    368.69
    July 16, 2008
    70053
    368.67
    July 16, 2008
    70053
    369.41
    August 6, 2008
    70053
    369.94
    August 6, 2008
    70053
    368.71
    August 19, 2008
    70053
    368.76
    August 19, 2008
    70053
    307.56
    November 17, 2008
    70053
    307.37
    November 17, 2008
    70053
    312.42
    February 2, 2009
    I can do this for one ItemNmbr at a time using TOP but I need to do it for all existing items in one go.  The objective being to return the most recent 10 receipts for each part number.
    I've been playing around with RANK but can't quite get to where I need to be.
    Thanks

    Is the field having date values a varchar field in your case? Seeing the data I feel you've declared it as varchar. Then I would say you should make it datetime so as to get date sequence correctly
    Once you do it you can make a logic like this
    SELECT *
    FROM TableName t
    WHERE NOT EXISTS (SELECT 1
    FROM TableName
    WHERE ItemNmbr = t.ItemNmbr
    AND DateRecd > t.DateRecd
    GROUP BY ItemNmbr
    HAVING COUNT(*) >= 10
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Contract Item System Status (Most recent system status)

    Hello folks,
    I am trying to extract Contract Item level System statuses by going through STATUS tab>SYSTEM STATUS area>STATUS ANALYSIS log icon>TRANSACTION ANALYSIS which are available in tables CRM_JSTO,CRM_JEST, and CRM_JCDS. However, I would like to get the most recent status changed. Can any body please help me to find out if there is any timestamp field in any other related table that I can use or any other function module.
    Thanks!
    Edited by: Shak Shak on Feb 6, 2012 8:27 AM

    Hi,
    you might already have checked the table CRM_JCDS.
    From that table you can retrieve the status history of a particular object. From status history you can identify the latest change based on time stamp.
    Thanks,
    Rajini Aleti.

  • Most Recent Used File List

    Hi,
    Does anyone know how to create List of most recent used files and display it in the main menu?
    Has anyone done that?
    Currently, I am opening one file at the time and I have the last
    path of opened file.
    thanx !

    You could recurse over the file system, creating a bunch of File objects, which you'd stick into a List. Then create a comparator that sorts the objects by File.lastModified() value, descending.
    Then you'd have a sorted list, from which you could easily take the N most recent files.
    Of course, the recursing would take a while. You may want to put creation and/or updating of this list, into a low priority thread.

  • Email Most Recent File From Directory

    I am using C# to open a Spreadsheet, change 3 things in the spreadsheet, then save the spreadsheet in a directory, then open the directory.  I was trying to use FileSystemWatcher to capture the most recent file in the directory, but it seems that the
    Watch() event is being triggered before my syntax is able to make the changes and save.
    Is their a better method for this or do I just need to add in a Thread.Sleep() event so that the Watch() event triggers after the save is complete?

    Hi Indigo,
    >>I was trying to use FileSystemWatcher to capture the most recent file in the directory,
    but it seems that the Watch() event is being triggered before my syntax is able to make the changes and save.
    I have tested your code on my side, I supposed that you can add one button, when you
    change and save xls file successfully, try to trigger Watch() event by manual.
    I changed a little code with yours.
    Watch for changes in LastAccess and LastWrite times, and  the renaming of files or directories.
    Add all event handlers.
    Use messageBox to show something instead
    Here is my test reslut:
     Do I miss something? If so, please feel free to post here.
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    filewatcher();
    private void filewatcher()
    using (Process pRun = new Process())
    pRun.StartInfo.FileName = "D:\\Test\\test.xlsx";
    pRun.StartInfo.UseShellExecute = true;
    pRun.Start();
    string openPath = "D:\\Test\\";
    Process pRC = new Process();
    pRC.StartInfo.FileName = openPath;
    pRC.Start();
    private void Watch()
    FileSystemWatcher watcher = new FileSystemWatcher();
    watcher.Path = "D:\\Test";
    watcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite
    | NotifyFilters.FileName | NotifyFilters.DirectoryName;
    watcher.Filter = "*.xlsx";
    // Add event handlers.
    watcher.Changed += new FileSystemEventHandler(OnChanged);
    watcher.Created += new FileSystemEventHandler(OnChanged);
    watcher.Deleted += new FileSystemEventHandler(OnChanged);
    watcher.EnableRaisingEvents = true;
    private void OnChanged(object source, FileSystemEventArgs e)
    WatcherChangeTypes changeTypes = e.ChangeType;
    String filename = e.Name.ToString();
    MessageBox.Show("Hello");
    private void button1_Click(object sender, EventArgs e)
    Watch();
    MessageBox.Show("DOne");
    //private void sendMail(string filename)
    // using (MailMessage mail = new MailMessage())
    // mail.From = new MailAddress("");
    // mail.To.Add("");
    // string fileDirectory = path;
    // string fileFullPath = Path.Combine(filesDirectory, filename);
    // if (!File.Exists(fileFullPath))
    // return;
    // using (var xlsx1 = new Attachment(fileFullPath))
    // mail.Subject = "Test";
    // mail.Attachments.Add(xlsx1);
    // SmtpClient client = new SmtpClient("SMTP.MAIL.COM");
    // client.Send(mail);
    Best Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Remove the duplicate rows but keep the most recent and oldest records

    I have a Product table, some products have duplicate rows(same productID). I want to keep the most recent and the oldest records based on ETL load date (or min and max productKey), delete others. How to do this in a simple way?
    ProductKey | ProductID |ETL_Load_Date
    1001 | 501 | 2014-01-01
    1002 | 501 | 2014-01-02
    1003 | 501 | 2014-01-03
    1011 | 502 | 2014-01-01
    1012 | 502 | 2014-01-02
    1013 | 502 | 2014-01-03

    declare @table table (ProductKey int, ProductID int, ETL_Load_Date date)
    insert @table (ProductKey, ProductID, ETL_Load_Date)
    values
    ( 1001 , 501 , '2014-01-01' ), ( 1002 , 501 , '2014-01-02' ),
    ( 1003 , 501 , '2014-01-03' ), ( 1011 , 502 , '2014-01-01' ),
    ( 1012 , 502 , '2014-01-02' ), ( 1013 , 502 , '2014-01-03' )
    SELECT *
    FROM @table t
    INNER JOIN (
    SELECT MIN(etl_load_date) min_load_date, MAX(etl_load_date) max_load_date, ProductID
    FROM @table
    GROUP BY ProductID
    ) m
    ON t.ProductID = m.ProductID
    AND t.ETL_Load_Date IN (min_load_date,max_load_date)
    This will show both the min and max load dates, for each ProductID
    Thanks to Saeid for posting some test objects.

  • Collapsed view: how to see "most recent unread message" instead of "first unread message" in a thread in Mail

    Hey all,
    I use the inbuilt Mail-software on my Macbook with Lion 10.7 and I constantly overlook new messages in a thread, as I organize by conversation and usually have all my threads in 'collapsed view'. For some reason Mail seems to prefer showing the 'first', i.e. the earliest unread message as the one message that I see in collapsed. If there are newer messages already in the thread, I don't see them, unless I un-collapse the thread. I find this really unintuitive and annoying, my inbox seems far more static than it really is.
    Is there any way to change this and have Mail show me the most recent unread message as the message I see in collapsed view?
    I appreciate any advice.
    Thanks, Carl
    PS: BTW, I have the same problem on my iPhone, double props to you if you can solve it for both Mail and iPhone!

    Mail
    Preferences
    Viewing
    Check put most recent message at top

  • I've updated to the most recent version of iTunes and I can no longer see any of my old music on my mac.  All the music is still available on my ipad.  How can i download the music on my mac?

    I've updated to the most recent version of iTunes and I can no longer see any of my old music on my mac.  All the music is still available on my ipad.  How can i download the music on my mac?

    First, are you positive it is really not there?  Have you looked in your iTunes folder in your Music folder, and in the media folders there? Do you see your media files?
    If your media are gone it is a lot easier to restore from a proper computer backup.  Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • I just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: the application has failed to start because MS

    i just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." Right after i click ok i then get this error: "Itunes was not installed correctly. Please reinstall Itunes. Error 7 (Windows error 126)." I tried to uninstall Itunes and then reinstall the 11.03 version but that didnt work either. I want to know if i copy all of the music in my itunes folder to an external without consolidating can i still transfer all my itunes music from my current windows xp pc to a brand new one and have my current itunes library in my new pc? Basically i just want to know 3 things: What exactly does consolidating the itunes library do? Can i copy, paste, and transfer my itunes library to an external and from there to a new pc? Will i be able to transfer my itunes library without consolidating the files?

    I have found a temporary solution, allowing the previous version of iTunes (v. 11.1.3 (x64) in my case) to be re-installed.  It will allow you to re-establish use of iTunes until the Apple software engineers fix the most recent disasterous upgrade (v. 11.1.4).  Please see and follow the procedure in the following article:http://smallbusiness.chron.com/reverting-previous-version-itunes-32590.html   The previous version works beautifully.

Maybe you are looking for

  • Users custom stamps dissapear in Acrobat 7.0 Professional

    Hello, For some reason our users custom stamps are dissapearing in Adobe Acrobat 7.0 Professional when they close Acrobat, reopen it, and attemp to use the stamp(s) they had previously created. I am not sure if we can upgrade Acrobat because the user

  • How to create Infosource with writing a ABAP program ?

    Hi, I want to create one program to create lot of infosources. Is there any Function module avilable for creating Infosource. It should be attachment of flat file, infosource and data source. Waiting for quick response. Best regards, BDP

  • AAMEE + Acrobat X

    We've just received our copy of Acrobat X PRO and I've found AAMEE does not recognise the installer. After locating the Product Install folder, selecting the OS I want to create a package for and click Next, I'm getting an error stating "A valid inst

  • Problems with startup and logging in

    My macbook pro has been acting very strangely, taking 5 or so minutes to boot up, and now it has devleoped another very troubling symptom. Whenever I type in my password, it takes me to my desktop, and then promptly sends me back to the login screen.

  • Autosave not working, and cannot Save Version in any Mac app

    I am no longer able to save a version in a Mac app in Lion. I was working in TextEdit and suddenly got an error message telling me the document could not be autosaved. I had saved it once manually. Doing a Command-S generated another error message sa