alter database和alter system和alter session的區別
Use the ALTER SYSTEM statement to dynamically alter your Oracle Database instance. The settings stay in effect as long as the database is mounted.
Modifies a database, or the files and filegroups associated with the database. Adds or removes files and filegroups from a database, changes the attributes of a database or its files and filegroups, changes the database collation, and sets database options. Database snapshots cannot be modified
alter database 資料檔案、表空間、日誌檔案等等,和物理上的檔案有關係的一些變更,也就是對資料庫的更改,一般改變的是物理上的,通過alter database操作時會觸發controlfile header和其他一些物理檔案頭資訊的變化
比如 :alter dtabase rename datafile
alter system 動態的改變例項的屬性(引數),也就是對例項的更改,一般是邏輯上的
比如:alter system set db_cache_size
alter session 改變的的是一個會話的屬性
比如:alter session set nls_language
Modifies a database, or the files and filegroups associated with the database. Adds or removes files and filegroups from a database, changes the attributes of a database or its files and filegroups, changes the database collation, and sets database options. Database snapshots cannot be modified
alter database 資料檔案、表空間、日誌檔案等等,和物理上的檔案有關係的一些變更,也就是對資料庫的更改,一般改變的是物理上的,通過alter database操作時會觸發controlfile header和其他一些物理檔案頭資訊的變化
比如 :alter dtabase rename datafile
alter system 動態的改變例項的屬性(引數),也就是對例項的更改,一般是邏輯上的
比如:alter system set db_cache_size
alter session 改變的的是一個會話的屬性
比如:alter session set nls_language
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29196873/viewspace-1129423/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 忍不住問下alter system 和alter database的區別Database
- alter system switch logfile和alter system archive log current的區別Hive
- alter system switch logfile 和 alter system archive log current 的區別Hive
- alter system events與alter system event的區別
- [轉]alter system switch logfile和alter system archive log current的區別Hive
- alter system kill sessionSession
- ALTER SYSTEM SWITCH LOGFILE ALTER SYSTEM ARCHIVELOG CURRENT 區別Hive
- ALTER DATABASE 與 ALTER TABLESPACE OFFLINE的區別Database
- alter system archive log current和alter system switch logfileHive
- alter table move 和 alter table shrink space的區別
- alter system set event和set events的區別
- alter session|system set eventsSession
- zt:alter system switch logfile與ALTER SYSTEM ARCHIVE LOG CURRENT的區別Hive
- ALTER SYSTEM DISCONNECT SESSION ClauseSession
- alter database datafile offline drop 與 alter tablespace drop datafile 區別Database
- alter system kill session 不成功Session
- Alter system in OracleOracle
- ALTER TABLE MOVE和SHRINK SPACE區別
- [alter system dump學習1]alter system dump logfile
- alter session setSession
- alter database in OracleDatabaseOracle
- ALTER SYSTEM 中 SCOPE=SPFILE/MEMORY/BOTH 的區別:
- 檢視鎖的資訊和alter system kill session的用法(小例子)Session
- alter database datafile offline and alter database tablespace ...offlineDatabase
- ALTER SYSTEM KILL SESSION這麼沒力?(轉)Session
- ALTER SESSION SET EVENTSSession
- alter database create datafileDatabase
- alter database create datafile '' as ''Database
- alter database drop datafile 與 drop tablespace file 的區別Database
- Alter system suspend/resume 導致的bug和特性
- alter index rebuild和rebuild online的區別IndexRebuild
- alter system check datafiles 命令
- alter system disconnect/kill session 'sid,serial#';Session
- ora-00054 , alter system kill session 'id,serial#'Session
- Alter system kill session and ORA-00031: session marked for killSession
- alter database open resetlogs;Database
- ALTER DATABASE RESETLOGS 的作用Database
- alter database offline 與 alter database offline drop效果比對Database