What is killing my Apex Session?
Hi,
as far as I understand it, the Session lasts 24 hours after the last submit? I can shut down the DB or the Apache and after I have them up again my session is still valid. I can also work on the next day with my session. But at least once a day suddenly my sessions are gone and I have to reconnect.
Can anyone explain this behaviour?
Thanks, Juergen
Also, there is nothing magic about 24 hours, feel free to modify that DBMS_JOB to increase or decrease this frequency as appropriate for your environment.
Remember that in most cases, the Apex session is tied back to a specific (browser-session) cookie, chances are that your client machine and/or browser is likely to be rebooted/restarted long before 24 hours so this issue is moot anyway.
Similar Messages
-
What is an APEX session? Where is it documented?
Exactly what defines an Oracle APEX session? Is it documented somewhere? (I can't see blogs because they filter them out here.)
I ask because I find global variables persisting when I've logged out of APEX and logged back in again. Connectivity is "hit and miss" here. So I often duplicate browers tabs (sessions?) which are timing out. I'm wondering if that's not leaving disconnected session(s) that I log back into. I noticed that the initialization process ("on new session") is not executing, so I presume when I log back in I'm not starting a new session.
Thanks -- HowardHi,
This might help
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref103
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#sthref124
I ask because I find global variables persisting when I've logged out of APEX and logged back in again. Connectivity is "hit and miss" here. So I often duplicate browers tabs (sessions?) which are timing out. I'm wondering if that's not leaving disconnected session(s) that I log back into. I noticed that the initialization process ("on new session") is not executing, so I presume when I log back in I'm not starting a new session. Can you create some example to apex.oracle.com to demonstrate what you mean?
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
APEX 3.1 "Apex Session Timeout"
Hi all,
I have been trying to find out how I can set a session to timeout in APEX 3.1 i.e. 30 minutes. I have reviewed Shared Components etc and haven't been able to find anything to control this timeout value. I am aware of the procedure SET_SESSION_MAX_IDLE_SECONDS but i am unable to find it in any of the wwv_* packages. Is it available in 3.1? If not, how can i set this value? Also, can the timeout value be set per application rather than globally?
Thanks!Thanks for that (again). So it looks like I have 3 options:
1) Incorporate a JS timeout script
2) Build an APEX session package (api_apex_session.pck) that would handle this
3) Install APEX 3.2 where all this is supported
What about the web server or cookie management...is there anything that could be used there? -
URGENT!!! How to kill a SYS session
What is the command to kill a SYS session? Let's say someone figured out the SYS password and logged in. Now I want to kill the session. What do I do?
The ALTER SYSTEM KILL SESSION 'SID,SERIAL#' does not work.
URGENT!!!!Hi,
>>The ALTER SYSTEM KILL SESSION 'SID,SERIAL#' does not work.
Why not ?
C:\>sqlplus sys/******* as sysdba
SQL*Plus: Release 10.1.0.2.0 - Production on Fri Jun 15 17:06:26 2007
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SYS@ORACLE10> SELECT userenv('ISDBA') from dual;
USEREN
TRUE
SYS@ORACLE10> select sid,serial# from v$session where sid=(select distinct sid from v$mystat);
SID SERIAL#
236 22100
Other session:
[pre]
C:\>sqlplus system/*********
SQL*Plus: Release 10.1.0.2.0 - Production on Fri Jun 15 17:07:02 2007
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SYSTEM@ORACLE10> alter system kill session '236,22100';
System altered.
Back to one ...
SYS@ORACLE10> select sysdate from dual;
select sysdate from dual
ERROR at line 1:
ORA-00028: your session has been killedCheers -
Trace Apex session from sqlplus
Hi,
Apex 4.2.4, Oracle 11.2.0.3, Apex Listener 2.0.5
How to start Apex session trace from sqlplus command line? I know thread Trace with &p_trace=YES but this is not a solution because I want to start from sqlplus (PL/SQL code).
Any help?
Brg
DamirYour question has changed.
Your question now: "How do I identify a session in the database that belongs to an APEX page?"
Use the session tables to match your APEX connection to the information in the gv$session table.
Yes - this is a "free" information in the database, but it is also secure. You will need elevated privileges to do this. Use with caution.
You will not find a PLUG-IN that can do tracing if the base user can not do tracing. The reason the URL feature is there from APEX is because APEX (the framework) has the access and ability - but that is not passed down to each workspace / schema without using the framework.
I have no details of your installation or your application, so you will need to determine what types of calls are being made to the database and with what method (EPG, OHS, ORDS, etc..)
select SID, SERIAL#,inst_id,program,module,event,Action,machine, client_info, CLIENT_IDENTIFIER
from gv$session s where type!='BACKGROUND'
and status='ACTIVE' and sql_id is not null;
The CLIENT_IDENTIFIER will show you SESSION and USER
The MODULE will show you APP and PAGE
From there, you can do all your SID related tracing you need. -
Killing Duplicate database session
Hi
We are running an Oracle 8i database. Remote users logon onto the database. The line drops and they lose connection. When the line is up again, they reconect successfully. However, there are now two sessions for this user. What can I do to identify the older session on the database for users and kill the older session.
Thanksalter system kill session 'sid,serial#';
alter system kill session '243,14563'; -- USE THIS
-- find the session from V$session table and kill the session using SID and SERIAL
-- check the logon_time to find the older sessions
select sid,serial#,username,terminal,osuser,program,type,status,last_call_et,logon_time
from V$session
where type = 'USER'and username not like '%SYS%';
Hope this will help.
Regards
Asif Kabir -
Is Collection APEX session specific
I think I know the answer to this but I want to be 100% sure. My application uses a collection that gets populated and is then the source SQL for the region. What happens if two users are running the applicaiton at the same time? Will I run into any problems, or is a colleciton local to each specific Apex session?
Thanks!Hi,
Yes, collection is application and session specific
Regards,
Jari
Edited by: jarola on Oct 28, 2010 8:05 PM
>
Collections enable you to temporarily capture one or more nonscalar values. You can use collections to store rows and columns currently in session state so they can be accessed, manipulated, or processed during a user's specific session. You can think of a collection as a bucket in which you temporarily store and name rows of information.
>
http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm#CACFAICJ -
Under Excel Service Application --> session management; what is the difference between Session timeout and Short Session timeout?
Any call made from the API will automatically be set to the “Session Timeout” period, no matter
what. Calls made from EWA (Excel Web Access) will get the “Short Session Timeout” period assigned to it initially.
Short Session Timeout and Session Timeout in Excel Services
Short Session Timeout and Session Timeout in Excel Services - Part 2
Sessions and session time-outs in Excel Services
above links are from old version but still applies to all.
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Killing Parallel Query Session
Hi,
I am running Oracle 11.2.0.1.0 on Solaris 5.10.
Couple of hours ago, I ran a job through DBMS_JOB (Yes, I need to use dbms_schedular), and in the job I used parallel query. Now I want to remove the job. Also I want to clean up the sessions. I can remove the job by doing DBMS_JOB.remove(job id). Is there a way that I kill one parallel query coordinator session, and it would automatically kill all the slave sessions?
Thanks and regards
Edited by: Fahd Mirza on Apr 22, 2010 11:57 AMThanks for the answer.
I have run the following query with output:
SQL> select ps.sid,s.username,ps.qcsid
from v$session s, v$px_session ps
where s.sid=ps.sid
and s.username='BIADM'; 2 3 4
SID USERNAME QCSID
91 BIADM 147
267 BIADM 147
290 BIADM 147
332 BIADM 147
345 BIADM 147
69 BIADM 147
92 BIADM 147
102 BIADM 147
222 BIADM 147
112 BIADM 147
73 BIADM 147
126 BIADM 147
136 BIADM 147
145 BIADM 147
170 BIADM 147
180 BIADM 147
276 BIADM 147
190 BIADM 147
221 BIADM 147
234 BIADM 147
214 BIADM 147
246 BIADM 147
270 BIADM 147
256 BIADM 147
278 BIADM 147
291 BIADM 147
309 BIADM 147
298 BIADM 147
323 BIADM 147
344 BIADM 147
2 BIADM 147
331 BIADM 147
134 BIADM 94
125 BIADM 94
156 BIADM 94
168 BIADM 94
181 BIADM 94
205 BIADM 94
191 BIADM 94
215 BIADM 94
232 BIADM 94
245 BIADM 94
255 BIADM 94
269 BIADM 94
292 BIADM 94
302 BIADM 94
280 BIADM 94
311 BIADM 94
147 BIADM 147
94 BIADM 94
50 rows selected.If I kill sessions with sid 147 and 94, shouldn'it it be killing all the sessions of BIADM?
REGARDS -
In servlet what Event Listener interface defines session will passivate()
Hi!
In servlet what Event Listener interface defines session will passivate() method?
ThanxHi!
for the above question which one will be the correct answer?
1.HTTPSessionEventListener
2.HTTPSessionListener
3.HTTPSessionAttributeListener
4.HTTPSessionActivationListener -
How to create an apex session in e.g. SQL*Plus?
I would like to establish an apex session using a tool different from SQL Workshop.
How can I achieve this using e.g. SQL*Plus or SQL Developer?
Is there some document on the internet which addresses this question? I couldn't find it yet.First and foremost you need to set the Security Group ID (SGID)
begin
APEX_UTIL.SET_SECURITY_GROUP_ID(APEX_UTIL.FIND_SECURITY_GROUP_ID('MY_WORKSPACE')); -- replace MY_WORKSPACE with yours
end;
then you might need to set an application_id for certain features to work:
select application_id
into apex_application.g_flow_id
from apex_applications
where application_name = 'my_app_name'; -- replace my_app_name with yours
If you need to create a session id, you can get a fresh one with
DECLARE
VAL NUMBER;
BEGIN
VAL := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
END;
Flavio
http://oraclequirks.blogspot.com
http://www.yocoya.com -
What is the use of session in jsp
hai,
what is the use of session in jsp. i cant understand from books. give some practical approach
thanksgive some practical approachYou sound like a supervisor ordering for a cup of coffee.
I DONT TAKE ORDERS !!
IMAO
Which book did you refer ? Did you google ? -
Want to get ApEx session in JSP
Hi Pals,
From my ApEx application, I am calling a JSP by providing a direct URL.
THe JSP does some specific function here.
If the user get the JSP url by right click and view source, they can very well use this outside my ApEx application.
I want to apply security like, the JSP url only works inside my ApEx application.
My thought, if I can share ApEx session with JSP session I can impose the security check in JSP level.
Any idea would be appreciable.Hi,
Im using below method to call jsp page and passing UserName, application id and Session as
<iframe src="http://apex.oracle.com/pls/otn/...javaapplication.jsp?userId=&USER.&appId=&APP_ID.&sessId=&SESSION."></iframe>
Vailidation is done against the table "wwv_flow_sessions$" of schema : flows_030100 ,whether those values are exist in table.
But if user is already logged into apex application, he can run the jsp independantly taking the url from "view source".
Im also looking for more solid validation
Regards,
Benz -
How to kill the blocking session
hi expert,
when i m going to run the below query
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH' where rti.interface_transaction_id = 3671265
it gives the error:
ORA-00054 resource busy and acquire with NOWAIT specified.
i find out the blocking session by using the blow query;
SELECT a.SESSION_ID, a.SESSION_SERIAL#, min(A.SAMPLE_TIME) start_time,max(A.SAMPLE_TIME) end_time,a.inst_id, a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME,max(A.SAMPLE_TIME) - min(A.SAMPLE_TIME)
FROM GV$ACTIVE_SESSION_HISTORY a ,gv$sql s, dba_objects o
where a.sql_id=s.sql_id
and A.CURRENT_OBJ# = O.OBJECT_ID
and blocking_session is not null
and a.user_id != 0 -- exclude SYS user
and a.sample_time > sysdate - 7
and a.event = 'enq: TX - row lock contention'
group by a.SESSION_ID, a.SESSION_SERIAL#, a.inst_id,a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME
it gives the output
SESSION_ID
SESSION_SERIAL#
START_TIME
END_TIME
INST_ID
BLOCKING_SESSION
USER_ID
SQL_TEXT
EVENT
OBJECT_NAME
MAX(A.SAMPLE_TIME)-MIN(A.SAMPLE_TIME)
369
45,849
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
SELECT POL.UNIT_PRICE FROM PO_LINES POL WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
PO_LINES_ALL
+00 03:10:54.389000
554
18,872
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
365
173
SELECT POL.UNIT_PRICE,POL.QUANTITY,POL.UNIT_MEAS_LOOKUP_CODE,POL.AMOUNT FROM PO_LINES POL WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
JA_IN_PO_LINE_LOCATION_TAXES
+00 03:10:54.389000
572
168
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
select line_location_id into :b0 from po_line_locations_all where line_location_id=:b1 for update of line_location_id
enq: TX - row lock contention
PO_LINE_LOCATIONS_ALL
+00 03:10:54.389000
581
4,973
9/4/2013 10:49:38.157 AM
9/4/2013 10:50:39.259 AM
1
572
173
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH' where rti.interface_transaction_id = 3671265
enq: TX - row lock contention
RCV_TRANSACTIONS_INTERFACE
+00 00:01:01.102000
my problem is in the above output among 4 which i have to delete so sove my issue.
its very urgent for me.
plz plz suggest me and how can i kill the session.
thanks & regards
pritesh ranjanpriteshranjan wrote:
hi expert,
when i m going to run the below query
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH' where rti.interface_transaction_id = 3671265
it gives the error:
ORA-00054 resource busy and acquire with NOWAIT specified.
i find out the blocking session by using the blow query;
SELECT a.SESSION_ID, a.SESSION_SERIAL#, min(A.SAMPLE_TIME) start_time,max(A.SAMPLE_TIME) end_time,a.inst_id, a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME,max(A.SAMPLE_TIME) - min(A.SAMPLE_TIME)
FROM GV$ACTIVE_SESSION_HISTORY a ,gv$sql s, dba_objects o
where a.sql_id=s.sql_id
and A.CURRENT_OBJ# = O.OBJECT_ID
and blocking_session is not null
and a.user_id != 0 -- exclude SYS user
and a.sample_time > sysdate - 7
and a.event = 'enq: TX - row lock contention'
group by a.SESSION_ID, a.SESSION_SERIAL#, a.inst_id,a.blocking_session,a.user_id,s.sql_text,A.EVENT,O.OBJECT_NAME
it gives the output
SESSION_ID
SESSION_SERIAL#
START_TIME
END_TIME
INST_ID
BLOCKING_SESSION
USER_ID
SQL_TEXT
EVENT
OBJECT_NAME
MAX(A.SAMPLE_TIME)-MIN(A.SAMPLE_TIME)
369
45,849
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
SELECT POL.UNIT_PRICE FROM PO_LINES POL WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
PO_LINES_ALL
+00 03:10:54.389000
554
18,872
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
365
173
SELECT POL.UNIT_PRICE,POL.QUANTITY,POL.UNIT_MEAS_LOOKUP_CODE,POL.AMOUNT FROM PO_LINES POL WHERE POL.PO_LINE_ID = :b1
enq: TX - row lock contention
JA_IN_PO_LINE_LOCATION_TAXES
+00 03:10:54.389000
572
168
9/4/2013 8:29:33.119 AM
9/4/2013 11:40:27.508 AM
1
554
173
select line_location_id into :b0 from po_line_locations_all where line_location_id=:b1 for update of line_location_id
enq: TX - row lock contention
PO_LINE_LOCATIONS_ALL
+00 03:10:54.389000
581
4,973
9/4/2013 10:49:38.157 AM
9/4/2013 10:50:39.259 AM
1
572
173
Update rcv_transactions_interface rti set rti.processing_mode_code ='BATCH' where rti.interface_transaction_id = 3671265
enq: TX - row lock contention
RCV_TRANSACTIONS_INTERFACE
+00 00:01:01.102000
my problem is in the above output among 4 which i have to delete so sove my issue.
its very urgent for me.
plz plz suggest me and how can i kill the session.
thanks & regards
pritesh ranjan
According to the above, your session_id is 581 which is blocked by session_id 572 so you need to kill the 3rd session in the list.
Thanks,
Hussein -
How to kill particular Oracle Session from the multiple Session of User
Hi,
I am working on Web Application using ASP.NET , C# with Oracle. I am excuting queries from multiple connection of same user. I want to kill particular user session. I have tried to Kill session by using ALTER SYSTEM KILL SESSION 'sid,serial#' it is working fine but how can i identify which session is generated by particular connection so that i can kill that particular session.
Suppose there us user 'abc' there are multple instance of this user and all are active but same USERNAME. So Please tell me how can i identify that session through which i am executing the query.
Thanks,
NitinSome ideas for how to pick the right session:
-Look at the time the session was connected (logon_time)
-Look at the time the session last started it's most recent statement (last_call_et)
-Look at the sql that the session is running (join with sql_address and sql_hash_value over to v$sqltext_with_newlines or one of the other views that show you the sql they are running)
That usually gets me most of the way, if it's possible to distinguish them. ("Yeah I just started this query and I want you to kill it." is different than "I started five different queries at about the same time and I'm not sure which one I need killed.")
Maybe you are looking for
-
How to open a page and closing source page in jdev 10.1.3.3
how to open a page and closing source page in jdev 10.1.3.3. for example. From page 'A' , we are opening a page 'B' and closing the page 'A'. how this can achived.Please let me know
-
Need Expertise on Custom Photo Gallery Template
Hello there - this question isn't really just Mac specific, but I don't see a forum that will post to ALL Photoshop users. I'm in need of some help customizing a Photo Web Gallery in Photoshop. I've done one entirely without tables, using my own CSS
-
Trouble creating and populating an array of objects.
I'm trying to create/populate an array of objects with consisting of a {string, double, integer}, and am having trouble getting this theory to work in Java. Any assistance provided would be greatly appreciated. Following are the two small progs: publ
-
Best PC mail client to use with SLS?
Hi! What e-mail is the best client on windows to use with SLS? I have a customer that contemplates moving from SBS to SLS. IMAP in Outlook isn't a problem but addressbook server and before all, ical calendar sharing is a problem. I have seen EMClient
-
Error downloading Boot Camp Drivers.
When I try to download Boot Camp drivers for Windows, a message pops out, saying something about an error with the apple servers. I tried to download the drivers (for Windows 8) manually from the Apple Page, but when i try to install it (in Windows),