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 FLUSH BUFFER_POOL
- Archive log mining steps(logminer to html)HiveHTML
- 什麼叫archive log expired?Hive
- log_archive_dest與log_archive_dest_n與USE_DB_RECOVERY_FILE_DESTHive
- ORA-01623: log is current log for thread - cannot dropthread
- 2.7.6.2.1 ALTER SYSTEM SET語句中的SCOPE子句
- alter system set event和set events的區別
- 17 LOG_ARCHIVE_DEST_n 引數屬性Hive
- [20231023]備庫與alter system flush buffer_cache.txt
- [20200114]關於log_archive_dest_1設定.txtHive
- [20200219]log_archive_dest_1定義問題.txtHive
- ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsedHive
- [LeetCode] 635. Design Log Storage SystemLeetCode
- Oracle設定日誌引數-ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;OracleDatabase
- alter system set ... scope=... 中的scope的含義是什麼?
- ORACLE之手動註冊監聽listener。alter system set local_listener="XXX"Oracle
- Oracle-真實環境的丟失current redo log file的故障恢復Oracle
- Swift iOS : ArchiveSwiftiOSHive
- MySQL ALTER命令MySql
- SQL__ALTERSQL
- mysql加快alter操作MySql
- Ten examples of git-archiveGitHive
- 7.71 CURRENT_TIMESTAMP
- 7.70 CURRENT_DATE
- Flashback Data Archive原理詳解Hive
- alter table set unused column
- alter database disable thread 2Databasethread
- mysql的ALTER TABLE命令MySql
- 【Hudi】原始碼解讀——Archive 流程原始碼Hive
- 【FLASHBACK】Oracle flashback data archive 介紹OracleHive
- Temporary failure resolving ‘archive.ubuntu.com‘AIHiveUbuntu
- alter table drop unused columns checkpoint
- alter table move與shrink space
- alter table nologging /*+APPEND PARALLEL(n)*/APPParallel
- ON UPDATE CURRENT_TIMESTAMP請慎用
- MySQL中的CURRENT_TIMESTAMPMySql
- Avoided redundant navigation to current location: "/users"IDENavigation
- 開心檔之MySQL ALTER命令MySql
- 如何獲取 alter 裡面的字串?字串