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.
Tags: Dell Tech
Similar Questions
-
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 databaseDanny,
In my view, that it applies to the R12.
Kind regards
Hussein -
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;
-
Two active sessions in the two tabs of the browser - how?
Hello!
I use custom for logging into my application authentication. It uses an internal table to the verification of user name and password. The rest of authentication is handled by the APEX. Here's my process of login on the login page:
My problem is that I can't have two active sessions of simoultaneous in two browser tabs. When I login in the app in the first tab, I can navigate fine enforcement. But as soon as I open a second tab and a newspaper in the application (with the new session ID), the first tab stopped working - I get redirected to the login page. And when I log in again, the second tab not working anymore... etc.declare v_auth_successful boolean := false; begin v_auth_successful := pck_auth.authenticate(p_username => :P101_USERNAME, p_password => :P101_PASSWORD); if v_auth_successful then wwv_flow_custom_auth_std.post_login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => '&APP_ID.:1' ); else owa_util.redirect_url('f?p=&APP_ID.:LOGIN:&SESSION.'); end if; end;
Example can be seen here: [http://apex.oracle.com/pls/otn/f?p=47326:1 | http://apex.oracle.com/pls/otn/f?p=47326:1]-just open this link in both tabs and connect (any name of user and password will do)
Someone knows how to fix this? According to me, Miss me something (in my authentication scheme?)
Thank you
SwearI think that the OP's question is can this behavior be easily extended to applications that have been built in the APEX, not only the builder himself.
This would require a sentinel of custom page common to all applications that conform to a particular session of the management rules set, regardless of those who are. The exact requirements (functional specifications) are too vague for me.
Scott
-
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
-
active sessions for the global temporary table
Hello
Is there no view or the way to know how many active users evaluate a global temporary table?
Rgds,
PiyushThe following query should list the user accounts writing (with INSERT/UPDATE/DELETE) into the temporary table 'TWG' belonged to "O":
select s.username, l.sid from v$lock l, v$session s where l.id1 = (select object_id from dba_objects where owner='O' and object_name='GTT') and l.sid = s.sid;
The following query should list all user accounts by using the temporary table named "GTT" with SELECT/INSERT/UPDATE/DELETE statement:
select username from v$session s, v$access a where s.sid = a.sid and object ='GTT';
Edited by: P. Forstmann on June 9, 2010 09:40
-
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 -
iStore active basket in the database
does anyone know the name of database table that contains information about current basket (not converted to order again)?
I looked at IBE_ACTIVE_QUOTES_ALL with quote_header_id as the cart id, active_quote_id as cartid but it did not work.
Thank you.You can find this information in the following tables.
1 aso_quote_headers_all - cart headers
2 aso_quote_lines_all - trolley lines
4 aso_quote_line_details (if you have the config and service lines)
3 aso_payments _ on the cart payment information-
4 aso_price_adjustments (if the basket has discounts)
5 aso_shipments - shipping method informationI hope this helps.
Thank you
RK -
How to access the 'Active Sessions' using MBeans
Hi all
I sent a request to the EM (Enterprise Manager).
When I have connected on EM and click on the app, I see the number of active sessions under the heading "Servlets and JSP.
How can I access this setting at the application level. ??
(I want to access this setting * 'x' * my web application and display registered users: x )
EM shows that the number of active sessions. It updates too... so there must be some beans or recording for this setting...
How can I access who...?
Kind regards
Durieux.
-
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 -
Failed to refresh the database after a forced shutdown of the business rule
Hello Experts!
I am currently test and adjustment of performance of business rules in Hyperion Planning 9.3.1. I started a business rule in the Regional service Console that ran a lot too long so I decided to stop it manually. But after this manual stop when I try to refersh Essbase of Hyperion Planning (Administration > manage the database > database update) I get the following error:
+ com.hyperion.planning.olap.EssbaseException: impossible to restructure. There are other active users on the database [%s] (1013101).
I remember having forced company rule stops earlier in other Hyperion Planning 9.3.1 deployments and they did not generate such errors. So could you help me on how to stop Hyperion Planning of this error after manual business rule stops because it's very likely I'll have do them in the future? Thank you very much!Are you sure he permanently stopped and everyone is out of the database, you can enter into the EAS, see view sessions.
See you soon
John
http://John-Goodwin.blogspot.com/ -
Scalability problems - too many Active Sessions?
Hello
I'm having a problem with an app that I built for one of the College campus, that I work. The application is a queue system where there are stations for students to access your room, admin stations where staff can see these students and "call", and displays outside every office employee that shows the student who was called. There are about 20 of the latter type of billboards. I have the following code in my footer to query the DB for most recent students called for a specific room:
The process of OnDemand, F_NEXT_STUDENT executes the query and returns the result:<script type="text/javascript"> <!-- var refresh_region = function( workstation_in, div_in ) { $.get( 'wwv_flow.show', {"p_request" : 'APPLICATION_PROCESS=F_NEXT_STUDENT', "p_flow_id" : $v('pFlowId'), //app id "p_flow_step_id" : $v('pFlowStepId'), //page id "p_instance" : $v('pInstance'), //session id "x01" : workstation_in }, function(data) { $(div_in).html(data); } ); setTimeout(function() { refresh_region( workstation_in, div_in ) }, 5000); } refresh_region( '&P7_WORKSTATION_IN.', '#next_student_div' ); //--> </script>
However, when all these display panels is turned on (and I use the code as follows in the other pages for similar purposes) the application become slow and eventually unresponsive. As a first step, we have the application running a box with Oracle XE. Finally, we have migrated to a full blown installation 11g with APEX listener and GlassFish. My DBA said everything looks ok on the side of the DB, so I tried to dig into other areas to see where the bottleneck can be. After inspecting the report of Active Sessions in the APEX, I noticed that there are a ton of connections being generated (> 30 000). This is not a good thing for me and I try to understand what I am doing wrong.select a.FIRST_NAME || ' ' || a.LAST_NAME into full_name from ONESTOP_QUEUE a where a.WORKSTATION_ID_CALLED = in_workstation_id and a.STATUS = 'CALLED' and a.QUEUE_ID = ( select min( c.QUEUE_ID ) from ONESTOP_QUEUE c where c.WORKSTATION_ID_CALLED = in_workstation_id and c.STATUS = 'CALLED');
At first I used $. post() instead of $. get (). I was also using setInterval() instead of a setTimeout() loop. However, none of these changes really seem to help the situation. I am at a loss to know how else to improve the performance of this application. Any suggestions on what I can try?
Most of the features of the app is on apex.oracle.com
WORKSPACE: SCCC_TEST
USER/PASS: TEST/test
Direct URL to the page (I spend worksation ID): http://apex.oracle.com/pls/apex/f?p=65890:7:0:P7_WORKSTATION_IN:ADMISSIONS_1
Thanks in advance for any help.Hello
are you sure that each AJAX request generates a new APEX session? Because it is based on your downloaded app all right. You can check that by running the following query. It will also show you how long it took APEX to meet your demand for AJAX (elapsed_time). I think that the elapsed time will be the key to find out why your application becomes unresponsive if too many customers are returning. The goal should be that the AJAX request ends as soon as possible. For example 1 sec would be for many, because if you have 20 parallel AJAX requests at the same time, this could have an impact on your DB. You can share your average time?
select apex_session_id, to_char(view_date, 'DD.MM.YYYY HH24:MI:SS') as view_date, elapsed_time, application_info from apex_workspace_activity_log where application_id = 65890 and page_id = 7 and view_date >= sysdate - 0.1 order by 1, 2, 3
I don't know how much data is stored in the ONESTOP_QUEUE table, but it may be useful to adjust your statement used in F_NEXT_STUDENT. On apex.oracle.com, the plan of the explain output shows at least he uses twice a scan interval on index ONESTOP_QUEUE_IDX. For inside MIN instruction it is well, but the external SQL should just do a search PK using QUEUE_ID. This is why I would like to delete
a.WORKSTATION_ID_CALLED = in_workstation_id and a.STATUS = 'CALLED'
to force the index seek PK using QUEUE_iD.
I also suggest that you make your JavaScript code on the page 5 and 7 more transparent. He is currently hiding in the region or footer HTML. I would say to move JS code in the attributes of the page 'Function and Global Variable declaration' and ' run when Page Loads. BTW, there is no need to use $(document) .ready in "Run when the Page loads", because internally, we already use $(document) .ready.
Or instead of using your own JavaScript code you can download the plugin http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-plug-ins-182042.html#dynamic "Timer" and use rather dynamic actions. On page 5 you can use the action "Refresh" to update your classic report and on page 7 you can use an action to "Set the value" to run your query. I think it would make your page easy to read for others.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
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 -
Database persistence of Active Sessions does not
Hello
I use OAM 11 GR 2 PS2 with patch bundle 4. I just activated the persistence of the database session via the oam console, but no entry in table oam_sessions. However, there are almost 2000 Active users in the system. I also checked the oam - config.xml and the configuration is:
< parameter name = "DB" Type = "htf:map" >
< name of parameter = "SmeDb" Type = "htf:map" >
< name of the parameter = "URL" Type = "xsd: String" > jdbc:oracle:thin://amdb.example.com:2001 / h < / setting >
< name of the parameter = "Main" Type = "xsd: String" > fun < / setting >
< name of the parameter = "Password" Type = "xsd: String" > password < / setting >
< name of the parameter = "DataSourceName" Type = "xsd: String" > jdbc/oamds < / setting >
< / setting >
Should I change it manually? Or what could be the problem here?
Concerning
You should try to restart first and see if it will work or not and if doesn't allow is not at the level of the trace record: 32 to possibly see why you setup does not more clues about the session.
Maybe you are looking for
-
Cannot connect to Game Center after updating iOS 10
I know that in the update it delete the Game Center app (which personally I didn't really like that) but now when I try to play a game involving the Game Center, it said something like if please connect to Game Center or unable to connect to Game Cen
-
Satellite A200 hangs or restarts at any time
Hello I am facing problem with my Toshiba Satellite A200 since last week. The problem, I noticed even is mentioned below in steps: 1. start & freezes on the screen at any time or logon2 restart at any time without any notification as blue screen or a
-
is i keep getting oh snap and stop work flash player its so annoying help fix and not not change anything, the problem is persistent since I first bouth the computer... Please help please
-
IKEv2 AnyConnect and pool allocation via RADIUS
I set up a CSR1000V (03.09.00a. S.153 - 2.) for AnyConnect with IKEv2. I store the user name and the IKEv2 permission policy on the RADIUS server. The customers are placed in their own iVRFs through the broadcast on the NAS RADIUS attributes. for exa