Not different session among v$ session and parameters of v$ resource_limit

Dear Frieends,


I have a confussion on two parameters, one is "v$ session" and another "V$ resource_limit. Look at the following result:

SQL > select to_char (sysdate, ' ' Dy DD-Mon-YYYY HH24:MI:SS) as 'Current time' from dual;

Currently
---------------------------------------------------------------------------
Monday, March 9, 2009 17:02:06

SQL > select count (*) in the session of v$.

COUNT (*)
----------
271

SQL > select * from v$ resource_limit where resource_name = "sessions";


RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_AL LIMIT_VALU
------------------------------ ------------------- --------------- ---------- ----------
sessions 280 408 445 445


I see here that at a point given to the database, the number of meeting of the session $ v "271" so that the number of session in the "v$ resource_limit" is "280". Here, I get some differ among these parameters.

Everybody would say please why the number of sessions differ between v$ session and parameters of v$ resource_limit.

Waiting for your kind response...

There are several bugs related to v$ resource_limit and current usage.
For example check metalink Note 3896119.8

and this current_utilization rapidly changing over time. So it can be simply you are not able to measure at the same point in time both views.
And v$ session is most trustfull to find current sessions.

Tags: Database

Similar Questions

  • Why not include the tag Module syntax and parameters on the Page Tag Ko?

    Colombia-British team @.

    Tags - fast in the KB reference Page http://KB.worldsecuresystems.com/134/bc_1342.html seems to be the place that is authoritative for the tags. What is lacking is the Module about the syntax and available parameters (current version).

    Currently, we are obliged to try to assemble this information ourselves from multiple resources and this leads to obsolete or incomplete information, confusion and loss of productivity of your customers.

    I would like to see this added info and links back to each module page KB from here. Developers having to create their own documentation solutions to fill the gaps in the BC docs takes away from the time of construction sites and increase the sales. Instead of promoting other "partners" who build the subscription models filling your poor docs, you should invest in the documentation of quality for us all.

    What prevent you from adding this information to this already popular resource page? Is there a better solution?

    http://helpx.Adobe.com/business-catalyst/KB/modules-quick-reference.html

    The two joined the forums on the right landing page.

  • How to find who holds a SQL lock when its not v$ session.sql_id and v$ session.prev_sql_id

    Hi all

    Looking a little nudge in the right direction on a strange problem with blocking locks in our database of BSE...

    We occasionally will blocking locks in our EBS 12.1.3 database (11.2.0.4 CARS on OEL5).   I can easily determine the INST_ID select and SID that keeps the lock with this:

    Select final_blocking_instance, final_blocking_session from gv$ session where lockwait is not null;

    and can use these results to find the specific object being blocked by querying a gv$ locked_object where session_id = xxx and INST_ID select = xxx.   These sessions blocker are generally inactive to an event of "SQL * Net client message"-while they seem to be connected to the database users who need simply to commit or rollback transactions.   Usually, when I see this type of behavior, the specific application involved in the unresolved external transactions is easy to find by taking the SQL_ID (or sometimes the PREV_SQL_ID) value of gv$ session and questioning gv$ sql.  I can then use this information to better understand what users are trying to accomplish and help them understand what they need to change to avoid the deadlock problem.

    But recently, we have integrated the add-on of Oracle content management and it seems to have added (I suspect indirectly) triggers for many forms EBS our users work in.  Now that we know these "locks blocking inactive form" - and the SQL_ID value is zero and related PREV_SQL_ID sql_text is

    SELECT * FROM AXF_COMMANDS_SYN WHERE FORMID =: b1 AND (MENUTYPE = 'SPÉCIAL' MENUTYPE or = "ZOOMANDSPECIAL") AND AXF_COMMANDS_SYN. SPECIAL 'n' IS NOT NULL


    Although I can see SGS $ locked_object both the text of the SQL being run by sessions which blocked the blocking the locks held by the session is on an object (for example RA_CUSTOMER_TRX_ALL) that does not seem to be at all related to AXF_COMMANDS_SYN.   The AXF schema has been added as part of the deployment of content management.


    So, my thought is that a different cursor open (previous) held by the session is the real unresolved SQL that maintains the lock.  Is there a way to determine the SQL_ID of this query "indirectly" from gv$ locked_object / gv$ transaction, gv$ open_cursor, etc.?  I can determine what is the problem and what user, we need to talk to him - but I would really like to find the exact SQL that is involved.   I am also to establish if the new behavior is somehow contributing to locking problems blocking or just 'a Kipper"- and I think I know which statement SQL Gets the lock will help me to move forward with the investigation.  I'm sure I could find this info by tracing the blocking - session but the problem occurs rarely, and I'm not able to determine which trace session until it is too late... :-)


    Any recommendations would be appreciated, and my apologies for the long post...









    A session may issue a followed LMD of 5 requests without issuing a commit.

    Another session may be attempting a DML when the 5th request session above is running.  Querying V$ session for the first session SQL_ID or PREV_SQL_ID wouldn't you say the first SQL DML.

    You can walk backwards through V$ ACTIVE_SESSION_HISTORY (if you have the License Pack diagnosis) and determine all SQL_IDs of this first session if they did get captured in V$ ACTIVE_SESSION_HISTORY or DBA_HIST_ACTIVE_SESS_HISTORY.  (Attention: not all SQLs are captured - particularly short-lived SQLs can't get captured)

    Hemant K Collette

  • DBMS_LOCK question - can not relase a different session locking.

    Hello

    I'm using ORACLE DATABASE 11 g. I use a default package from the oracle: -.

    DBMS_LOCK

    I'm trying to acquire a LOCK with this procedure, then release after its done.

    To ACQUIRE lock we use: -.
    DBMS_LOCK.ALLOCATE_UNIQUE (p_lockname,lockhandle,5);
    DBMS_LOCK.REQUEST(lockhandle,6,p_timeout);
    For LOCK of LIBERATION that we use: -.
    DBMS_LOCK.ALLOCATE_UNIQUE (p_lockname,lockhandle,5);
    DBMS_LOCK.RELEASE(lockhandle);
    The main problem is that I tried to the end of the database. Here are the steps I followed: -.

    (1) connect to SESSION 1
    (2) ACQUIRED a lock on the object - Got "0" (zero) in return which means funtion has run successfully and I acquired the lock.
    3) being in the same session I tried to RELEASE the lock. Once again he returned me '0' and lock went out with success.

    In this big way all worked. When I changed the session to release the lock, I got error. Here are the steps: -.

    (1) connect to SESSION 1
    (2) ACQUIRED a lock on the object - Got "0" (zero) in return which means funtion has run successfully and I acquired the lock.
    (3) disconnect from SESSION 1.
    (4) to connect to the SESSION 2
    (5) have tried to release the LOCK, but this time the function has returned - "4" (four), who says that you are not the owner of the lock, so you can not release.


    Each time, I am connected and working with the same username, just opening new sessions of different machines.


    The image is very clear that if a session lock the object the same session should release but, due to any reason if the session has gotten so closed is their method, we can release the lock on this object. Begin in the other session if I run
    select * from sys.dbms_lock_allocated where name not like 'ORA$%';
    
    NAME                   LOCK ID            EXPIRATION
    ----------------------------------------------------------------
    CB001201261     1073743231     3/1/2012 3:07:02 PM
    ZZZ2011322     1073743358     3/1/2012 8:04:19 PM
    Now, I see here that these objects are locked some other session but I can't release them.

    Please just guide me how can I RELEASE locks on objects ACQUIRED in a different session.
    Also if I can know which of the session to which this LOCK got ACQUIRED.


    Thanks in advance.

    As I said alreadyy, look in DBA_LOCK for a type of lock "PL/SQL locked user.

    The session id will be there, you can look in v$ session for the series # as well.

  • Hotmail does not save my e-mail address and password from one session to the other

    original title: record the address hotmail and password

    Hotmail does not save my e-mail address and password from one session to another even if I check the boxes to remember my email address and password. Why didn't hotmail is no longer remember my info?  How can I fix this?

    Hello

    I'm sorry, but we cannot help with hotmail problems in these forums in response to vista

    Please repost your question in hotmail in the hotmail link below forums

    http://windowslivehelp.com/product.aspx?ProductID=1

  • Received phone calls from Adelaide number telling me that my computer will crash in two days, if I do not open a session and follow his instructions because of Trojan virus

    original title: Trojan warnings

    Received phone calls from a number of Adelaide telling me that my computer will crash in two days, if I do not open a session and follow his instructions because of Trojan virus.  Nobody gave his name and phone number and said she is Microsoft?  She also told me that it was free and part of Windows security. How will I know if it is authentic or not?

    Hello

    It's a SCAM

    Microsoft does NOT contact you unless you have for them to

    read this:

    http://www.Microsoft.com/security/online-privacy/msName.aspx

    Microsoft has none of the unsolicited telephone calls to help you fix your computer

    In this type of scam cybercriminals are calling you and claim to be of Support technique Microsoft. They offer help with your computer problems. Once scammers have earned your trust, they try to steal and damage your computer with malicious software, including viruses and spyware.

    Although the law enforcement can trace phone numbers, often authors use pay telephones, disposable cell phones or stolen cellular phone numbers. Better avoid fooling themselves rather than try to repair the damage afterwards.

    Treat all unsolicited sceptically telephone calls. Don't provide personal information.

    If you receive an unsolicited call from someone who claims to be from Technical Support Microsoft, hang up. We do not have such calls.

    If you think you might be a victim of fraud, you can report it. For more information, see: what to do if you think you have been scammed.

  • Firefox opens the last session and tabs regardless of settings.

    For the last month or two, I had this problem as well as others. Kept getting a popup to set my search engine, I did several times without success. This question went. Tab question remains.

    No matter what setting I use open the previous session. I have Tab Mix Plus 0.4.1.8 so I've disabled that and checked the settings in FF to open to my Home Page. No good, don't always open the previous session.

    This was not a problem with Tab Mix Plus over the years that I used it. Exactly, I removed it from the Add - ons. Options of FF and together to start with the Home Page and restarted FF but always opens the previous session.

    Including a snapshot of the modules enabled.

    What is the cause?

    Olhank

    Your list of details of the system shows that you have a user.js file in the profile folder to initialize prefs each time you start Firefox.
    The user.js file will be present if you or a other software created this file and normally will not present.

    You can check if you have a user.js file in the Firefox profile folder that affects the pref browser.sessionstore.resume_session_once true value.

    You can check its contents with a text editor (right click: 'Open with'; do not double-click).
    The user.js file is read whenever Firefox is started and initializes the preferences to the specified value in this file, so the preferences set via user.js can be changed temporarily for the current session.

    You can remove the user.js file if you do not create this file yourself.

    You can use this button to go to the current Firefox profile folder:

    Windows hides certain default file extensions.
    Among them .html and .txt, so you can see only a user file name without .ini and .js file extension.
    You can check the type of file (file extension) in the properties of the file via the context menu in Windows Explorer.

  • I have the two Master Sync activated WITHOUT be asked for master password said at the start of the session and password?

    The basic question is that whenever I start Firefox, I am invited, a few seconds later, my master password, regardless of if I will actually connect a site for which I saved my credentials.
    This same number as well as a replica of his original poster chosen as the best answer has been published on the following link: https://support.mozilla.org/en-US/questions/1039575

    I'm in the same situation as this poster, but I don't want to turn off sync. I need the master password set to protect my passwords stored, and I need the Sync feature enabled to share my profile between different computers that I use.
    If I close the master password prompt at the start of the session and then I go to a page that I recorded the password, I should I get prompted again, and that's all I need. Also, I've installed Sync do NOT share my passwords stored, where the master password invite so that the effect is useless in my case.

    So the question is simply how can I turn off the prompt for password at startup, have it pop up when you access a site that needs a password stored (or ask if I want to save a) and keep the clock running without sharing passwords.

    Thanks in advance.

    No, this is not possible.
    Sync must retrieve the journal of authentication data in password manager and which requires to enter the password to unlock the password.

    The synchronization used in Firefox 34 version then use password manager to store the name (e-mail) and password to use to connect to the synchronization server.
    The chrome://FirefoxAccounts entry in the Password Manager stores (kA and kB) credentials in JSON format.
    Earlier versions of Firefox used to store these data in the signedInUser.json file in the profile folder, but the current version only stores the sessionToken in this file and must the Manager password for the credentials of the synchronization.

  • disinfect and validation of sessions and cookies

    From a security point of view I'm disinfection and input validation.

    Create a session using the displayed username that is disinfected and validated first on a registration of the user.

    On further visits when the usernames in their username is validated data base and again a session is created and used throughout their pages.

    I put only ever the SESSION for the user, but in my code at the end of the session (according to the information I have seen and read), I finished the session with:

    unset($_SESSION['username']);

    $_SESSION = array();

    invalidate the session cookie

    If (isset($_COOKIE['username'])) {}

    setcookie ('username', ", time () - 86400, ' / ');

    }

    session_destroy();

    Now, I never really the cookie or use it to my knowledge but I have seen that this code should be used to end a session, so I presume that there is a valid reason and that the SESSION must use the COOKIE and I wonder if $_COOKIE ['username'] must be disinfected whenever the user navigates to a different page in their administration pages I saw that filter_input functions have an option to filter the entrance of cookie. I apologize for not understanding what are cookies in this situation, everything I do is actually set during the connection session and finish on logout.

    I do something like:

    If (filter_has_var (INPUT_COOKIE, "username")) {}

    $cleancookie = filter_input (INPUT_COOKIE, 'username', FILTER_SANITIZE_STRING);

    $_COOKIE ['username'] = trim ($cleancookie);

    Maybe it would also be useful if I knew why I had reset the session cookies every time I have finished a session, if someone could kindly explain.

    Following disinfection session cookies what the stored value in $_SESSION ['username'], so that the user moves between their admin pages this value should be reorganized and if so please could someone advise me how best to do this. Maybe I should validate against the expected values of just say letters and numbers?

    Thank you in advance for any help, information and answers to help me to understand and solve the problems of security above.

    tessimon wrote:

    invalidate the session cookie

    If (isset($_COOKIE['username'])) {}

    setcookie ('username', ", time () - 86400, ' / ');

    }

    .. .in my code is not relevant in this situation and can be removed?

    At the start of:

    unset($_SESSION['username']);

    session_destroy();

    Yes. That should be enough.

    What about the security of the SESSION ID variable is stored as a cookie on the user's computer, can it be corrupted?

    Once someone has been connected, it is generally considered a good idea to regenerate the session ID using session_regenerate_id(). To do that only once in respect of the identification of the user information has been verified.

  • How to record a session .and there continue another time

    When I work on a particular subject, after a while, I want to interrupt my work in another time, so I need can continue from the previous session.

    You can use the Session Manager addon to save multiple sessions and restore them later.

    There's no other solution (maybe except a few other addon). Firefox itself does not support storage of multiple sessions.

  • After you type the master password in session can force type master password once again without ending the current session and start new session?

    Sometimes after using the password to access an account during a given session of firefox, I want to "repeal" this ability of automatic access (i.e. require type the password again once) without having to put an end to the current session and restart firefox.

    It's nice to only have to type the password once per session, there are times when after launching an action that I would let the browser unattended for a short period but to prevent others to access sensitive information on other sites if they can't my master password. Note that this is not the same thing as "locking the browser. Currently, the only way I know to force it is to kill the session and restart the browser but it's not very satisfying if I really want to stay connected (allowed) to a particular site. I hope that adding a button in the Security tab "requires the master password for the current session" would be a simple solution to implement? Thank you for your attention.

    You can connect from the software security device (e.g. click Cancel in the dialog box display the passwords) to force them to return to the MP once more.

    • Tools > Options > Security: passwords: "saved passwords" > "show passwords".
    • Tools > Options > advanced > encryption: Certificates > safety devices: software security device: Logout button
  • What are the differences between pga memory max session and pga session in memory?

    Hi all

    What are the differences between pga memory max session and pga session in memory?

    SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

    WHERE s.statistic # = n.statistic #.

    AND n.name = 'pga session in memory. "

    SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

    WHERE s.statistic # = n.statistic #.

    AND n.name = 'pga memory max session ";



    Note that I have read the documentation. However, it is not clearly explained.


    Thank you

    John Stegeman wrote:

    I agree with the comments of the Ed, NightWing.

    You do not have a story to ask questions that are clearly answered in the documentation.

    Mind your own business. If you answer the question, so answer! Otherwise, please stop the thread engrossing.

  • VM Player 5 will not open session VM Workstation 10

    I created a virtual machine using Workstation 10 and copied to the session of the computer to another virtual computer - running a Player 5. When I try to login to virtual machine, I get an error message:

    The configuration file 'C:\WinXP Pro SP3 VM\WinXP Pro SP3 VM.vmx' was created with a product from VMware that is not compatible with this version of VMware Player and can not be used.

    Cannot open configuration file C:\WinXP Pro SP3 VM\WinXP Pro SP3 VM.vmx.

    Both PC used to create the VM session and try to start it, are company Win7-64. I enclose a copy of the error message.

    I have encountered this problem before - so I do not know how to proceed. Any help would be appreciated.

    Thanks - Ian

    Create a new virtual machine in VMware Player using the existing virtual hard drive or manually edit the .vmx config file change to 9 virtual hardware version.  Take a look at: versions of machine material virtual (1003746)

  • When you open a new session and after a decline in all the video files in the content area (the sound and the video is very good). After you have chosen a selection of clip the first clip that I post on the time line is equipped with sound. then the next

    When you open a new session and after a decline in all the video files in the content area (the sound and the video is very good). After choosing a selection of clip, the first clip that I post on the time line is equipped with sound. then the next clip, I chose (not dose issue)
    will have no sound. (but in the contact box everything its fine) Why is this?

    Why is this?

    Because you forgot to patch source audio track.

  • Insert the same record (same key) in different sessions

    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod
    PL/SQL Release 10.2.0.5.0 - Production
    CORE Production 10.2.0.5.0
    AMT for Linux: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production

    Hello! I am inserting the same record in 2 different sessions without validation using TOAD:
    insert into FIFAPPS.TESTES values(3);
    in this table, where ID is a key:
    CREATE TABLE FIFAPPS.TESTES
    (
      ID  NUMBER
    )
    In the first session, it goes well, but for the next session... It of just execution and never ends. My question is what happens when I insert the second session? TX in advance.

    You have a unique index or primary key (which will automatically index) on the column?

    Oneself up to the entrance in the first insert your index? Since you insert same value in another session, he waits for the lock on index to be released. If the first session agrees, you will get an error (duplicate). If the first session, second session restorations go...

Maybe you are looking for