Idle sessions in the database
HelloA 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
Tags: Oracle Applications
Similar Questions
-
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.
-
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
TomCross-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/ -
"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;
-
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
-
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
SalmanHello
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 -
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:34You must change resource_limit true
Search for details of text fo in metalink Note 745752.1 -
It is safe to kill idle session?
Hello
Recently working on the production environment I've met customer number of connection problem as follows
sqlplus username/password
SQL * more: release 9.2.0.4.0 - Production Wed Feb 25 15:46:31 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-00020: maximum number of processes (%s) exceeded
After trying several times I connected and identified about 250 idle sessions of the only user of view V$ session.
I have questions about this scenario.
(1) I guess that inactive session consume processes, that triggered this error. Please correct me if I'm wrong.
(2) is it safe to kill these idle without the approval of customers sessions because their status says they are 'INACTIVE '?
(3) if not then, when idle, do these sessions are certain activities of long durations and because of their laziness oracle mark as inactive?
My apologies for being naïve... :) Thanks in advance...Ashish payet wrote:
(2) is it safe to kill these idle without the approval of customers sessions because their status says they are 'INACTIVE '?
Yes - in a perspective of database instance. Oracle is very robust. It does not choke when a user session suddenly disappear.
Course from the point of view of the customer? Not really. The client may always require this session - it may even have a unique transaction to validate.
From a point of view s/n? Joy. Let me count the ways of contentment by waving the old lead pipe and killing sessions... ;-)
(3) if not then, when idle, do these sessions are certain activities of long durations and because of their laziness oracle mark as inactive?
You can watch the session $ v and that there should be a column that contains the current state of waiting for event time / elapsed (take a look at the Oracle Reference guide). If this wait state is SQL * Net client message or similar and the wait state has quite a long time (you set this number), then it would be wrong to kill the session in order to allow new.
Another option is looking at shared server sessions. Here is the light weight in comparison to the server by default. For example a sessions 100 user may be services by 2 dispatchers and 10 shared - server process that oppose an almost 10 x more charge of a 100 process heavy process.
-
Hi friends,
We see too many idle session in the sessions vCenter tab. Although it should not harm immeidate, we always want to find a way to hollow compensation even some settings build-in if possible.
Article, I came across what suggests to change the vpxdclient configuration file where vSphere client is installed. But in our various teams access infra vcenter from different client computers. Is it possible to clear the list of inactive session of vCenter settings the value?
Thank you!
Kind regards
Hari.
Idle session configured in vSphere client machine and RDP timeout as well through AD.
Thank you!
Hari.
-
vCenter connections - Idle sessions hang out
Hello
We use the VI SDK 2.5 to Windows XP SP3 to connect to vCenter to QueryPerf to get data from the perf.
A specific user account to connect to the vCenter.
In some cases, we note that there are a few sessions 'dormant' left hanging out. I see them listed in the console of Administration/Management/Sessions of the vCenter. I think that these "idle sessions" when the application is connected to vCenter using the API and attempts a "logout" and disconnection fails for some reason any. It is also possible, I think that, when the application terminates abnormally. I noticed a case when there is an end to the session "inactive" after 30 minutes of inactivity.
Is there anyway to make the API using the same session or inform not to create a new session, if it already exists for the user? Something similar to a SQL Server how "connection pooling"?
I appreciate any input in this case.
Concerning
I hope my blog can help you understand the session management:
http://www.doublecloud.org/2010/02/the-mythical-sessions-in-vSphere-and-VI/
Steve JIN
Author of VMware VI and vSphere SDK (Prentice Hall)
Open source (VI) vSphere Java APIcreator (tutorial, testimonials, download, samples, Forum)
Blog: DoubleCloud.ORG ( Top 10 best practices[object model: http://www.doublecloud.org/2010/02/Object-Model-of-VMware-vSphere-API-a-Big-Picture-in-2-minutes/,] [common errors |]) http://www.doublecloud.org/2010/01/31/common-mistakes-using-vmware-vi-and-vsphere-sdk/], Tiny REST API, Cloud Application Architecture)
-
trace level of the user in the database.
Hello
I need emergency assistance. I wanted to take the trace of a perticular user sessions in the database. Could you please provide me with the steps to generate the trace of the user when the user connecting. In my case, when the connection of the user by the application, there are many session generated in the database. So I wanted to take the trace to the user level. I have Oracle 9i server.
Thanks and greetingsProbably the best for you would be to create a database trigger after the logon.
CREATE OR REPLACE TRIGGER set_trace after logon on DATABASE
BEGINIf the user = ('username') then
run immediately "alter session set sql_trace = true";
immediate ' alter events set "trace 10046 name context of session forever, level 12". "
end if;EXCEPTION
WHILE OTHERS THEN
-Consider recording the error and then re-raise
NULL;
END set_trace;/
You can read this thread as well:
Oracle 9i - SQL Trace & Bind Variables -
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
-
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
-
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
-------------------------------------------------
-
Tab for claim to the Session of the monitor is by session or any database?
There is Contention tab under Tools-> monitor Sessions. It updates whenever another session is selected in the list of the sessions above. If this tab shows claim through the entire database? or is it just show for this session if the session causes or experience any claim?
The latter.
If you look at the SQL code in this page, you can see that the WHERE clause limits the results of the current session of the main report - this is indicated with the: rating of SID.
Maybe you are looking for
-
Is there a download to icloud for my pc with vista
-
the error mssg. When you try yo install Adobe reader 9.2
-
T500 freezes after hibernation
I have a new laptop T500 which freezes whenever I have to wake up from hibernation. I am then forced to stop via the power button as the same task manager will not work. I got linked to admonitor.exe. This is a typical problem and is related to the f
-
What is the difference in an OS that is retail package and the other is not?
-
Reboot after uninstallation of the Application device
Hello! I have developed a Widget Application of Blackberry. The issue that I am facing is that every time that I update my application on the physical device, the device must be restarted. How to avoid this kind of behavior as restarting the device t