Home » Developer & Programmer » Forms » inactive sessions (oracle forms 10g)
inactive sessions [message #626905] Wed, 05 November 2014 02:09 Go to next message
me:)
Messages: 3
Registered: November 2014
Junior Member
we have an In house erp to cater to the needs to various departments. this erp is designed using oracle forms 10g. we are facing a serious problem on users opening more that 1 instance of the same form on different machines by doing so they are creating dabatase locks. we need a solution to terminate inactive user sessions, is there a way to do that in IAS or in forms ?
Re: inactive sessions [message #626908 is a reply to message #626905] Wed, 05 November 2014 02:39 Go to previous messageGo to next message
John Watson
Messages: 8931
Registered: January 2010
Location: Global Village
Senior Member
Welcome to the forum. Please read our OraFAQ Forum Guide and please read How to use [code] tags and make your code easier to read

What do you mean by "database locks"? You need to post the error if there is one, and the SQL that is showing you these "locks".
Re: inactive sessions [message #626909 is a reply to message #626908] Wed, 05 November 2014 02:50 Go to previous messageGo to next message
me:)
Messages: 3
Registered: November 2014
Junior Member
can anybody pls tell me how to terminate inactive user sessions in oracle forms
Re: inactive sessions [message #626919 is a reply to message #626909] Wed, 05 November 2014 04:55 Go to previous messageGo to next message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
me:) wrote on Wed, 05 November 2014 02:50
can anybody pls tell me how to terminate inactive user sessions in oracle forms


Select Sid, Serial# From V$Session Where username = '';

ALTER SYSTEM KILL SESSION SID, SERIAL#;
Re: inactive sessions [message #626920 is a reply to message #626919] Wed, 05 November 2014 05:06 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
SQL Statements can be used to determine the blocking session and kill it.

select sid, serial#, username
 from v$session where sid in
 (select blocking_session from v$session);

Result:-
 
       SID SERIAL# USERNAME
---------------------------------
       144  8982   HR

Alter system kill session '144','8982' immediate;



Hope it wil lhelp you

Regards
Mughal




[Updated on: Wed, 05 November 2014 05:07]

Report message to a moderator

Re: inactive sessions [message #626953 is a reply to message #626920] Wed, 05 November 2014 09:11 Go to previous message
CraigB
Messages: 386
Registered: August 2014
Location: Utah, USA
Senior Member
Of course, you have to be logged in with a user that has the ALTER SYSTEM priv granted. Plus, this is an extremely dangerous thing to do. I would recommend you work more towards preventing the "inactive sessions" versus just killing them.

For starters, you could prevent the opening of multiple sessions or you could change the Locking Method property of your Forms datablocks so they only lock a record during commit processing instead of immediately upon a change in Forms.

Craig...
Previous Topic: Webutil - Problem with files having an 4 characters file extension
Next Topic: Hierarchy tree structure (merged)
Goto Forum:
  


Current Time: Fri Apr 26 09:37:34 CDT 2024