這兩個命令都是用來更改一些數據庫配置的,所以經常容易混淆,如:
>alter database drop logfile group 1;
>alter system switch logfile;
>alter system kill session 'sid,serial#';
為了方便記憶,歸納如下:
alter database (改變數據庫--database)
和物理文件直接相關的操作
alter system (改變實例--instance)
不直接牽涉到磁盤文件的操作當然,這只是為了方便記憶,只滿足大部分的情況,并不是所有的命令都能套到這個框框里,最終還是用熟了就記住哪個是哪個了。---外傳---
oracle server=Instance (memory structure) + Database (disk file) + U/S Process
?? Instance=SGA + Background Process
?? Database=control file + data file + log file
?? U/S Process= User Process + Server Process + PGA
posted on 2009-06-16 12:32
Jcat 閱讀(228)
評論(0) 編輯 收藏 所屬分類:
Database