原创 How to enable KRC and KRB tracing on Oracle

If you enabled BCT. Doc:  KRC : Recovery Block Change Tracking (krc)  KRC_CHANGES : Recovery Block Change Tracking CHAN

原创 linux shell 按行合併拼接兩個文件

    export P5FileName=${T_LOG}/PDB5fileNameTarget.txt     export CurP5FileName=${T_LOG}/PDB5fileNameTarget_T2.txt     e

原创 shell if options

文件表達式 -e filename 如果 filename存在,則爲真 -d filename 如果 filename爲目錄,則爲真  -f filename 如果 filename爲常規文件,則爲真 -L filename 如果 fil

原创 shell 去除首尾空格

經常碰到的場景,需要去除字符串中的前後的空格。在Shell中不像其他語言有strip()來處理,不過也是可以使用諸如awk等命令來處理。  下面是一個簡單示例: 1 [root@localhost ~]# echo ' A B C

原创 [轉] Oracle數據庫冷備份與熱備份操作梳理

    https://cloud.tencent.com/developer/article/1027486   Oracle數據庫的備份方式有冷備份和熱備份兩種,針對這兩種備份的實施過程記錄如下: 一、Oracle冷備份 概念 數據庫

原创 [轉]關於SCN寫的很詳細的一篇文章

原文:https://blog.csdn.net/qq_34556414/article/details/79493934  這是我讀過寫的比較好的那一類: 數據變化是如何寫入數據文件的 在理解SCN之前,我們先看下ORACLE事務中的數

原创 已解決:ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

  oracle@hostA:admin $ rman target sys/<passwd>@cdb Recovery Manager: Release 19.0.0.0.0 - Development on Wed Apr 8 0

原创 RMAN crosscheck command作用

CROSSCHECK命令:      用於覈對磁盤和磁帶上的備份文件,以確保RMAN資料庫與備份文件保持同步。注意:該命令只會檢查RMAN資料庫所記載的備份文件。當執行crosscheck命令時,如果資料庫記錄不匹配於備份文件的物理狀態,

原创 收集Oracle備份恢復信息

  收集Oracle備份恢復信息 rman target / spool log to rman_report.log set echo on show all; report schema; list incarnation; lis

原创 backup corrupted datafile as copy check V$COPY_CORRUPTION

  Physical datafile block corrupted.Then backup the corrupted datafile: dba:bk $ rman target / connected to target

原创 How to set and remove event value on oracle

Set mutiple event: alter system set event='10335 trace name context forever,level 1:10235 trace name context forever,l

原创 怎用oradebug生成call stack - Using oradebug to dump call stack

Using “oradebug dump errorstack <dump level>” one can dump the call stack of the process after attaching to a running s

原创 linux shell取文本最後一行

  總結一下: 1.tail -1 2.awk 'END {print}' 3.sed -n '$p' 4.sed '$!N;$!D' 5.awk '{b=a"\n"$0;a=$0}END{print b}' 點贊 收

原创 How to find who occupied disk space

How to find who occupied disk space   du -h -x --max-depth=1 # x: skip directories on different file systems lsof # if

原创 How To Catalog Backups / Archivelogs / Datafile Copies / Controlfile Copies in Oracle Database

The RMAN CATALOG command is used to accomplish the following: Add backup pieces and image copies on disk to the RMAN re