Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







  SP2-0864 Session has expired  tips

Oracle Database Tips by Donald BurlesonMarch 29, 2015

Question:  I am getting the iSQL*Plus error "SP2-0864 Session has expired. Please log in again".  How do I prevent the  SP2-0864 error?

Answer:  The Oracle oerr utility show this for the SP2-0864 error:

SP2-0864 Session has expired. Please log in again.

Cause: The iSQL*Plus session was idle for too long and the context has been removed to free resources for other connections.

Action: Reconnect to iSQL*Plus. The system administrator can configure the timeout period.

The Oracle docs note this on Setting the Session Time Out:

Timing out iSQL*Plus sessions helps to reduce machine load and to maximize resources. The time out interval is set by the session-timeout element. It defines the time a session can be idle before it is expired.

You need to stop the iSQL*Plus Application Server to make changes to the session-timeout element. You can edit the web.xml configuration file to change the timeout interval. The web.xml file is located in the directory:


In the web.xml file, search for the <session-timeout> element inside <session-config>. The syntax of the line to change in the configuration file is:


Where the value is the number of whole minutes of idle time before the session times out. It has a default value of 15 minutes. It can be set to any value from 1 to 1440 minutes. It can also be set to never expire by entering a negative value such as -1. It should not be set
so small that users do not get a chance to enter their scripts. When a user tries to use a timed out iSQL*Plus session, the Login screen is displayed and the user is prompted to log in again. The following error is displayed: SP2-0864: Session has expired. Please log in again.

Solution: (by Oracle security guru Pete Finnigan)

To prevent the "SP2-0864 Session has expired. Please log in again" error, is related to the iSQL*Plus timeout interval Parameter. You the time out interval with the SQLPlusTimeOutInterval initialization parameter, which the time a session can be idle before it is expired.

You increase the session expiration period you need to edit the iSQL*Plus configuration file isqlplus.conf and change the timeout value:

FastCgiServer ... -initial-env iSQLPlusTimeOutInterval=n

where n is the number of minutes before the session times out. iSQLPlusTimeOutInterval has a default of 30 minutes. It can be set to any value from 1 to 1440 minutes.

The isqlplus.conf file should be included inside the oracle_apache.conf file which in turn is included in httpd.conf file.  Hence, any changes needs a restart of apache to re-read the configuration files:

 $ORACLE_HOME/Apache/bin/apachectl restart

Oracle Training from Don Burleson 

The best on site "Oracle training classes" are just a phone call away! You can get personalized Oracle training by Donald Burleson, right at your shop!

Oracle training



Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.



Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster