Bo's Oracle Station

查看: 1758|回复: 0

课程第37次(2017-06-13星期二)制造逻辑坏块样本+制造物理坏块样本

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-6-13 19:40:36 | 显示全部楼层 |阅读模式
1. 制造逻辑坏块样本:
1.1 PL/SQL Developper以sys用户执行:
  1. select  t.tablespace_name, t.status
  2. from dba_tablespaces t;

  3. create tablespace tbs1 datafile size 10M nologging;
复制代码
1.2 SQL*PLUS以hr用户执行:
  1. [oracle@station90 ~]$ sqlplus /nolog

  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 19:32:09 2017

  3. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  4. SQL> conn hr/oracle_4U
  5. Connected.
  6. SQL> create table t05218( a number , b varchar2(20)) tablespace tbs1;

  7. Table created.

  8. SQL> insert into t05218 values ( 179032 ,'seenanything'  );

  9. 1 row created.

  10. SQL> commit;

  11. Commit complete.

  12. SQL> create index i05218_a  on t05218(a) ;

  13. Index created.

  14. SQL> create index i05218_b  on t05218(b) ;

  15. Index created.

  16. SQL>
复制代码
1.3 RMAN备份:
  1. [oracle@station90 ~]$ rman target  /

  2. Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 13 19:40:58 2017

  3. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  4. connected to target database: ORCL (DBID=1343950367)

  5. RMAN> backup tag 'for_logical_broken' tablespace tbs1;

  6. Starting backup at 13-JUN-17
  7. using target database control file instead of recovery catalog
  8. allocated channel: ORA_SBT_TAPE_1
  9. channel ORA_SBT_TAPE_1: SID=201 device type=SBT_TAPE
  10. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  11. allocated channel: ORA_SBT_TAPE_2
  12. channel ORA_SBT_TAPE_2: SID=13 device type=SBT_TAPE
  13. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  14. channel ORA_SBT_TAPE_1: starting full datafile backup set
  15. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  16. input datafile file number=00006 name=+DATA/orcl/datafile/tbs1.267.946582309
  17. channel ORA_SBT_TAPE_1: starting piece 1 at 13-JUN-17
  18. channel ORA_SBT_TAPE_1: finished piece 1 at 13-JUN-17
  19. piece handle=17s6ndcm_1_1 tag=FOR_LOGICAL_BROKEN comment=API Version 2.0,MMS Version 10.4.0.4
  20. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:05
  21. Finished backup at 13-JUN-17

  22. Starting Control File and SPFILE Autobackup at 13-JUN-17
  23. piece handle=c-1343950367-20170613-01 comment=API Version 2.0,MMS Version 10.4.0.4
  24. Finished Control File and SPFILE Autobackup at 13-JUN-17

  25. RMAN>
复制代码
1.4 检查64进制的小程序:
  1. #!/bin/sh

  2. LIST="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 + /"


  3. read -p "Pleas input a base64 code: " INPUT
  4. COUNT=0

  5. for i in $LIST
  6. do
  7. if [ $INPUT == $i ]
  8. then
  9.   echo $COUNT
  10. else
  11.   COUNT=$[ $COUNT + 1 ]
  12. fi
  13. done
复制代码
1.5 开始逻辑坏块制作:
  1. [oracle@station90 ~]$ sqlplus /nolog

  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 19:44:38 2017

  3. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  4. SQL> conn hr/oracle_4U
  5. Connected.
  6. SQL> insert /*+ append */ into t05218 select  * from t05218;

  7. 1 row created.

  8. SQL> commit;

  9. Commit complete.

  10. SQL> select  * from t05218;
  11. [oracle@station90 ~]$ sqlplus /nolog

  12. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 19:44:38 2017

  13. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  14. SQL> conn hr/oracle_4U
  15. Connected.
  16. SQL> insert /*+ append */ into t05218 select  * from t05218;

  17. 1 row created.

  18. SQL> commit;

  19. Commit complete.

  20. SQL> select  * from t05218;

  21.      A B
  22. ---------- --------------------
  23.     179032 seenanything
  24.     179032 seenanything

  25. SQL> select  a,b, substr(rowid,10,6) from t05218;

  26.      A B            SUBSTR(ROWID,10,6)
  27. ---------- -------------------- ------------------------
  28.     179032 seenanything     AAAACH
  29.     179032 seenanything     AAAACI

  30. SQL> select  a,b, substr(rowid,10,6), dbms_rowid.rowid_block_number(rowid)  from t05218;

  31.      A B            SUBSTR(ROWID,10,6)
  32. ---------- -------------------- ------------------------
  33. DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  34. ------------------------------------
  35.     179032 seenanything     AAAACH
  36.                  135

  37.     179032 seenanything     AAAACI
  38.                  136

  39.          A B
  40. ---------- --------------------
  41.     179032 seenanything
  42.     179032 seenanything

  43. SQL> select  a,b, substr(rowid,10,6) from t05218;

  44.          A B                        SUBSTR(ROWID,10,6)
  45. ---------- -------------------- ------------------------
  46.     179032 seenanything         AAAACH
  47.     179032 seenanything         AAAACI

  48. SQL> select  a,b, substr(rowid,10,6), dbms_rowid.rowid_block_number(rowid)  from t05218;

  49.          A B                        SUBSTR(ROWID,10,6)
  50. ---------- -------------------- ------------------------
  51. DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  52. ------------------------------------
  53.     179032 seenanything         AAAACH
  54.                                  135[oracle@station90 ~]$ sqlplus /nolog

  55. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 20:21:55 2017

  56. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  57. SQL> conn hr/oracle_4U
  58. Connected.
  59. SQL> select  department_id, dbms_rowid.rowid_block_number(rowid) from departments;

  60. DEPARTMENT_ID DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  61. ------------- ------------------------------------
  62.        10                       175
  63.        20                       175
  64.        30                       175
  65.        40                       175
  66.        50                       175
  67.        60                       175
  68.        70                       175
  69.        80                       175
  70.        90                       175
  71.       100                       175
  72.       110                       175

  73. DEPARTMENT_ID DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  74. ------------- ------------------------------------
  75.       120                       175
  76.       130                       175
  77.       140                       175
  78.       150                       175
  79.       160                       175
  80.       170                       175
  81.       180                       175
  82.       190                       175
  83.       200                       175
  84.       210                       175
  85.       220                       175

  86. DEPARTMENT_ID DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  87. ------------- ------------------------------------
  88.       230                       175
  89.       240                       175
  90.       250                       175
  91.       260                       175
  92.       270                       175

  93. 27 rows selected.

  94. SQL>


  95.     179032 seenanything         AAAACI
  96.                                  136
复制代码
1.6 破坏这个表空间:
pohuai.png
1.7 RMAN恢复(没有日志情况下):
  1. [oracle@station90 ~]$ rman target /

  2. Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 13 20:13:01 2017

  3. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  4. connected to target database: ORCL (DBID=1343950367)

  5. RMAN> restore tablespace tbs1;

  6. Starting restore at 13-JUN-17
  7. using target database control file instead of recovery catalog
  8. allocated channel: ORA_DISK_1
  9. channel ORA_DISK_1: SID=138 device type=DISK
  10. allocated channel: ORA_DISK_2
  11. channel ORA_DISK_2: SID=201 device type=DISK
  12. allocated channel: ORA_DISK_3
  13. channel ORA_DISK_3: SID=11 device type=DISK
  14. allocated channel: ORA_DISK_4
  15. channel ORA_DISK_4: SID=75 device type=DISK
  16. allocated channel: ORA_DISK_5
  17. channel ORA_DISK_5: SID=140 device type=DISK
  18. allocated channel: ORA_DISK_6
  19. channel ORA_DISK_6: SID=198 device type=DISK
  20. allocated channel: ORA_DISK_7
  21. channel ORA_DISK_7: SID=16 device type=DISK
  22. allocated channel: ORA_DISK_8
  23. channel ORA_DISK_8: SID=74 device type=DISK
  24. allocated channel: ORA_SBT_TAPE_1
  25. channel ORA_SBT_TAPE_1: SID=144 device type=SBT_TAPE
  26. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  27. allocated channel: ORA_SBT_TAPE_2
  28. channel ORA_SBT_TAPE_2: SID=18 device type=SBT_TAPE
  29. channel ORA_SBT_TAPE_2: Oracle Secure Backup

  30. channel ORA_SBT_TAPE_1: starting datafile backup set restore
  31. channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
  32. channel ORA_SBT_TAPE_1: restoring datafile 00006 to +DATA/orcl/datafile/tbs1.267.946582309
  33. channel ORA_SBT_TAPE_1: reading from backup piece 17s6ndcm_1_1
  34. channel ORA_SBT_TAPE_1: piece handle=17s6ndcm_1_1 tag=FOR_LOGICAL_BROKEN
  35. channel ORA_SBT_TAPE_1: restored backup piece 1
  36. channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:35
  37. Finished restore at 13-JUN-17

  38. RMAN> recover tablespace tbs1;

  39. Starting recover at 13-JUN-17
  40. using channel ORA_DISK_1
  41. using channel ORA_DISK_2
  42. using channel ORA_DISK_3
  43. using channel ORA_DISK_4
  44. using channel ORA_DISK_5
  45. using channel ORA_DISK_6
  46. using channel ORA_DISK_7
  47. using channel ORA_DISK_8
  48. using channel ORA_SBT_TAPE_1
  49. using channel ORA_SBT_TAPE_2

  50. starting media recovery
  51. media recovery complete, elapsed time: 00:00:00

  52. Finished recover at 13-JUN-17

  53. RMAN>
复制代码
测一下:
  1. [oracle@station90 ~]$ sqlplus /nolog

  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 20:15:25 2017

  3. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  4. SQL> conn hr/oracle_4U
  5. Connected.
  6. SQL> select  * from t05218;
  7. ERROR:
  8. ORA-01578: ORACLE data block corrupted (file # 6, block # 136)
  9. ORA-01110: data file 6: '+DATA/orcl/datafile/tbs1.267.946582309'
  10. ORA-26040: Data block was loaded using the NOLOGGING option



  11. no rows selected
复制代码
Screenshot-2.png
  1. [oracle@station90 ~]$ sqlplus /nolog

  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 20:15:25 2017

  3. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  4. SQL> conn hr/oracle_4U
  5. Connected.
  6. SQL> select  * from t05218;
  7. ERROR:
  8. ORA-01578: ORACLE data block corrupted (file # 6, block # 136)
  9. ORA-01110: data file 6: '+DATA/orcl/datafile/tbs1.267.946582309'
  10. ORA-26040: Data block was loaded using the NOLOGGING option



  11. no rows selected

  12. SQL> select  * from t05218;
  13. ERROR:
  14. ORA-01578: ORACLE data block corrupted (file # 6, block # 136)
  15. ORA-01110: data file 6: '+DATA/orcl/datafile/tbs1.267.946582309'
  16. ORA-26040: Data block was loaded using the NOLOGGING option



  17. no rows selected

复制代码
2. 物理坏块制作:
  1. [oracle@station90 ~]$ sqlplus /nolog

  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 20:21:55 2017

  3. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  4. SQL> conn hr/oracle_4U
  5. Connected.
  6. SQL> select  department_id, dbms_rowid.rowid_block_number(rowid) from departments;

  7. DEPARTMENT_ID DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  8. ------------- ------------------------------------
  9.            10                                       175
  10.            20                                       175
  11.            30                                       175
  12.            40                                       175
  13.            50                                       175
  14.            60                                       175
  15.            70                                       175
  16.            80                                       175
  17.            90                                       175
  18.           100                                       175
  19.           110                                       175

  20. DEPARTMENT_ID DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  21. ------------- ------------------------------------
  22.           120                                       175
  23.           130                                       175
  24.           140                                       175
  25.           150                                       175
  26.           160                                       175
  27.           170                                       175
  28.           180                                       175
  29.           190                                       175
  30.           200                                       175
  31.           210                                       175
  32.           220                                       175

  33. DEPARTMENT_ID DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
  34. ------------- ------------------------------------
  35.           230                                       175
  36.           240                                       175
  37.           250                                       175
  38.           260                                       175
  39.           270                                       175

  40. 27 rows selected.

  41. SQL>
复制代码
物理坏块脚本physical-block11.2.0.1.sh:
  1. #!/bin/sh
  2. v_dbname=orcl
  3. su - oracle -c "/u01/app/oracle/product/11.2.0/dbhome_1/bin/srvctl stop database -d $v_dbname -o abort"
  4. su - oracle -c "/u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus /nolog" <<EOF
  5. conn / as sysdba
  6. startup mount exclusive
  7. EOF

  8. rm -f /home/oracle/example01.dbf 2>/dev/null

  9. su - oracle -c "/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target /" <<EOF
  10. backup as copy datafile 5 format '/home/oracle/example01.dbf';
  11. EOF

  12. dd if=/dev/zero of=/home/oracle/example01.dbf bs=8192 count=1 seek=175 conv=notrunc

  13. su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid ; export ORACLE_SID=+ASM ; /u01/app/oracle/product/11.2.0/grid/bin/asmcmd" <<EOF
  14. rm -f +data/$v_dbname/DATAFILE/example*
  15. EOF

  16. su - oracle -c "/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target /" <<EOF
  17. run {
  18. set maxcorrupt for datafile 5 to 1;
  19. backup as copy  datafilecopy '/home/oracle/example01.dbf' format '+data';
  20. }
  21. EOF

  22. sleep 3

  23. su - oracle -c "/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target /" <<EOF
  24. delete noprompt datafilecopy '/home/oracle/example01.dbf';
  25. switch datafile 5 to copy;
  26. EOF


  27. su - oracle -c "/u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus /nolog" <<EOF
  28. conn / as sysdba
  29. alter database open;
  30. EOF
复制代码
执行:
  1. [root@station90 ~]# /home/oracle/physical-block11.2.0.1.sh


  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 20:30:53 2017

  3. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  4. SQL> Connected to an idle instance.
  5. SQL> ORACLE instance started.

  6. Total System Global Area 6680915968 bytes
  7. Fixed Size                    2213936 bytes
  8. Variable Size                 3556771792 bytes
  9. Database Buffers         3087007744 bytes
  10. Redo Buffers                   34922496 bytes
  11. Database mounted.
  12. SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  13. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
  14. and Real Application Testing options

  15. Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 13 20:31:01 2017

  16. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  17. connected to target database: ORCL (DBID=1343950367, not open)

  18. RMAN>
  19. Starting backup at 13-JUN-17
  20. using target database control file instead of recovery catalog
  21. allocated channel: ORA_DISK_1
  22. channel ORA_DISK_1: SID=68 device type=DISK
  23. allocated channel: ORA_DISK_2
  24. channel ORA_DISK_2: SID=131 device type=DISK
  25. allocated channel: ORA_DISK_3
  26. channel ORA_DISK_3: SID=192 device type=DISK
  27. allocated channel: ORA_DISK_4
  28. channel ORA_DISK_4: SID=8 device type=DISK
  29. allocated channel: ORA_DISK_5
  30. channel ORA_DISK_5: SID=69 device type=DISK
  31. allocated channel: ORA_DISK_6
  32. channel ORA_DISK_6: SID=132 device type=DISK
  33. allocated channel: ORA_DISK_7
  34. channel ORA_DISK_7: SID=193 device type=DISK
  35. allocated channel: ORA_DISK_8
  36. channel ORA_DISK_8: SID=9 device type=DISK
  37. channel ORA_DISK_1: starting datafile copy
  38. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  39. output file name=/home/oracle/example01.dbf tag=TAG20170613T203104 RECID=2 STAMP=946585865
  40. channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
  41. Finished backup at 13-JUN-17

  42. Starting Control File and SPFILE Autobackup at 13-JUN-17
  43. piece handle=+FRA/orcl/autobackup/2017_06_13/s_946585768.268.946585867 comment=NONE
  44. Finished Control File and SPFILE Autobackup at 13-JUN-17

  45. RMAN>

  46. Recovery Manager complete.
  47. 记录了1+0 的读入
  48. 记录了1+0 的写出
  49. 8192字节(8.2 kB)已复制,2.293e-05 秒,357 MB/秒
  50. ASMCMD> ASMCMD> exit

  51. Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 13 20:31:07 2017

  52. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  53. connected to target database: ORCL (DBID=1343950367, not open)

  54. RMAN> 2> 3> 4>
  55. executing command: SET MAX CORRUPT
  56. using target database control file instead of recovery catalog

  57. Starting backup at 13-JUN-17
  58. allocated channel: ORA_DISK_1
  59. channel ORA_DISK_1: SID=68 device type=DISK
  60. allocated channel: ORA_DISK_2
  61. channel ORA_DISK_2: SID=131 device type=DISK
  62. allocated channel: ORA_DISK_3
  63. channel ORA_DISK_3: SID=193 device type=DISK
  64. allocated channel: ORA_DISK_4
  65. channel ORA_DISK_4: SID=8 device type=DISK
  66. allocated channel: ORA_DISK_5
  67. channel ORA_DISK_5: SID=69 device type=DISK
  68. allocated channel: ORA_DISK_6
  69. channel ORA_DISK_6: SID=132 device type=DISK
  70. allocated channel: ORA_DISK_7
  71. channel ORA_DISK_7: SID=191 device type=DISK
  72. allocated channel: ORA_DISK_8
  73. channel ORA_DISK_8: SID=7 device type=DISK
  74. channel ORA_DISK_1: starting datafile copy
  75. input is copy of datafile 00005: /home/oracle/example01.dbf
  76. output file name=+DATA/orcl/datafile/example.265.946585871 tag=TAG20170613T203104 RECID=3 STAMP=946585871
  77. channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
  78. Finished backup at 13-JUN-17

  79. Starting Control File and SPFILE Autobackup at 13-JUN-17
  80. piece handle=+FRA/orcl/autobackup/2017_06_13/s_946585768.269.946585871 comment=NONE
  81. Finished Control File and SPFILE Autobackup at 13-JUN-17

  82. RMAN>

  83. Recovery Manager complete.

  84. Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 13 20:31:15 2017

  85. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  86. connected to target database: ORCL (DBID=1343950367, not open)

  87. RMAN>
  88. using target database control file instead of recovery catalog
  89. allocated channel: ORA_DISK_1
  90. channel ORA_DISK_1: SID=68 device type=DISK
  91. allocated channel: ORA_DISK_2
  92. channel ORA_DISK_2: SID=131 device type=DISK
  93. allocated channel: ORA_DISK_3
  94. channel ORA_DISK_3: SID=191 device type=DISK
  95. allocated channel: ORA_DISK_4
  96. channel ORA_DISK_4: SID=8 device type=DISK
  97. allocated channel: ORA_DISK_5
  98. channel ORA_DISK_5: SID=69 device type=DISK
  99. allocated channel: ORA_DISK_6
  100. channel ORA_DISK_6: SID=132 device type=DISK
  101. allocated channel: ORA_DISK_7
  102. channel ORA_DISK_7: SID=192 device type=DISK
  103. allocated channel: ORA_DISK_8
  104. channel ORA_DISK_8: SID=9 device type=DISK
  105. List of Datafile Copies
  106. =======================

  107. Key     File S Completion Time Ckp SCN    Ckp Time      
  108. ------- ---- - --------------- ---------- ---------------
  109. 2       5    A 13-JUN-17       1072330    13-JUN-17      
  110.         Name: /home/oracle/example01.dbf
  111.         Tag: TAG20170613T203104

  112. deleted datafile copy
  113. datafile copy file name=/home/oracle/example01.dbf RECID=2 STAMP=946585865
  114. Deleted 1 objects


  115. RMAN>
  116. datafile 5 switched to datafile copy "+DATA/orcl/datafile/example.265.946585871"

  117. RMAN>

  118. Recovery Manager complete.

  119. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 20:31:19 2017

  120. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  121. SQL> Connected.
  122. SQL>
  123. Database altered.

  124. SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  125. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
  126. and Real Application Testing options
复制代码
  1. [oracle@station90 ~]$ rman target /

  2. Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jun 13 20:36:18 2017

  3. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  4. connected to target database: ORCL (DBID=1343950367)

  5. RMAN> list backup of tablespace example;

  6. using target database control file instead of recovery catalog

  7. List of Backup Sets
  8. ===================


  9. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  10. ------- ---- -- ---------- ----------- ------------ ---------------
  11. 35      Incr 0  657.75M    SBT_TAPE    00:00:27     18-MAY-17      
  12.         BP Key: 35   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  13.         Handle: 12s4ih4j_1_1   Media: station90-000001
  14.   List of Datafiles in backup set 35
  15.   File LV Type Ckp SCN    Ckp Time  Name
  16.   ---- -- ---- ---------- --------- ----
  17.   5    0  Incr 1057421    18-MAY-17 +DATA/orcl/datafile/example.265.946585871
复制代码
  1. [oracle@station90 ~]$ sqlplus /nolog

  2. SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 13 20:32:32 2017

  3. Copyright (c) 1982, 2009, Oracle.  All rights reserved.

  4. SQL> conn hr/oracle_4U
  5. Connected.
  6. SQL> select  * from departments;
  7. select        * from departments
  8.                *
  9. ERROR at line 1:
  10. ORA-01578: ORACLE data block corrupted (file # 5, block # 175)
  11. ORA-01110: data file 5: '+DATA/orcl/datafile/example.265.946585871'

复制代码

Screenshot-3.png

Screenshot.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-22 06:13 , Processed in 0.050367 second(s), 28 queries .

快速回复 返回顶部 返回列表