[20181225]如何清除註冊的線上日誌.txt
[20181225]如何清除註冊的線上日誌.txt
--//連結http://www.itpub.net/thread-2107381-1-1.html的討論,lz可能使用rman的catalog註冊了線上日誌當作歸檔日誌.
--//我大概演示這個過程,也許作者不是這樣操作的.
1.環境:
SYS@book> @ ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SYS@book> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u01/app/oracle/archivelog/book/
Oldest online log sequence 703
Next log sequence to archive 705
Current log sequence 705
SELECT RECID
,NAME
,DEST_ID
,THREAD#
,SEQUENCE#
,CREATOR
,REGISTRAR
FROM v$archived_log a
WHERE a.name IS NOT NULL AND sequence# >= 703;
RECID NAME DEST_ID THREAD# SEQUENCE# CREATOR REGISTR
---------- ------------------------------------------------------------ ---------- ---------- ---------- ------- -------
1249 /u01/app/oracle/archivelog/book/1_703_896605872.dbf 1 1 703 ARCH ARCH
1250 /u01/app/oracle/archivelog/book/1_704_896605872.dbf 1 1 704 ARCH ARCH
--//當前並沒有線上日誌檔案在檢視v$archived_log中.
2.使用rman註冊:
RMAN> catalog archivelog '/mnt/ramdisk/book/redo01.log' ;
cataloged archived log
archived log file name=/mnt/ramdisk/book/redo01.log RECID=1251 STAMP=995797230
SELECT RECID
,NAME
,DEST_ID
,THREAD#
,SEQUENCE#
,CREATOR
,REGISTRAR
FROM v$archived_log a
WHERE a.name IS NOT NULL AND sequence# >= 703;
RECID NAME DEST_ID THREAD# SEQUENCE# CREATOR REGISTR
---------- ------------------------------------------------------------ ---------- ---------- ---------- ------- -------
1249 /u01/app/oracle/archivelog/book/1_703_896605872.dbf 1 1 703 ARCH ARCH
1250 /u01/app/oracle/archivelog/book/1_704_896605872.dbf 1 1 704 ARCH ARCH
1251 /mnt/ramdisk/book/redo01.log 1 1 704 RMAN RMAN
--//你可以發現線上日誌檔案註冊為歸檔,但是提示CREATOR=rman.如何取消很簡單執行:
--//參考連結:http://blog.itpub.net/267265/viewspace-748366/
3.如何取消.
SYS@book> execute dbms_backup_restore.resetcfilesection(11);
PL/SQL procedure successfully completed.
SELECT RECID
,NAME
,DEST_ID
,THREAD#
,SEQUENCE#
,CREATOR
,REGISTRAR
FROM v$archived_log a
WHERE a.name IS NOT NULL AND sequence# >= 703;
no rows selected
--//再重新註冊回去歸檔檔案.
RMAN> catalog start with '/u01/app/oracle/archivelog/book/';
searching for all files that match the pattern /u01/app/oracle/archivelog/book/
List of Files Unknown to the Database
=====================================
File Name: /u01/app/oracle/archivelog/book/1_696_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_698_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_704_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_703_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_695_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_701_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_697_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_700_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_699_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_702_896605872.dbf
Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u01/app/oracle/archivelog/book/1_696_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_698_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_704_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_703_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_695_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_701_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_697_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_700_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_699_896605872.dbf
File Name: /u01/app/oracle/archivelog/book/1_702_896605872.dbf
SELECT RECID
,NAME
,DEST_ID
,THREAD#
,SEQUENCE#
,CREATOR
,REGISTRAR
FROM v$archived_log a
WHERE a.name IS NOT NULL AND sequence# >= 703;
RECID NAME DEST_ID THREAD# SEQUENCE# CREATOR REGISTR
---------- ------------------------------------------------------------ ---------- ---------- ---------- ------- -------
3 /u01/app/oracle/archivelog/book/1_704_896605872.dbf 1 1 704 RMAN RMAN
4 /u01/app/oracle/archivelog/book/1_703_896605872.dbf 1 1 703 RMAN RMAN
--//現在取消了線上日誌檔案的註冊.不知道還有什麼方法,理論rman應該可以做到,如何做,給測試看看.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2286296/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 收集、分析線上日誌資料實戰——ELK
- [20211105]索引分裂 塊清除 日誌增加.txt索引
- 【REDO】Oracle 日誌挖掘,分析歸檔日誌線上日誌主要步驟Oracle
- [20181225]12CR2 SQL Plan Directives.txtSQL
- 批量註冊歸檔日誌
- [20211105]索引分裂塊清除日誌增加(唯一索引).txt索引
- DrawPad 離線註冊
- 日誌分析必備指令集【來自一段線上日誌的檢視的經歷】
- PowerJob 線上日誌飽受好評的祕訣:小但實用的分散式日誌系統分散式
- [20211108]索引分裂塊清除日誌增加(唯一索引)2.txt索引
- 金寶廳代理註冊-V加:18288129714線上註冊
- 如何註冊 ChatGPT ,OpenAIChatGPTOpenAI
- EmEditor 24.4.1 離線註冊分析
- windows10系統如何清除事件日誌Windows事件
- 存在多個不同註冊中心的時候,如何平滑的統一註冊中心?
- 如何註冊facebook賬號
- 華納線上註冊-q=1503964774
- 清除過期日誌的py指令碼指令碼
- win10如何解除dll註冊_win10取消註冊dll的方法Win10
- oracle的靜態註冊和動態註冊Oracle
- SpringBoot如何註冊Servlet、Filter、ListenerSpring BootServletFilter
- 註冊中心 Eureka 原始碼解析 —— 應用例項註冊發現(三)之下線原始碼
- [20210623]完善清除aud指令碼.txt指令碼
- 華納娛樂線上註冊-19188190807
- 華納線上註冊-l9188193789
- AllenExplorer v6.8 離線註冊分析
- 微服務下的註冊中心如何選擇微服務
- 【SpringBoot】服務對註冊中心的註冊時機Spring Boot
- 【SpringBoot】服務對註冊中心的下線時機Spring Boot
- 動態註冊和靜態註冊
- 華納平臺廳線上註冊18469871871
- Android黑科技:如何啟動未註冊的ActivityAndroid
- [20210622]logrotate清除oracle aud檔案的問題.txtlogrotateOracle
- 微服務學習小結-Eureka如何實現註冊中心,以及服務之間的註冊、呼叫微服務
- 如何在router-link上註冊事件事件
- springboot註冊Spring Boot
- 新金寶廳線上註冊-l9188193789
- 華納線上註冊官網-l8469871871