




免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Oracle日志信息收集针对Oracle数据库出现的各种问题,为了全方位的定位问题,维护部遇到客户oracle异常问题时,一例要求客户提供如下日志信息:1.$ORACLE_BASE/admin/$SID/bdump, $ORACLE_BASE/admin/$SID/udump 当天的日志 如:今天是6月16日,/u01/app/oracle/admin/test/bdump目录下: -rw-r- 1 oracle oinstall 205370 Jun 13 10:59 alert_test1.log-rw-r- 1 oracle oinstall 8153 Jun 13 10:59 test1_lgwr_16208.trc-rw-r- 1 oracle oinstall 2791 Jun 13 23:20 test1_m000_25387.trc-rw-r- 1 oracle oinstall 2791 Jun 14 23:21 test1_m000_20972.trc-rw-r- 1 oracle oinstall 2790 Jun 15 23:22 test1_m000_14356.trc-rw-r- 1 oracle oinstall 166589 Jun 16 10:23 test1_lmd0_16196.trc/u01/app/oracle/admin/test/udump 目录下当天的日志文件。2. crs log目录下crs的相关日志信息: 如:/u01/app/oracle/product/10.2.0/crs/log/hp101 drwxr-x- 2 oracle oinstall 96 May 15 14:21 admindrwxr-x- 2 oracle oinstall 96 May 15 14:22 evmddrwxr-x- 2 root oinstall 96 May 15 14:22 crsddrwxr-x- 5 oracle oinstall 8192 May 15 14:38 cssddrwxrwxr-t 5 oracle oinstall 8192 May 21 17:17 racg-rw-rw-r- 1 root oinstall 7750 Jun 3 16:46 alerthp101.logdrwxr-x- 2 oracle oinstall 114688 Jun 16 14:06 client这些目录下当天的日志文件。3. 监听器$ORACLE_HOME/network/log当天的日志信息: /u01/app/oracle/product/10.2.0/db/network/log$ lltotal 249696-rw-r-r- 1 oracle oinstall 126028387 Jun 16 14:14 listener.log-rw-r-r- 1 oracle oinstall 1743147 May 22 10:15 listener_hp101.log-rw-r-r- 1 oracle oinstall 3902 Jun 5 21:26 sqlnet.log4. 故障发生阶段的ash报告(时间段越短越好,一般在5-30分钟之间)和一个小时的awr报告:具体操作如下:生成awr report执行:SQL ?/rdbms/admin/awrrpt.sqlCurrent Instance DB Id DB Name Inst Num Instance - - - - 1939003356 TEST 1 test1 Specify the Report TypeWould you like an HTML report, or a plain text report?Enter html for an HTML report, or text for plain textDefaults to htmlEnter value for report_type: htmlType Specified: html (此处建议输入html) Specify the number of days of snapshots to choose fromEntering the number of days (n) will result in the most recent(n) days of snapshots being listed. Pressing withoutspecifying a number lists all completed snapshots.Enter value for num_days: 1 (输入多少天以来,例子输入是1天)Listing the last 30 days of Completed Snapshots SnapInstance DB Name Snap Id Snap Started Level- - - - -test1 TEST 1 09 12月 2007 17:26 1 2 09 12月 2007 17:35 1 3 09 12月 2007 17:35 1 4 09 12月 2007 17:35 1 5 09 12月 2007 17:35 1Specify the Begin and End Snapshot IdsEnter value for begin_snap: 4 (输入快照ID)Begin Snapshot Id specified: 1Enter value for end_snap: 5 (输入快照ID)End Snapshot Id specified: 5Specify the Report NameThe default report file name is awrrpt_1_4_5.html. To use this name,press to continue, otherwise enter an alternative.Enter value for report_name: awrrpt_test1_20071209.html (输入报告名) Ash报告生成:SQL ?/rdbms/admin/ashrpt.sqlCurrent Instance DB Id DB Name Inst Num Instance- - - - 1952945692 TEST 1 test1Specify the Report TypeEnter html for an HTML report, or text for plain textDefaults to htmlEnter value for report_type: htmlType Specified: html (此处建议输入html) Instances in this Workload Repository schema DB Id Inst Num DB Name Instance Host- - - - - 1952945692 2 TEST test2 hp102* 1952945692 1 TEST test1 hp101Defaults to current databaseUsing database id: 1952945692Defaults to current instanceUsing instance number: 1ASH Samples in this Workload Repository schemaOldest ASH sample available: 08-Jun-08 23:00:33 11000 mins in the pastLatest ASH sample available: 16-Jun-08 14:20:02 0 mins in the pastSpecify the timeframe to generate the ASH reportEnter begin time for report:- Valid input formats:- To specify absolute begin time:- MM/DD/YY HH24:MI:SS- Examples: 02/23/03 14:30:15- 02/23 14:30:15- 14:30:15- 14:30- To specify relative begin time: (start with - sign)- -HH24:MI- Examples: -1:15 (SYSDATE - 1 Hr 15 Mins)- -25 (SYSDATE - 25 Mins)Defaults to -15 minsEnter value for begin_time: 06/16/08 13:10:00 (输入报告开始时间,输入的时候注意时间格式 月/日/年)Report begin time specified: 06/16/08 13:10:00Enter duration in minutes starting from begin time:Defaults to SYSDATE - begin_timePress Enter to analyze till current timeEnter value for duration: 10 (输入时间长度,我这里输入的是10分钟)Report duration specified: 10 Using 16-Jun-08 13:10:00 as report begin timeUsing 16-Jun-08 13:20:00 as report end timeSpecify Slot Width (using ashrpti.sql) for Activity Over Time section- Explanation:- In the Activity Over Time section of the ASH report,- the analysis period is divided into smaller slots- and top wait events are reported in each of those slots.- Default:- The analysis period will be automatically split upto 10 slots- complying to a minimum slot width of- 1 minute, if the source is V$ACTIVE_SESSION_HISTORY or- 5 minutes, if the source is DBA_HIST_ACTIVE_SESS_HISTORY.Specify Slot Width in seconds to use in the Activity Over Time section:Defaults to a value as explained above:Slot Width specified:Specify Report Targets (using ashrpti.sql) to generate the ASH report- Explanation:- ASH Report can accept Report Targets,- like a particular SQL statement, or a particular SESSION,- to generate the report on. If one or more report targets are- specified, then the data used to generate the report will only be- the ASH samples that pertain to ALL the specified report targets.- Default:- If none of the report targets are specified,- then the target defaults to all activity in the database instance.Specify SESSION_ID (eg: from V$SESSION.SID) report target:Defaults to NULL:SESSION report target specified:Specify SQL_ID (eg: from V$SQL.SQL_ID) report target:Defaults to NULL: (% and _ wildcards allowed)SQL report target specified:Specify WATI_CLASS name (eg: from V$EVENT_NAME.WAIT_CLASS) report target:Enter CPU to investigate CPU usageDefaults to NULL: (% and _ wildcards allowed)WAIT_CLASS report target specified:Specify SERVICE_HASH (eg: from V$ACTIVE_SERVICES.NAME_HASH) report target:Defaults to NULL:SERVICE report target specified:Specify MODULE name (eg: from V$SESSION.MODULE) report target:Defaults to NULL: (% and _ wildcards allowed)MODULE report target specified:Specify ACTION n
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 员工福利政策改善与薪酬调整
- 制定合理计划提高工作效率
- 2025中国安科院新业态安全研究所招聘3人笔试备考试题及答案解析
- 2025浙江台州市温岭市海城投资集团有限公司招聘编外工作人员1人笔试备考试题及答案解析
- 家电维修规范工作流程
- 2025云南省腾冲出入境边防检查站片马分站边境管控专职辅警招聘(3人)模拟试卷附答案详解
- 2025云南昆明市官渡区职业高级中学秋季学期聘用制教师招聘16人(二)笔试含答案
- 热带果园种植技术要点大揭秘
- 水利工程水资源调查的规定
- 2025年通分测试题及答案
- 2025企业劳动合同范本新版
- 托管班的转让合同协议书
- 2025年新西师大版数学三年级上册全册教学课件
- 2025年证券从业资格考试金融市场基础知识押题及答案
- (正式版)DB1509∕T 0003-2023 《奶绵羊产奶性能测定技术规程》
- 舞蹈老师自我介绍课件
- 2025年吉林省教育系统校级后备干部选拔考试题及答案
- 社区安全知识培训资料课件
- 托盘运输知识培训内容课件
- 2024年春季云南省高中学业水平合格性考试化学试卷真题(含答案)
- 2025年不明原因肺炎应急演练预案范文
评论
0/150
提交评论