Tracking session / servletcontext activity

I'm trying to do a section in my code that will show in a webpage how many users are online, both "guests" and authenticated users.
My user authentication is handled by simply supplying a username and password, check them against a database, and if good then their usernames get added to their httpsession as an attribute.
I tried doing a httpsessionlistener, but i found out that as soon as the session gets created / destroyed, the listener takes over before the attributes are set, so i can't seem to use that.
I thought that maybe a servletcontext listener is the way to go; as soon as the user logs in then the username can be saved in the servlet context and when logging out then remove the attribute.
Is my thinking flawed, or do you know of a better way? I would appreciate your comments.

Right now my sql_trace parameter has been set to true.If you have set this parameter at system level, then, you would probably killing database performance badly. If you set this parameter system level, each and every actions from users as well oracle background process action, records in the trace file.
Make sure that you haven't set it system level.
If you wanna set to a particular session, you do it either through the application or if you know the session id, you can set 10046 event for this session.
Jaffar

Similar Messages

  • Tracking of user activity in the system

    i'm currently on a project which i need to use BI to track the user  activity on the SAP System example like the time they log in or out, the transaction thay made etc. was juz wondering if anyone can give me some idea, solution or a head start in my project. thanks.

    Hi,
        You could use the tables USR01.....thru USR07 etc.  These tables contain user information like name,login times etc.
    eg .USR07 gives the tcode etc.
         You could create a view to extract the appropriate fields. Then create a datasource using either the view or a function module. You'll have to decide your requirement. Then the rest in BI is pretty standard. The only point should be what data to extract from which tables and how...
    Assign points if useful
    Regards.

  • Session Still Active

    Hello All,
    A program is calling SM35 using call transaction method in Error mode and the batch input session is filtered based on the session name.
    But when i try to process the session in foreground, an error message "Session still active" is stopping from further process. But I am able to process this session in background.
    Please help me in solving this issue.
    Regards,
    Phani.

    Hi!
    If a session contains numerous entries, it could take a lot of time until it is finished.
    We can say processing 1 batch input entry takes 1 second. If there are 100000 entries, then it will take 100000 seconds to process.
    Because it is already running, you can't continue it online, running it again in background will do nothing, however it will not give an error message.. But you can check how many processed entries there are using the BI log.
    You can delete unwanted and corrupted BI sessions, using program RSBDCDEL.
    Regards
    Tamá

  • ORA-12721: operation cannot execute when other sessions are active

    Hi,
    I started my DB like following :
    1) Change INIT.ORA file;  unset parallel_server parameter.
    2) Execute these commands:
    STARTUP MOUNT ;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    SHUTDOWN IMMEDIATE;
    SQL> STARTUP RESTRICT  pfile='C:\oracle\product\10.2.0\db_1\database\initORCL.ora';
    ORACLE instance started.
    SQL> alter database national character set INTERNAL_CONVERT UTF8;
    alter database national character set INTERNAL_CONVERT UTF8
    ERROR at line 1:
    ORA-12721: operation cannot execute when other sessions are activeWhy this error when DB is opened in strict and I'm the only user ?
    SQL> select count (*) from v$session;
      COUNT(*)
            20Any solution ?
    Thank you.

    Hi
    This operation is dangerous, please ensure that you have a full backup before doing that operation.
    Please use that order :
    SHUTDOWN IMMEDIATE;
    -- make sure there is a database backup you can rely on, or create one
    STARTUP MOUNT;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    ALTER DATABASE CHARACTER SET <new_character_set>;
    -- a alter database takes typically only a few minutes or less,
    -- it depends on the number of columns in the database, not the
    -- amount of data.
    SHUTDOWN;
    Please note that :
    The command requires the database to be
    open but only one session, the one executing the command, is allowed.
    For the above error conditions Oracle9i will report one of the errors:
    ORA-12719: operation requires database is in RESTRICTED mode
    ORA-12720: operation requires database is in EXCLUSIVE mode
    ORA-12721: operation cannot execute when other sessions are active
    Oracle9i can also report:
    ORA-12718: operation requires connection as SYS
    if you are not connect as SYS (INTERNAL, "/ AS SYSDBA").
    Let us know if this helps.
    regards,
    Hub
    Edited by: Hub on Dec 10, 2008 1:22 PM

  • 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

  • Java.security.ProviderException: Internal error: lose session with active o

    Our ap server is crashing unexpectedly after running for a period of time. The system is Solaris 10 and Sun App Server 8.1 EE.
    The stack trace is:
    java.security.ProviderException: Internal error: close session with active objects
         sun.security.pkcs11.SessionManager.closeSession(SessionManager.java:197)
         sun.security.pkcs11.SessionManager.access$000(SessionManager.java:48)
         sun.security.pkcs11.SessionManager$Pool.release(SessionManager.java:253)
         sun.security.pkcs11.SessionManager.releaseSession(SessionManager.java:155)
         sun.security.pkcs11.Token.releaseSession(Token.java:245)
         sun.security.pkcs11.P11SecureRandom.engineNextBytes(P11SecureRandom.java:98)
         java.security.SecureRandom.nextBytes(SecureRandom.java:413)
         java.security.SecureRandom.next(SecureRandom.java:435)
         java.util.Random.nextInt(Random.java:188)
         com.sun.enterprise.util.uuid.UuidUtil.getNextInt(UuidUtil.java:142)
         com.sun.enterprise.util.uuid.UuidUtil.getNextRandomString(UuidUtil.java:146)
         com.sun.enterprise.util.uuid.UuidUtil.generateUuid(UuidUtil.java:50)
         com.sun.enterprise.util.uuid.UuidGeneratorImpl.generateUuid(UuidGeneratorImpl.java:25)
         org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:993)
         org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:796)
         org.apache.catalina.session.StandardManager.createSession(StandardManager.java:292)
         org.apache.coyote.tomcat5.CoyoteRequest.doGetSession(CoyoteRequest.java:2365)
         org.apache.coyote.tomcat5.CoyoteRequest.getSession(CoyoteRequest.java:2202)
         org.apache.coyote.tomcat5.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:838)
         javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:265)
         com.localmatters.mvc.web.filter.AptasServletRequestWrapper.getSession(AptasServletRequestWrapper.java:184)
         com.localmatters.mvc.web.filter.AptasServletRequestWrapper.getSession(AptasServletRequestWrapper.java:170)
         com.aptas.etosha.web.handler.ExceptionResolver.getModelAndView(ExceptionResolver.java:76)
         org.springframework.web.servlet.handler.SimpleMappingExceptionResolver.resolveException(SimpleMappingExceptionResolver.java:174)
         com.aptas.etosha.web.handler.ExceptionResolver.resolveException(ExceptionResolver.java:96)
         org.springframework.web.servlet.DispatcherServlet.processHandlerException(DispatcherServlet.java:915)
         org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:739)
         org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
         org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
         org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         com.aptas.etosha.filters.InterceptorFilter.doFilter(InterceptorFilter.java:56)
         org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:137)
         com.localmatters.mvc.web.filter.AbstractSpiderFilter.doFilter(AbstractSpiderFilter.java:94)
         org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:137)
         com.localmatters.mvc.web.filter.EtoshaFilter.doFilter(EtoshaFilter.java:107)
    Any help most welcome
    Thanks
    Mikebros

    This issue seems like either a JDK bug or a JVM bug. Do you see any hs_err_pidxxxx.txt files created when appserver gets crashed? If so this is a JVM bug. You could try to upgrade your appserver's jdk to the latest version - 1.5.0_09 and/or ask for help in Java security related forum.

  • Export individual tracks in Multi-track session (foley) to be mixed by another Engineer?

    I have a multi-track session containing 12 tracks of foley for a film.
    All audio has been placed at specific points on the timeline to match the action in the film.
    The audio files will be passed on to another engineer who will add them to the existing soundtrack & foley for the film.
    I would like to export each track in my multi-track session so that the sync'ing will be maintained.
    I was hoping I could export/render out a single .wav file that would be the total length of the time line for each track.  Then all the Engineer needs to do is line up each audio file as a specific point in the movie, and all the sync'ing would be correct.
    How can I do this in Soundbooth?
    OF
    Is there another method I could use to accomplish this?
    Thanks sooo much for your help.
    Hugh

    I need to have a better play with this tonight as i didn't get much time last night, but my initial stab at this wasn't overly successful.
    The tracks are all different lengths and if i solo a track, then export it, the export will still run to the end of the longest track giving me a chunk of silence at the end.
    So i did a little hunting and found something along the lines of a clip area (from memory - a yellow line along the top of the timeline) which sounded like it would do what i wanted, but my first attempt still produced lots of silence at the end.
    Oh, i've also lost where i specify the iTunes export to be AAC rather AIF.
    Is there a good url for picking all this up rather than bugging this list?
    Ta,
    Martin.
    20" Intel iMac 2Ghz CoreDuo / 2GB / 256MB / 250GB Mac OS X (10.4.5) Mac Mini 1.42Ghz / 1GB Ram / 80GB HDD / OSX 10.4.5

  • Internal error: close session with active objects

    Please help on this error msg :
    Internal error: close session with active objects
    this happend during the decryption.

    Please help on this error msg :
    Internal error: close session with active objects
    this happend during the decryption.You have an error on line 42 of your decryption method.

  • Turn off new notification that guest session is active

    After the latest update, I now have a notification that guest session is active. I do not want anyone that is picking up my phone that I have switched Firefox to guest mode to hide my browsing tabs. I leave Firefox in guest mode when I'm not using it
    Please tell me how I can prevent that notification from displaying.

    Currently there is not a feature to turn this off or to hide the button. But it looks like they are looking at a feature to add a widget to the lockscreen for just a guest session: [https://bugzilla.mozilla.org/show_bug.cgi?id=815682]

  • Multitrack session not active?

    Might be a dumb question but adobe not letting me open a file in the editor just pops up with an error saying "Multitrack session not active. Mixer controls are enabled only when a multitrack session is the active document"
    Any ideas?
    Using adobe Audition for Mac Beta.
    Cheers
    Ben...

    If you check the dates on the original post, it's from about 3 years ago before the Audition for Mac was officially released, hence the desire to get all queries about that software in the one place.
    Anyhow, that was then and this is now.
    The only time I know you get that warning is when you attempt to use the Mixer view without having first set up a multitrack session--the mixer is inactive until you have a session to mix.  The tabs to control Edit View vs Mixer view are at the top of that main window where you normally see waveforms or the mixer.
    There are lots of ways to create a multitrack session...I guess the most basic is File--->New--->Multitrack Session.  This will give you a dialogue window where you set up things like the title, the bit depth and sample rate, whether you want a stereo or mono master, that sort of thing.  Alternately, just Edit--->Insert--->Into Multitrack Session which will give you a choice of existing sessions or the dialogue box to create a new one again.

  • I have to Implement My Own Keys To Track Session

    Developers,
    In order to track session requests, similar to HTTP server session in an RMI application is is neccessary to have to append a unique random key with each request that the user may make?
    I see no other way around this and it seems like something which should be available in the API.
    Thanks

    Why do you think a custom application requirement should be part of the RMI specification? Unique Id has nothing to do with RMI, it is an application issue and properly belongs in an application container.
    See the Tymeac projects on SourceForge.net for such a container.
    http://www.coopsoft.com/JavaProduct.html

  • How  to track session in forms

    Hello experts,
    I need to create a form to monitor session in oracle..This forms should show every active user details and past user details..How can i achieve this..
    Is any packages to do this ?..please help me

    Hi
    i think toad & pl/sql is tracking this...
    any way hope the following link helps u...
    Re: Error - could not reserve record
    Regards,
    Abdetu...

  • SA520 web access problem, all admin users sessions appears active when it is not true

    Hi, all the users for the management access to my SA520 are blocked via web, all the admin users sessions aparently they seem active, and when i do click on the "continue" button these sessions does not terminate. I guess i have to reset the firewall, but my question is if anybody has the same problem with this device.

    Hi Luis,
    What firmware version are you running? How frequent do you see this occurrence?
    If  possible, when you start to see this issue before all the admin sessions are reporting active,can you provide us the debug logs from your SA  520 so that I can forward to the development  team to investigate?  We are tracking an issue with a customer, but his device takes 3-4 months to show the symptoms you describe.
    To get the dbglog from SA520, login through web UI and in the browser enter the following URL:
    https://LAN_IP_address_of_SA520/scgi-bin/dbglog.cgi        
    These logs will store password, so please remove any sensitive information and passwords. Also if you are not comfortable posting the dbglog on the    community, you can send it directly to me through private message.
    Best regards,
    Julio

  • How to check if a user session is active in Java application server

    Hi Experts,
          We have a online scenario with a third party system by which a portal user will launch the third party application in a new window from portal. The SSO will work at the third party web application with the dynamic key that is generated by calling a webservice for that user. Now, as the user works on the launched screen, they will have to check whether the user (logged in portal) session is still active. ie., they will be periodically calling a service hosted by SAP java application server to find out whether the corresponding user who launched the session is still logged in or logged out.
    So, my question is, how can i find out programatically whether a user/user's session is still logged in/active in SAP Netweaver Java AS? We are in version 7.3.
    Kindly help me in this regard.
    Regards
    Vijay.K

    Hi Vijay,
    Could you check below links
    Tracing Single User Sessions - Administration - SAP Library
    Display and Manage User Sessions (SAP Library - Tools for Monitoring the System)
    Hope this helps.
    Regards,
    Deepak Kori

  • How to track session in Webdynpro Java application

    Hi All,
    How to get the session reference of any Webdynpro Java Application . My purpose is that thr is one WD application is getting launched , now if suppose user didn't perform any action on it and session for that application got expired . After the session got expired i have to update the table with the status . So to track that i need the session reference of WD application which i m looking for .
    How could i get the same . Kindly help me on this .
    Thanks & Regards,
    Mitul.

    Hi ,
    HttpSession session = request.getSession(false); //get the current session, if there is no session yet, return null
    if (session == null) //forward to first page
    else //do normal work
    Then u can update ur session right ,
    Regards ,
    Venkat

Maybe you are looking for

  • Problem re-installing Acrobat Pro 9.0

    On Dec. 9, 2009, I purhcased Adobe Acrobat Pro 9.0 on line. My confirmation is here: ======================================== Dear Richard Harshaw, Thank you for your purchase of downloadable Adobe products. For your records, we have included your se

  • How to reset or change "what should firefox do with this file" option in Firefox 3.6.6

    How to reset or change "what should firefox do with this file" in Firefox 3.6.6. Accidentally I changed it to save file for .pdf files and now I want to reset it to default asking whether to open or save. any help please Thanks, raj

  • Loading updated classes dynamically

    Hi, I have some classes in the classpath which I am modifying and using them in the weblogic. I have to restart the weblogic if those updated classes are to be loaded. Is there any way by which weblogic can automatically take those classes whenever t

  • Snow Leopard Mac Mini install

    I have a 2006 intel Mac Mini 10.4 and I have the Snow Leopard Install dvd in it and it has been 3 hours installing. Is this normal?

  • Select-query with *

    Hi, I wish to select rows from a database. This is the query I wrote: "SELECT * FROM opencalls WHERE ProblemDescription LIKE '*upgrade*'". When I run this query in MS Access itself, there is no problem, I get the required rows. But when I run it in m