[스크랩] alter system / alter database / alter session 차이
http://cafe.naver.com/ocmkorea/8482
alter system
SYS>select name, isses_modifiable, issys_modifiable
2 from v$parameter
3 where isses_modifiable='TRUE'
4 and issys_modifiable='IMMEDIATE';
NAME ISSES ISSYS_MOD
-------------------------------------------------- ----- ---------
...
ddl_wait_for_locks TRUE IMMEDIATE
resumable_timeout TRUE IMMEDIATE
db_block_checking TRUE IMMEDIATE
recyclebin TRUE IMMEDIATE
....
65 rows selected.
------------------------------------ ----------- ------------------------------
recyclebin string on
------------------------------------ ----------- ------------------------------
recyclebin string OFF
------------------------------------ ----------- ------------------------------
recyclebin string on
------------------------------------ ----------- ------------------------------
recyclebin string on
------------------------------------ ----------- ------------------------------
recyclebin string OFF
------------------------------------ ----------- ------------------------------
recyclebin string OFF
SYS> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down
SYS> startup
ORACLE instance started.
Total System Global Area 268435456 bytes
Fixed Size 1218868 bytes
Variable Size 88082124 bytes
Database Buffers 171966464 bytes
Redo Buffers 7168000 bytes
Database mounted.
------------------------------------ ----------- ------------------------------
recyclebin string OFF
alter system은 세션을 종료하거나 DB를 내렸다 올려도 적용되어 있다.