alter system archive log current noswitch!!
為了歸檔我的日誌,我不小心加上了一個noswitch引數,而且我的資料庫不是standby的,這個操作導致資料庫被close了。幸虧即時開啟,不然又得忙活了.......
alter system switch logfile
alter system archive log current
alter system archive log noswitch
的具體解釋如下,記錄於此以警視自己。
ALTER SYSTEM SWITCH LOGFILE ;
SWITCH LOGFILE Clause
The SWITCH LOGFILE clause lets you explicitly force Oracle to begin writing to a new redo log file group, regardless of whether the files in the current redo log file group are full. When you force a log switch, Oracle begins to perform. a checkpoint but returns control to you immediately rather than when the checkpoint is complete. To use this clause, your instance must have the database open.
ALTER SYSTEM ARCHIVE LOG CURRENT ; CURRENT ClauseSpecify CURRENT to manually archive the current redo log file group of the specified thread, forcing a log switch. If you omit the THREAD parameter, then Oracle archives all redo log file groups from all enabled threads, including logs previous to current logs. You can specify CURRENT only when the database is open.
ALTER SYSTEM ARCHIVE LOG CURRENT NOSWITCH; NOSWITCHSpecify NOSWITCH if you want to manually archive the current redo log file group without forcing a log switch. This setting is used primarily with standby databases to prevent data divergence when the primary database shuts down. Divergence implies the possibility of data loss in case of primary database failure.
You can use the NOSWITCH clause only when your instance has the database mounted but not open. If the database is open, then this operation closes the database automatically. You must then manually shut down the database before you can reopen it
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-7631/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter system archive log current和alter system switch logfileHive
- alter system archive log current / all / switch logfileHive
- alter system switch logfile和alter system archive log current的區別Hive
- alter system switch logfile 和 alter system archive log current 的區別Hive
- [轉]alter system switch logfile和alter system archive log current的區別Hive
- zt:alter system switch logfile與ALTER SYSTEM ARCHIVE LOG CURRENT的區別Hive
- alter system switch log file 與 archive log current/all 區別Hive
- ALTER SYSTEM SWITCH LOGFILE ALTER SYSTEM ARCHIVELOG CURRENT 區別Hive
- [alter system dump學習1]alter system dump logfile
- alter system events與alter system event的區別
- Alter system in OracleOracle
- alter system switch logfile hang住的一種可能
- alter system kill sessionSession
- alter system switch logfile的執行時間是多久。
- alter system switch logfile手工日誌切換小記
- alter database和alter system和alter session的區別DatabaseSession
- alter system check datafiles 命令
- alter session|system set eventsSession
- AUTHID DEFINER\authid current_user與alter session set current_schemaSession
- alter system dump datafile headerHeader
- ALTER SYSTEM DISCONNECT SESSION ClauseSession
- oracle switch logfile日誌切換及alter system checkpoint作了什麼Oracle
- 在使用alter system switch log的時候無時間限制的等待
- log_archive_dest與log_archive_dest_n區別Hive
- 忍不住問下alter system 和alter database的區別Database
- alter system kill session 不成功Session
- alter system set events 相關知識
- alter system set events 知識 [final]
- oracle中Alter system 命令的總結Oracle
- alter system set events相關知識:
- alter system set events相關知識
- alter database open resetlogs;Database
- 【轉】詳解log_archive_dest與log_archive_dest_n區別Hive
- 關於 log_archive_dest與log_archive_dest_n a的區別Hive
- 通過 alter system dump logfile語句dump REDO及歸檔日誌資訊示例
- 【Oracle】alter system set events 相關知識Oracle
- ALTER SYSTEM KILL SESSION這麼沒力?(轉)Session
- Windows 下備份 archive logWindowsHive