01
壞塊概述
02
壞塊檢測
dbv help=y
DBVERIFY: Release 12.2.0.1.0 - Production on Tue Jan 19 17:24:26 2021
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
Keyword Description (Default)
----------------------------------------------------
FILE File to Verify (NONE)
START Start Block (First Block of File)
END End Block (Last Block of File)
BLOCKSIZE Logical Block Size (8192)
LOGFILE Output Log (NONE)
FEEDBACK Display Progress (0)
PARFILE Parameter File (NONE)
USERID Username/Password (NONE)
SEGMENT_ID Segment ID (tsn.relfile.block) (NONE)
HIGH_SCN Highest Block SCN To Verify (NONE)
(scn_wrap.scn_base OR scn)
dbv file=+DATADG/xxx/DATAFILE/system.1135.1061813741
blocksize=8192 USERID=sys/xxxx
logfile=system.1135.1061813741.1.log
03
壞塊修復
RECOVER DATAFILE 8 BLOCK 13 DATAFILE 2 BLOCK 19;
RECOVER CORRUPTION LIST;(V$DATABASE_BLOCK_CORRUPTION)
By default, RMAN first searches for good blocks in the real-
time query physical standby database, then flashback logs
and then blocks in full or level 0 incremental backups.
<https://docs.oracle.com/database/121/BRADV/rcmblock.htm#BRADV89782>
REM Create the repair table in a given tablespace:
BEGIN
DBMS_REPAIR.ADMIN_TABLES (
TABLE_NAME => REPAIR_TABLE,
TABLE_TYPE => dbms_repair.repair_table,
ACTION => dbms_repair.create_action,
TABLESPACE => &tablespace_name);
END;
/
REM Identify corrupted blocks for schema.object (it also can be done at partition level with parameter PARTITION_NAME):
set serveroutput on
DECLARE num_corrupt INT;
BEGIN
num_corrupt := 0;
DBMS_REPAIR.CHECK_OBJECT (
SCHEMA_NAME => &schema_name,
OBJECT_NAME => &object_name,
REPAIR_TABLE_NAME => REPAIR_TABLE,
corrupt_count => num_corrupt);
DBMS_OUTPUT.PUT_LINE(number corrupt: || TO_CHAR (num_corrupt));
END;
/
REM Optionally display any corrupted block identified by check_object:
select BLOCK_ID, CORRUPT_TYPE, CORRUPT_DESCRIPTION
from REPAIR_TABLE;
REM Mark the identified blocks as corrupted
DECLARE num_fix INT;
BEGIN
num_fix := 0;
DBMS_REPAIR.FIX_CORRUPT_BLOCKS (
SCHEMA_NAME => &schema_name,
OBJECT_NAME=> &object_name,
OBJECT_TYPE => dbms_repair.table_object,
REPAIR_TABLE_NAME => REPAIR_TABLE,
FIX_COUNT=> num_fix);
DBMS_OUTPUT.PUT_LINE(num fix: || to_char(num_fix));
END;
/
REM Allow future DML statements to skip the corrupted blocks:
BEGIN
DBMS_REPAIR.SKIP_CORRUPT_BLOCKS (
SCHEMA_NAME => &schema_name,
OBJECT_NAME => &object_name,
OBJECT_TYPE => dbms_repair.table_object,
FLAGS => dbms_repair.SKIP_FLAG);
END;
/
alter system set events=10231 trace name context forever,level 10’;
alter system set events=10231 trace name context off;
04
總 結
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/129681.html
摘要:微軟正在繼續向提交潛在的新規范。微軟方面表示,預計在未來幾個月內完成規范,并在今年晚些時候推出。此外,微軟還在推進另一個開放計算貢獻的項目。去年年底,微軟推出了加密微控制器標準。微軟正在繼續向Open Compute Project提交潛在的新規范。在美國圣何塞舉行的Open Compute Project(OCP)美國峰會上,微軟推出了Project Denali,一項用于SSD固件接口標...
摘要:記錄總結一下的中引入圖片路徑的幾種書寫方式中靜態資源的引入機制關于靜態資源的官方文檔靜態資源可以通過兩種方式進行處理在被導入或在中通過相對路徑以開頭被引用。如果是一個絕對路徑,例如,它將會被保留不變。 vue --version 3.6.3記錄總結一下的Vue中引入圖片路徑的幾種書寫方式 vue中靜態資源的引入機制 Vue.js關于靜態資源的官方文檔 靜態資源可以通過兩種方式進行處理...
摘要:一總覽本文章不對日志組件進行優劣評價,只是對關系進行對比。在日志中組件中存在這樣的幾種關系,這幾種關系理解清楚,有助于我們對日志的引入和使用。 一、 總覽 本文章不對日志組件進行優劣評價,只是對關系進行對比。在日志中組件中存在這樣的幾種關系, 這幾種關系理解清楚, 有助于我們對日志的引入和使用。 showImg(https://segmentfault.com/img/bVbow7o?...
閱讀 1346·2023-01-11 13:20
閱讀 1684·2023-01-11 13:20
閱讀 1132·2023-01-11 13:20
閱讀 1858·2023-01-11 13:20
閱讀 4100·2023-01-11 13:20
閱讀 2704·2023-01-11 13:20
閱讀 1385·2023-01-11 13:20
閱讀 3597·2023-01-11 13:20