Last active time of a session

Oracle 9i.
OEM can show (session pero session) the timestamp, each session issued its last activity.
How can I know that (last timestamp session activity) using simple SQL statement?

The dynamic performance view v$session has the time of the last command in whole seconds.
If the session is active this is the time the current SQL statement has been running. If the session is inactive this is the time since the last SQL statement was issued, not how long the session has been inactive since the SQL statement could have been long running.
HTH -- Mark D Powell --

Similar Messages

  • Last active time values is NA in prime infrastructure

    hi all my bro!!
    first, i'm so sorry. i can't speak english very well. but i need some feedback and i'll do my best for you. 
    please understand, even a little bit clumsy expression. ^^
    now, let discussing with my problem.!
    i have my prime infrastructure server and the test is progressing
    Currently, my test was finished the nelflow.
    this is the point that the problem is occured
    most of the equipments is working property but there is one equipment that not opearate property
    if my configuration is property, i can see the some value in Last Active Time(ex:17-Mar-2014 10:49:36 PM UTC)
    but now i can see the N/A values.
    what do i do need something? and my configuration is wrong?
    i dont know why this message is dispplayed!
    please help me and attached my PI scrin

    Dear oratest,
    Please see the following link;
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2113.htm#REFRN30246
    +"+
    +LAST_ACTIVE_TIME+
    +DATE+
    +Time at which the query plan was last active+
    +"+
    That is the time that the "query plan" active period. I think this could be as what you have said.
    Regards.
    Ogan
    Edited by: Ogan Ozdogan on 30.Ağu.2010 22:21

  • Wrong Last Active Time-stamp (Ref: TA-21165)

    Status: Investigating
    Affects: Some Users
    Description:  Some members have recently reported seeing a discrepancy between Last Active Timestamp on Pets and on Profile.
    We've verified this issue with engineers and they're working to get the problem resolved.
    If you're experiencing this issue, please click 'ME TOO'.

    why you you waste your time & our time since you rarely get answers to your questions here?You are right, even i felt that recently. Its my mistake that i did not care to mark most of my threads as answered. Does that state i need to go back and mark all my old threads as answered ?
    My role is some what isolated, i have to do it on my own. So some times i think of posting questions here in hope of getting some clues but at the same time i don't feel bad if i don't get answers, since i have learned a lot from this forum.
    TABLE_NAME                       NUM_ROWS LAST_ANALYZED
    MONUMENT                          7978540 22-FEB-13
    DRAG                               406030 20-FEB-13
    BIT                             121783270 02-MAR-13
    SOFT_INDEX                      119212340 26-FEB-13
    ABBBA_HIT                       121276950 22-FEB-13Edited by: Yasu on Mar 3, 2013 9:40 AM

  • How to know time in which session last activity is done

    Hi ,
    I want to know that in which users session last activity time is done. I am seeing inactive session but i want to be sure that the last activity is done on the same day when i am going to kill the session after checking users session by v$session.
    Regards,
    Vikas

    Look at V$SESSION.LAST_CALL_ET.
    Quoting the documentation :
    LAST_CALL_ET NUMBER
    If the session STATUS is currently ACTIVE, then the value represents the elapsed time in seconds since the session has become active.
    If the session STATUS is currently INACTIVE, then the value represents the elapsed time in seconds since the session has become inactive.
    Hemant K Chitale

  • Session List and Last Access Time

    I want to get a list of WebLogic's current/active sessions and find out
    the user's last access time for each session. How can I do this? I'm
    using WebLogic 4.5.
    Thanks in advance.
    Sincerely,
    William H. Stone
    X U M A <build-to-order e-business>
    William H. Stone
    160 Pine St., 2nd Floor
    San Francisco, CA 94111
    Phone:(415)777-9988
    Fax: (415)777-2704
    http://www.xuma.com

    I am trying to maintain simultaneous sessions with WebLogic and another
    app server. I am writing a daemon that will read thru the active
    session list and check to the last activity time. Based on this and a
    similar list I get from the other app server, I will "ping" the oldest
    session to keep it up to date. The result is that the sessions will not
    time out prematurely.
    Clear as mud?
    -WHS
    Mauricio Del Moral wrote:
    Many information about your WLS it could be viewed with the Weblogic
    Console....but exactly what are you trying to get???--
    X U M A <build-to-order e-business>
    William H. Stone
    160 Pine St., 2nd Floor
    San Francisco, CA 94111
    Phone:(415)777-9988
    Fax: (415)777-2704
    http://www.xuma.com

  • I have never activated time machine and my entire iPhoto library is missing. How can I restore the library from the last back up??

    I am using a MacBook Pro version 10.7.5.
    Ive just noticed my entire iPhoto library is missing except for tonights last sync.
    I have never activated Time Machine. I am worried if i activate it now, i would have no chance of retrieving my iPhoto library.
    Can i restore the iPhoto library from the laptops memory? Or have i clicked the wrong thing while syncing, with no chance of seeing my life again?

    I was distracted at the time and have forgotten but I thought it was something like "are you sure you would like to replace all photos on this divise for the ones in your iPhoto library" I was confident as both the comp and my phone have been together for years now.
    Im questioning wether the iPhoto program had its own problem before tonights sync. Syncing photos is something i would do regularly without problems, but I've had about a six month break.
    Luckily i have made some folders and copied photos out of the iPhoto program. iPhoto was my default photo program and had so many photos from my travelling.
    Also I remembered Facebook syncs photos privately, I trying to go way back in time to see if there are any i can save there.
    I respect your honesty, if you believe there is no way i can get the program back to normal just say so.

  • Last Active Payroll Record

    Hi,
    I am new to ABAP-HR.
    I am using logical database PNP to get payroll. But i want to get only the last active payroll for a personnel number. How to achieve this ? Is there any Macro for this ?
    Please guide on this.
    Thanks & Regards
    Ananya

    Hi
    See the sample Payroll report to fetch the Overtime.
    We can control the Last active payroll using the RGDIR table fields
    see the sample code
    report zovertime
           line-size 252
           line-count 60(1)
           no standard page heading
           message-id zndc.
    Database Tables & Infotypes
    tables: pcl1,        " HR Cluster1
            pcl2,        " HR Cluster1
            pa0003,      " Master data - Payroll Status
            cskt,        " Cost Center Texts
            t528t,       " Positions Texts
            t513s,       " Job Titles
            pernr,       " Logical PNP
            t001p,       " Personnel Subarea
            t500p,       " Personnel Area
            t501,        " Employee Group
            t503k,       " Employee Subgroup
            csks.        " Cost Center
    infotypes:0000,0001.
    *include rpclst00.
    include rpc2rx00.
    include rpc2rxx0.
    include rpc2cd00.
    *include rpc2ps00.
    *include rpc2pt00.
    *include rpcfvp00.
    *include rpcfdc10.
    *include rpcfdc00.
    include rpppxd00.
    include rpppxd10.
    Declaration of Internal Tables
    Internal Table for Output Data
    data: begin of rep_tab occurs 0,
            kostl like pa0001-kostl,      " Cost Center
            pernr like pa0001-pernr,      " Personal Number
            ename like pa0001-ename,      " Employee Name
            ctext like cskt-ltext,        " Cost Center Text
            ptext like t528t-plstx,       " Position Text
            ot1   type p decimals 2,      " Jan OT Amount
            ot2   type p decimals 2,      " Feb OT Amount
            ot3   type p decimals 2,      " Mar OT Amount
            ot4   type p decimals 2,      " Apr OT Amount
            ot5   type p decimals 2,      " May OT Amount
            ot6   type p decimals 2,      " Jun OT Amount
            ot7   type p decimals 2,      " Jul OT Amount
            ot8   type p decimals 2,      " Aug OT Amount
            ot9   type p decimals 2,      " Sep OT Amount
            ot10  type p decimals 2,      " Oct OT Amount
            ot11  type p decimals 2,      " Nov OT Amount
            ot12  type p decimals 2,      " Dec OT Amount
            ott   type p decimals 2,      " Total OT Amount
          end of rep_tab.
    Declaration of Variables
    data: v_mon(2) type n,                   " Month
          v_no     type i,                   " Data Lines
          v_year(4)  type c,                 " Year
          v_date   like sy-datum,            " Date
          v_date1  like sy-datum,            " Date
          v_seqnr  like  pc261-seqnr.        " Sequence No.
    Declaration of Constants
    data: c_type   like hrp1001-otype  value 'S',  " Object Type
          c_kokrs  like cskt-kokrs value '1000',   " Controlling Area
          c_date1  like sy-datum value '18000101', " Date
          c_date2  like sy-datum value '99991231', " Date
          c_x       type c value 'X',              " Sign
         c_mon(2)  type c value '01',             " Month
          c_val1(2) type c value '31',             " Date
          c_val2(2) type c value '12',             " Month Type
          c_val    like p0041-dar01 value '01',    " Date Type
          c_lgart1 like p0008-lga01 value '0722',  " Wage Type
          c_lgart2 like p0008-lga01 value '0723',  " Wage Type
          c_1(2)   type n value '01',                           " Month1
          c_2(2)   type n value '02',                           " Month2
          c_3(2)   type n value '03',                           " Month3
          c_4(2)   type n value '04',                           " Month4
          c_5(2)   type n value '05',                           " Month5
          c_6(2)   type n value '06',                           " Month6
          c_7(2)   type n value '07',                           " Month7
          c_8(2)   type n value '08',                           " Month8
          c_9(2)   type n value '09',                           " Month9
          c_10(2)  type n value '10',                           " Month10
          c_11(2)  type n value '11',                           " Month11
          c_12(2)  type n value '12'.                           " Month12
    Selection-screen
    parameters:
      p_year like pc2b0-pabrj obligatory.       " Payroll Year
    At selection-screen
    at selection-screen.
    Validate the Selection Screen fields
      perform validate_screen.
    Start-of-Selection
    start-of-selection.
    Selection of Period
      perform get_period.
    Get PERNR from LDB
    get pernr.
    Get the Master data from infotype 0001
      perform get_master_data.
    Top-of-page
    top-of-page.
    Write the Report and Column Headings
      perform top_of_page.
    End-of-Page
    end-of-page.
      write /1(252) sy-uline.
    End-of-Selection
    end-of-selection.
    Display the Output Report.
      perform display_report.
    Form-Routines
    *&      Form  validate_screen
    Validation of selection Screen fields
    form validate_screen.
    Validation of Cost Center
      clear csks.
      if not pnpkostl[] is initial.
        select single kostl
          into csks-kostl
          from csks
          where kostl in pnpkostl.
        if sy-subrc <> 0.
          message e999 with 'Invalid Cost Center'(003).
        endif.
      endif.
    Validation of Personnel Number
      clear pa0003.
      if not pnppernr[] is initial.
        select pernr
        from pa0003 up to 1 rows
          into pa0003-pernr
          where pernr in pnppernr.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personal Number Entered'(002).
        endif.
      endif.
    Validation of Personnel Area
      clear t500p.
      if not pnpwerks[] is initial.
        select persa
        from t500p up to 1 rows
          into t500p-persa
          where persa in pnpwerks.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personnel Area Entered'(001).
        endif.
      endif.
    Validation of Personnel Sub Area
      clear t001p.
      if not pnpbtrtl[] is initial.
        select btrtl
        from t001p up to 1 rows
          into t001p-btrtl
          where btrtl in pnpbtrtl.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personnel Sub Area Entered'(037).
        endif.
      endif.
    Validation of Employee Group
      clear t501.
      if not pnppersg[] is initial.
        select persg
        from t501 up to 1 rows
          into t501-persg
          where persg in pnppersg.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Employee Group Entered'(038).
        endif.
      endif.
    Validation of Employee Sub Group
      clear t503k.
      if not pnppersk[] is initial.
        select persk
        from t503k up to 1 rows
          into t503k-persk
          where persk in pnppersk.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Employee Sub Group Entered'(039).
        endif.
      endif.
    endform.                  "validate_screen
    *&      Form  get_period
    Get the Correct Period based on Selection screen selection
    form get_period.
      clear: v_year,v_mon, v_date, v_date1.
      v_year = sy-datum+0(4).
      v_mon  = sy-datum+4(2).
      if pnptimr1 = c_x.      " Current Date
        pnpbegda = sy-datum.
        pnpendda = sy-datum.
      elseif pnptimr2 = c_x.  " Current Month
        concatenate v_year v_mon c_val into v_date.
        concatenate v_year v_mon c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr3 = c_x.  " Current Year
        concatenate v_year c_val c_val into v_date.
        concatenate v_year c_val2 c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr4 = c_x.  " Upto Today
        pnpbegda = c_date1.
        pnpendda = sy-datum.
      elseif pnptimr5 = c_x.  " From Today
        pnpbegda = sy-datum.
        pnpendda = c_date2.
      else.
        if ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = c_date1.
          pnpendda = c_date2.
        elseif pnpbegda is initial and not pnpendda is initial.
          pnpbegda = c_date1.
          pnpendda = pnpendda.
        elseif not ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = pnpbegda.
          pnpendda = pnpendda.
        endif.
      endif.
    endform.              "get_period
    *&      Form  get_master_data
    Get the Master Data from Database Tables PA0001,0002,0003
    form get_master_data.
    Get data from Respective Infotypes
      rp_provide_from_last p0001 space pnpbegda pnpendda.
      if p0001-kostl in pnpkostl.
        rep_tab-kostl = p0001-kostl.
        rep_tab-pernr = p0001-pernr.
        rep_tab-ename = p0001-ename.
    Get the Position Text
        clear t528t-plstx.
        select single plstx into t528t-plstx from t528t
                where plans = p0001-plans and
                      otype = c_type and
                      sprsl = sy-langu.
        if sy-subrc = 0.
          rep_tab-ptext = t528t-plstx.
        endif.
    Get the Cost Center Text
        clear cskt-ltext.
        select single ltext into cskt-ltext from cskt
                where spras = sy-langu and
                      kokrs = c_kokrs and
                      kostl = p0001-kostl.
        if sy-subrc = 0.
          rep_tab-ctext = cskt-ltext.
        endif.
    Get the Overtime Payment Data
        perform get_ot_data.
        rep_tab-ott = rep_tab-ot1 + rep_tab-ot2 + rep_tab-ot3 +
                      rep_tab-ot4 + rep_tab-ot5 + rep_tab-ot6 +
                      rep_tab-ot7 + rep_tab-ot8 + rep_tab-ot9 +
                      rep_tab-ot10 + rep_tab-ot11 + rep_tab-ot12.
        append rep_tab.
        clear  rep_tab.
      endif.
      sort rep_tab by kostl pernr.
      delete rep_tab where kostl = ' '.
      delete rep_tab where ott = 0.
    endform.                 "get_master_data
    *&      Form  get_ot_data
    Get the Overtime Payment Data
    form get_ot_data.
      cd-key = pernr-pernr.
      rp-imp-c2-cd.
      sort rgdir by seqnr.
    To get sequence number for the payroll period
      loop at rgdir where void     is initial
                        and reversal is initial
                        and outofseq is initial
                        and srtza    eq 'A'.
        if rgdir-fpper+0(4) = p_year.
    To consider offcycle run data
          if not rgdir-ocrsn is initial.
            v_seqnr = rgdir-seqnr.
            exit.
          endif.
          v_seqnr = rgdir-seqnr.
        endif.
        if not v_seqnr is initial.
          perform import_rx.
        endif.
        perform process_wagetypes.
      endloop.
    endform.                 "get_ot_data
    include rpppxm00.
    *&      Form  Import_rx
    Import the RX data from Clusters
    form import_rx.
      rx-key-pernr = cd-key-pernr.
      rx-key-seqno = v_seqnr.
      rp-init-buffer.
      rp-imp-c2-rx.
    endform.                    " Import_rx
    *&      Form  Process_wagetypes
    Calculate the Overtime Amount based on Wage types
    form process_wagetypes.
      loop at rt.
        if  rt-lgart = c_lgart1 or rt-lgart = c_lgart2.
          if rgdir-fpper+0(4) = p_year.
            v_mon = rgdir-fpper+4(2).
            case v_mon .
              when c_1.
                rep_tab-ot1 = rep_tab-ot1 + rt-betrg.
              when c_2.
                rep_tab-ot2 = rep_tab-ot2 + rt-betrg.
              when c_3.
                rep_tab-ot3 = rep_tab-ot3 + rt-betrg.
              when c_4.
                rep_tab-ot4 = rep_tab-ot4 + rt-betrg.
              when c_5.
                rep_tab-ot5 = rep_tab-ot5 + rt-betrg.
              when c_6.
                rep_tab-ot6 = rep_tab-ot6 + rt-betrg.
              when c_7.
                rep_tab-ot7 = rep_tab-ot7 + rt-betrg.
              when c_8.
                rep_tab-ot8 = rep_tab-ot8 + rt-betrg.
              when c_9.
                rep_tab-ot9 = rep_tab-ot9 + rt-betrg.
              when c_10.
                rep_tab-ot10 = rep_tab-ot10 + rt-betrg.
              when c_11.
                rep_tab-ot11 = rep_tab-ot11 + rt-betrg.
              when c_12.
                rep_tab-ot12 = rep_tab-ot12 + rt-betrg.
            endcase.
          endif.
        endif.
      endloop.
    endform.          "process_wagetypes
    *&      Form  top_of_page
    Write the Report and Column Headings
    form top_of_page.
      format color col_heading on.
      write: /1(252) 'NATIONAL DRILLING COMPANY'(010) centered,
             /1(252) 'Overtime Payments Details'(011) centered.
      format color off.
      if pnptimr1 = c_x.      " Current Date
        write: /2 'Period From     :'(036), sy-datum, 'To:'(006), sy-datum.
      elseif pnptimr2 = c_x.  " Current Month
        write: /2 'Period From     :'(036), v_date, 'To:'(006), v_date1.
      elseif pnptimr3 = c_x.  " Current Year
        write: /2 'Period From     :'(036), v_date, 'To:'(006), v_date1.
      elseif pnptimr4 = c_x.  " Upto Today
        write: /2 'Period From     :'(036), c_date1, 'To:'(006), sy-datum.
      elseif pnptimr5 = c_x.  " From Today
        write: /2 'Period From     :'(036), sy-datum, 'To:'(006), c_date2.
      else.
        if ( pnpbegda is initial and pnpendda is initial ).
          write: /2 'Period From     :'(036), c_date1, 'To:'(006), c_date2.
        elseif pnpbegda is initial and not pnpendda is initial.
          write: /2 'Period From     :'(036), c_date1, 'To:'(006), pnpendda.
        elseif not ( pnpbegda is initial and pnpendda is initial ).
          write: /2 'Period From     :'(036), pnpbegda,
                   'To:'(006), pnpendda.
        endif.
      endif.
      write: 219 'Report Run Date:'(018), sy-datum.
      if not pnpkostl[] is initial.
        if pnpkostl-high is initial.
          write: /2 'Cost Center     :'(004), pnpkostl-low,
                219 'Time           :'(020), sy-uzeit.
        else.
          write: /2 'Cost Center From:'(005), pnpkostl-low+7(3),
                                    'To:'(006), pnpkostl-high,
                219 'Time           :'(020), sy-uzeit.
        endif.
      else.
        write: /219  'Time           :'(020), sy-uzeit.
      endif.
      if not pnppernr[] is initial.
        if pnppernr-high is initial.
          write: /2 'Personal Number :'(007), pnppernr-low,
                 219 'User           :'(021), sy-uname.
        else.
          write: /2 'Personal No.From:'(008),  pnppernr-low,
                                    'To:'(006), pnppernr-high,
                 219 'User           :'(021), sy-uname.
        endif.
      else.
        write: /219 'User           :'(021), sy-uname.
      endif.
      write: /219 'Page No        :'(022), sy-pagno.
      format color col_heading.
      write /1(252) sy-uline.
      write:/1 sy-vline, 10 sy-vline,
            41 sy-vline,
            67 sy-vline, 68(167) 'Overtime Payments(Dirhams)'(013) centered,
           235 sy-vline,252 sy-vline.
      format color col_heading.
      write:/1 sy-vline,  2(8)  'Emp #'(019) centered,
            10 sy-vline, 11(30) 'Employee Name'(012) centered,
            41 sy-vline, 42(25) 'Position'(014) centered,
            67 sy-vline, 68(167)  sy-uline,
           235 sy-vline,236(16)  'Total'(017) centered,
           252 sy-vline.
      write:/1 sy-vline, 10 sy-vline,
            41 sy-vline,
            67 sy-vline, 68(13)  'JANUARY'(024) centered,
            81 sy-vline, 82(13)  'FEBRUARY'(025) centered,
            95 sy-vline, 96(13)  'MARCH'(026) centered,
           109 sy-vline,110(13)  'APRIL'(027) centered,
           123 sy-vline,124(13)  'MAY'(028) centered,
           137 sy-vline,138(13)  'JUNE'(029) centered,
           151 sy-vline,152(13)  'JULY'(030) centered,
           165 sy-vline,166(13)  'AUGUST'(031) centered,
           179 sy-vline,180(13)  'SEPTEMBER'(032) centered,
           193 sy-vline,194(13)  'OCTOBER'(033) centered,
           207 sy-vline,208(13)  'NOVEMBER'(034) centered,
           221 sy-vline,222(13)  'DECEMBER'(035) centered,
           235 sy-vline,252 sy-vline.
      format color off.
      write /1(252) sy-uline.
    endform.            "top_of_page
    *&      Form  Display_report
    Write the Report Output
    form display_report.
      clear v_no.
      describe table rep_tab lines v_no.
      if v_no = 0.
        message i999 with
         'No Data found for the entered Selection'(015).
      endif.
      loop at rep_tab.
        format color 3.
        at new kostl.
          read table rep_tab index sy-tabix.
          write:/1 sy-vline, 2(12) 'Cost Center:'(009),
                 14(10) rep_tab-kostl,
                 25(30) rep_tab-ctext,
                252 sy-vline.
          format color off.
          write /1(252) sy-uline.
        endat.
        format color col_normal.
        write: /1 sy-vline, 2(8)   rep_tab-pernr,
              10 sy-vline, 11(30)  rep_tab-ename,
              41 sy-vline, 42(25)  rep_tab-ptext,
              67 sy-vline, 68(13)  rep_tab-ot1 no-zero,
              81 sy-vline, 82(13)  rep_tab-ot2 no-zero,
              95 sy-vline, 96(13)  rep_tab-ot3 no-zero,
             109 sy-vline,110(13)  rep_tab-ot4 no-zero,
             123 sy-vline,124(13)  rep_tab-ot5 no-zero,
             137 sy-vline,138(13)  rep_tab-ot6 no-zero,
             151 sy-vline,152(13)  rep_tab-ot7 no-zero,
             165 sy-vline,166(13)  rep_tab-ot8 no-zero,
             179 sy-vline,180(13)  rep_tab-ot9 no-zero,
             193 sy-vline,194(13)  rep_tab-ot10 no-zero,
             207 sy-vline,208(13)  rep_tab-ot11 no-zero,
             221 sy-vline,222(13)  rep_tab-ot12 no-zero,
             235 sy-vline,236(16)  rep_tab-ott no-zero,
             252 sy-vline.
        at end of kostl.
          write /1(252) sy-uline.
        endat.
        format color off.
        at last.
          sum.
          format color 1.
          write: /1 sy-vline,
                10 sy-vline, 11(30) 'Total'(017) centered,
                41 sy-vline,
                67 sy-vline, 68(13)  rep_tab-ot1 no-zero,
                81 sy-vline, 82(13)  rep_tab-ot2 no-zero,
                95 sy-vline, 96(13)  rep_tab-ot3 no-zero,
               109 sy-vline,110(13)  rep_tab-ot4 no-zero,
               123 sy-vline,124(13)  rep_tab-ot5 no-zero,
               137 sy-vline,138(13)  rep_tab-ot6 no-zero,
               151 sy-vline,152(13)  rep_tab-ot7 no-zero,
               165 sy-vline,166(13)  rep_tab-ot8 no-zero,
               179 sy-vline,180(13)  rep_tab-ot9 no-zero,
               193 sy-vline,194(13)  rep_tab-ot10 no-zero,
               207 sy-vline,208(13)  rep_tab-ot11 no-zero,
               221 sy-vline,222(13)  rep_tab-ot12 no-zero,
               235 sy-vline,236(16)  rep_tab-ott no-zero,
               252 sy-vline.
          write /1(252) sy-uline.
        endat.
        format color off.
      endloop.
    endform.          "display_report
    Reward points for useful Answers
    Regards
    Anji

  • Performance hit implementing last authentication time (pwdKeppLastAuthTime)

    I have a DSEE 6.1 installation running on solaris 10.
    There are about 100 users in the directory, but soon to have another 3000 added as it is properly productionized.
    I notice there is a warning that pwdKeepLastAuthTime feature is not activated by default as it adds an update for each successful bind operation.
    I wanted to enable this so set:
    dsconf set-server-prop pwd-keep-last-auth-time-enabled:on
    This has resulted in the db size <instance>/db increasing 100 fold from ~10mb to ~1gb.
    The memory size is now at ~800mb.
    Is this expected behaviour?

    /opt/ds/db" > ls -l
    total 137126
    -rw------- 1 nobody nobody 24576 Oct 31 09:21 __db.001
    -rw------- 1 nobody nobody 10264576 Nov 13 00:53 __db.002
    -rw------- 1 nobody nobody 41951232 Nov 13 00:53 __db.003
    -rw------- 1 nobody nobody 1572864 Nov 13 00:53 __db.004
    -rw------- 1 nobody nobody 11313152 Nov 13 00:53 __db.005
    -rw------- 1 nobody nobody 65536 Nov 13 00:53 __db.006
    -rw------- 1 nobody nobody 38 May 31 16:16 DBVERSION
    -rw------- 1 nobody nobody 10485760 Nov 13 09:02 log.0000001204
    drwx------ 2 nobody nobody 1536 Sep 6 12:07 zeus
    "/opt/ds/db" > du -sk *
    24 __db.001
    10032 __db.002
    41000 __db.003
    1544 __db.004
    11056 __db.005
    64 __db.006
    1 DBVERSION
    4904 log.0000001204
    1339315 zeus
    opt/ds/db/zeus" > ls -l
    total 2678626
    -rw------- 1 nobody nobody 1369350144 Nov 13 09:03 cl5dc_zeus_dc_ghsewn_dc_com463ff1cb000000010000.db3
    -rw------- 1 nobody nobody 38 Jun 1 11:55 DBVERSION
    -rw------- 1 nobody nobody 16384 Jun 21 12:47 zeus_aci.db3
    -rw------- 1 nobody nobody 16384 Oct 31 09:37 zeus_ancestorid.db3
    -rw------- 1 nobody nobody 81920 Oct 31 09:37 zeus_cn.db3
    -rw------- 1 nobody nobody 32768 Oct 31 09:37 zeus_entrydn.db3
    -rw------- 1 nobody nobody 16384 Oct 31 09:37 zeus_gidnumber.db3
    -rw------- 1 nobody nobody 909312 Nov 13 09:03 zeus_id2entry.db3
    -rw------- 1 nobody nobody 16384 Aug 10 14:52 zeus_nisnetgrouptriple.db3
    -rw------- 1 nobody nobody 16384 Nov 7 09:38 zeus_nscpEntryDN.db3
    -rw------- 1 nobody nobody 16384 Jun 1 11:57 zeus_nsds5ReplConflict.db3
    -rw------- 1 nobody nobody 16384 Oct 31 09:37 zeus_nsRoleDN.db3
    -rw------- 1 nobody nobody 40960 Nov 7 09:38 zeus_nsuniqueid.db3
    -rw------- 1 nobody nobody 16384 Jun 13 11:26 zeus_numsubordinates.db3
    -rw------- 1 nobody nobody 24576 Nov 7 09:38 zeus_objectclass.db3
    -rw------- 1 nobody nobody 16384 Oct 31 09:37 zeus_parentid.db3
    -rw------- 1 nobody nobody 16384 Nov 11 16:18 zeus_pwdaccountlockedtime.db3
    -rw------- 1 nobody nobody 16384 Nov 12 15:00 zeus_pwdfailuretime.db3
    -rw------- 1 nobody nobody 16384 Nov 9 11:46 zeus_pwdgraceusetime.db3
    -rw------- 1 nobody nobody 16384 Jun 20 16:07 zeus_sn.db3
    -rw------- 1 nobody nobody 16384 Jun 20 09:50 zeus_sudoUser.db3
    -rw------- 1 nobody nobody 16384 Oct 31 09:37 zeus_uid.db3
    -rw------- 1 nobody nobody 16384 Oct 31 09:37 zeus_uidNumber.db3
    -rw------- 1 nobody nobody 16384 Oct 24 13:03 zeus_vlv#zeusghsewncomgetgrent.db3
    -rw------- 1 nobody nobody 16384 Aug 10 14:52 zeus_vlv#zeusghsewncomgetngrpent.db3
    -rw------- 1 nobody nobody 16384 Nov 13 08:57 zeus_vlv#zeusghsewncomgetpwent.db3
    -rw------- 1 nobody nobody 16384 Nov 13 08:57 zeus_vlv#zeusghsewncomgetspent.db3
    "/opt/ds/db/zeus" > du -sk *
    1337920 cl5dc_zeus_dc_ghsewn_dc_com463ff1cb000000010000.db3
    1 DBVERSION
    16 zeus_aci.db3
    16 zeus_ancestorid.db3
    80 zeus_cn.db3
    32 zeus_entrydn.db3
    16 zeus_gidnumber.db3
    896 zeus_id2entry.db3
    16 zeus_nisnetgrouptriple.db3
    16 zeus_nscpEntryDN.db3
    16 zeus_nsds5ReplConflict.db3
    16 zeus_nsRoleDN.db3
    40 zeus_nsuniqueid.db3
    16 zeus_numsubordinates.db3
    24 zeus_objectclass.db3
    16 zeus_parentid.db3
    16 zeus_pwdaccountlockedtime.db3
    16 zeus_pwdfailuretime.db3
    16 zeus_pwdgraceusetime.db3
    16 zeus_sn.db3
    16 zeus_sudoUser.db3
    16 zeus_uid.db3
    16 zeus_uidNumber.db3
    16 zeus_vlv#zeusghsewncomgetgrent.db3
    16 zeus_vlv#zeusghsewncomgetngrpent.db3
    16 zeus_vlv#zeusghsewncomgetpwent.db3
    16 zeus_vlv#zeusghsewncomgetspent.db3

  • I use "firefox -new-tab anyPage.html" but it does not open it in new tab. Instead it replaces the last active tab.

    Well I use following command to view offline pages using firefox on my linux box
    $ firefox -new-tab anyPage.html
    But instead of opening it in new tab, it replaces the last active tab.
    I have tired
    $ firefox -new-tab anyPage.html &
    $ firefox -remote "openurl(anyPage.html,NEW_TAB)"
    But none works.
    Sometimes it do open in new tab but mostly it does not. I have been unable to figure out any pattern.
    == This happened ==
    Every time Firefox opened

    (''Note: cross posted from [https://support.mozilla.com/nl/questions/801471 here].'')
    I had the same problem, but was able to fix it somewhat.
    # Open the about:config page.
    # Set the ''browser.link.open_newwindow.restriction'' setting to 0 (= zero).
    On my machine this will open new windows in a new tab. However, it switches to the new tab regardless of the setting ''"When I open a link in new tab, switch to it immediatly"''.

  • Hide "Last Active" status on profile

    I would like to see an option for hiding your last active status on your profile.  Even though you can sign in as invisible, your active status always shows when you have been on line.  This causes problems amongst friends sometimes, because you would like to jump on tagged to check messages only or pets, and you may not always have time to reply to them.  Then you get it in the neck from friends saying they were on line at the same time and you get accused of ignoring them.  I feel this is a privacy issue and we all should be able to have this feature. There is actually one profile I have come across that shows no "Last Active" status and was wondering if they have found a way around this or there is something wrong with their profile.

    +2 

  • Last Logon Time

    Hi,
     In Exchange 2003 I looked into the Mailboxes on a Mailbox Store. It has a label Last Logon Time. What is this last logon time? Where does it get it from? I have users already using another email system which is web based and they are no longer using
    outlook on their PCs.
    Thanks!

    Last Logon Time that is shown in Active Directory and Exchange are different. Active Directory shows last successful authentication and Exchange shows last time when mailbox was accessed. However, Exchange uses many background processes that access the
    mailbox for maintenance.
    - Sarvesh Goel - Enterprise Messaging Administrator

  • How to disable auto-completing service request after completing last activity

    How to disable standard rule, that change service request status to "Complete" when the last activity in this service request is completed?
    For SCSM 2012 R2

    Perhaps you can use the "Closed" status as a way of indicating that your are completely finished with a service request? (This follows ITIL). It has the advantage of being an out-of-the-box feature and, by default, SR's have to be closed by
    a user.
    Keep in mind, though, that closed service requests are groomed out of the CMDB (356 day retention time by default, i believe). But, they'll still be available for a few years in your data warehouse.
    What is your business reason for this behavior? Console views? Custom reports?
    If "Closed" doesn't cut it for you, you may want to consider extending the Server Request class with your own status property that you can use for whatever your requirements are.

  • Need to display/update last date/time of an accessed record

    Hi All,
    I'm using ADF BC and I have a use case where I need to display the last date/time when a user access a record in a view. I have a user table that I access thru a view object where I can store the date/time of the fetched record. A viewLink from that view object gives me the detail information in that record.
    I generated a ViewRowImpl class and added this to the method that get the time and date (DtHeureDernAcces is a private variable in defined in the class):
    /**Gets the attribute value for the calculated attribute DtHreDernAcces
    public Date getDtHreDernAcces()
    if (DtHeureDernAcc==null)
    DtHeureDernAcc=(Date) getAttributeInternal(DTHREDERNACCES);
    setDtHreDernAcces(new Date(new java.sql.Timestamp(System.currentTimeMillis())));
    getApplicationModule().getTransaction().commit();
    return DtHeureDernAcc;
    This works fine until the user refresh the page, in this case the ViewObjImpl is recreated and DtHeureDernAcc is then null. So the date/time is updated after each refresh.
    How can I get around this problem ?

    The complication here is that &P7_DATE_SHIPPED. and &P7_DATE_ORDERED. are session-state variables - they don't actually get updated until the page submit completes, which is happening AFTER the dynamic action.
    JavaScript might provide an alternative method that will pick up the current values of those fields. You might try something like:
    HTML Header
    <script language="JavaScript" type="text/javascript">
    function check_hours(pThis){
      var v_shipdt = $v("P7_DATE_SHIPPED");
      var v_ordrdt = $v("P7_DATE_ORDERED");
      if(v_shipdt > v_ordrdt){
        alert("Shipping Date is before Order Date!");
      return true;
    </script>Put this in the HTML Form Elements Attributes of your page item:
    onchange="check_hours(this)"This is just pseudocode, but it may help get you started. Dates in JavaScript are a little tricky to deal with.

  • Reporting Last Activity Date on Contact

    Hello,
    I maybe lossing my mind here but i feel like i have been looking for "Last Activity Date" on the contact screen all day. Can someone veryify that this appears under reporting.
    Also does anyone know if you can create a case statement around this to state if values is less than 3 weeks = Dont not Contact and if greater Contact.
    Anyway hope someone can verify this.

    JE,
    i don't know about a last Activity date but I've just done it with Activity reporting on Service Requests. I did RANK(activity created date by SR ID) and then set the filter to RANK=1. This gives you the last activity created.
    I then did a calculation in another field TIMESTAMPDIFF(SQL_TSI_DAY, activity.createddate, Current_date) which gave me the number of days since an activity was last posted to an SR.
    You can then do conditional formatting or a CASE WHEN statement on this field.
    cheers
    ALEX
    ***NOTE I have a current SR with Oracle because I'm in sydney and Current_date returns Central Server time which is a 17 hour difference and for most of the day is a day behind so my formula above has had to be
    TIMESTAMPDIFF(SQL_TSI_DAY, activity.createddate, TIMESTAMPADD(SQL_TSI_HOUR, 17,Current_date))

  • Last logon time from list of computers?

    Hello,
    I'm looking for some type of script that will query a list (c:\script\computers.txt) of computers and return the last logon date and user.
    I do not want to do this from active directory, but instead want to get the data directly from the machines. So to sum it up I need to input a list of host names (all on the network) and output a list of last logon time stamps.
    Any help is appreciated!
    Thank you,
    Brian

    Hi
    Well AD will be your best option but you can try this in a bat file:
    net user User| findstr /B /C:"Last logon"
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • How to use auto increment with "nchar" data type

    Hello I have a table that I want the value in one column to be generated automatically with "T-XXX" pattern which "XXX" is a number. Can Microsoft SQL Server do that?

  • How to pass a paramter to a schedued process flow

    I have a process flow with a one varchar type parameter. I want to schedule this process flow and for that I have created a schedule and then attached it to the process flow using Process Flow -> Configuration -> Referred Calendar Option. Now my issu

  • How to access the third party plugin

    i am new to javascript and InDesign.now my work is to access the Third Party plugin styles, the third Pary plugin is all about InMath. is it possible to access third party plugin through java prgramming. plz help me..... by subha

  • Smartstyle not recognized propely in Smartforms

    Hi Experts, I am downloading the smartform and smartstyle from one server and uploading in the another server. In the new server the Character formats are not recognized and so the Character format is changed as <Co>Variable</> in the editor with dat

  • Cannot connect to Apex

    Hello, I have just installed Oracle Database 11g Express Edition and I cannot connect to apex. When accessing 127.0.0.1:8080/apex and introducing the proper username/pass, the login window refreshes and does nothing else. When going to /htmldb, the u