Home » SQL & PL/SQL » SQL & PL/SQL » Diff between Alter Session and Alter system (Oracle 11g)
Diff between Alter Session and Alter system [message #587923] Wed, 19 June 2013 06:23 Go to next message
baskar.gouda@sun.com
Messages: 4
Registered: June 2009
Location: CHENNAI
Junior Member
Hi,
What is the difference between alter session and alter system?

Thanks-Bhaskar
Re: Diff between Alter Session and Alter system [message #587924 is a reply to message #587923] Wed, 19 June 2013 06:30 Go to previous messageGo to next message
dariyoosh
Messages: 538
Registered: March 2009
Location: France
Senior Member
Hi,

The answer is in the doucmentation
http://docs.oracle.com/cd/A97630_01/server.920/a96540/statements_23a.htm#2053604
Quote:

. . .
Use the ALTER SYSTEM statement to dynamically alter your Oracle instance. The settings stay in effect as long as the database is mounted.
. . .


http://docs.oracle.com/cd/A97630_01/server.920/a96540/statements_22a.htm
Quote:

. . .
Use the ALTER SESSION statement to specify or modify any of the conditions or parameters that affect your connection to the database. The statement stays in effect until you disconnect from the database.
. . .


Regards,
Dariyoosh
Re: Diff between Alter Session and Alter system [message #587925 is a reply to message #587923] Wed, 19 June 2013 06:30 Go to previous message
cookiemonster
Messages: 13972
Registered: September 2008
Location: Rainy Manchester
Senior Member
alter session affects the current session only, alter system affects the entire system.
Previous Topic: Error in reading data from collection variable for ref cursor.
Next Topic: String Split/ String replace based on character length
Goto Forum:
  


Current Time: Thu Sep 04 22:49:16 CDT 2025