Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

133

积分

0

好友

17

主题
1#
发表于 2012-8-3 15:41:04 | 查看: 6552| 回复: 5
  1. 环境:
  2. 11.2.0.2.0 - 64bit Production$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.6 (Tikanga)
  3. 我的操作步骤;
  4. create undo tablespace undotbs2 DATAFILE  SIZE 1G AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED;

  5. alter system set undo_tablespace=UNDOTBS1 scope=both;

  6. drop tablespace UNDOTBS1 including contents and datafiles;

  7. /usr/sbin/lsof | grep undotbs1 | awk '{print $2}'

  8. sys> oradebug setospid  5989
  9. sys> oradebug call close 257;

  10. kill inactive的业务session
  11. kill -9

  12. create undo tablespace undotbs1 DATAFILE  SIZE 1G  AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED;

  13. alter system set undo_tablespace=UNDOTBS1 scope=both;

  14. drop tablespace UNDOTBS2 including contents and datafiles;

  15. sys> oradebug setospid  5989

  16. sys> oradebug call close 259;

  17. kill inactive的业务session
  18. kill -9

  19. alter日志报错如下;(我操作的时间为下午1点多)报错时间为下午3点多
  20. Fri Aug 03 15:18:17 2012

  21. Errors in file
  22. /u01/app/oracle/diag/rdbms/sid/SID/trace/SID_q000_5989.trc:

  23. ORA-01115: IO error reading block from
  24. file  (block # )

  25. ORA-01110: data file 3:
  26. '/u01/oradata/SID/datafile/o1_mf_undotbs1_81pr2654_.dbf'

  27. ORA-27072: File I/O error

  28. Linux-x86_64 Error: 9: Bad file descriptor

  29. Additional information: 4

  30. Additional information: 96991

  31. Additional information: -1
  32. 附trace文件
复制代码

[ 本帖最后由 saup007 于 2012-8-8 18:17 编辑 ]

ORACLE_SID_q000_5989.txt

2.79 KB, 下载次数: 814

2#
发表于 2012-8-3 15:44:58
我也是参考原来我发的帖子做的。

http://t.askmaclean.com/viewthread.php?tid=1105&highlight=

回复 只看该作者 道具 举报

3#
发表于 2012-8-3 17:18:43
为什么要用 oradebug call close 259;?


我在这篇文章里说明了 http://www.askmaclean.com/archiv ... A5%94%E6%BA%83.html


call close 不要用在 产品环境, 会引起的问题

回复 只看该作者 道具 举报

4#
发表于 2012-8-3 17:24:10
如果仅仅是 后台TRACE中有 ORA-27072: File I/O error 错误的话 可以忽略

回复 只看该作者 道具 举报

5#
发表于 2012-8-3 17:29:57
ODM DATA:

Trace file /u01/app/oracle/diag/rdbms/oracle_sid/oracle_sid/trace/oracle_sid_q000_5989.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1
System name:        Linux
Node name:        dbserver2
Release:        2.6.18-238.19.1.el5xen
Version:        #1 SMP Fri Jul 15 08:16:59 EDT 2011
Machine:        x86_64
VM name:        Xen Version: 3.1 (PVM)
Instance name: oracle_sid
Redo thread mounted by this instance: 1
Oracle process number: 19
Unix process pid: 5989, image: oracle@dbserver2 (Q000)


*** 2012-08-03 13:19:54.179
*** SESSION ID:(592.11) 2012-08-03 13:19:54.179
*** CLIENT ID:() 2012-08-03 13:19:54.179
*** SERVICE NAME:(SYS$BACKGROUND) 2012-08-03 13:19:54.179
*** MODULE NAME:(Streams) 2012-08-03 13:19:54.179
*** ACTION NAME:(QMON Slave) 2012-08-03 13:19:54.179

Received ORADEBUG command (#1) 'call close 257' from process 'Unix process pid: 32285, image: <none>'

*** 2012-08-03 13:19:54.194
Finished processing ORADEBUG command (#1) 'call close 257'

*** 2012-08-03 13:26:04.138
Received ORADEBUG command (#2) 'call close 259' from process 'Unix process pid: 3904, image: <none>'

*** 2012-08-03 13:26:04.138
Finished processing ORADEBUG command (#2) 'call close 259'
DDE rules only execution for: ORA 1110

*** 2012-08-03 15:18:17.521
----- START Event Driven Actions Dump ----
---- END Event Driven Actions Dump ----
----- START DDE Actions Dump -----
Executing SYNC actions
----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
Successfully dispatched
----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (SUCCESS, 0 csec) -----
Executing ASYNC actions
----- END DDE Actions Dump (total 0 csec) -----
kwqitmmit during kwqitmmit:time mgr IOT proc: Error 1115 in Queue Table SYS.ALERT_QT
kwqicaclcur: Error 1115
             Cursor Session Number : 611
             Cursor Session Serial : 21975
             Cursor Pin     Number : 28681
kwqitmmit during kwqitmmit:end proc: Error 1115 in Queue Table SYS.ALERT_QT
kwqitptm: error 1115 encountered during serving 12580
KSV 1115 error in slave process

*** 2012-08-03 15:18:17.546
ORA-01115: IO error reading block from file  (block # )
ORA-01110: data file 3: '/u01/oradata/oracle_sid/datafile/o1_mf_undotbs1_81pr2654_.dbf'
ORA-27072: File I/O error
Linux-x86_64 Error: 9: Bad file descriptor
Additional information: 4
Additional information: 96991
Additional information: -1
OPIRIP: Uncaught error 447. Error stack:
ORA-00447: fatal error in background process
ORA-01115: IO error reading block from file  (block # )
ORA-01110: data file 3: '/u01/oradata/oracle_sid/datafile/o1_mf_undotbs1_81pr2654_.dbf'
ORA-27072: File I/O error
Linux-x86_64 Error: 9: Bad file descriptor
Additional information: 4
Additional information: 96991
Additional information: -1

回复 只看该作者 道具 举报

6#
发表于 2012-8-8 18:16:18

回复 4# 的帖子

  1. alter日志算吗

  2. $ tail -10000 alert_SID.log | grep  -C 5 ORA-27072

  3. Fri Aug 03 15:18:17 2012
  4. Errors in file /u01/app/oracle/diag/rdbms/sid/SID/trace/SID_q000_5989.trc:
  5. ORA-01115: IO error reading block from file  (block # )
  6. ORA-01110: data file 3: '/u01/oradata/SID/datafile/o1_mf_undotbs1_81pr2654_.dbf'
  7. ORA-27072: File I/O error
  8. Linux-x86_64 Error: 9: Bad file descriptor
  9. Additional information: 4
  10. Additional information: 96991
  11. Additional information: -1
复制代码

回复 只看该作者 道具 举报

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

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-16 00:57 , Processed in 0.052903 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569