Sessions INACTIVE both in the database

Hello

In fact, PMON will be clear all inactive sessions database.

But I can see there are sessions such as older then 3.4 days.

Why PMON is not cleared. ?
On what intervals PMON will make cleanup inactive sessions.


--
Thanks in advance.

Hello;

Process monitor (PMON) performs the recovery process when a user process fails.

A session remains inactive because not he failed. I support some applications where users 'Camp' on until my profile settings to kill them.

PMON doesn't have to kill an idle session so that it works as expected.

If you want to set a limit to use of inactive profile. (IDLE)

See Architecture of process - the doc Oracle "Database Concepts" and CREATE a PROFILE in "Database SQL Reference" for more information.

Another way to look at it is that the Session is NOT running in SQL.

Best regards

mseberg

Published by: mseberg on May 10, 2012 17:04

Tags: Database

Similar Questions

  • What will happen if immediate restore session / cancel stop of the database?

    I have a long session restoration after I killed him. Session state is 'DEAD' and when I check the transaction of $ v, it will take nearly 24 hours to a complete restoration. We can not wait if a long time because we have another job dependencies need restoration must be completed as soon as possible. In the end, we plan to stop immediately. This will help? What will happen to the restore session if we issue immediate shutdown or shutdown abort? Is the restoration completed successfully?

    If you SHUTDOWN ABORT when there are very many active transactions or be restored, then the default FAST_START_PARALLEL_ROLLBACK that occurs at the start of subsequent proceedings in fact means that the restore is performed more quickly.
    However, if it is a large single transaction as a DELETION on a table with an Index, it is best to disable FAST_START_PARALLEL_ROLLBACK before restarting the Instance immediately after a SHUTDOWN ABORT. Parallel cancellation of a single important transaction with an Index can be slower!

    FAST_START_PARALLEL_ROLLBACK is a parameter instance that LOW as default (IE a value of 2 x CPU_COUNT) and can be set to HIGH or FALSE.

    Note: If you SHUTDOWN ABORT and START the database, Oracle has to do a Rollforward of Redo Logs (for data blocks that have not been updated) before that, an OPEN. It is generally a very fast operation. Uncomitted transaction cancellation is an operation delayed - this means that the restore is initiated by SMON or parallel slaves after the database is OPEN. If a block containing a row that has been updated and not committed is referenced by a database session after OPENING, but before it has been restored, made Oracle a rollback accelerated this line of the block and then continues to the restoration of other lines in the background.

    Thus, if the transaction had been on the Table 'A' and the database is SHUTDOWN ABORT and commissioning, users can still access and update of all other tables other than table 'A', while the transaction is put in place, in the background, after the OPENING.

    Hemant K Collette

  • How can I insert values textarea one both in the database?

    I have a simple form:

    Select list - populated by a recordset that gets the list of technicians.   In this format: Label - > name of Tech value - > ID Tech

    TextArea - paste zip codes in this tech services.    In this format: 12345,12346,12347, etc...

    When I want to send the form, I want to take all postal codes and insert them into the database as a single record each with the id of the tech of the selection list.

    The code I have is:

    $zipcodes = explode(",", $_POST['textarea']);
    $countZips = (count($zipcodes));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
    foreach($zipcodes as $key=>$value)
    {
    
    
    while ($countZips >= 1) {
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    }
    
      $insertSQL = sprintf("INSERT INTO zip_zip (zip_code, tech_id) VALUES (%s, %s)",
                           GetSQLValueString($value, "int"),
                           GetSQLValueString($_POST['select'], "int"));
    
    
      mysql_select_db($database_localhost, $localhost);
      $Result1 = mysql_query($insertSQL, $localhost) or die(mysql_error());
              $countZips--;
    }
    //Done value exists
    //Now moving to next page when done
    } 
              $insertGoTo = "index.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $insertGoTo));
    }
    //END
    

    The question is - Let's say I have paste 105 postal codes into the text box.   It inserts the FIRST postal code 105 times in the database instead of insert postal code 105 individually.

    No idea what I'm doing wrong here?

    Thank you!

    You loop does. Delete this While loop, it is not necessary, and you don't need to follow the count. The foreach loop does all the work.

  • How to create the database links

    Hello

    We have two databases on two servers differenet and we want both of the databases to be synchronized and application runs only on a single server.

    It is possible through links DB if yes then how.

    If a better solution than DB links is pl tell.

    Hello

    Edit the tnsmaes.ora file and add the entry to the database and verify the connection using tnsping .if connection is ok and then create a database link in oracle

    CREATE DATABASE LINK link_name - name of the link
    CONNECT username - user name
    IDENTIFIED BY password - password of the user
    With the HELP of "Database_sid" - name of the database

    Created database link

    Select * from owner.table_name @ link_name

  • Database contains the session after having disconnected the DB!

    Dear friends,

    I use Oracle10g database (10.2.0.4) than our production server to AIX 6.1. Recently, we buy
    an application that is used for a banking module. The username "INCHEQS" application.

    Now the problem is, when we are connecting through this user from the client end then,
    many users logged on, even if the users are not logged. for example, if a disconnection from the user
    Since his session but it connected session always in my database.

    Please see the output:

    SQL > select count (*) in the session $ v where username = "INCHEQS";

    COUNT (*)
    ----------
    100

    SQL > select username, status from v$ session where username like ' INCHEQS %;

    STATUS OF USER NAME
    ------------------------------ --------
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    IDLE INCHEQS
    .......................................
    .......................................

    100 selected lines.


    In the output above of my production database, all users above are not connected, but the
    continuous session on the database. Now, how can I solve the problem. Is there a partners
    Oracle parameter (rather than RESOURCE_LIMT) to remove all INACTIVE users above after awhile.
    Here, I mentioned that it is not possible to activate the 'RESOURCE_LIMIT' parameter in my database.
    Edited by: shipon_97 26 August 2010 14:04

    Hello

    Create a new profile with a few seconds idle (based on your observation and discussion with the owner of the application) and send it back to the user.

    Anand

  • Active session on the database

    Hi all

    again, I have a question, this time about the rules and alarms.

    I found the rule on the total Session limit... This rule indicates the percentage of the database connection.

    My question is... where is the applicable rule for the number or percentage of Session Active, because it is active and Total Session are not the same thing. I use Oracle cartridge 5.7.5.2

    Maybe someone knows how to create the rule for number of Session Active, because this number is obviously on the dashboard.

    Thank you

    Nikola

    Hi Nicola,

    You can certainly implement such a custom rule because relevant data are already available in Foglight topology.

    You can create a custom rule using the topology summary of the session:

    Relevant metrics that are located under the path /clusters/ [instance X] /sessions_summary_data/ topology

    • active_sessions
    • active_sessions_pct

    If you don't know how to create a custom rule, please contact your account manager, Foglight and it will direct you to the relevant PSO object that it can create for you.

  • How to identify inactive contacts in the Eloqua database?

    We want to identify those contacts who are not active in any Email or LP.

    Hi Sheershak,

    The filter criteria use as 'not sent any Email' or 'not opened any Email. Hereby, we can identify inactive contacts of Eloqua database.

    To the landing pages, we also use same practice to find out inactive contacts.

    edynamic expert Eloqua

  • Database does not start... ALTER database open; change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.

    HI during startup of the database of the following errors is. Please help solve the problem.

    SQL > alter database open;

    change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.

    ============================================================

    Please see the alerts log entries

    --------------------------------------------------------------------------------------------------------------------------------

    Commissioning:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With the options of partitioning, OLAP, Data Mining and Real Application Testing.

    Using parameters in spfile D:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEATTNDPRD server-side. ORA

    Parameters of the system with default values:

    process = 400

    sessions = 624

    memory_target = 4G

    control_files = 'D:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB0M_. CTL.

    control_files = 'C:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB13_. CTL.

    DB_BLOCK_SIZE = 8192

    compatible = "11.2.0.0.0."

    log_archive_format = "ARC%S_%R.%T."

    db_create_file_dest = 'D:\oracle\oradata. '

    db_create_online_log_dest_1 = "D:\oracle\oradata".

    db_create_online_log_dest_2 = "C:\oracle\oradata".

    db_recovery_file_dest = 'C:\oracle\oradata\flash_area. '

    db_recovery_file_dest_size = 8G

    undo_tablespace = 'UNDOTBS1.

    Remote_login_passwordfile = "EXCLUSIVE."

    db_domain = «»

    dispatchers = "(PROTOCOL=TCP) (SERVICE = ATTNDPRDXDB)" "

    audit_file_dest = "D:\APP\ADMINISTRATOR\ADMIN\ATTNDPRD\ADUMP".

    AUDIT_TRAIL = 'DB '.

    db_name = "ATTNDPRD".

    open_cursors = 300

    diagnostic_dest = "D:\APP\ADMINISTRATOR".

    Sun 24 May 13:43:09 2015

    PMON started with pid = 2, OS id = 5792

    Sun 24 May 13:43:09 2015

    VKTM started with pid = 3, OS id = 6500 high priority

    VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms

    Sun 24 May 13:43:09 2015

    GEN0 started with pid = 4, OS id = 13072

    Sun 24 May 13:43:09 2015

    DIAG started with pid = 5, OS id = 1424

    Sun 24 May 13:43:09 2015

    DBRM started with pid = 6, OS id = 8240

    Sun 24 May 13:43:09 2015

    PSP0 started with pid = 7, OS id = 2980

    Sun 24 May 13:43:09 2015

    DIA0 started with pid = 8, OS id = 12956

    Sun 24 May 13:43:09 2015

    MA started with pid = 9, OS id = 13356

    Sun 24 May 13:43:09 2015

    DBW0 started with pid = 10, OS id = 14248

    Sun 24 May 13:43:09 2015

    DBW1 started with pid = 11, OS id = 17900

    Sun 24 May 13:43:09 2015

    LGWR started with pid = 12, OS id = 5564

    Sun 24 May 13:43:09 2015

    CKPT started with pid = 13, OS id = 16736

    Sun 24 May 13:43:09 2015

    SMON started with pid = 14, OS id = 14068

    Sun 24 May 13:43:09 2015

    RECCE has started with pid = 15, OS id = 16288

    Sun 24 May 13:43:09 2015

    MMON started with pid = 16, OS id = 10884

    commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...

    commissioning or shared server 1...

    Environment ORACLE_BASE = D:\app\Administrator

    Sun 24 May 13:43:09 2015

    ALTER DATABASE MOUNT

    Sun 24 May 13:43:09 2015

    MMNL started with pid = 17, OS id = 16128

    Mount of redo thread 1, with mount id 3325657453

    Database mounted in exclusive Mode

    Disabled lost write protect

    Completed: ALTER DATABASE MOUNT

    Sun 24 May 13:43:23 2015

    change the database open

    Sun 24 May 13:43:23 2015

    LGWR: FROM PROCESS ARCH

    Sun 24 May 13:43:23 2015

    Arc0 started with pid = 21, OS id = 10084

    Arc0: Started archiving

    LGWR: FROM PROCESS ARCH COMPLETE

    ARC0: FROM PROCESS ARCH

    Sun 24 May 13:43:24 2015

    Arc1 started with pid = 22, OS id = 18400

    Sun 24 May 13:43:24 2015

    ARC2 started with pid = 23, OS id = 17280

    Arc1: Started archiving

    ARC2: Started archiving

    Arc1: become the "no FAL' ARCH

    Arc1: become the "no SRL" ARCH

    ARC2: Become the heartbeat ARCH

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.

    ************************************************************************

    You have choice to free up space in the recovery area:

    1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard

    then consider changing POLICY of DELETE ARCHIVELOG RMAN.

    2 back up files on a tertiary device such as a tape with RMAN

    SAFEGUARDING RECOVERY AREA command.

    3. Add space drive and increase the db_recovery_file_dest_size setting to

    reflect the new space.

    4 remove the unnecessary files using the RMAN DELETE command. If a service

    the system control has been used to remove the files, and then use the RMAN DUPLICATION and

    Commands DELETE has EXPIRED.

    ************************************************************************

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-19809: limit exceeded for file recovery

    ORA-19804: cannot recover disk 44571136 bytes limit 8589934592 space

    ARCH: 19809 error creating archive log file to ' C:\ORACLE\ORADATA\FLASH_AREA\ATTNDPRD\ARCHIVELOG\2015_05_24\O1_MF_1_10343_%U_. ARC'

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:

    ORA-16038: log 2 # 10343 sequence can be archived

    ORA-19809: limit exceeded for file recovery

    ORA-00312: wire 2 1 online journal: ' D:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYD8B_. JOURNAL"

    ORA-00312: wire 2 1 online journal: ' C:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYDF6_. JOURNAL"

    USER (ospid: 10400): put an end to litigation because of the error 16038

    Sun 24 May 13:43:24 2015

    ARC3 started with pid = 24, OS id = 2188

    Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_arc2_17280.trc file:

    ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.

    ************************************************************************

    You have choice to free up space in the recovery area:

    1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard

    then consider changing POLICY of DELETE ARCHIVELOG RMAN.

    2 back up files on a tertiary device such as a tape with RMAN

    SAFEGUARDING RECOVERY AREA command.

    3. Add space drive and increase the db_recovery_file_dest_size setting to

    reflect the new space.

    4 remove the unnecessary files using the RMAN DELETE command. If a service

    the system control has been used to remove the files, and then use the RMAN DUPLICATION and

    Commands DELETE has EXPIRED.

    ************************************************************************

    Instance of stopped by USER, pid = 10400

    --------------------------------------------------------------------------------------------------------------------------

    Regarding

    Ngoyi

    Hello

    Now it works very well... with following

    --------------------------------------------------

    using sqlplus

    • Startup mount
    • ALTER database noarchivelog;
    • ALTER database open;

    -------------------------------------------------------------------------------

    Concerning

    Ngoyi

    -------------------------------------------------

  • Cannot open a session in the database

    Hello

    I have a problem to connect to my database 11.1.0.7 on linux 64.
    There have been migrated from 9.2.0.4 and everything was fine, but now I am not able to connect to the database.

    Go when I can connect is the startup of the database in RESTRICTED mode and I cold connection under sys (sysdba).

    But when I leave this mode, no one can connect.

    sqlplus is freezes and I have to kill this session.

    What could be a reason? All the settings?
    It's strange to me because he was working...

    Thank you.
    Kind regards
    Tom

    Cross-using the check job_queue_process

    SQL > show parameter job_queue_processes

    Then stop and start the database, see if the problem persists.

    Thank you
    http://www.DBAs-Oracle.com/

  • Idle sessions are automatically generated in the database

    I am facing a strange problem to get the very large number of idle sessions generated th the database server which leads to closing of connection is.
    The error reads as "Failed to check-out a demand account held the failure of connection of the Application Module.»
    This happens whenever I execute the following code:

    String amDefName = "amendprgo.model.CSDInvFRCAmendPrgoServices";
    String configName = "CSDInvFRCAmendPrgoServicesLocal";
    ApplicationModule App1 = Configuration.createRootApplicationModule (amDefName, configName);
    String voInstanceName = "prgoHdrRO";
    ViewObject prgoHdrROVO = app1.createViewObjectFromQueryStmt (voInstanceName, "select * from INV_PRGO_HDR");
    prgoHdrROVO.setWhereClause ("PRGO_ID =" + tempRow.getAttribute ("PrgoId") +' and DEPOT_CD = '0' and ITEM_CAT = 'I3' ");
    prgoHdrROVO.executeQuery ();
    If (prgoHdrROVO.getEstimatedRowCount () > 0) {}
    Returns true;

    I know there is a process of creating a connection and the View object in part of model in JDeveloper, but I want to know why this problem occurs.

    As I said before

    Configuration.releaseRootApplicationModule(app1 , true);
    

    My advice is to read the links I gave you!

    Timo

  • Find the name of the database sessions via the database link

    Hello
    I have a database in which I can see a few sessions that are connected to this database of one of my server that hosts 2 databases. Now if I have queries session $ v on my local database, I can only find the host name in the column programme and module of v$ session view. How will I know what database, these sessions are established because I have two databases on the remote host, hence these sessions are estableshed.

    Thank you

    Salman

    Hello

    You can query the column process v$ session. This column contains the pid of the source database server process.

    You will find on your source machine (in your remote database of respectively two) out this pid belongs to what databases.
    If its unix, you can use (ps - ef | grep ) or if it is windows, then you can query the process $ v

    Concerning
    Anurag

  • "Face control" for applications at the opening session in the database

    I need to deny access to certain applications, except written request by me (oracle forms)

    I do the following

    1 beforehand (form krn_start), I add line dbms_application_info.set_module ('KIKIMARA', ");
    and after logon user, the module name "KIKIMARA" appears in v$ session.

    2 create the trigger for logons
    CREATE OR REPLACE TRIGGER AfterConnect AFTER LOGON ON DATABASE
    declare
    l_module_name VARCHAR (48);
    l_action_name varchar (32);
    BEGIN
    DBMS_APPLICATION_INFO.read_module (l_module_name, l_action_name);
    insert into audit_tab (l_module_name, sysdate) values;
    If l_module_name not in ('KIKIMARA') then
    raise_application_error (-20000, "Program error");
    end if;
    end;

    But all the user of any application of connections and audit_tab shows a column null with current sysdate.

    PS: when I start my form after module of logon user name "KIKIMARA" appears in v$ session

    Help, please. SOS!

    Sanjar wrote:
    Question for developers - how to change the module of ORACLE FORMS before logging?

    You can not set_module before logging. For an obvious reason - you are not connected :)
    You can try the workaround is to use dbms_job.submit in trigger AFTER logon.
    After 1 second, submit the procedure that will kill session if the module name is not KIKIMARA. This module time name must be already defined by shapes.
    Unfortunately no user-friendly messages in this solution...

    something like that:

    in the forms after LOGON

    dbms_application_info.set_module('KIKIMARA','');
    

    On the database:

    CREATE OR REPLACE TRIGGER AfterConnect AFTER LOGON ON DATABASE
    DECLARE
    l_job NUMBER(10);
    BEGIN
     FOR x IN (SELECT audsid
                     FROM v$session
                 WHERE audsid = USERENV('SESSIONID')
                 AND program = 'frmweb.exe') LOOP
           DBMS_JOB.SUBMIT(l_job, 'Audit_Kill('|| x.audsid ||');', SYSDATE+1/24/60/60);  -- 1 second
           COMMIT;
      END LOOP;
    END;
    
    CREATE OR REPLACE PROCEDURE Audit_Kill (p_audsid VARCHAR2) IS
    l_module_name VARCHAR(48);
    l_sid NUMBER(10);
    l_serial NUMBER(10);
    BEGIN
     SELECT module,  SID, serial#
     INTO  l_module_name,l_sid, l_serial
     FROM v$session WHERE audsid=p_audsid AND program='frmweb.exe'
     AND ROWNUM=1;
     INSERT INTO AUDIT_TAB VALUES(l_module_name, SYSDATE );
     COMMIT;
     IF l_module_name not in  ('KIKIMARA') THEN
      EXECUTE IMMEDIATE 'alter system kill session '''||l_sid||', '||l_serial||'''';
     END IF;
    END;
    
  • Idle sessions in the database

    Hello

    A lot of idle sessions are the database before we bounce of database-> max process has reached, for that, we changed the max process and rebounded from the database, but I see still 75 idle sessions in the database.

    SQL > show parameter process

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes integer 1
    db_writer_processes integer 1
    gcs_server_processes integer 0
    JOB_QUEUE_PROCESSES integer 2
    log_archive_max_processes integer 2
    whole process 200
    SQL > show the spfile parameter

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    chain of SPFile

    Then I changed the process to 300

    SQL > show parameter process

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes integer 1
    db_writer_processes integer 1
    gcs_server_processes integer 0
    JOB_QUEUE_PROCESSES integer 2
    log_archive_max_processes integer 2
    whole process 300

    even after still bounce 75 idle sessions in the database

    Danny,

    In my view, that it applies to the R12.

    Kind regards
    Hussein

  • session per user = 1 does not work in the database?

    Dear all,

    A profile has been configured on the database with the parameter session_per_user = 1 , but it does not work on the database.

    the user can make n number of sessions to the database. What could be the reason profile does not work?
    Please sugeest solution...

    Kind regards
    Rajesh

    Published by: Rajesh.Rathod on March 17, 2009 03:34

    You must change resource_limit true
    Search for details of text fo in metalink Note 745752.1

  • detect Oracle Connection Manager sessions in the database?

    Hello

    I wonder if it is possible to tell if the user connected to the database through the Oracle Connection Manager proxy or directly.

    Thank you!

    1444209 wrote:

    Hello

    I wonder if it is possible to tell if the user connected to the database through the Oracle Connection Manager proxy or directly.

    Thank you!

    No, no way to detect

Maybe you are looking for

  • For the Satellite P100 PSPAGA RAM question

    Hey guys This is my first post and I couldn't find any help anywhere else about this and so I have a few questions to ask. First of all how to find the type of ram I was wheather it's 533 mhz or 667?As I was looking to buy 667 sticks, that would happ

  • Satellite Pro A60 - update the BIOS without OS

    I have a Satellite Pro A60, trying to install XP pro but says he needs the BIOS update, downloaded the new update, unzipped and that one file, will not start until no bootable files. There is currently no OS on the laptop, I understand that I need an

  • Owner's manual for Satellite 2410 603

    Hello I have satellite laptop computer model 2410-603. And I wanted to open it to change the hinge of the screen. So if you could help me I will be very full. I mean just tell where I can get the maintenance of manual equipment for the same model. If

  • Code of erro 800b0100

    Remember itself - Esse e um Público, nunca publicar private information forum, tais como e-mail or phone numbers! Ideas: como posso resolution program este erro nas actualizacoes Programas as voce esta com problemas tendao As messages of erro Recent

  • Cisco TelePresense Management Suite cannot remove the previous finish

    I use the TMS 14.4.1 When I remove prerequisites finished, I get a warning: Are there people who know the reason why I can't delete prerequisites finished? Thank you and best regards.