Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7981201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:18:00+00:00 2026-06-04T10:18:00+00:00

I have exam question and can’t find answer. Why sid is mandatory required to

  • 0

I have exam question and can’t find answer. Why sid is mandatory required to perform KILL SESSION command?
KILL SESSION syntax: ALTER SYSTEM KILL SESSION 'sid,session#[@inst_id]' [IMMEDIATE];
Where sid is a ‘unique’ session identifier. Unique in quotes because it is unique in current moment, Oracle server can have, for example, session some sid, but after this session is over, this sid can be used for other session. Sid is analogy pid in OS.
Session# is a serial session number; it is a session counter. Server clear the counter at DB startup. So, session# is a really unique identifier for session.

I don’t understand why sid is mandatory for KILL SESSION command. I think, it is possible to use session# only.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:18:01+00:00Added an answer on June 4, 2026 at 10:18 am

    I found it! Sequence for serial# is cyclic. Numbers will be reused after 2 billions logins if int used, or after 32k if short used. So, using serial# without anything else doesn’t provide really unique enumerating.
    But sid is unique at a moment. So, pair sid,serial# is really unique.
    You can’t use serial# or sid to manage sessions, you should use it in a pair.

    Thank you for your time!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had this question during an exam, and I couldn't find a quick answer.
I have a question in my todays Exam in which I have to determine
This is a scjp mock exam question. Suppose I have the following two files:
I have some question from the exam in which I need to deduce the
this is really hard question. I have an exam. And questions will be like
Possible Duplicate: PHP __get and __set magic methods I have an exam question on
Brief: This is a past exam question from a Miranda exam but the syntax
I'm revising for a introduction to programming exam and I have a question which
I have a practice exam for my compilers course with the following questions that
I have an exam tomorrow and I was trying to understand this doubly linked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.