Timeout for user session/connection

Hi All,
We have 81741 database acessed by windowNT/2000 users connecting via formswebserver(6.0.8.21.1) using JInitiator 1.1.8.19, we use Apache server and/or webDb listener on webserver. Users are assigned different roles like engineer, technician, manager etc. As per management request, we need to timeout and close ENGINEERs connection which is idle for more than 60 min. Now, we need to kill the database session, kill the process on webserver and kill the application screen user has on his PC. I am sure, this has been implemented by some of our OTN members.
Any suggestions would be appreciated in this regard.
Thanks & Regards.

You could try polling with in.available() for 5 seconds. As long as it returns 0, there is nothing to read.
long start = System.currentTimeMillis();
while (in.available() == 0 && System.currentTimeMillis()-start < 5000) {
  Thread.yield();
// now the 5000 milliseconds has expired OR there is input available:
String s;
if (in.available()) {
  s = in.readLine();
  System.out.println(s);
  // there might be more to read, so you can check with in.available() again until you have read everything..
} else {
  System.out.println("timeout");
}

Similar Messages

  • Daily report for user sessions in oracle10g database

    I would like to genarate the daily report for user sessions in oracle10g database
    daily report of how many of sessions present in oracle database for each user

    Thanks for link ( I know you always post the oracle document link here)
    But I am expecting scripts( someting like logon trigger and logg off trigger) to genarate the user session report.

  • Set a timeout for crystal sessions while using the Windows.Forms.Viewer?

    Hi,
    I am looking for a way to set the timeout for the crystal report sessions when using the Windows.Forms.Viewer in a .NET application. I guess that the default value is 20 minutes (like in the entperprise installations) but we cannot afford to keep many sessions open for that long. Is there a registry entry which can be set? Or even a way to do this programmatically?
    Thank you in advance,
    Stratos

    Hi David,
    we are talking here about a standalone .NET application where the reports are installed locally (like the application itself). We are not retrieving the reports from a server. The whole thing was developed using the crystal report viewer model probably because it was easier to do so. Is there a method in this model to tell the crystal runtime to do the clean-up work either for a report (like the ReportDocument.Close() ) or for the entire runtime instance. Dispose() does not seem to help us. If you say that there is no other way than redesign then we have to consider this option also.
    Cheers
    Stratos
    PS: What I was thinking of (as Plan B instead of using the ReportDocument object model) is to instantiate the crystal report viewer object in a separate process (.exe). Please note that we open a new crystal report viewer windows for each report, which is displayed. Closing the viewer window (ie. terminate the process) will at least then clean up and release the crystal DLLs and hopefully close the database connections. Or am I missing something here?
    Edited by: Efstratios Karaivazoglou on Jul 29, 2008 10:05 PM

  • SQL Server Express 2014 service has to be restarted for users to connect.

    We have recently upgraded from Server 2003 with MSSQL to Server 2012 R2 with SQL express 2014. When we moved all the databases and permissions to the new server, no one had any issues connecting to the database.
    Now it seems that after long periods of time, we are having to restart the SQL service in order for the users to connect. I am not "well versed" in SQL and was looking for some input from the forum. 
    I know you will most likely need more information so please let me know what you would need so I can further troubleshoot this issue.
    Thanks for your time and help.

    Hello,
    Could you please examine the event viewer (Control Panel – Administrative Tools) and share with us any errors you may find?
    http://windows.microsoft.com/en-us/windows/open-event-viewer#1TC=windows-7
    Could you please examine SQL Server error log also and share any errors you may find?
    http://msdn.microsoft.com/en-us/library/ms187109(v=sql.120).aspx
    http://msdn.microsoft.com/en-us/library/ms175832(v=sql.120).aspx
    If you use Windows backup feature, could you please verify if it includes a backup of SQL Server. That may be a possible
    cause.
    Make sure user databases do not have the “Auto close” 
    option set to true.
    http://msdn.microsoft.com/en-us/library/bb402929.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to find users sessions connected in (11.1.0.7 & R12.1.1)

    We have 11.1.0.7 configured in our env with E-business suite R 12.1.1 .
    we created different users e.g John , Mark and they are connected through e-business suite application form. But when i query V$session table i dont find these users there.
    Where i can find the status of these connected users ?
    PLease reply

    Usually you start with the Oracle schema that install the application on the database. In my case, I created a schema called QC (quality control) with it own tablespace (QC) - a software from HP. From this schema, I can see all users created via this schame and in the tablepace QC.
    Another trick would be to use all_users table to check for the usernames: select * from all_users;

  • User session  connected to forms  freq get inactive in oracle

    Hi
    we are having oracle 10.2.0.3 on aix 5.3 RAC environment. we are having monitor database scripts to check how the session and how many long running sessions are there like this? but on last few days we found that suddenly out of two nodes one node only got session increasing(long running session) on the next node is normal and if we found most of the session were goes into inactive that too especially those who are connected to the oracle forms
    terminal. i took awrrpt.sql but i m not much familiar to find the exact reasons from that report i just look the sql queries but i could not find any difference due to the query ? i m thinking of some of the questions
    1.) why the sessions goes inactive when they are connected to forms?
    I know its very strange thing of asking questions to someone abt my environment but i just want to know from anybody that they might had this issue earlier.
    Now after looking that thing what i understood from my knowledge is
    1.) Sessions more inactive
    2.) esp. for forms
    3.) that too on one node most freq.
    4.) is this problem due to any recent time deployment on production from forms?
    Pls anybody guide me ...
    Thanks
    M.Murali..

    Hi
    thanks for prompt reply.yeah these are situations but i cant predict how come all of suddenly goes into inactive session and there is no sql_id is also there to want to find where it get strucks? but someday when user logged complaints like when they are click one button it goes hangs.At tht time i traced his/her sessions from backend there is query which works fine in backend(database level) but when i m monitoring couldn't find any sql is so i dont know is the real problem with database or what?
    Thanks
    M.Murali..

  • Strange situation...for user sessions

    Hi All,
    I have a situation where when the user executes a report in RRMX and when he  is done that he closes the Session by disconnecting the server connection in the BEx toolbar.
    Even the user closes the session and he is out of the system but he still appears in SM04.
    I don't undersatnd why this is happening?
    This is happening only for a particular user.
    Can I click on the session in SM04 and end it?
    Is that ok?
    Thanks,
    Ram

    may be GUI haveing problem ,better install GUI
    even user close the session its showing then
    you can close the session useing the SM04

  • Remove log in password for user account connected to windows live

    Hi, I had connected my windows live account to my local account, which is running windows 8.1
    Now, it is asking me for Live password every-time I have to login to my windows. Is there any way to remove this password? I want to keep my Live account connected, but don't want to enter password every-time I want to login.
    Thank you.

    Hi,
    When you connect a local account to a Microsoft Account, then the logon password will also be changed to the password of your live account, this is unavoidable, but if you think that typing the password every time is too annoying, then we can use a PIN
    instead, move the mouse to the right charm bar\Change PC settings\Accounts\Sign-in options, type four digit number as your password
    We can also use autologon tool to automatically logon to the account after you start your machine, but please note that this might cause potential security issue because everyone who get the machine can have access to to your Microsoft Account.
    https://technet.microsoft.com/en-us/sysinternals/bb963905.aspx
    just download the tool, then configure as below, here, you need to type your live account as the username
    Yolanda Zhu
    TechNet Community Support

  • OSB: Business Service Timeout for JCA Connection

    Hi,
    I am wondering if there's any way to configure timeout for a JCA connection in OSB? It's not configurable in Business Service.
    Thanks.

    Hi Anuj,
    I am using DbAdapter. As for operation, which operation are you referring to? Where do I check to verify this?
    Thanks.
    Edited by: user13298498 on May 21, 2012 11:01 PM

  • Iphone connection to a Vista ad hoc connection: "waiting for users"

    I am trying to create an 'Ad hoc' connection between my iPhone and a Windows Vista laptop. After I have set up the ad hoc network on the laptop I am able to see the network in the iPhone's list of WiFi connections and clicking on this shows that it connects (the little tick appears next to the connection name and it appears to receive an IP address). However, when I return to Vista it says that it is "Waiting for users to connect".
    I have tried various solutions to this problem, including resetting the network settings on the iPhone, recreating the ad hoc network in Vista (with and without security), and manually changing some of the adapter settings with Vista... all to no avail!
    Does anyone have any suggestions on how I might force the connection to be made?

    My laptop Sony vaio VGN-SR11MR does not connect to iPhone 3g
    Wifi adapter: atheros ar928x.
    Operating system: Windows Vista SP1
    Actions on the laptop:I have created ad-hoc a network -> "Waiting for users to connect to your adhoc network"
    Actions on the phone:Phone finds the network. It tries to connect -> Ok
    But, on the laptop varies nothing...
    The laptop incorporates to other laptop on ad-hoc. Phone too incorporates to other laptop on ad-hoc.
    Driver ar928x - 7.6.0.154
    Firmware iPhone 3g - 2.1
    The problem decision has been found?
    Message was edited by: Horzer

  • Timeout for telnet

    Guys, I need to check if an application is running on hte servers. It's for close to 10,000 servers. The easiest way is to telnet to the application port and it responds with the version.
    That's easy, but some nasty servers do not timeout the telnet session and my script hangs. Any way to set a timeout for telnet?
    basically I run:
    telnet $host $port 2> /dev/null | grep ^pblocald > /dev/null
    One workaround is to use the Net::Telnet perl module which provides a timeout. Any other idea?
    Thanks
    Vladimir

    Hi,
    You can set timeout for telnet session ,First change the users primary shell as ksh (default bourne shell) and please set the same TMOUT environment variable in ksh .
    TMOUT If set to a value greater than zero, the shell will terminate if a command is not entered within the
    prescribed number of seconds after issuing the PS1
    prompt. (Note that the shell can be compiled with a
    maximum bound for this value which cannot be
    exceeded.)
    Please see man ksh for further clarifications .
    I have another suggestions to do timeout , you can write a shell/perl script which should check telnetd daemon and time ,then use kill -9 for that particular telnetd PID ,and the script can be scheduled in crontab.
    Hope this answer your query.
    Rgds,
    dhana_slash

  • JDBC sessions timout - for inactive sessions

    how can i define the timeout of inactive sessions (connections) on oracle database thru JDBC connetionPool technology - to de disconnected physically, is there a default timeout for the sessions to be disconnected.?
    thanks for any help.

    The following is the Data Source that I am using:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
    name="jdev-connection-Teradata"
    class="com.evermind.sql.DriverManagerDataSource"
    location="jdbc/TeradataCoreDS"
    xa-location="jdbc/xa/TeradataXADS"
    ejb-location="jdbc/TeradataDS"
    pooled-location="jdbc/TeradataPooledDS"
    connection-driver="com.ncr.teradata.TeraDriver"
    username="GavinLDCHBull"
    password="xxxxxx"
    url="jdbc:teradata://FONEBONE/DATABASE=HABWaiver"
    inactivity-timeout="30">
    </data-source>
    </data-sources>
    We are using the ADF framework (i.e. entities and simple views) for accessing all Teradata data. I do not explicitly issue any JDBC calls for accessing the data. When I update the data, I use JDBC calls to initiate stored procedures. However, the problem (not closing the statements) happens almost immediately after starting the application, and prior to issuing any stored procedures.
    I have not tried to duplicate the problem using a simple java program because I am using ADF for data access (again, I don't explicitly issue any JDBC statements).

  • Re: User Session using ServletSession and Stateful EJB in Cluster

              Sorry , I didn't use WLS 6.0, we use wls 5.1 in production.
              But in Wls 6.0, in some situations , the state of the stateful session bean can be lost. So it's not so reliable. You have to deal with it in the client code. Instead, servlet is a reliable solution.
              In order to test under wls6.0, you can store the handle of the EJBObject in the HttpSession, not in jndi, cos if the instance fails, all its objects will be removed by remaining instances from jndi. In another instance, you get the handle, and try to get the EJBObject.
              In wls5.1, some information like the server url must be embeded inside the handle. But in wls6.0, I don't know how they deal with it.
              I am looking forward to your results
              "Anuj Soni" <[email protected]> wrote:
              >
              >What kind of clustering problems you had with WL6.0 for Stateful session beans ? It will be helpful for me to know before hand.
              >
              >BTW, how were you able to test stateful session beans in a cluster under WL6.0 i.e. were you storing the Handle or EJBObject in HttpSession or did you store it in JNDI ?
              >
              >Thanks,
              >
              >Anuj
              >"Tao Zhang" <[email protected]> wrote:
              >>Although it's very advanced to take advantage of both http session and
              >>stateful session bean replication, but if you rely on the stateful session
              >>bean's state, you will be in trouble. Because the support of stateful
              >>session bean's replication is not perfect in wls6.0. We already chaned
              >>almost all stateful session beans into servlets or entity beans.
              >>
              >>I am not sure about the handle of the EJBObject. I think it should be able
              >>to reconstruct for us otherwise we can't use the handle any more.
              >>
              >>You can do a test. BTW, could you tell me the result?
              >>
              >>Thanks.
              >>
              >>Anuj Soni <[email protected]> wrote in message
              >>news:[email protected]...
              >>>
              >>> Hi,
              >>>
              >>> I am designing the workflow for my web application using a Stateful
              >>session bean. As Weblogic 6.0 supports clustering of stateful session bean
              >>and HttpSession(in-memory replication), I want to use the combination of
              >>both techniques to provide load-balancing and fail-over safety for user
              >>sessions and their corresponding workflows.
              >>>
              >>> The question I have is that, Is Handle obtained using
              >>EJBObject.getHandle(), fail-over safe (for a clusterable stateful bean), so
              >>that I can reconstruct the reference to EJBObject on the secondary server
              >>incase of primary server crash.
              >>>
              >>> My understanding is that I should store Handle in the HttpSession as it is
              >>Serializable not the EJBObject. The weblogic 6.0 document only talks about
              >>the replica-awareness of EJBObject.
              >>>
              >>> If my above assumption is incorrect, Can you tell me how else I can
              >>achieve my goal ?
              >>>
              >>> Thanks in advance.
              >>>
              >>> Anuj Soni
              >>
              >>
              >
              

    Any one tested this scenario yet? i.e: storing the handle to an EJB object and then trying to re-use after the HttpSession is restored?
              Thanks.
              

  • Hi I have two questions. I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users? How is the session timeout set? Thanks, YS

     

    <i>I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users?</i>
    Um, there is no such thing as NAS4.1.
    I'm assuming that you mean NAS4.0 (maybe NAS4.0sp1?). If so, then the session timeouts are specified in the session section of the NTV configuration files.
    AFAIK, you can specify session timeouts on a per user basis.

  • What would cause adobe connect to freeze in a session for users, while the moderator session did not

    what would cause adobe connect to freeze in a session for users, while the moderator session did not

    HI rogerstam1
    Is screen being shared at that time when addin freezes?
    if yes if this coems again could you just stop screen share and try it again.
    hope this helps.

Maybe you are looking for