Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3540221
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2021-04-19 15:28:18


数据库环境复杂,可能出问题的点

引自  
  1. https://blog.dbi-services.com/you-do-use-the-oracle-trace-file-analyzer-dont-you/

因此设计出 tfactl 来收集信息,功能模块有很多


这里有个很不错的功能 oratop


但是收集信息时有些痛苦,常见以下说明
./tfactl diagcollect -srdc dbshutdown
看似简单,实际使用起来很玄幻

首先要创建一个文件
cat > /tmp/Backup_orcl.txt<  2021-04-10 10:00:00 File /tmp/a.dmp BACKUPDETAILS full
EOF
问题是:这个文件里面的内容和格式从哪里来的?

然后执行

[oracle@host bin]$ LANG=C
[oracle@host bin]$ ./tfactl diagcollect -srdc dbshutdown -database orcl -backupflag y -event_time "2021-04-16 08:46:21"
过程如下
  1. Please provide the details such as the date, type of backup etc in a file named Backup_[sid].txt. Please input the full path of this txt file: [Required for this SRDC]: /tmp/Backup_orcl.txt
  2. Can you reproduce the issue? [Required for this SRDC]: n
  3. You can terminate the hanging shutdown operation and start the database in restricted mode.Please press Y after the database is restarted in restricted mode [Required for this SRDC]: y
  4. Is the Shutdown hanging repeatedly on a particular process (mostly, background process)? [Required for this SRDC]: n
  5. Scripts to be run by this srdc: srdc_dbunix srdc_shutdown.sql cp_trace_out cp_parameter pstack
  6. Components included in this srdc: DATABASE NOCHMOS OS
  7. Collecting data for local node(s).
  8. Scanning files from Apr/16/2021 05:16:21 to Apr/16/2021 12:16:21
  9. Collection Id : 20210419145637host
  10. Detailed Logging at : /opt/oracle.ahf/data/repository/srdc_dbshutdown_collection_Mon_Apr_19_14_56_39_CST_2021_node_local/diagcollect_20210419145637_host.log
  11. 2021/04/19 14:56:49 CST : NOTE : Any file or directory name containing the string .com will be renamed to replace .com with dotcom
  12. 2021/04/19 14:56:49 CST : Collection Name : tfa_srdc_dbshutdown_Mon_Apr_19_14_56_39_CST_2021.zip
  13. 2021/04/19 14:56:50 CST : Getting list of files satisfying time range [04/16/2021 05:16:21 CST, 04/16/2021 12:16:21 CST]
  14. 2021/04/19 14:56:50 CST : Collecting additional diagnostic information...
  15. 2021/04/19 14:57:13 CST : Collecting ADR incident files...
  16. 2021/04/19 14:57:20 CST : Completed collection of additional diagnostic information...
  17. 2021/04/19 14:57:23 CST : Completed Local Collection
  18. .--------------------------------------.
  19. | Collection Summary |
  20. +-----------+-----------+-------+------+
  21. | Host | Status | Size | Time |
  22. +-----------+-----------+-------+------+
  23. | host | Completed | 404kB | 34s |
  24. '-----------+-----------+-------+------'
  25. Logs are being collected to: /opt/oracle.ahf/data/repository/srdc_dbshutdown_collection_Mon_Apr_19_14_56_39_CST_2021_node_local
  26. /opt/oracle.ahf/data/repository/srdc_dbshutdown_collection_Mon_Apr_19_14_56_39_CST_2021_node_local/host.tfa_srdc_dbshutdown_Mon_Apr_19_14_56_39_CST_2021.zip
如果不知道的话,可以看帮助 ./tfactl diagcollect -srdc dbshutdown -help


阅读(1073) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~