V$session and gV$session

Can anyone explain v$session and gv$session ;

Prefix G in GV$ means GLOBAL. The best way to find out the the difference between v$session and gv$session is to look in v$fixed_view_definition.
V$SESSION
select SADDR,
       SID,
       SERIAL#,
       AUDSID,
  from GV$SESSION
where inst_id = USERENV('Instance')GV$SESSION
select s.inst_id,
       s.addr,
       s.indx,
       s.ksuseser,
       s.ksuudses,
       s.ksusepro,
       s.ksuudlui,
       s.ksuudlna,
       s.ksuudoct,
       s.ksusesow,
       decode(s.ksusetrn, hextoraw('00'), null, s.ksusetrn),
       decode(s.ksqpswat, hextoraw('00'), null, s.ksqpswat),
       decode(bitand(s.ksuseidl, 11),
              1,
              'ACTIVE',
              0,
              decode(bitand(s.ksuseflg, 4096), 0, 'INACTIVE', 'CACHED'),
              2,
              'SNIPED',
              3,
              'SNIPED',
              'KILLED'),
       decode(s.ksspatyp, 1, 'DEDICATED', 2, 'SHARED', 3, 'PSEUDO', 'NONE'),
       s.ksuudsid,
       s.ksuudsna,
       s.ksuseunm,
       s.ksusepid,
       s.ksusemnm,
       s.ksusetid,
       s.ksusepnm,
       decode(bitand(s.ksuseflg, 19),
              17,
              'BACKGROUND',
              1,
              'USER',
              2,
              'RECURSIVE',
       s.ksusesql,
       s.ksusesqh,
       s.ksusesqi,
       decode(s.ksusesch, 65535, to_number(null), s.ksusesch),
       s.ksusepsq,
       s.ksusepha,
       s.ksusepsi,
       decode(s.ksusepch, 65535, to_number(null), s.ksusepch),
       decode(s.ksusepeo, 0, to_number(null), s.ksusepeo),
       decode(s.ksusepeo, 0, to_number(null), s.ksusepes),
       decode(s.ksusepco, 0, to_number(null), s.ksusepco),
       decode(s.ksusepco, 0, to_number(null), s.ksusepcs),
       s.ksuseapp,
       s.ksuseaph,
       s.ksuseact,
       s.ksuseach,
       s.ksusecli,
       s.ksusefix,
       s.ksuseobj,
       s.ksusefil,
       s.ksuseblk,
       s.ksuseslt,
       s.ksuseltm,
       s.ksusectm,
       decode(bitand(s.ksusepxopt, 12), 0, 'NO', 'YES'),
       decode(s.ksuseft,
              2,
              'SESSION',
              4,
              'SELECT',
              8,
              'TRANSACTIONAL',
              'NONE'),
       decode(s.ksusefm, 1, 'BASIC', 2, 'PRECONNECT', 4, 'PREPARSE', 'NONE'),
       decode(s.ksusefs, 1, 'YES', 'NO'),
       s.ksusegrp,
       decode(bitand(s.ksusepxopt, 4),
              4,
              'ENABLED',
              decode(bitand(s.ksusepxopt, 8), 8, 'FORCED', 'DISABLED')),
       decode(bitand(s.ksusepxopt, 2),
              2,
              'FORCED',
              decode(bitand(s.ksusepxopt, 1), 1, 'DISABLED', 'ENABLED')),
       decode(bitand(s.ksusepxopt, 32),
              32,
              'FORCED',
              decode(bitand(s.ksusepxopt, 16), 16, 'DISABLED', 'ENABLED')),
       s.ksusecqd,
       s.ksuseclid,
       decode(s.ksuseblocker,
              4294967295,
              'UNKNOWN',
              4294967294,
              'UNKNOWN',
              4294967293,
              'UNKNOWN',
              4294967292,
              'NO HOLDER',
              4294967291,
              'NOT IN WAIT',
              'VALID'),
       decode(s.ksuseblocker,
              4294967295,
              to_number(null),
              4294967294,
              to_number(null),
              4294967293,
              to_number(null),
              4294967292,
              to_number(null),
              4294967291,
              to_number(null),
              bitand(s.ksuseblocker, 2147418112) / 65536),
       decode(s.ksuseblocker,
              4294967295,
              to_number(null),
              4294967294,
              to_number(null),
              4294967293,
              to_number(null),
              4294967292,
              to_number(null),
              4294967291,
              to_number(null),
              bitand(s.ksuseblocker, 65535)),
       s.ksuseseq,
       s.ksuseopc,
       e.kslednam,
       e.ksledp1,
       s.ksusep1,
       s.ksusep1r,
       e.ksledp2,
       s.ksusep2,
       s.ksusep2r,
       e.ksledp3,
       s.ksusep3,
       s.ksusep3r,
       e.ksledclassid,
       e.ksledclass#,
       e.ksledclass,
       decode(s.ksusetim,
              0,
              0,
              -1,
              -1,
              -2,
              -2,
              decode(round(s.ksusetim / 10000),
                     0,
                     -1,
                     round(s.ksusetim / 10000))),
       s.ksusewtm,
       decode(s.ksusetim,
              0,
              'WAITING',
              -2,
              'WAITED UNKNOWN TIME',
              -1,
              'WAITED SHORT TIME',
              decode(round(s.ksusetim / 10000),
                     0,
                     'WAITED SHORT TIME',
                     'WAITED KNOWN TIME')),
       s.ksusesvc,
       decode(bitand(s.ksuseflg2, 32), 32, 'ENABLED', 'DISABLED'),
       decode(bitand(s.ksuseflg2, 64), 64, 'TRUE', 'FALSE'),
       decode(bitand(s.ksuseflg2, 128), 128, 'TRUE', 'FALSE')
  from x$ksuse s, x$ksled e
where bitand(s.ksspaflg, 1) != 0
   and bitand(s.ksuseflg, 1) != 0
   and s.ksuseopc = e.indxAlexander Anokhin
http://alexanderanokhin.wordpress.com/

Similar Messages

  • GV$SESSION and V$SESSION | Find who is connecting

    Any one please brief what is the diff b/w
    GV$SESSION and V$SESSION
    and what is the use os both...
    Can we find the user who is connecting to the oracle server using gv$session view.
    Oracle Version is 9i R2
    OS is Solaris 9

    You can find the users connecting to each node if you query the v$session. You must be aware of the node you are connecting when issuing this query because the information is exclusive from the node you are connected to.
    If you query the gv$session the information gathered is the same, but as you can see it reports information from all RAC participant users.
    If you take a look at the dynamic views, you will find a lot of gv$ views, those are global views that can be seen from whichever instance you are connected to and it will report information about all the instances in a single query. As you can see the gv$ views include an INST_ID (instance ID) column, which declares the number of instance the information comes from.
    ~ Madrid
    http://hrivera99.blogspot.com

  • Disconnect session and kill session

    Hi
    what is the difference between
    disconnect session and kill session
    Edited by: Pascal Nouma on 21/10/2009 16:23

    Hi,
    You can use the supplied package [dbms_metadata|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_metada.htm#i1015856] to get the DDL for database objects, including sequences.
    If you want to continue working on this query, then I think you need a CASE expression to do one thing for 0 vlaues, and another for values >0.
    Something like this:
    select  'create sequence '
    ||     SEQUENCE_NAME
    ||     ' minvalue '
    ||      MIN_VALUE
    ||     ' maxvalue '
    ||     MAX_VALUE
    ||      ' increment by '
    ||      INCREMENT_BY
    ||     decode      ( CYCLE_FLAG
              , 'N'     , ' nocycle '
                   , ' cycle '
    ||     CASE
              WHEN  cache_size = 0
              THEN  ' NOCACHE'
              ELSE  ' cache ' || cache_size
                        || ' start with '
                        || LAST_NUMBER
         END
    ||     ';'
    from      user_sequences;You can also use DECODE instead of CASE (and vice-versa).
    Edited by: Frank Kulash on Oct 21, 2009 7:34 PM
    A few minutes ago this question was about re-creating sequences. What happened?

  • Determine blocking sessions and blocked sessions in 9iR2

    Hi,
    Running 9.2.0.7 on Solaris 2.
    We are trying to develop a query that can show us the blocked sessions and the session causing it. I have one working for 11 but for 9i, its a little more trickier. I am running these two so far:
    select s1.username || '@' || s1.machine || ' ( SID=' || s1.sid ||
           ' )  is blocking ' || s2.username || '@' || s2.machine || ' ( SID=' ||
           s2.sid || ' ) ' AS blocking_status
      from gv$lock l1, gv$session s1, gv$lock l2, gv$session s2
    where s1.sid = l1.sid
       and s2.sid = l2.sid
       and l1.BLOCK = 1
       and l2.request > 0
       and l1.id1 = l2.id1
       and l2.id2 = l2.id2;
    select do.object_name,
           row_wait_obj#,
           row_wait_file#,
           row_wait_block#,
           row_wait_row#,
           dbms_rowid.rowid_create(1,
                                   ROW_WAIT_OBJ#,
                                   ROW_WAIT_FILE#,
                                   ROW_WAIT_BLOCK#,
                                   ROW_WAIT_ROW#)
      from gv$session s, dba_objects do
    where sid = 543
       and s.ROW_WAIT_OBJ# = do.OBJECT_ID;Reason I need this is that lately we have been getting a lot of DEADLOCKS and we want to determine why this is happening a lot now and we want to start with who it is and what objects are causing it....any suggestions?

    mbobak wrote:
    There are a few critical pieces to interpreting a deadlock trace file. First, to be clear, you're getting ORA-00060, not ORA-04020 (which is a library cache deadlock), correct?
    If so, the tracefile will contain a deadlock graph. This will show the type of enqueue involved (TM or TX are the likely candidates), and the modes that locks and requests are being made.
    Then, there's the SQL which encountered the deadlock, and finally, the other SQL involved in the deadlock.
    All the above information is in the deadlock trace file.
    Using it, you ought to be able to determine root cause of the deadlock.
    If you need help understanding it, post here. If you post the deadlock graph, make sure you use code tags, or it will be unreadable.Yes we are getting the ORA-00060. This is what we get exactly from the AppTeam from the App:
    Available exception message: iims.ge.common.exception.IIMSTechnicalException : ORA-00060: deadlock detected while waiting for resourceFrom our latest Deadlock occurence we got a LMD Trace file generated. We can see the DeadLock graph and its SQL. We the enqueue of TX and it's modes. Basically everything you asked for we see it in the trace file. What we want to see is what is causing it or who is so we can fix it. Maybe I am not reading the trace file correctly. I appreciate your assistance in helping me interpret the trace file. As requested, here is the trace file.
    Dump file /var/local/oracle/logs/ora_prod_can1_lmd0_4432.trc
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning and Real Application Clusters options
    JServer Release 9.2.0.8.0 - Production
    ORACLE_HOME = /opt/oracle/9.2.0
    System name:    SunOS
    Node name:      can-clust01
    Release:        5.9
    Version:        Generic_118558-36
    Machine:        sun4u
    Instance name: ORA_PROD_CAN1
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 5
    Unix process pid: 4432, image: oracle@can-clust01 (LMD0)
    *** SESSION ID:(4.1) 2010-08-15 08:07:02.736
    open lock on RM 0 0
    *** 2010-08-15 08:07:31.353
    open lock on RM 0 0
    *** 2010-08-16 11:17:21.469
    user session for deadlock lock 40972c9c0
      pid=50 serial=6956 audsid=189500961 user: 61/IIMS_UWR
      O/S info: user: weblogic, term: unknown, ospid: , machine: can-prod03
                program: JDBC Thin Client
      application name: JDBC Thin Client, hash value=0
      Current SQL Statement:
      UPDATE T_POLICY_PROPERTY POP SET POP.PRP_EFFECTIVE_END_DATE = :B3 , POP.PRP_LAST_UPDATED_DATE = SYSDATE WHERE POP.PRP_POL_POLICY_ID = :B2 AND POP.PRP_
    PROPERTY_SEQ_NUM = 1 AND POP.PRP_EFFECTIVE_END_DATE = TO_DATE(:B1 , DATE_FORMAT)
    Global Wait-For-Graph(WFG) at ddTS[0.1] :
    BLOCKED 40972c570 5 [0x90014][0x19bb82],[TX] [131094,2] 1
    BLOCKER 40972bb98 5 [0x90014][0x19bb82],[TX] [65586,6177] 0
    BLOCKED 40972c9c0 5 [0x110014][0x12ec40],[TX] [65586,6177] 0
    BLOCKER 40972ba18 5 [0x110014][0x12ec40],[TX] [131094,2] 1
    user session for deadlock lock 40972c9c0
      pid=50 serial=6956 audsid=189500961 user: 61/IIMS_UWR
      O/S info: user: weblogic, term: unknown, ospid: , machine: can-prod03
                program: JDBC Thin Client
      application name: JDBC Thin Client, hash value=0
      Current SQL Statement:
      UPDATE T_POLICY_PROPERTY POP SET POP.PRP_EFFECTIVE_END_DATE = :B3 , POP.PRP_LAST_UPDATED_DATE = SYSDATE WHERE POP.PRP_POL_POLICY_ID = :B2 AND POP.PRP_
    PROPERTY_SEQ_NUM = 1 AND POP.PRP_EFFECTIVE_END_DATE = TO_DATE(:B1 , DATE_FORMAT)
    Global Wait-For-Graph(WFG) at ddTS[0.2] :
    BLOCKED 40972c9c0 5 [0x110014][0x12ec40],[TX] [65586,6177] 0
    BLOCKER 40972ba18 5 [0x110014][0x12ec40],[TX] [131094,2] 1
    BLOCKED 40972c570 5 [0x90014][0x19bb82],[TX] [131094,2] 1
    BLOCKER 40972bb98 5 [0x90014][0x19bb82],[TX] [65586,6177] 0
    *** 2010-08-16 11:17:42.495
    user session for deadlock lock 4098bcd08
      pid=59 serial=981 audsid=189501588 user: 61/IIMS_UWR
    O/S info: user: weblogic, term: unknown, ospid: , machine: can-prod03
                program: JDBC Thin Client
      application name: JDBC Thin Client, hash value=0
      Current SQL Statement:
      UPDATE T_POLICY_PROPERTY POP SET POP.PRP_EFFECTIVE_END_DATE = :B3 , POP.PRP_LAST_UPDATED_DATE = SYSDATE WHERE POP.PRP_POL_POLICY_ID = :B2 AND POP.PRP_
    PROPERTY_SEQ_NUM = 1 AND POP.PRP_EFFECTIVE_END_DATE = TO_DATE(:B1 , DATE_FORMAT)
    Global Wait-For-Graph(WFG) at ddTS[0.3] :
    BLOCKED 41228b128 5 [0x70001][0x178a52],[TX] [131100,2] 1
    BLOCKER 4098bade8 5 [0x70001][0x178a52],[TX] [65595,583] 0
    BLOCKED 4098bcd08 5 [0x130025][0x1475c9],[TX] [65595,583] 0
    BLOCKER 412275b78 5 [0x130025][0x1475c9],[TX] [131100,2] 1
    user session for deadlock lock 4098bcd08
      pid=59 serial=981 audsid=189501588 user: 61/IIMS_UWR
      O/S info: user: weblogic, term: unknown, ospid: , machine: can-prod03
                program: JDBC Thin Client
      application name: JDBC Thin Client, hash value=0
      Current SQL Statement:
      UPDATE T_POLICY_PROPERTY POP SET POP.PRP_EFFECTIVE_END_DATE = :B3 , POP.PRP_LAST_UPDATED_DATE = SYSDATE WHERE POP.PRP_POL_POLICY_ID = :B2 AND POP.PRP_
    PROPERTY_SEQ_NUM = 1 AND POP.PRP_EFFECTIVE_END_DATE = TO_DATE(:B1 , DATE_FORMAT)
    Global Wait-For-Graph(WFG) at ddTS[0.4] :
    BLOCKED 4098bcd08 5 [0x130025][0x1475c9],[TX] [65595,583] 0
    BLOCKER 412275b78 5 [0x130025][0x1475c9],[TX] [131100,2] 1
    BLOCKED 41228b128 5 [0x70001][0x178a52],[TX] [131100,2] 1
    BLOCKER 4098bade8 5 [0x70001][0x178a52],[TX] [65595,583] 0Let's see what we can get out of this now :)

  • Web session and authentification session pb with wl6.0

    Hi,
    I am evaluating weblogic 6.0 on windows 2000.
    I have a little web application, with some URL (html, servlet...), I want to protect.
    So I defined a <security-constraint> element in my web.xml
    file, and I binded the logical roles with real participant in
    weblogic.xml
    It works very well at startup. I launch a browser, request a protected URL and the
    authentification window popup. I enter valid info and I can access my URL.
    Perfect.
    Now I want to give the possibility to my user to terminate a session, to disconmect,
    so I had a button, (disconnect) which invoque a servlet which get the current session
    and invalidate it.
    I checked, the session is destroyed and a new one is defined (new ID, new counter...),
    but my user are still connected. It means that if I want to acces a protected URL,
    I still can do it.
    more strange. In both a secured and unsecured page I print the User Principal. When
    I connect, the two pages print the same and right value.
    But if I disconnect, the unsecured page print null(no connection for this session)
    and the secured page print the principal I used to connect in the previous message.
    I know this message is a little bit long, but I tried to give the cleares context.
    Has anyone ancountered that kind of problem? Is there a solution.
    I pass the test with netscape 4.76, netscape 6.01, Internet Explorer 5.50. I got
    the same behavior each time...
    Thanks
    Nicolas

    If you use a Form to authenticate then the browser is unaware of the
    username and password. The PetStore demonstrates how it's done in
    ..\samples\petStore\source\com\bea\estore\util\WLSecurityAdapter.java
    "Nicolas GANDRIAU" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi John,
    thank you for your answer. It confirmed my first guess, that the
    browser keep the secret info and send them back to the server.
    The server does not make any attachment with the current session.
    But you talk about a "ServletAuthentication" example which presents theway to bind
    the login info in the session. I have not found this servlet, in weblogic6.0 distribution
    or J2EE API.
    Can you give me the exact reference of this servlet.
    Thank you for your help.
    Nicolas
    "John Lindwall" <[email protected]> wrote:
    Nicolas,
    It is my understanding that the authentication information for this
    scenario
    (ie HTTP BASIC authentication) is not contained in the session -- it is
    maintained by the browser and resent with every request. That is why
    invalidating the session makes no difference. If you have a HTTPsnooping
    utility you will see the "Authorization" information (albeit encodedusing
    BASE64) present in the requests from your browser to the server.
    FYI: I've noticed that by using the ServletAuthentication class tomanually
    perform authentication, it DOES in fact store the authentication info in
    the
    session. There is a "done()" method in this class which removes thisinfo
    from the session (ie performs a logout).
    If this link reproduces properly, check it out -- it's a good simple
    explanation of what's going on:
    http://www.support.lotus.com/sims2.nsf/852561c1006719a98525614100588964/877
    a
    0ac029a78f8a8525645f0069a34d?OpenDocument
    For tons of detail on BASIC authentication see
    ftp://ftp.isi.edu/in-notes/rfc2617.txt
    John
    Nicolas GANDRIAU <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am evaluating weblogic 6.0 on windows 2000.
    I have a little web application, with some URL (html, servlet...), I
    want
    to protect.
    So I defined a <security-constraint> element in my web.xml
    file, and I binded the logical roles with real participant in
    weblogic.xml
    It works very well at startup. I launch a browser, request a protectedURL
    and the
    authentification window popup. I enter valid info and I can access myURL.
    Perfect.
    Now I want to give the possibility to my user to terminate a session,to
    disconmect,
    so I had a button, (disconnect) which invoque a servlet which get thecurrent session
    and invalidate it.
    I checked, the session is destroyed and a new one is defined (new ID,new
    counter...),
    but my user are still connected. It means that if I want to acces aprotected URL,
    I still can do it.
    more strange. In both a secured and unsecured page I print the UserPrincipal. When
    I connect, the two pages print the same and right value.
    But if I disconnect, the unsecured page print null(no connection for
    this
    session)
    and the secured page print the principal I used to connect in the
    previous
    message.
    I know this message is a little bit long, but I tried to give the
    cleares
    context.
    Has anyone ancountered that kind of problem? Is there a solution.
    I pass the test with netscape 4.76, netscape 6.01, Internet Explorer
    5.50.
    I got
    the same behavior each time...
    Thanks
    Nicolas

  • Stateful session and stateless session

    i want to use session pool, but in document being stateful session or stateless session are one of standards.
    i do not understand the difference of them. who can tell me something about this?
    thanks! and the session we commonly used is stateful or stateless ?

    A stateful session is one that must maintain a state across requests; such as one that may require package states and the like. As such, it cannot be reused by other requests until it is completely finished.
    On the other hand, a stateless session is one that performs somewhat like a singleton action (statement cache for example) which, upon completion, can be reused in the pool for any other request as it does not require the state to be maintained.
    The most commonly used depends on the application, but I would say stateless is more common as it's used for performing small simple things (queries or small transactions) without requiring procedural-type processing overhead.
    Not sure if that description really helps you though.

  • Scope of component session and http session

    Hi,
    I wish multiple iviews to share the same information.  I am unsure however of the scope of portalcomponentsession, as opposed to http session. I have read the docs, and they are unclear as to the life and scope of these 2 sessions within portal.  Which one is tied to the user?  And which one is available over multiple iviews.
    I would appreciate any help with this
    Thanks
    Mariana

    Hi Mariana,
    > I am sorry
    No problem at all
    > I did not want to close the topic by mistake
    Just for explanation: If you give ten points (they call it blue, my eyes say black), this star is marked in the overview and somehow displaying "solved". In addtion, if you have marked a question as question, you can mark it as answered. As long as you don't do one of both things, you can reward points (2, 6) also in between without trimming your chances to get additional answers.
    > I did not de-mark the question,
    > I just replied to the post.
    When you initially opened the thread (that was no reply), it <i>seems</i> that you've de-marked this thread as question (the standard is: it is a question).
    Anyhow, some people seem to have made the experience that they definitely did not de-mark the thread as question, but it wasn't marked as question, anyhow.
    In this case, a short and friendly mail to [email protected] with the problem stated and alink to the thread concernced will help to repair everything...
    Best regards
    Detlev

  • Idle session and active session

    how can I clear/remove the session user in oracle 10g express, via asp.net (1.1), is it possible?
    is idle session can affect the number of concurrent users? or only active session...

    coz right we're having a problem. first of all, i would like to say that I'm a oracle novice.
    this is the scenario, we have 1 server (p4 2.2ghz w/ 2gig of memory), oracle 10g express install and our application front end (asp.net 1.1 is also install). while running of application and reached 5 or more that users have connected tru asp.net, the connection to the oracle is refuse.
    can you help me regarding our problem.
    thanks in advance

  • Although browser.sessionstore.resume_from_crash = false, it still is restoring session and even session which where password protected! how to solve

    In the config browser.sessionstore.resume_from_crash is set to false, However when restarting FF all sessions can be restored by pressing the button session restore on the home page.
    '''It restores also password protected sessions without asking for any password! This is unacceptible!'''

    See:
    * http://kb.mozillazine.org/Browser.sessionstore.privacy_level
    * http://kb.mozillazine.org/Session_Restore

  • Oracle portal  session and pl/sql

    Hi all i use portal v.10.1.2.2.0 and i would like to play with a session variable. all i do is
    grant execute on wwsto_api_session to myportal from portal schema. and then i want to do
    l_store := portal.wwsto_api_session.load_session (p_domain, p_sub_domain);
    l_store.set_attribute ('myname', 'name');
    l_store.save_session;
    1) i do not know what is the p_domain, p_sub_domain
    2) when i do wwsto_api_session.get_sub_domain and wwsto_api_session.get_domain i get an error.
    How can i read and write to a variable session in oracle portal? to to like java set session and get session?
    Thank you in Advance,
    Antonis

    [email protected] wrote:
    Hi all i use portal v.10.1.2.2.0 and i would like to play with a session variable. all i do is
    grant execute on wwsto_api_session to myportal from portal schema. and then i want to do
    l_store := portal.wwsto_api_session.load_session (p_domain, p_sub_domain);
    l_store.set_attribute ('myname', 'name');
    l_store.save_session;
    1) i do not know what is the p_domain, p_sub_domain
    2) when i do wwsto_api_session.get_sub_domain and wwsto_api_session.get_domain i get an error."Storage is located by the combination of the domain and subdomain parameters, and the Login session ID.
    If a session store object has not previously been created for this combination of domain, sub-domain, and session ID, then an empty session store object is created and returned. "
    How can i read and write to a variable session in oracle portal? to to like java set session and get session?Hi,
    You may want to see the wwsto_api_session here in [Portal APIs|http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/index.html].
    "Working with the session object
    The general procedure for working with the session object is:
    1. Load the session object, with an appropriate domain and sub-domain combination, using the load_session method.
    2. Manipulate the content of the object using the set_attribute methods, or just access its content using the get_attribute methods.
    3. Force these changes to be saved, using the save_session method.
    Typically this sequence occurs within the scope of one client routine that extracts and/or sets all of the client states. For example:
    declare
    l_store portal30.wwsto_api_session;
    l_date date;
    begin
    l_store := portal30.wwsto_api_session.load_session ('PORTAL', 'TEST');
    l_store.set_attribute ('LAST_ACCESSED', sysdate);
    l_store.set_attribute ('USERNAME', 'SMITH');
    l_store.set_attribute ('COUNRTY_CODE', 1);
    l_store.set_attribute ('LOCATION', 'US');
    l_store.set_attribute ('LAST_LOGGED_ON', sysdate);
    l_store.set_attribute_as_string
    ('OFFICE_LOCATION', 'CALIFORNIA', 'US', 'STRING');
    l_store.save_session;
    end;
    The login session that creates the session storage object is defined by wwctx_api.get_sessionid. "
    ref: wwsto_api_session for Portal 10.1.2
    then, look for the functions for getting attributes as number, varchar2, string or index, etc. in the above link.
    hope that helps!
    AMN

  • Every time I launch Firefox 4 it opens 3 or 4 blank windows, no longer opens the tabs from the previous session and does not show my bookmarks sidebar.

    I have to manually close the extra windows and restore the tabs from the previous session, and reopen the sidebar. In disgust I uninstalled Firefox 4 and reinstalled 3.6. Everything works fine in 3.6. Looks to me like Firefox 4 has many major bugs and is not yet ready for prime time. I'll stay with 3.6 for now.

    This can be a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    You will have to redo App Tabs and Tab Groups after deleting sessionstore.js.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Difference between connection, session and process

    Hi all,
    Can anyone please update me on the difference between connection,session and process.
    Thanks in advance,
    - Sri

    I got this useful note by googled in net. It describes session,connection,process gracefully.
    A connection is a physical circuit between you and the database.A connection
    might be one of many types -- most popular begin DEDICATED server and SHARED
    server. Zero, one or more sessions may be established over a given connection
    to the database as show above with sqlplus. A process will be used by a session
    to execute statements. Sometimes there is a one to one relationship between
    CONNECTION->SESSION->PROCESS (eg: a normal dedicated server connection).
    Sometimes there is a one to many from connection to sessions (eg: like
    autotrace, one connection, two sessions, one process). A process does not have
    to be dedicated to a specific connection or session however, for example when
    using shared server (MTS), your SESSION will grab a process from a pool of
    processes in order to execute a statement. When the call is over, that process
    is released back to the pool of processes.

  • Unit Testing and Oracle Sessions

    We have an issue regarding Oracle session and SQL Developer Unit Testing.
    Every time we run a Unit Test in SQLDeveloper a new Oracle session is created. When closing that Unit Test, the session, however, is not disconnected.
    And the only way to close that "Unit Test" session is to close SQLDeveloper.
    This is causing problems with the no. of sessions available to developers.
    Any help would be much appreciated.
    Subboss

    The focus of this forum is report design. The actual testing of reports would be subject to your own internal policies and procedures.
    Jason

  • Invalidating the ADF session and redirecting to EBS login screen

    Hi ADF team,
    I am developing an application which is being accessed from eBusiness Suite (EBS), using ADFX function. It has a global Logout link. When the link is clicked, two things should happen.
    1. the ADF session that is running on WLS server should be killed.
    2. I should be redirected to eBusiness Suite login page.
    This is what I am doing and I am getting error(s).
    1. Created a Container jspx page and embedded a task flow in it.
    2. Embedded a jsff into task flow.
    3. In JSFF created a global link called Logout.
    4. Set the action property of Logout link such that it calls a function in the AMImpl. (I confirmed, the function is being called)
    5. In the function invalidate the ADF session using following code.
    HttpServletResponse response = ((HttpServletResponse)ADFContext.getCurrent().getEnvironment().getResponse());
    HttpServletRequest request = ((HttpServletRequest)ADFContext.getCurrent().getEnvironment().getRequest());
    HttpSession sessionADF = request.getSession();
    sessionADF.invalidate();
    return "EBSLogin";
    6. Now, EBSLogin control flow leads to a URL View component that has the URL property set as "www.oracle.com".
    --Using this approach I get the error: adfc-14000: view port id ****** is invalid
    -----Thus need help with this error. Is there a better way to accomplish this ?? What am i doing wrong?
    Also, I have a question on how to set the URL property of 'URL View' component. I set it to #{pageFlowScope.MainPageBean.testLogoutURL}. testLogoutURL is a function that returns string. But I do get an error at run time, mentioning that the property cannot be NULL. Thus seems like the way I am doing it is not totally correct. Please advice.
    Thanks & Regards,
    Anoop

    on top of my head
            FacesContext fc = FacesContext.getCurrentInstance();
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
            HttpSession session = (HttpSession)ectx.getSession(false);
            String redirectURL = (String)session.getAttribute("ebizRedirectUrl");
            if(redirectURL!=null){
              int oa_html = redirectURL.indexOf("OA_HTML");
              finalRedirectURL = redirectURL.substring(0, oa_html);
              finalRedirectURL = finalRedirectURL + "oa_servlets/AppsLogin";
            if (session != null)
            session.invalidate();
            try {
                response.sendRedirect(finalRedirectURL);
                fc.responseComplete();
            } catch (IOException e) {
                e.printStackTrace();
            }

  • What is the difference between Session timeout and Short Session timeout Under Excel Service Application -- session management?

    Under Excel Service Application --> session management; what is the difference between Session timeout and Short Session timeout?

    Any call made from the API will automatically be set to the “Session Timeout” period, no matter
    what. Calls made from EWA (Excel Web Access) will get the “Short Session Timeout” period assigned to it initially.
    Short Session Timeout and Session Timeout in Excel Services
    Short Session Timeout and Session Timeout in Excel Services - Part 2
    Sessions and session time-outs in Excel Services
    above links are from old version but still applies to all.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • To buy a new printer or new print head?

    Hi, I have a canon i9100 a3 printer which is 6 years old. the print head has had it, so i need to either buy a new print head for £60, or buy a new printer and i can't decide which one would be better. I don't want to spend more than around £250 on a

  • Goods Receipt is allowed through MIGO  for PO's though they hav the confirm

    Goods Receipt is allowed through MIGO  for PO's though they hav the confirmation control key. where as its should allow based on ASN(inbound Delivery). Not sure if any system changes has to be made or anything else. please suggest. Thanks

  • Issue of layouts  in COOIS

    Hi, Recently we faced problem of layouts in transaction COOIS. Our users use transaction COOIS to see various production reports. Managers prepare the global layouts and inform users to use those layouts to see daily reports. In last month someone /

  • Assign default values in selection screen of CM21

    Hi experts, Our case is that, in CM21 selection screen, default value to the field "Plant" is appeared. W are sure that it is not because of configuration settings but not able to find why it is appearing by default. Please let us know. Thanks in adv

  • Displaying HFM Member name and description in separate columns

    Hi, I am trying to show HFM member code(Account Code) and Description in two columns in Financial Report (FR),anyone has idea whether that would be possible in HFM reports? I thought of using MemberDesc but that will not serve my purpose. Thanks Asam