Identify Session ID in v$Session

Hi Gurus,
Pls help me on bellow issue.
How to check the user login session of a J2EE application deployed at the jboss-3.0.6 and check it against the Oracle database sessions(v$session).

hi,
SQL>select sid,machine,terminal,program,username,status from v$session
From the program field you may know from which application the query has been executed.
regards
Jafar

Similar Messages

  • Identify session number for background job

    Hi,
    We have AQ and couple of jobs inside the db that does the processing for us.
    Once while we get to a stage where they seem to lock each other and don’t do much work. I’m thinking maybe I should start tkprof for some of those session as starting point.
    How can I identify session relevant to those jobs?
    V11.2 we also suing virtual private database.
    Thanks

    user9198889, to tie a foreground process to an Oracle session background process the following article may be of interest along with another article on how to trace an already running process:
    Is there a way to trace a UNIX process id to a SID and SERIAL# ?
    http://www.jlcomp.demon.co.uk/faq/sid_from_proc.html
    How do I switch on sql trace in another session that is already running?
    http://www.jlcomp.demon.co.uk/faq/alien_trace.html
    Now when your session executes a dbms_scheduler or dbms_jobs call you add another independent session to the process. Depending on your Oracle version you need to add more views to you process for hunting down what is wrong but if you have lock waits you should be able to find waiting and blocking sessions using v$session, v$lock, and other lock associated views like dba_blockers, dba_waiters, etc ....
    HTH -- Mark D Powell --

  • Branch to URL identify session and record ID

    Hi, I am trying to redirect page to itself after submission. I have created a branch which is conditional (request = UPDATE).
    How so I identify a session ID and concatenate it with the URL?
    Here is my URL "http://server:8081/apex/f?p=101:9:" + SESSION + "::NO::P9_RECORD_ID: " + :P9_RECORD_ID.
    If you know a better way to redirect page to itself after submission please let me know.
    Thanks
    Robert

    Robert,
    No, not quite. If you don't set any page values in your branch, the page will load with whatever "default" values it has set up. If your page items are set to persist based on session state, then they'll stay the same...but most of the time, your items will be set to refresh themselves from the database. So you'll want to set the page_record_id field appropriately (I'm assuming that's the field that drives the data retrieval).
    Does that help?
    -David

  • RMAN Catalog - Identify session for a specific SID

    Dear all,
    is it possible to identify the rman session on the recovery-catalog database that is currently backing up a specific SID?
    Or in other words: Is the SID of the target database visible somewhere in the V$-Views on the catalog database when a backup is running?
    Kind regards
    Carsten

    The recovery catalog stores metadata about RMAN operations,but it does not record ongoing processes. There's a catalog view,which holds HISTORICAL data:
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28273/rcviews050.htm#i84920
    Werner

  • Identifying MWA sessions

    Re: apps 11.5.10.
    We sometimes have issues where a user is loged into a mobile device connected to MWA and then misplaces the device. They are then unable to log in again on a different device because they have a session still active. We would like to be able to identify their session on the database by their username so we can kill it, however we have so far found no way to do this as we can with apps etc.
    Yes, the root cause is devices being misplaced and that is what should be fixed, however it would be useful for us to be able to identify sessions anyway.
    Thanks,
    John

    Hi John;
    Please see Hussein Sawwan great post
    Session for mobile serever in R12
    Session for mobile serever in R12
    Regard
    Helios

  • CoA Session Context Not Found

    Hello Guys,
    I am using a Cisco 2951 with 15.3(3)M1, and when doing some tests with CoA i got the following error:      
    *Nov  7 10:34:24.780: COA: 1.1.1.1 request queued
    *Nov  7 10:34:24.780: RADIUS:  authenticator 52 CF BB 58 BB D5 69 4E - 59 3B 09 75 E9 83 54 4C
    *Nov  7 10:34:24.780: RADIUS:  User-Name           [1]   2   ""
    *Nov  7 10:34:24.780: RADIUS:  Acct-Session-Id     [44]  10  "0000002B"
    *Nov  7 10:34:24.780: RADIUS:  Vendor, Cisco       [26]  42
    *Nov  7 10:34:24.780: RADIUS:   Cisco AVpair       [1]   36  "subscriber:command=reauthenticate "
    *Nov  7 10:34:24.780: RADIUS:  Message-Authenticato[80]  18
    *Nov  7 10:34:24.780: RADIUS:   B6 78 8B EA DE 3B 73 26 57 53 C0 E7 47 89 2C 6D         [ x;s&WSG,m]
    *Nov  7 10:34:24.780: COA: Message Authenticator decode passed
    *Nov  7 10:34:24.780:  ++++++ CoA Attribute List ++++++
    *Nov  7 10:34:24.780: 01EEAF6C 0 00000081 username(450) 0
    *Nov  7 10:34:24.780: 01EEB7EC 0 00000001 session-id(408) 4 43(2B)
    *Nov  7 10:34:24.780: 01EEB820 0 00000081 ssg-command-code(490) 1 32
    *Nov  7 10:34:24.780:
    *Nov  7 10:34:24.780:  ++++++ Received CoA response Attribute List ++++++
    *Nov  7 10:34:24.780: 01EEB7EC 0 00000082 reply-message(273) 16 No valid Session
    *Nov  7 10:34:24.780: 01EEB820 0 00000002 error-cause(272) 4 Session Context Not Found
    This is very strange, because the session-id is correct.
    Can anyone advice me on this? Thanks!
    David

    Hello Manuel,
    Thanks for all your help. Here is the show output
    LNS#show subscriber session uid 47 detailed internal
    Subscriber session handle: EC00005E, state: connected, service: Local Term
    Unique Session ID: 47
    Identifier: [email protected]
    SIP subscriber access type(s): VPDN/PPP
    Root SIP Handle: 5300005D, PID: 313
    Child SIP Handle: 7900002F, PID: 318
    Current SIP options: Req Fwding/Req Fwded
    Session Up-time: 19:52:55, Last Changed: 19:52:55
    Switch handle: 211E
    Interface: Virtual-Access2.2
    Policy information:
      Context 10EC39C0: Handle 7B00002F
      AAA_id 0000003B: Flow_handle 0
      Authentication status: authen
    Policy internals:
      Policy state                        : wait-for-events
      Authorization type                  : AAA service
      Active key                          : apply-config-only
      Authorization active key            : Auth-User
      Last top level rule type            : session-service-found
      Client                              : SM
      Last message from client            : Apply Config Success
      Last message to client              : Apply Config Success
      Current key list from client        :
        Identifier: Auth-Domain = "xxx.xx"
        Identifier: Protocol-Type = 0 (PPP Access Protocol)
        Identifier: Session-Handle = 3959423070 (EC00005E)
        Identifier: Tunnel-Name = "LNS"
        Identifier: Media-Type = 2 (IP)
        Identifier: Input Interface = "GigabitEthernet0/1.2000"
        Identifier: AAA-Acct-Enbl = 1 (YES)
        Identifier: Authen-Status = 0 (Authenticated)
        Identifier: Nasport = Vty Terminal: port 47 IP 69.17.193.90
        Identifier: Auth-User = "[email protected]"
      Network plumbing done yet           : Yes
      Network plumbing directive proposed : None
      AIE handle                          : 2B00002F
      AIE user ID                         : 47
      AAA user ID                         : 0000003B/59
      Authorization index                 : 0
      Authorization priority              : 1
      Context                             : 7B00002F
      North handle                        : 00000000
      North callback                      : 00000000
      South handle                        : EC00005E
      South callback                      : 06B898A8
      Current access-type                 : PPP
      All access-types                    : [0] VPDN
                                          : [1] PPP
      No more keys available from         : PPP
      Session activated                   : Yes
    Session inbound features:
    Feature: QoS Policy Map
      Input Policy Map: INTERNET-15Mb-IN
    Session outbound features:
    Feature: QoS Policy Map
      Output Policy Map: INTERNET-15Mb-OUT
    Configuration sources associated with this session:
    Interface: Virtual-Template1, Active Time = 19:52:55
    Pending status associated with this session:
    Bind status: Success, Delay delete: No, Pending mask: 0
    And the debug output for a reauthenticate command
    *Nov  8 10:21:58.367: RADIUS: COA  received from id 1 x.x.x.x:60590, CoA Request, len 108
    *Nov  8 10:21:58.367: COA: x.x.x.x request queued
    *Nov  8 10:21:58.367: RADIUS:  authenticator 1D 92 FF 04 43 EA 0E 11 - DE 49 2F AE 81 46 42 78
    *Nov  8 10:21:58.367: RADIUS:  User-Name           [1]   18  [email protected]
    *Nov  8 10:21:58.367: RADIUS:  Acct-Session-Id     [44]  10  "0000003B"
    *Nov  8 10:21:58.367: RADIUS:  Vendor, Cisco       [26]  42
    *Nov  8 10:21:58.367: RADIUS:   Cisco AVpair       [1]   36  "subscriber:command=reauthenticate "
    *Nov  8 10:21:58.367: RADIUS:  Message-Authenticato[80]  18
    *Nov  8 10:21:58.367: RADIUS:   7F CA 0A 96 A7 4C 5F 05 57 33 4D 36 D6 7A 37 7E         [ L_W3M6z7~]
    *Nov  8 10:21:58.367: COA: Message Authenticator decode passed
    *Nov  8 10:21:58.367:  ++++++ CoA Attribute List ++++++
    *Nov  8 10:21:58.367: 01FCE77C 0 00000081 username(450) 16 [email protected]
    *Nov  8 10:21:58.367: 01FCFBAC 0 00000001 session-id(408) 4 59(3B)
    *Nov  8 10:21:58.367: 01FCFBE0 0 00000081 ssg-command-code(490) 1 32
    *Nov  8 10:21:58.367:
    *Nov  8 10:21:58.367: RADIUS/ENCODE(00000000):Orig. component type = Invalid
    *Nov  8 10:21:58.367: RADIUS(00000000): sending
    *Nov  8 10:21:58.367: RADIUS(00000000): Send CoA Nack Response to 69.17.193.4:60590 id 1, len 62
    *Nov  8 10:21:58.367: RADIUS:  authenticator A3 EC 85 01 C3 31 E2 B3 - 25 22 38 79 DA 8E 95 46
    *Nov  8 10:21:58.367: RADIUS:  Reply-Message       [18]  18
    *Nov  8 10:21:58.367: RADIUS:   4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E  [ No valid Session]
    *Nov  8 10:21:58.367: RADIUS:  Dynamic-Author-Error[101] 6   Session Context Not Found [503]
    *Nov  8 10:21:58.367: RADIUS:  Message-Authenticato[80]  18
    *Nov  8 10:21:58.367: RADIUS:   AC 83 2A 7C DE 7D 78 8E B7 91 C9 F0 16 8B 86 D2              [ *|}x]
    Even the PoA is not working
    *Nov  8 10:24:04.022: RADIUS: POD  received from id 4 x.x.x.x:57061, POD Request, len 66
    *Nov  8 10:24:04.022: POD: 69.17.193.4 request queued
    *Nov  8 10:24:04.022:  ++++++ POD Attribute List ++++++
    *Nov  8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16
    [email protected]
    *Nov  8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
    *Nov  8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
    *Nov  8 10:24:04.022:
    *Nov  8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
    *Nov  8 10:24:04.022: RADIUS(00000000): sending
    *Nov  8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
    *Nov  8 10:24:04.022: RADIUS:  authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
    *Nov  8 10:24:04.022: RADIUS:  Reply-Message       [18]  18
    *Nov  8 10:24:04.022: RADIUS:   4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E  [ No valid Session]
    *Nov  8 10:24:04.022: RADIUS:  Dynamic-Author-Error[101] 6   Session Context Not Found [503] *Nov  8 10:24:04.022: RADIUS: POD  received from id 4 x.x.x.x:57061, POD Request, len 66
    *Nov  8 10:24:04.022: POD: x.x.x.x request queued
    *Nov  8 10:24:04.022:  ++++++ POD Attribute List ++++++
    *Nov  8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16 [email protected]
    *Nov  8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
    *Nov  8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
    *Nov  8 10:24:04.022:
    *Nov  8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
    *Nov  8 10:24:04.022: RADIUS(00000000): sending
    *Nov  8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
    *Nov  8 10:24:04.022: RADIUS:  authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
    *Nov  8 10:24:04.022: RADIUS:  Reply-Message       [18]  18
    *Nov  8 10:24:04.022: RADIUS:   4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E  [ No valid Session]
    *Nov  8 10:24:04.022: RADIUS:  Dynamic-Author-Error[101] 6   Session Context Not Found [503]
    Thanks!!
    David

  • Get loggedin Session variables in Home Page

    I got a members directory where u login.
    1.How come they get killed when i refresh a page.
    2.How do i get the loggedin session variable the home page.
    so i know if current user is logged in.
    The Application.cfc of the members is
    <cfcomponent name="Application" displayname="Application
    Component for the Login Security Tutorial" >
    <cfset This.name = "NewLoveZoneAfrica">
    <cfset This.applicationTimeout =
    CreateTimeSpan(0,0,0,45)>
    <cfset This.sessionManagement = "true">
    <cfset This.sessionTimeout = CreateTimeSpan(0,0,0,30)>
    <cfset This.clientManagement = "false">
    <cfset This.loginstorage="session">
    <cffunction name="onApplicationStart"
    returntype="boolean" output="true">
    <!--- Set up Application variables. Locking the
    Application scope is not necessary in this method. --->
    application starting
    <cfset Application.configured = 1>
    <cfset Application.datetimeConfigured = TimeFormat(Now(),
    "hh:mm tt") & " " & DateFormat(Now(), "mm.dd.yyyy")>
    <cfset Application.currentSessions = 0>
    <!--- Begin Setting up request variables here. --->
    <cfscript>
    request.app = structNew();
    Application.dsn = "LoveZoneAfrica";
    Application.webRoot =
    "#getPageContext().getRequest().getContextPath()#/NewLoveZoneAfrica/";
    Application.machineRoot = "/NewLoveZoneAfrica/";
    Application.cfcRoot = "NewLoveZoneAfrica.com";
    Application.Domain = "NewLoveZoneAfrica.com";
    factory=CreateObject("java","coldfusion.server.ServiceFactory");
    sqlService = factory.getDataSourceService();
    dsn = duplicate(sqlService.datasources[Application.dsn]);
    if(dsn.driver eq "MSAccess" or dsn.driver eq "MSAccessJet"
    or dsn.driver eq "ODBCSocket")
    request.app.ucase = "ucase";
    request.app.isAccess = true;
    else
    request.app.ucase = "ucase";
    request.app.isAccess = false;
    </cfscript>
    <!--- End Setting up request variables here. --->
    <cfreturn true>
    </cffunction>
    <cffunction name="onRequestStart" returntype="boolean"
    output="true" >
    <cfargument name="requestname" required=true/>
    <cfif isDefined("form.j_username") and
    isDefined("form.j_password")>
    <!--- If either password or Username is empty go to
    login--->
    <cfif form.j_username is "" or form.j_password is "">
    <cfinclude
    template="#Application.webRoot#Login/Security/Login.cfm">
    <cfabort>
    </cfif>
    <!--- First Check to see wether there is need to log out
    user--->
    <cfscript>
    // create the Security object
    Security =
    createObject("component","#Application.cfcRoot#.security");
    // store authenticate method of security object as roles
    variable.
    LogQry=Security.authenticate(form.j_username,form.j_password);
    </cfscript>
    <cfif LogQry.recordcount> <!--- User has
    Successfully logged in #GetValidUser# --->
    <cfloginuser name="#form.j_username#"
    password="#form.j_password#" roles="#valuelist(LogQry.Role)#">
    <!--- Update the LastLogin timestamp. --->
    <cfscript>Update_LastLogin=Security.LastLogin(form.j_username);
    </cfscript>
    <cfset request.User.LoggedIn = "1">
    <cfset request.User.Username = form.j_username>
    <cfset request.User.LastLogin = LogQry.LastLogin_Date
    >
    <cfelse>
    <!---Destroy request --->
    <cflock scope="SESSION" throwontimeout="Yes" timeout="7"
    type="EXCLUSIVE">
    <cfset clearStruct = StructDelete(request, "User")>
    </cflock>
    <!---Destroy request --->
    <cflock scope="SESSION" throwontimeout="Yes" timeout="7"
    type="EXCLUSIVE">
    <cfset clearStruct = StructDelete(SESSION, "User")>
    </cflock>
    </cfif>
    <cfif NOT isDefined("request.User.LoggedIn")>
    <cfset request.loginMessage ="Your Login Username or
    Password is Invalid ">
    <cfinclude
    template="#Application.webRoot#Login/Security/Login.cfm">
    <cfabort>
    <cfelse>
    <!--- If the login procedure is passed duplicate the
    request structure into the Session scope. --->
    <cflock scope="SESSION" throwontimeout="Yes"
    timeout="107" type="EXCLUSIVE">
    <cfset Session.User = Duplicate(request.User)>
    </cflock>
    <cflock name="lck_currentSessions" throwontimeout="Yes"
    timeout="107" type="EXCLUSIVE">
    <!---THIS has BE CHANgED : bEGIN- original COPY IS @ THE
    FOOT --->
    <!--- Copy identifying session information into the
    Application scope. --->
    <cfif NOT isDefined("Application.sessionData")>
    <!--- Increment the number of current sessions. --->
    <cfset Application.currentSessions =
    Application.currentSessions + 1>
    <cfset Application.sessionData = ArrayNew(1)>
    <cfset Arraysize = 0>
    <cfset Application.sessionData[Arraysize+1] =
    form.j_username>
    <CFELSE>
    <!---check to see wether this "Username" appears in the
    Application.sessionData.
    If so, ignore. If no then append the name to the array so we
    have a unique list of usernames--->
    <cfset Arraysize = ArrayLen(Application.sessionData)>
    <cfset Application.temp = ArrayNew(1)>
    <cfif Arraysize>
    <cfloop index = "LoopCount" from = "1" to =
    "#Arraysize#">
    <cfset #ArrayAppend(Application.temp,
    Application.sessionData[LoopCount])#>
    </cfloop>
    <cfdump var="#Application.sessionData#" >
    <cfset Isloggedin =
    ListFind(ArrayToList(Application.temp), form.j_username)>
    <cfif Isloggedin is 0>
    <cfset Application.sessionData[Arraysize+1] =
    form.j_username>
    <!--- Increment the number of current sessions. --->
    <cfset Application.currentSessions =
    Application.currentSessions + 1>
    </cfif>
    <cfelse>
    <!--- Increment the number of current sessions since twas
    empty. --->
    <cfset Application.currentSessions =
    Application.currentSessions + 1>
    <cfset Application.sessionData[Arraysize+1] =
    form.j_username>
    </cfif>
    </cfif>
    </cflock>
    </cfif>
    <cfelse>
    <cfif not ListLast(CGI.SCRIPT_NAME, "/") EQ
    "logout.cfm">
    <!---Check wether the username appears on the list
    Application.currentSessions is 0 --->
    <cfif NOT isDefined("Session.User.LoggedIn") >
    <cfinclude
    template="#Application.webRoot#Login/Security/login.cfm">
    <cfabort>
    </cfif>
    </cfif>
    </cfif>
    <!--- Check to see if a user is logged in on *every* cfm
    page request. --->
    <cfif not ListLast(CGI.SCRIPT_NAME, "/") EQ
    "logout.cfm">
    <cflock scope="SESSION" throwontimeout="Yes" timeout="7"
    type="READONLY">
    <cfif NOT isDefined("Session.User.LoggedIn")>
    <cfinclude
    template="#Application.webRoot#Login/Security/login.cfm">
    <cfabort>
    </cfif>
    </cflock>
    </cfif>
    <cfreturn true>
    </cffunction>
    <cffunction name="onSessionEnd" returntype="void">
    <cfargument name="SessionScope" required="true">
    <cfargument name="ApplicationScope" required="true">
    <cfset request.loginMessage="Nimeingia onSessionEnd">
    <cflock name="lck_currentSessions" throwontimeout="Yes"
    timeout="7" type="EXCLUSIVE">
    <cfset sessionPosition =
    ListFind(ArrayToList(arguments.ApplicationScope.sessionData),
    arguments.SessionScope.sessionid)>
    <cfif sessionPosition neq 0>
    <cfset
    ArrayDeleteAt(arguments.ApplicationScope.sessionData,
    sessionPosition)>
    <cfset arguments.ApplicationScope.currentSessions =
    arguments.ApplicationScope.currentSessions - 1>
    </cfif>
    </cflock>
    </cffunction>
    <cffunction name="onSessionStart" returntype="void">
    <cfset request.loginMessage="Nimeingia onSessionEnd">
    </cffunction>
    <cffunction name="onRequestEnd" returntype="void">
    <!--- Write any code that needs to run when the page
    request ends. This replaces onRequestEnd.cfm --->
    </cffunction>
    </cfcomponent>

    Answered my own quests
    http://www.rewindlife.com/archives/000046.cfm

  • Newbie to EM - How to list of table sizes in a tablespace, kill sessions

    Hi,
    I'm used to querying data dictinary to find table sizes on disk and identifying sessions to kill.
    How can I do these 2 thing swith Enterprise Manager.
    Using Oracle 10g EM against Oracle 11.2.0.3 database.
    Thanks

    You should be able to find the first data/index block with the following, even on an empty table/index.
    select header_file, header_block +1
    from dba_segments
    where segment_name = '<index or table name>';

  • Session corruption

    Here is the scenario.
    We have an Apex app that uses OID/LDAP for authentication. After login and navigating to a page, copy the URL, which is in the form /pls/htmldb/f?p=115:2:12707292724811104707. Then close all browser windows, or move from FireFox to IE. Past the full URL into the browser. Login at the prompt. Some application features work but those that use session variables fail. Debuggging shows that the session variables have null (zero-length varchar) values.
    It appears that the full URL does not fully identify a user's server-side session. A cookie that is handled by the browser must have been used to reach session data.
    This disables deep linking and bookmarking. Even after you re-login and you get a new session id, the cookies don't match up with the session id. The session state is corrupt.
    Actually I see two cookies:
    Cookie: LOGIN_USERNAME_COOKIE=sitescope; WWV_CUSTOM-F_705323579093678_115=5A9121E140BE224F

    Kenny,
    it is not my expectation that matters.Okay, but I think you are expecting the product to behave in ways that it never has and never will. If that is true, your expectations won't be met. That matters to me.
    You didn't confirm nor dispute the use of session id in URL AND cookies on the client side to identify sessions.The information I gave you in the thread you abandoned (Session management ) should have been sufficient. I invite you to read that again and reply to that thread if something I said there is unclear. I am happy to help you understand the product but I don't want to jump into a new thread about session management for each new question. Keeping it all together will benefit others down the road.
    Scott

  • HTTP Session Replication

    Hi!
    I'm trying to setup a cluster between two managed servers located on the same server. The following configuration is about my cluster. I just removed the secutiry element:
    *<?xml version='1.0' encoding='UTF-8'?>*
    *<domain xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator/1.0/passwordvalidator.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd">*
    *<name>caim</name>*
    *<domain-version>10.3.2.0</domain-version>*
    *<server>*
    *<name>AdminServer</name>*
    *<machine></machine>*
    *<listen-address></listen-address>*
    *</server>*
    *<server>*
    *<name>ManagedServer_1</name>*
    *<machine></machine>*
    *<listen-port>7003</listen-port>*
    *<cluster>Cluster_1</cluster>*
    *<listen-address></listen-address>*
    *<server-start>*
    *<arguments>-Djava.endorsed.dirs=C:\endorsed</arguments>*
    *<password-encrypted>{AES}7iyQ50j7+efCMMUTHrSPcELzY9wjcge0W0Gp/HH3j9E=</password-encrypted>*
    *</server-start>*
    *<jta-migratable-target>*
    *<name>ManagedServer_1</name>*
    *<user-preferred-server>ManagedServer_1</user-preferred-server>*
    *<cluster>Cluster_1</cluster>*
    *</jta-migratable-target>*
    *</server>*
    *<server>*
    *<name>ManagedServer_2</name>*
    *<machine></machine>*
    *<listen-port>7004</listen-port>*
    *<cluster>Cluster_1</cluster>*
    *<listen-address></listen-address>*
    *<server-start>*
    *<arguments>-Djava.endorsed.dirs=C:\endorsed</arguments>*
    *<password-encrypted>{AES}PC7yN6hCVA3N6lMn2AyZgJu0pGcv4K5XUDUMmWMNE5Q=</password-encrypted>*
    *</server-start>*
    *<jta-migratable-target>*
    *<name>ManagedServer_2</name>*
    *<user-preferred-server>ManagedServer_2</user-preferred-server>*
    *<cluster>Cluster_1</cluster>*
    *</jta-migratable-target>*
    *</server>*
    *<cluster>*
    *<name>Cluster_1</name>*
    *<cluster-messaging-mode>unicast</cluster-messaging-mode>*
    *</cluster>*
    *<production-mode-enabled>true</production-mode-enabled>*
    *<embedded-ldap>*
    *<name>caim</name>*
    *<credential-encrypted>{AES}BQResE+Zs6gOOTGLqF3T70xcLs3AVw2F7+7sNKLdb2T+QE3cx+zHFlO0RQyBAZy1</credential-encrypted>*
    *</embedded-ldap>*
    *<configuration-version>10.3.2.0</configuration-version>*
    *<app-deployment>*
    *<name>app</name>*
    *<target>ManagedServer_1</target>*
    *<module-type>war</module-type>*
    *<source-path>C:\WebLogic\app</source-path>*
    *<deployment-order>100</deployment-order>*
    *<security-dd-model>DDOnly</security-dd-model>*
    *</app-deployment>*
    *<app-deployment>*
    *<name>app2</name>*
    *<target>ManagedServer_2</target>*
    *<module-type>war</module-type>*
    *<source-path>C:\WebLogic\app2</source-path>*
    *<security-dd-model>DDOnly</security-dd-model>*
    *</app-deployment>*
    *<machine>*
    *<name></name>*
    *<node-manager>*
    *<name></name>*
    *<listen-address></listen-address>*
    *</node-manager>*
    *</machine>*
    *<migratable-target>*
    *<name>ManagedServer_1 (migratable)</name>*
    *<notes>This is a system generated default migratable target for a server. Do not delete manually.</notes>*
    *<user-preferred-server>ManagedServer_1</user-preferred-server>*
    *<cluster>Cluster_1</cluster>*
    *</migratable-target>*
    *<migratable-target>*
    *<name>ManagedServer_2 (migratable)</name>*
    *<notes>This is a system generated default migratable target for a server. Do not delete manually.</notes>*
    *<user-preferred-server>ManagedServer_2</user-preferred-server>*
    *<cluster>Cluster_1</cluster>*
    *</migratable-target>*
    *<admin-server-name>AdminServer</admin-server-name>*
    *</domain>*
    I do not see any log about http session replication and when I stop the managed server that is handling the requests, the application is redirected to the login page, i.e., there's no session replication.
    Need I to do something more than create the cluster and add the managed servers to the cluster?
    Is it possible to enable the logging to the session replication?
    Best Regards,
    A.

    Please refer to : http://jaysensharma.wordpress.com/2009/12/08/session-replication-issues/
    To identify Session Replication requirements ...and Causes...
    Like *"weblogic.xml"* should contain:
    <persistance-type> Tag... Like following:
    <font color=maroon>
    <session-descriptor>
    <persistent-store-type>replicated</persistent-store-type>
    </session-descriptor>
    </font>
    Can you please enable SessionReplication related Debug Flags from AdminConsole....?
    Are you using any kind of Proxy/LoadBalancer in front of your Cluster?
    Have you ever tried changing default HttpSession Cookie Name from "*JSESSIONID"* to something else?
    Thanks
    Jay SenSharma

  • How to Identify database sessions used by forms sso user sessions?

    Hi:
    When using forms with SSO, all database sessions are opened by the same OSUSER (usually oracle), from the same machine (usually the forms server) and by the same program (usually [email protected] [TNS V1-V3]).
    I need a way to identify the database session (v$session) that is beeing used by a specific SSO user. By using SSO, we say implicitly that all users using that SSO resource will be connect to the database by a specific database user.
    So, what can I do to identify the database session that a specific forms user is using ?
    Thanks
    Joao Oliveira

    You could try something like the following in a when new form instance trigger:
    declare
    authenticated_username varchar2(30);
    begin
    authenticated_username := get_application_property(`sso_userid');
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO (
    client_info IN VARCHAR2);
    end;
    This will store the sso userid in the client_info field of v$session.
    I hope this works for you.
    Randy McGregor

  • How to identify current session id (SID)?

    How can a user identify their current session id if auditing is not enabled and account has connect role only? select * from v$mystat where rownum = 1; Fails (ora-942).

    I think this is going to be difficult. I've included a completely convoluted idea I thought of using just CONNECT accessible objects (looking on a 9.2 database). You can't make this a stored procedure though (no direct privileges). I'll be interested to see if someone can come up with something easier.
    declare
      rindex binary_integer := dbms_application_info.set_session_longops_nohint;
      slno binary_integer;
      usid varchar2(24) := dbms_session.unique_session_id;
      mysid number;
    begin
      dbms_application_info.set_session_longops(rindex, slno, 'get_sid:' || usid);
      select sid
      into mysid
      from v$session_longops
      where opname = 'get_sid:' || usid
        and rownum = 1;
      dbms_output.put_line(mysid);
    end;Richard

  • How to get a session identifier in Model project

    How can I get any web session context identifier in a ViewImpl class?

    Tee hee hee deadlock.
    Gho - there is no direct way to do so; perhaps you can explain the use case you are trying to achieve (for example, if you need the user name, there might be a quick and easy answer for you). The general answer is that you would pass in the information needed from the view layer (which does have access to the http session). If it's a bind variable you're trying to set, you can use an ExecuteWithParams binding in the view layer.
    For more information, please provide your use case, and we'll try to help.
    john

  • Handling sessions (identifying, mapping)

    Hi.
    I'm still new to handling sessions and users with javax.servlet.*
    Two questions, one about identifying one other about mapping :
    -how do you access the user login name ? The object HttpSession.getId() tells me nothing interesting, because this id changes everytime the user connects
    -in a project where there are information about the user (say a UserAccount class) to be mapped to him, in what piece of code do you code the bind action? I'm using the FORM memory realm, from TOMCAT. Is it possible to bind objects to a user with this kind of authentication?
    Thanks!

    If you are using FORM based authentication then you can get the userid of the logged user using the following:
    1.
    String userid = request.getRemoteUser();OR
    2.
    java.security.Principal user = request.getUserPrincipal();
    String userid = user.getName();
    Where request is HttpServletRequest

  • How to identify the most consumer session

    Hello,
    Time from time, a session or two become very consumer of resources at the point that the database cannot work normally.
    My question is :
    How can we identify the most consumer session :
    Our aim is to send an email to our dba team to alert us.
    Thanks in advance.

    You can try the below query for top consuming session, but as per your requirment like getting email to DBA pool - You need put some effort for writing the scripit
    SET LINESIZE 500
    SET PAGESIZE 1000
    SET VERIFY OFF
    COLUMN username FORMAT A15
    COLUMN machine FORMAT A25
    COLUMN logon_time FORMAT A20
    SELECT NVL(a.username, '(oracle)') AS username,
    a.osuser,
    a.sid,
    a.serial#,
    c.value AS &1,
    a.lockwait,
    a.status,
    a.module,
    a.machine,
    a.program,
    TO_CHAR(a.logon_Time,'DD-MON-YYYY HH24:MI:SS') AS logon_time
    FROM v$session a,
    v$sesstat c,
    v$statname d
    WHERE a.sid = c.sid
    AND c.statistic# = d.statistic#
    AND d.name = DECODE(UPPER('&1'), 'READS', 'session logical reads',
    'EXECS', 'execute count',
    'CPU', 'CPU used by this session',
    'CPU used by this session')
    ORDER BY c.value DESC;
    For triggering email to your DBA pool you can use DBMS_JOBS / UTL_MAIL
    Edited by: saratpvv on Apr 10, 2013 5:40 PM

Maybe you are looking for