Doc ID:  Note:46001.1 
l
Bulletin 
Type:  BULLETIN 
Status:  PUBLISHED 
 Content Type:  TEXT/PLAIN 
Creation Date:  14-JAN-1998 
Last Revision Date:  11-APR-2002 
 

1. Purpose
==========

This note explains how Oracle interacts with Windows NT's memory
architecture, for addition information about NT's memory architecture see
[NOTE:46053.1]

....

e) How session memory is released & thread termination consequences
-------------------------------------------------------------------

When a users session completes successfully it deallocates its memory using
the Win32 API call "VirtualFree" with the MEM_DECOMMIT | MEM_RELEASE
allocation flags. After all allocations have been freed the stack is also
released, leaving the Oracle processes address space free of reference to
the completed session.

If a users session terminates unexpectedly it will not release the memory it
has allocated, the allocated pages will remain in the Oracle processes
address space until the process exits. Unexpected termination may occur if
a users session if forced to terminate for one of the following reasons :

  - Shutdown abort.
  - Alter session kill session.
  - Oracle command line utility orakill.
  - Oracle Administration assistant for Windows : kill session.
  - Other utilities that can kill threads in processes.

Oracle Support Services recommends customers minimize the use of the above
commands, in particular the shutdown abort command. When shutdown abort is
run its calls the Win32 API "TerminateThread" for each users session, which
kills the thread without releasing its memory. On systems with many users a
large percentage of the 2GB address space of the Oracle process will become
inaccessible, ultimately causing allocation problems when Oracle is next
started. The only way to release this memory is to stop and start the Oracle
Service (e.g. OracleServiceORCL).

....

---end---



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: [EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to