Why is serial# needed for unique session info

hello everybody,
as you know, a session is unique with 2 fields, SID and SERIAL# which exist on v$session view.
my question is why is serial# needed and for which case serial# is changing.
now, you can say that, "only oracle developers know this, that is the design" but what i mean is, for ex: if i wanted to find a session which is blocked by another session, I use this:
select * from v$session where blocking_session is not null;in blocking_Session field, oracle gives me the session id (SID) which is blocking a session. so i can use this SID and i can kill it for instance but SID is not unique for a session I can find more than one session with same SID which one is the blocking one ?
in real life i didnt see an example of that, there is no same sid in system like my blocking session example. so I believe that serial# is assigning for another purpose, I mean, i thougth that it could be for autonomous transaction, maybe they user same sid but differen serial# but when i tested it, i saw that i was wrong.
so, why serial# is exists. if this is a design issue, how can i find a blocking session by just using SID info ?
thanks a lot.

Not surprisingly, an explanation may already be found in the documentation (and copied in Rene's reply above):
See http://docs.oracle.com/cd/E11882_01/server.112/e25513/dynviews_3016.htm (column description).
Or search:
http://www.oracle.com/pls/db112/search?word=sid+serial%23&partno=
Besides for terminating sessions, serial# may be relevant when e.g. tracing sessions (SQL Trace).
Not sure what type of example you were looking for, but I came up with this in about five seconds:
C:\Users>sqlplus blocker_user
Enter password:
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
SQL> select sid,serial# from v$session where sid=(select sid from v$mystat where rownum=1);
       SID    SERIAL#
       136         27
SQL> conn other_user
Enter password:
Connected.
SQL> select sid,serial# from v$session where sid=(select sid from v$mystat where rownum=1);
       SID    SERIAL#
       136         29Edited by: orafad on Feb 1, 2012 12:18 AM

Similar Messages

  • Terminal Server Session Management: why do we need a rdp session to take control of a terminal session?

    Hi all,
    As title, I have this question: why do we need a rdp session to take remote control of a terminal server session?
    I copied tsadmin and related file to a windows 8.1 pc and I'm able to see for every terminal server the list of users logged in, but the option "take control" is greyed out... why? is not possible to avoid this block?
    Thanks in advance
    Davide

    Hello, Davide_ita.
    Also tried to use RDSM to "Remote Control" user's sessions, but in this thread
    Remote Control
    with Remote Desktop Services Manager - error Access is denied (Windows Server 2012 R2)
    I get the recommendation to use RDP or Remote Assistance.
    The quote of
    TP []:
    Hi,
    You cannot remote control a session on a 2012 R2 RDSH server using Remote Desktop Services Manager.  You need to use the RDP 8.1 mstsc.exe or the RDS gui in Server Manager on 2012 R2.  The command you would use with the RDP 8.1 client would be
    this:
    mstsc /shadow:<sessionid> /control
    -TP

  • Why is it asking for my billing info but the app is free how do I turn this off?

    Why is it asking for my billing info but the app is free how do I turn this off?

    possibly to verify age or perhaps the app has "add on" features that cost and they would need to know where to bill these to if you wanted them 
    I know you can store your billing details, even a credit card number, securely within your iTunes account to prevent you from getting this prompt for future apps

  • Why do we need to have payment info if we already have money on iTunes?

    why do we need to have payment info if we already have money on iTunes?

    There is no *%#!%^  none option in payment review.
    wonder why they are not trashing this useless help thread in FAQ's ??
    Create an iTunes App Store account without a credit card

  • Why there is need for upgradation

    Hi All,
    can some one help me out with why we need to go for SAP BW upgradation to SAP BI 7.0?
    Thanks,

    Hi Bazi,
    In BW 7.0 you have more tools to help you designing your data model. I would say also that, even though you have much more tools, the data flows have even become much more simple.
    In BW 7.0, to trigger data loads inside the BW system, you have DTPs. In BW 3.x, you had only InfoPackages. That is an advace, because in BW 7.0, you won't necessarily need a staging DSO. That is because you may load first to the DataSource via InfoPackages and then into the InfoProviders you want, via DTP. Check the following thread: [Re: Is it compulsory to create ODS in BW?|Re: Is it compulsory to create ODS in BW?]
    RSA1 is more well organized. There are more divisions and the searches are simpler.
    Instead of having the dataflow:
      DataSource -> Transfer Rule -> InfoSource -> Update Rule -> InfoProvider
    You may construct a much simpler flow:
      DataSource -> Transformation-> InfoProvider
    There is also the new Archiving functionality.
    There are many new features in BW 7.0 and it's really worth it.

  • Why are nulls needed for transformations?

    To build my 3D environment with all of its animations I
    needed to add a number of nulls that I did not otherwise need in my
    3D application (Lightwave.) This seems to be because Director needs
    to base transformations (rotation, scale, translation) off a
    parented null’s location. Does Director not use an
    object’s origin for these operations?
    I don’t mean to pick on Director only. I know that
    other environments like OGRE have similar requirements. It just
    seems to be an inefficiency to need to create a new null for any of
    these operations when working off of the object’s
    origin/center of gravity would suffice. Is this how all real-time
    3D environments work?

    Because the info in the master is needed to make the adjustment. That info doesn't exist in the preview, so it would be applied differently to the master later. It would be cool to be able to do that though. If it were possible, Aperture would run much much faster because it wouldn't have to access the masters except upon export.\
    It would be very cool! I guess I don't understand how adjustments to a Jpg Preview could not be expanded to the master. I suppose the mask in aperture would not be that acurrate when enlarged but I do not make precise masks in AP3 I still use ps for tight precision and that would be on a hi rez original and then brought back to AP3.
    Thanks for replying with your thoughts I apprecieate your time. And cheers to the future for catching up to our dreams.

  • Why am being asked for credit card info for a free app of the day?

    IIf an app of the day is free why am I being asked to update my credit card info?

    If you have a credit card on your account then it has to valid and its details correct.
    If this is the first time that you've tried to use the account in the store then unless the instructions on this page are followed when creating an account : http://support.apple.com/kb/HT2534
    then credit card details will need to be entered before the account can be used to download any item from the store.
    If you are being prompted to review your account then you could see if this post by mountaingoatgirl lets you do so without needing to enter credit card details : https://discussions.apple.com/message/24303054#24303054

  • I have money in my account, when i attempt to purchase, why does it ask for credit card info? is my card getting charged? no section to select to take funds from existing account. help please!

    can anyone tell me what i may be doing wrong if i have money in my itunes account, but when i go to  purchase it wants billing info?
    thanks!

    What verification needed, if there is money in the account?

  • Unique session reference ?

    So I'm using session management and I need a unique session identifier to use as a key field in a table
    Is session.sessionID ok for this ?
    table 'webCart'
    sessionID, itemID, qty
    I'm happy once the session times out, the cart row(s) won't be available

    Thanks Dan
    So the session ID isn't truly unique ?
    I'll use the UUID function then
    I'll save the UUID as a session variable
    I'll use the variable as my unique key in the webCart table, so I can insert / retrieve rows for that particular session

  • How much RAM needed for the DB box

    Hi,
    Can someone share with me the technical way to do calculation of how much of RAM needed for a new Linux box with estimation of 500 users. I hope this calculation can also allow me to breakdown how much MEMORY needed for each session.
    Please recommend any site that I can refer to if any. TQ.

    My project start with Oracle 9i R2 (9206) on Linux (not yet confirm on the platform and etc). Just assume I will use Linux Red Hat Adv Sever latest version.
    Hence how many GB of memory for the box is sufficient to handle 500 connections. Pls guide me the formula to derive the calculation. TQ

  • I just bought a adobe photoshop elements 12 for windows in the store , why the serial number on the box is invalid ?

    i just bought a adobe photoshop elements 12 for windows in the store , why the serial number on the box is invalid ?

    Hi,
    Does your serial number have 24 digits starting with 1057?
    Note: Please don't quote your number as this is a public forum
    If your number is not like that it may be a redemption code. See if the following helps.
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    If you need help in finding a serial number inside the box, please see here
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    If you still need help, then you will have to contact Adobe. Look at the end of the page I first gave and you should see "Still need help" - click on that.
    Good luck
    Brian

  • Why do I need to verify my credit card info if an App is free?

    Why do I need to have a valid credit card in my Apple Account if an App is free? For example I have been trying to download the free app to Google Earth to my iPad2. I really want to just delete my credit card except for those few times when I buy something. I don't want it on my iPad2 all the time. I know there is a way to do this as the woman at the Apple store did it for me, but now I don't know what steps she took.
    Thanks very much.

    Because even a free app is recorded as and is considered a purchase for accounting purposes. You receive an email receipt for the free purchase or download, etc.
    Your credit card on file is not on your iPad all the time. It is stored on Apple's iTunes servers only. No one that uses your iPad or that has access to your iPad in the even it were lost or stolen can't access your credit card number and other required info in order to use it. In order to download a free or paid app, you must manually enter your iTunes account password, which no one else knows or should not know.
    http://support.apple.com/kb/ht2534

  • Why is my serial number for iPhone 3GS not accepted with apple support?

    I tried to register my iPhone 3GS serial number with apple support but could not. Why?

    You need to contact Apple for the answer to that question
    Apple Contact USA
    http://www.apple.com/contact/
    Contacting Apple World Wide for Support and Service
    http://support.apple.com/kb/HE57

  • Why do i need payment informations for free games

    why do I need payment information for free games?

    You can create an iTunes account without payment info on file.
    Once you have a card on file, though, iTunes wants it to be current/valid. Don't think there's any way around it.

  • Why do I need a membership to install Lightroom 5 when I have paid already for the software and need to activate it and I will be finished?

    Why do I need a membership to install Lightroom 5 when I have paid already for the software and need to activate it and I will be finished?

    you don't need a cc subscription to use the purchased copy.
    download the installation file and use your serial number to activate when given the licensing option during installation.  you should install 5.7 instead of installing 5.0 and updating.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for