Session details

i have split configuration of oracle applications 11.15.10.2 where my appln tier runs on linux and the database tier runs on the solaris os.
There was a process (unix process id) consuming more cpu and memory in appln tier.
i need to get the session details of the procees id from the database.
waht query can i use to get the detail.
from the top command it seems that the unix pid shows the info
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3755 applmgr 16 0 778m 579m 7568 S 99.8 15.2 3432:57 java
how can i get the info about the session using the unix pid 3755

Hi,
You can use v$process and v$session views to map os pid to db sid but not all the process on application tier will be having db session attached to it.
Session you mentioned below is java process and i doubt if it will be having db session attached to it but you can confirm using above views.
Also if you want to trace process on server then you can use trace and struss command to do it.
Thanks,
JD

Similar Messages

  • How to get the current session details in windows phone 8 when using Facebook ,Google and Microsoft login

    I want to get the session details like access token , provider etc on a page (ExamplePage.xaml.cs) , i used the following example from nokia developers community (link)
     and implemented the login part but how can i get session details  so that i can send it to my API
    The SessionService class manages the session on facebook,google,microsoft login:
    /// <summary>
    /// The service session.
    /// </summary>
    public class SessionService : ISessionService
    private readonly IApplicationSettingsService _applicationSettings;
    private readonly IFacebookService _facebookService;
    private readonly IMicrosoftService _microsoftService;
    private readonly IGoogleService _googleService;
    private readonly ILogManager _logManager;
    /// <summary>
    /// Initializes a new instance of the <see cref="SessionService" /> class.
    /// </summary>
    /// <param name="applicationSettings">The application settings.</param>
    /// <param name="facebookService">The facebook service.</param>
    /// <param name="microsoftService">The microsoft service.</param>
    /// <param name="googleService">The google service.</param>
    /// <param name="logManager">The log manager.</param>
    public SessionService(IApplicationSettingsService applicationSettings,
    IFacebookService facebookService,
    IMicrosoftService microsoftService,
    IGoogleService googleService, ILogManager logManager)
    _applicationSettings = applicationSettings;
    _facebookService = facebookService;
    _microsoftService = microsoftService;
    _googleService = googleService;
    _logManager = logManager;
    /// <summary>
    /// Gets the session.
    /// </summary>
    /// <returns>The session object.</returns>
    public Session GetSession()
    var expiryValue = DateTime.MinValue;
    string expiryTicks = LoadEncryptedSettingValue("session_expiredate");
    if (!string.IsNullOrWhiteSpace(expiryTicks))
    long expiryTicksValue;
    if (long.TryParse(expiryTicks, out expiryTicksValue))
    expiryValue = new DateTime(expiryTicksValue);
    var session = new Session
    AccessToken = LoadEncryptedSettingValue("session_token"),
    Id = LoadEncryptedSettingValue("session_id"),
    ExpireDate = expiryValue,
    Provider = LoadEncryptedSettingValue("session_provider")
    _applicationSettings.Set(Constants.LoginToken, true);
    _applicationSettings.Save();
    return session;
    /// <summary>
    /// The save session.
    /// </summary>
    /// <param name="session">
    /// The session.
    /// </param>
    private void Save(Session session)
    SaveEncryptedSettingValue("session_token", session.AccessToken);
    SaveEncryptedSettingValue("session_id", session.Id);
    SaveEncryptedSettingValue("session_expiredate", session.ExpireDate.Ticks.ToString(CultureInfo.InvariantCulture));
    SaveEncryptedSettingValue("session_provider", session.Provider);
    _applicationSettings.Set(Constants.LoginToken, true);
    _applicationSettings.Save();
    /// <summary>
    /// The clean session.
    /// </summary>
    private void CleanSession()
    _applicationSettings.Reset("session_token");
    _applicationSettings.Reset("session_id");
    _applicationSettings.Reset("session_expiredate");
    _applicationSettings.Reset("session_provider");
    _applicationSettings.Reset(Constants.LoginToken);
    _applicationSettings.Save();
    /// <summary>
    /// The login async.
    /// </summary>
    /// <param name="provider">
    /// The provider.
    /// </param>
    /// <returns>
    /// The <see cref="Task"/> object.
    /// </returns>
    public async Task<bool> LoginAsync(string provider)
    Exception exception = null;
    try
    Session session = null;
    switch (provider)
    case Constants.FacebookProvider:
    session = await _facebookService.LoginAsync();
    break;
    case Constants.MicrosoftProvider:
    session = await _microsoftService.LoginAsync();
    break;
    case Constants.GoogleProvider:
    session = await _googleService.LoginAsync();
    break;
    if (session != null)
    Save(session);
    return true;
    catch (InvalidOperationException e)
    throw;
    catch (Exception ex)
    exception = ex;
    await _logManager.LogAsync(exception);
    return false;
    /// <summary>
    /// The logout.
    /// </summary>
    public async void Logout()
    Exception exception = null;
    try
    var session = GetSession();
    switch (session.Provider)
    case Constants.FacebookProvider:
    _facebookService.Logout();
    break;
    case Constants.MicrosoftProvider:
    _microsoftService.Logout();
    break;
    case Constants.GoogleProvider:
    _googleService.Logout();
    break;
    CleanSession();
    catch (Exception ex)
    exception = ex;
    if (exception != null)
    await _logManager.LogAsync(exception);
    /// <summary>
    /// Loads an encrypted setting value for a given key.
    /// </summary>
    /// <param name="key">
    /// The key to load.
    /// </param>
    /// <returns>
    /// The value of the key.
    /// </returns>
    private string LoadEncryptedSettingValue(string key)
    string value = null;
    var protectedBytes = _applicationSettings.Get<byte[]>(key);
    if (protectedBytes != null)
    byte[] valueBytes = ProtectedData.Unprotect(protectedBytes, null);
    value = Encoding.UTF8.GetString(valueBytes, 0, valueBytes.Length);
    return value;
    /// <summary>
    /// Saves a setting value against a given key, encrypted.
    /// </summary>
    /// <param name="key">
    /// The key to save against.
    /// </param>
    /// <param name="value">
    /// The value to save against.
    /// </param>
    /// <exception cref="System.ArgumentOutOfRangeException">
    /// The key or value provided is unexpected.
    /// </exception>
    private void SaveEncryptedSettingValue(string key, string value)
    if (!string.IsNullOrWhiteSpace(key) && !string.IsNullOrWhiteSpace(value))
    byte[] valueBytes = Encoding.UTF8.GetBytes(value);
    // Encrypt the value by using the Protect() method.
    byte[] protectedBytes = ProtectedData.Protect(valueBytes, null);
    _applicationSettings.Set(key, protectedBytes);
    _applicationSettings.Save();

    I need to get the session details in the following page AllEvents.xaml.cs  :
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Navigation;
    using Microsoft.Phone.Controls;
    using Microsoft.Phone.Shell;
    using AuthenticationSample.WP80.ViewModel;
    using AuthenticationSample.WP80.Services.Model;
    using AuthenticationSample.WP80.Services;
    using AuthenticationSample.WP80.Resources;
    using System.Threading.Tasks;
    namespace AuthenticationSample.WP80.Views
    public partial class AllEvents : PhoneApplicationPage
    public AllEvents()
    InitializeComponent();
    MainViewModels FakeData = new MainViewModels();
    FakeData.LoadData();
    DataContext = FakeData;

  • How to get active session details

    Dear all
    in my application i want to display number of users online in a list and their details,for that how can i get the active session details in a jsp , or any other ways to do this.any suggestion regarding this is very much helpful to me. thanks in advance
    thanking u
    yours
    kumaran ramu

    Hi,
    You can use a Listener class for track the sessions and do some logic when a session is created/destroyed. See HttpSessionListener interface. You can save the session IDs and session objects when a session is created, for example in a hashmap. Save the hashmap in application context. In your JSP get the hashmap and get its key/values. See thread safe problems if you are using a hashmap in application context.

  • How to check MWA session details in Oracle Apps R12

    I am an Oracle Apps DBA. Current Issue is that sometimes users working with the RF Guns(Scanners) through telnet in MWA servers got hanged.
    They ask to kill their sessions.
    I do not know how to find the MWA loged in users sessions details. What I am able to find is , frm or web session details.
    Could you please guide how to gather these MWA connection details, with database and server process and session details.
    Thanks in advance for ur support.
    Regards,
    KMISRA

    Koushikinath wrote:
    I am an Oracle Apps DBA. Current Issue is that sometimes users working with the RF Guns(Scanners) through telnet in MWA servers got hanged.
    They ask to kill their sessions.
    I do not know how to find the MWA loged in users sessions details. What I am able to find is , frm or web session details.
    Could you please guide how to gather these MWA connection details, with database and server process and session details.
    Thanks in advance for ur support.
    Regards,
    KMISRAPlease see these docs.
    MWA Server Hangs on R12 Environments [ID 559614.1]
    Which parameters control the maximum number of user connections per MWA listener [ID 567214.1]
    Mobile Web Applications (MWA) Troubleshooting Tips for Release 12 Mobile Web Applications Server [ID 782162.1]
    Mobile Application Server - Advanced Configurations and Topologies for Mobile Web Applications (MWA)of E-Business Suite 11i and R12 [ID 1081404.1]
    Mobile Web Applications Server - MWA Troubleshooting Tips for E-Business Suite 11i and R12 Oracle Mobile Application Server [ID 269991.1]
    How to Enable WMS / MSCA Logging? [ID 338291.1]
    Thanks,
    Hussein

  • Where can we find the deleted/ archived session details? ant table?

    Hello Experts
    where can we find the deleted/archived session details...
    can any one confirm please is their any table is their?
    Thanks

    Hi Kalyan,
    Go to SARA->object Name->Management for finding the archive session details.
    You could check table ADMI_RUN and ADMI_FILES for the details.
    Hope this helps,
    Naveen

  • OEM not displaying Forms Session Details

    Windows 2000/Server & Desktop SP4, ora9ias 9.0.2
    In the Forms Session Detail display, it says that there are seven sessions, but only displays three and the Previous/Next links are greyed out. Any fixes to this? It is appreciated.

    EM_MODE is set. To clarify, the OEM is displaying some sessions, but not all that it says it had detected.
    Thanks for your reply

  • How to get user session details ?

    Hello.
    I can get user session details querying the "USER_AUDIT_SESSION" view against my developing database.
    I have written a PL/SQL function to retrieve those session details. When I executed the function on the production database I have not got any records. It seems that the underlined view is not being refreshed in the production environment.
    Is there any other view or table, available to unprivileged users, I can use to get session details such as the connection timestamp and the user action ?

    Thanks for the reply.
    Ok, I might check it using a non DBA user, I am not sure, though.
    All the database queries have to be executed under a normal user connection.
    I would like a way to get session details not using "user_audit_session".
    Is there any table or view, available to a default profile user, which has session details and has records as a default behaviour?
    As far as I could check disable audit_trail seems to be the normal behaviour of the clients of my application. There is no records in "user_audit_session".

  • Login User Session details

    Could anyone provide information as how to fetch Login User session details in Web dyna pro .
    I have Text field and Label in webdynapro View.
    These need to be autofilled based on login user.
    How to achieve this requirment in webdynpro.

    Ragu,
    Here the presentation on UME API and retreving the logon user details:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
    You need to add these 2 jar files to buildpath
    1)com.sap.security.api.jar
    2)com.sap.security.api.perm.jar
    For more help how to add jars :
    Using JAR Class Finder
    If it's not a local project and if you use NWDI environment , here the blog how to add jars for Web Dynpro DC's.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/194bdc4f-0901-0010-82ba-bf73af5d5f75
    You can find some jar from the below sap jar finder website:
    http://sapjarfinder.com/
    Thanks
    Krishna

  • Forms session details show empty

    Iam using Oracle 9ias release 2.when ever I check my middle tier architecture forms session details it allways shows as empty allthough there are more then 5 users connected and using forms service thru Oracle 9ias.
    Why is this happening?
    Is there a workaround or configuration I have to do
    Thanks in advance
    Santosh

    Thanks for the reply Carlos
    I have modified my formsweb.cfg and updated em_mode=1
    I have restarted my OC4J_BI_Forms,Http server
    But still none of the forms sessions are getting displayed whenever the user connects
    Is there anything else I need to do?
    Thanks,
    Santosh

  • Time Stamp and Sessions detailed in Perfdump

    1) Need to get Timestamp detail in the perfdump output ,like what time the command has been executed.
    2) How to get the more detail on Sessions in Perdump. Currently i'm getting Process ,Status, Function. I need Process ,Status, Function,IP, thread details.
    Sessions:
    Process Status Function
    9067 response service-dump

    1) Need to get Timestamp detail in the perfdump output ,like what time the command has been executed.Do you mean, you want to know when perfdump started executing?
    WebServer 7.0 session shows the following columns.
    Process Status Client Age VS Method URI Function

  • Session details for SQLs

    Hi,
    My environment details are
    Oracle 10.2.0.4.0
    I have two SQLs / queries which ran on a particular period yesterday.
    I want to find whether those two SQLs are ran by same session or multiple session.
    Can some one help me out how to find this one.
    Thanks

    I wouldn't have recommended it other than because it is the only tool, that does not require prior enabling, that is guaranteed to get you the answer.
    slowly ...
    but the answer.
    But wait ... I just realized you did not indicate what type of statement you are tracking down. "SQLs" is meaningless. Was this SELECT or DML?
    Oracle does not log SELECTs.
    Note for future posts: Be clear and specific. Do not use ambiguous terms. Always post full version number.

  • List hung session details

    Hi,
    I have observed that "list hung session for comp SRBroker" and "list active session for comp SRBroker" are showing exactly the same output.
    So what is the difference between hung and active session.
    I would also like know that is there any procedure by which I can find out the tasks which are running more than a specified time (e.g, tasks running more than 6 hours.)
    Thanks,
    Abhishek

    Hello Abhishek,
    MaxPingTime parameter just has value (eg: 10sec) which gets compared with Task Ping Time to decide if thread is hung.
    Now if task is not doing anything (not active, not processing anything) for 10secs (default value of MaxPingTime) it qualifies for hung.
    If you think in your application threads will be taking little longer, then you can set value of this parameter to little high value, eg: 20sec. But I do not see why one should alter this value.
    You can get this param by following server manager command:
    srvrmgr> list hidden param MaxPingTime for comp sccobjmgr_enu
    I hope it helps.
    Best Regards,
    Chetan

  • Session details if we know the sql name.

    Hi,
    Suppose there is sql named xyz.sql runinng for long time in database, and not consuming high CPU. Is there any way to get SID/Process id, if we know sql name? from v$session or joining any other tables?
    Regards,
    Sunil.

    We have got a ticket that SQL runing in VNC is continuing for long time. It came to DBA's to confirm whether it completed. Analyst who executed that script forgot to note process ID. Now we tried from AWR and ADDM to identify whether it's info would be there, but it's not in top SQL list or top resources consuming list. We just know he connected to db node and executed the sql. We, also searched with ps -ef | grep sqlplus, listed with processes in db node. Those processes did't contain any info. As we know the sql, we tried from v$sqltext view to get the sid from sqltext. It did't fetch any result. At thispoint we need to confirm whther SQL has finished it's execution. Since we, don't know it's SID, it's becoming difficult to confirm whether it's session exist or not. We juss know the SQL name. It's did't come out of sqlplus prompt in vnc.
    Regards,
    Sunil.
    Edited by: user11907716 on Jan 23, 2011 8:36 PM

  • Session details across two web server

    We have an Java based web application which is hosted on NES/Weblogic app server
    under clustering environment.
    We are planning to build an .NET interface using SOAP to enable the functionality
    extended as web services under .NET framework.
    Since the client requests are first hit at the IIS and are then routed through
    SOAP to Weblogic/NES, we need those sessions that are created in IIS to be replicated
    in Weblogic. In otherwords we need to distingwish the client requests individually
    at Weblogic. As all client requests are routed directly from IIS( One client as
    for as Weblogic concerned).
    As I have noticed there is no direct way to resolve this. Do U guys have any suggestions.
    You could mail me directly.
    Thanks in advance.
    Regads, Rajiv

    Yep,
    In the servlet on ServerA have setSession and getSession methods.
    When you create the session and when you add to it, call setSession:
    setSession(session);This is what the setSession method looks like
    public void setSession(HttpSession session)
      this.session = session;
    }When servletA calls servletB, pass an instance of servletA to it.
    ServletB b = new ServletB(servletA);servletB's contructor:
    public ServletB(servletA)
      this.servletA = servletA;
    }Now you can call ServletA's getSession method from ServletB:
    session = servletA.getSession();and this is what ServletA's getSession looks like:
    public HttpSession getSession()
      return session;
    }

  • Ebusiness Suite SDK for Java session management

    Hi, I am trying to try sample java application mentioned in Oracle® E-Business Suite Software Development Kit for Java Release 11i and 12 Part No. E28169-02
    Current version i am trying is Jdeveloper 11.1.1.4.0 and Ebiz suite 12.1.3
    able to create Apps Data source with out any issue.
    when Home.jsp is accessed through application menu, user name and all session related information is showing as NULL.
    how to resolve this issue.

    Hi Shay,
    I gone through the webinar.
    Here is more explanation of my issue.
    I created Apps Data source earlier. That time i registered external node in ebusiness suite with node_name as ip_address of weblogic server.
    But that time session details came as Null on sample Java application.
    Then i realized that may be the issue and corrected registration of external node and corrected ebiz profile options accordingly.
    When i tried to create Apps data source with fresh dbc file, i got into invalid username/pwd issue.
    As per following forum discussion topic, hyphen and dots in host name will cause issue with Apps data source creation, which is confirmed by couple of discussion participants and Juan also.
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2489849&start=30&tstart=0
    My weblogic host name is like WL-SOADEV-01.domainname.com
    what should be my further actions to resolve this issue.
    Thanks
    Maheedhar.J

Maybe you are looking for

  • Downloading Adobe Reader 9.0 to no avail ....

    I am trying to install adobe reader 9.0 for windows vista premium 32 bit version on my computer using internet explorer 7.0. However eveytime I try to download it from adobe the download freezes in under a second and explorer resets itself. If I then

  • Trace file with different name is alert log file.

    I am strange today i found a trace file generated in alert log file with name /bdump/stlbas_cjq0_1880.trc: but when i am trying to find out in bdump folder i cannot found any file with this named. instead i found /bdump/stlbas_cjq0_1853.trc is there

  • I have a 2008 iMac. Can iPhoto and iMovie process 720p HD videos?

    I am shopping for a megazoom camera. They are mostly built for still photos, but also shoot HD videos.. in either 720p or 1080p formats. I have a 2008 iMac. I have not upgraded to Snow Leopard or a more recent version of iLIfe. Can my version of iPho

  • Question Regarding Access - DataForms

    If a user has "Read" Access to a dataform will all the editable cells also be read only for him? If you had assigned "Write" Access to some parts of the dataform will he still be able to enter values in there even though he has "Read" access to the d

  • Sap authorizations in Webdynpro

    I have a question regarding the use of authorizations from WebDynpro. We wants to use standard SAP authorizations when accessing the BAPIs through WebDynpro. For example: A sales person having a SAP logon should be allowed to see the data he would se