Diff between ALTER SYSTEM and ALTER DATABASE command [message #35282] |
Thu, 03 February 2005 20:07 |
Balaji. C
Messages: 1 Registered: February 2005
|
Junior Member |
|
|
Hi,
I used to get confused with ALTER SYSTEM and ALTER DATABSE commands used in Oracle SQL.
Example:
For switching log file we use ALTER SYSTEM.
SQL>ALTER SYSTEM SWITCH LOGFILE;
For adding a Log file we use ALTER DATABASE
SQL>ALTER DATABASE ADD LOGFILE MEMBER 'filename' [[REUSE]] TO GROUP int;
Is there any way to remember easily where to use ALTER SYSTEM and ALTER DATABASE commands.
Why not Oracle will allow us to use ALTER SYSTEM wherever we use ALTER DATABASE and vice versa.
Regards,
Balaji. C
|
|
|
|