Bo's Oracle Station

查看: 2836|回复: 0

课程第24次(2016-12-16星期五)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2016-12-17 10:26:39 | 显示全部楼层 |阅读模式
磁带机查异步IO:
  1. SQL> select   device_type, type , bytes from v$backup_async_io;

  2. DEVICE_TYPE          TYPE                 BYTES
  3. ----------------- --------- ----------
  4. DISK                  AGGREGATE    9830400
  5. DISK                  INPUT        9830400
  6. DISK                  OUTPUT       9912320
  7. DISK                  AGGREGATE  234872832
  8. DISK                  INPUT      234872832
  9. SBT_TAPE          OUTPUT     176685056
  10. SBT_TAPE          OUTPUT             0
  11. DISK                  AGGREGATE   12066816
  12. DISK                  INPUT       12066816
  13. SBT_TAPE          OUTPUT      12320768
  14. DISK                  AGGREGATE   83369984

  15. DEVICE_TYPE          TYPE                 BYTES
  16. ----------------- --------- ----------
  17. DISK                  INPUT       83369984
  18. SBT_TAPE          OUTPUT      73138176
  19. DISK                  AGGREGATE    5242880
  20. DISK                  INPUT        5242880
  21. SBT_TAPE          OUTPUT       3670016
  22. SBT_TAPE          OUTPUT             0
  23. DISK                  AGGREGATE  710942720
  24. DISK                  INPUT      710942720
  25. SBT_TAPE          OUTPUT     621019136
  26. DISK                  AGGREGATE  547889152
  27. DISK                  INPUT      547889152

  28. DEVICE_TYPE          TYPE                 BYTES
  29. ----------------- --------- ----------
  30. SBT_TAPE          OUTPUT     435421184
  31. DISK                  AGGREGATE   15212544
  32. DISK                  INPUT       15212544
  33. SBT_TAPE          OUTPUT      15466496
  34. DISK                  AGGREGATE   83369984
  35. DISK                  INPUT       83369984
  36. SBT_TAPE          OUTPUT      73138176
  37. DISK                  AGGREGATE    5242880
  38. DISK                  INPUT        5242880
  39. SBT_TAPE          OUTPUT       3670016

  40. 32 rows selected.
复制代码

查看表空间什么时候删除的:
  1. adrci> show alert -p "message_text like '%drop tablespace users%'"

  2. Choose the alert log from the following homes to view:

  3. 1: diag/rdbms/orcl/orcl
  4. 2: diag/rdbms/rcat/rcat
  5. 3: diag/asm/+asm/+ASM
  6. 4: diag/tnslsnr/station90/listener
  7. Q: to quit

  8. Please select option: 1
  9. Output the results to file: /tmp/alert_3749_14019_orcl_1.ado

  10. Please select option:
复制代码

闪回到删除表空间前,数据文件的现象:
  1. /u01/app/oracle/product/11.2.0/dbhome_1/dbs/UNNAMED00004
复制代码

obtool的常用命令:
  1. ob> lsjob
  2. Job ID           Sched time  Contents                       State
  3. ---------------- ----------- ------------------------------ ---------------------------------------
  4. oracle/121       none        database orcl (dbid=1343950367) processed; Oracle job(s) scheduled
  5. oracle/121.7     none        datafile backup                running since 2016/12/16.21:40
  6. oracle/121.8     none        datafile backup                running since 2016/12/16.21:40
  7. oracle/121.9     none        datafile backup                pending resource availability
  8. oracle/121.10    none        datafile backup                pending resource availability
  9. oracle/121.11    none        datafile backup                pending resource availability
  10. ob> lsvol -L lib01 -l
  11. Inventory of library lib01:
  12.     in    1:             vacant
  13.     in    2:             vacant
  14.     in    3:             barcode E01003L4, oid 215, 0 kb remaining
  15.     in    4:             barcode E01004L4, oid 217, 0 kb remaining
  16.     in    5:             barcode E01005L4, oid 104
  17.     in    6:             barcode E01006L4, oid 105
  18.     in    7:             barcode E01007L4, oid 106
  19.     in    8:             barcode E01008L4, oid 107
  20.     in    9:             barcode E01009L4, oid 108
  21.     in    10:            barcode E01010L4, oid 109
  22.     in    11:            barcode E01011L4, oid 110
  23.     in    12:            barcode E01012L4, oid 111
  24.     in    13:            barcode E01013L4, oid 112
  25.     in    14:            barcode E01014L4, oid 113
  26.     in    15:            barcode E01015L4, oid 114
  27.     in    16:            barcode E01016L4, oid 115
  28.     in    17:            barcode E01017L4, oid 116
  29.     in    18:            barcode E01018L4, oid 117
  30.     in    19:            barcode E01019L4, oid 118
  31.     in    20:            barcode E01020L4, oid 119
  32.     in    21:            vacant
  33.     in    22:            barcode CLN101L4, oid 120
  34.     in    23:            barcode CLN102L5, oid 121
  35.     in    24:            vacant
  36.     in    25:            vacant
  37.     in    26:            vacant
  38.     in    27:            vacant
  39.     in    28:            vacant
  40.     in    29:            vacant
  41.     in    30:            barcode F01030L5, oid 122
  42.     in    31:            barcode F01031L5, oid 123
  43.     in    32:            barcode F01032L5, oid 124
  44.     in    33:            barcode F01033L5, oid 125
  45.     in    34:            barcode F01034L5, oid 126
  46.     in    35:            barcode F01035L5, oid 127
  47.     in    36:            barcode F01036L5, oid 128
  48.     in    37:            barcode F01037L5, oid 129
  49.     in    38:            barcode F01038L5, oid 130
  50.     in    39:            barcode F01039L5, oid 131
  51.     in    iee1:          vacant
  52.     in    iee2:          vacant
  53.     in    iee3:          vacant
  54.     in    iee4:          vacant
  55.     in    dte1:          vacant
  56.     in    dte2:          vacant
  57.     in    dte3:          volume station90-000010, barcode E01002L4, oid 219, 5927936 kb remaining, content manages reuse, lastse 2
  58.     in    dte4:          volume station90-000009, barcode E01001L4, oid 218, 7442432 kb remaining, content manages reuse, lastse 1
  59. ob> lsjob
  60. Job ID           Sched time  Contents                       State
  61. ---------------- ----------- ------------------------------ ---------------------------------------
  62. oracle/122       none        database orcl (dbid=1343950367) processed; Oracle job(s) scheduled
  63. oracle/122.1     none        controlfile autobackup         running since 2016/12/16.21:42
  64. ob> lsjob
  65. Job ID           Sched time  Contents                       State
  66. ---------------- ----------- ------------------------------ ---------------------------------------
  67. oracle/122       none        database orcl (dbid=1343950367) processed; Oracle job(s) scheduled
  68. oracle/122.1     none        controlfile autobackup         running since 2016/12/16.21:42
  69. ob> lspiece
  70.     POID Database   Content    Copy Created      Host             Piece name
  71.      229 orcl       archivelog    0 2013/10/20   station90        01omt44q_1_1
  72.      230 orcl       incremental    0 2013/10/20   station90        05omt45l_1_1
  73.      231 orcl       incremental    0 2013/10/20   station90        02omt45k_1_1
  74.      232 orcl       incremental    0 2013/10/20   station90        06omt45l_1_1
  75.      233 orcl       incremental    0 2013/10/20   station90        03omt45k_1_1
  76.      234 orcl       incremental    0 2013/10/20   station90        04omt45k_1_1
  77.      235 orcl       archivelog    0 2013/10/20   station90        07omt48b_1_1
  78.      236 orcl       autobackup    0 2013/10/20   station90        c-1343950367-20131020-00
  79.      237 orcl       archivelog    0 2013/10/20   station90        09omt4bk_1_1
  80.      238 orcl       incremental    0 2013/10/20   station90        0aomt4ce_1_1
  81.      239 orcl       incremental    0 2013/10/20   station90        0comt4ce_1_1
  82.      240 orcl       incremental    0 2013/10/20   station90        0eomt4ce_1_1
  83.      241 orcl       incremental    0 2013/10/20   station90        0domt4ce_1_1
  84.      242 orcl       incremental    0 2013/10/20   station90        0bomt4ce_1_1
  85.      243 orcl       archivelog    0 2013/10/20   station90        0fomt4eg_1_1
  86.      244 orcl       autobackup    0 2013/10/20   station90        c-1343950367-20131020-01
  87.      245 orcl       archivelog    0 2013/10/20   station90        0homt4ha_1_1
  88.      246 orcl       incremental    0 2013/10/20   station90        0iomt4hq_1_1
  89.      247 orcl       incremental    0 2013/10/20   station90        0jomt4hq_1_1
  90.      248 orcl       incremental    0 2013/10/20   station90        0lomt4hq_1_1
  91.      249 orcl       incremental    0 2013/10/20   station90        0komt4hq_1_1
  92.      250 orcl       incremental    0 2013/10/20   station90        0momt4hr_1_1
  93.      251 orcl       archivelog    0 2013/10/20   station90        0nomt4ji_1_1
  94.      252 orcl       autobackup    0 2013/10/20   station90        c-1343950367-20131020-02
  95.      253 orcl       archivelog    0 12/12.16:03  station90        0prn9uf2_1_1
  96.      254 orcl       archivelog    0 12/12.16:03  station90        0qrn9uf3_1_1
  97.      255 orcl       archivelog    0 12/12.16:12  station90        0prn9uun_1_1
  98.      256 orcl       archivelog    0 12/12.16:12  station90        0qrn9uun_1_1
  99.      257 orcl       full          0 12/12.16:12  station90        0vrn9uvi_1_1
  100.      258 orcl       full          0 12/12.16:12  station90        0rrn9uvh_1_1
  101.      259 orcl       full          0 12/12.16:13  station90        0trn9uvh_1_1
  102.      260 orcl       full          0 12/12.16:13  station90        0srn9uvh_1_1
  103.      261 orcl       full          0 12/12.16:14  station90        0urn9uvi_1_1
  104.      262 orcl       autobackup    0 12/12.16:14  station90        c-1343950367-20161212-00
  105.      263 orcl       full          0 12/16.19:26  station90        17rnkrqb_1_1
  106.      264 orcl       full          0 12/16.19:26  station90        15rnkrqb_1_1
  107.      265 orcl       full          0 12/16.19:27  station90        16rnkrqb_1_1
  108.      266 orcl       full          0 12/16.19:26  station90        18rnkrqb_1_1
  109.      267 orcl       full          0 12/16.19:27  station90        19rnkrqb_1_1
  110.      268 orcl       autobackup    0 12/16.19:28  station90        c-1343950367-20161216-00
  111.      269 orcl       full          0 12/16.20:38  station90        1brnl016_1_1
  112.      270 orcl       full          0 12/16.20:46  station90        1drnl0gi_1_1
  113.      271 orcl       autobackup    0 12/16.20:47  station90        c-1343950367-20161216-02
  114.      272 orcl       full          0 12/16.21:38  station90        1mrnl3ff_1_1
  115.      273 orcl       full          0 12/16.21:39  station90        1nrnl3ff_1_1
  116.      274 orcl       full          0 12/16.21:40  station90        1srnl3kl_1_1
  117.      275 orcl       full          0 12/16.21:40  station90        1prnl3kl_1_1
  118.      276 orcl       full          0 12/16.21:40  station90        1rrnl3kl_1_1
  119.      277 orcl       full          0 12/16.21:41  station90        1qrnl3kl_1_1
  120.      278 orcl       full          0 12/16.21:41  station90        1trnl3km_1_1
  121.      279 orcl       autobackup    0 12/16.21:42  station90        c-1343950367-20161216-06
复制代码

化身的查看:
  1. [oracle@station90 ~]$ rman target /

  2. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 16 22:12:45 2016

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

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

  5. RMAN> list incarnation of database;

  6. using target database control file instead of recovery catalog

  7. List of Database Incarnations
  8. DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
  9. ------- ------- -------- ---------------- --- ---------- ----------
  10. 1       1       ORCL     1343950367       PARENT  1          15-AUG-09
  11. 2       2       ORCL     1343950367       PARENT  945184     23-MAY-13
  12. 3       3       ORCL     1343950367       ORPHAN  1081654    14-DEC-16
  13. 4       4       ORCL     1343950367       ORPHAN  1081654    14-DEC-16
  14. 5       5       ORCL     1343950367       PARENT  1081658    14-DEC-16
  15. 6       6       ORCL     1343950367       PARENT  1188230    16-DEC-16
  16. 7       7       ORCL     1343950367       ORPHAN  1188232    16-DEC-16
  17. 8       8       ORCL     1343950367       PARENT  1188232    16-DEC-16
  18. 9       9       ORCL     1343950367       CURRENT 1201233    16-DEC-16
复制代码

bcpserver上,做练习的IP列表:
  1. /tmp/botang-config-xshare/course/general/v_botang_all_ipsshd_open
复制代码




回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-16 15:56 , Processed in 0.040395 second(s), 24 queries .

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