Session timeout limit

I have restricted all sessions in my database to last not more than 40 minutes. But the front end session from forms, session is not terminated but the client hangs and ending the task is the only way out.

we use windows 95 + D2K R2.1 + oracle 8.0.4 on HP-UX .

any solution
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you have the  resource_limit  parameter to  TRUE ?
Did you executed the Alter System Set resource_Limet = True on your Database ?

The sessions hangs after o before the 40 minutes ?

Are the any table-lock when the session hangs ?

jtriftsMI and AutomationCommented:
You can set a global timer in your forms application and then use a when-timer-expired trigger to disconnect, exit or whatever you wish.

Andrei RodionovCommented:
If you want to limit your clients with an idle time, for example, you should use user profile, i.e.

create profile some_profile limit idle_time 40;    // an idle time is 40 minutes
alter user some_user profile some_profile;

Hope that helps.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Andrei RodionovCommented:
And some more. Your client application should handle the corresponding Oracle messages (ORA-0314 and ORA-0314) and  terminate itself gently.

Andrei RodionovCommented:
And some more. Your client application should handle the corresponding Oracle messages (ORA-03113 and ORA-03114) and  terminate itself gently.

Andrei RodionovCommented:
Sorry for the dual answer. Show the latter.

jtriftsMI and AutomationCommented:
AGM and Andrew,

Isn't the problem on the forms side?  It seems from the question that ashishn already has set the disconnection from the database side but needs to kill the forms session.

THus the timer in the forms that is set slightly less than 40 minutes should be used to disconnect and close the application.

jtriftsMI and AutomationCommented:
I think using the timer will be less work and easier to maintain than trying to handle a spontaneous ora 03113 error message...e.g. at what level would you try to trap that error in the client?

Andrei RodionovCommented:
Hi, JT!

At the form level. And for any form ;-)

Difine so called property class and set property in any form.

hi !
u can set the time limit for the session to be there on the front screen and once
the sample code is
   Date stime=new Date(session.getLastAccessedTime());
   Date exptime=new Date(System.currentTimeMillis()-40*60*1000);

     //if required create a new session here

ii think this is one way to invaliadte session when the time lapses


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.