Bo's Oracle Station

查看: 1653|回复: 0

第19次:2015-11-13星期五做完全恢复

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2015-11-17 17:31:39 | 显示全部楼层 |阅读模式
实验4:
  1. ecovery Manager complete.
  2. [oracle@station90 ~]$ sqlplus /nolog

  3. SQL*Plus: Release 11.2.0.3.0 Production on Fri Nov 13 21:54:42 2015

  4. Copyright (c) 1982, 2011, Oracle.  All rights reserved.

  5. SQL> conn / as sysdba
  6. Connected.
  7. SQL> create table ttestbotang_4 (a number) tablespace tbsocp05_test
  8.   2  ;
  9. create table ttestbotang_4 (a number) tablespace tbsocp05_test
  10. *
  11. ERROR at line 1:
  12. ORA-01542: tablespace 'TBSOCP05_TEST' is offline, cannot allocate space in it


  13. SQL> alter tablespace TBSOCP05_TEST  online;
  14. alter tablespace TBSOCP05_TEST        online
  15. *
  16. ERROR at line 1:
  17. ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
  18. ORA-01110: data file 6: '+DATA/orcl/datafile/tbsocp05_test.267.895701167'


  19. SQL> alter database create datafile '+DATA/orcl/datafile/tbsocp05_test.267.895701167';

  20. Database altered.

  21. SQL> recover datafile 6;
  22. ORA-00283: recovery session canceled due to errors
  23. ORA-01110: data file 6: '+DATA/orcl/datafile/tbsocp05_test.267.895701167'
  24. ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
  25. ORA-01110: data file 6: '+DATA/orcl/datafile/tbsocp05_test.267.895701167'


  26. SQL>  alter database create datafile '+DATA/orcl/datafile/tbsocp05_test.267.895701167'  as new;

  27. Database altered.

  28. SQL> recover datafile 6;
  29. ORA-00279: change 2091251 generated at 11/13/2015 21:52:47 needed for thread 1
  30. ORA-00289: suggestion :
  31. +FRA/orcl/archivelog/2015_11_13/thread_1_seq_135.295.895701171
  32. ORA-00280: change 2091251 for thread 1 is in sequence #135


  33. Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

  34. ORA-00279: change 2091530 generated at 11/13/2015 21:52:49 needed for thread 1
  35. ORA-00289: suggestion :
  36. +FRA/orcl/archivelog/2015_11_13/thread_1_seq_136.294.895701171
  37. ORA-00280: change 2091530 for thread 1 is in sequence #136


  38. Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
  39. auto
  40. ORA-00279: change 2091547 generated at 11/13/2015 21:52:50 needed for thread 1
  41. ORA-00289: suggestion :
  42. +FRA/orcl/archivelog/2015_11_13/thread_1_seq_137.293.895701171
  43. ORA-00280: change 2091547 for thread 1 is in sequence #137


  44. ORA-00279: change 2091576 generated at 11/13/2015 21:52:51 needed for thread 1
  45. ORA-00289: suggestion :
  46. +FRA/orcl/archivelog/2015_11_13/thread_1_seq_138.292.895701171
  47. ORA-00280: change 2091576 for thread 1 is in sequence #138


  48. Log applied.
  49. Media recovery complete.
  50. SQL> select  tablespace_name , status from dba_tablespaces;

  51. TABLESPACE_NAME                STATUS
  52. ------------------------------ ---------
  53. SYSTEM                               ONLINE
  54. SYSAUX                               ONLINE
  55. UNDOTBS1                       ONLINE
  56. TEMP                               ONLINE
  57. USERS                               ONLINE
  58. EXAMPLE                        ONLINE
  59. TBSOCP05_TEST                       OFFLINE

  60. 7 rows selected.

  61. SQL> alter tablespace TBSOCP05_TEST online;

  62. Tablespace altered.

  63. SQL>
复制代码



回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-29 16:24 , Processed in 0.035642 second(s), 24 queries .

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