博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Script to Collect RAC Diagnostic Information (racdiag.sql)
阅读量:6972 次
发布时间:2019-06-27

本文共 1738 字,大约阅读时间需要 5 分钟。

Script:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-- NAME: RACDIAG.SQL
-- SYS OR INTERNAL USER, CATPARR.SQL ALREADY RUN, PARALLEL QUERY OPTION ON
-- ------------------------------------------------------------------------
-- AUTHOR:
-- Michael Polaski - Oracle Support Services
-- Copyright 2002, Oracle Corporation
-- ------------------------------------------------------------------------
-- PURPOSE:
-- This script is intended to provide a user friendly guide to troubleshoot
-- RAC hung sessions or slow performance scenerios. The script includes
-- information to gather a variety of important debug information to determine
-- the cause of a RAC session level hang. The script will create a file
-- called racdiag_.out in your local directory while dumping hang analyze
-- dumps in the user_dump_dest(s) and background_dump_dest(s) on all nodes.
--
-- ------------------------------------------------------------------------
-- DISCLAIMER:
-- This script is provided for educational purposes only. It is NOT
-- supported by Oracle World Wide Technical Support.
-- The script has been tested and appears to work as intended.
-- You should always run new scripts on a test instance initially.
-- ------------------------------------------------------------------------
-- Script output is as follows:
 
set 
echo 
off
set 
feedback 
off
column 
timecol new_value 
timestamp
column 
spool_extension new_value suffix
select 
to_char(sysdate,
'Mondd_hhmi'
) timecol,
'.out' 
spool_extension 
from 
sys.dual;
column 
output 
new_value dbname
select 
value || 
'_' 
output
from 
v$parameter 
where 
name 
'db_name'
;
spool racdiag_&&dbname&

转载地址:http://gsosl.baihongyu.com/

你可能感兴趣的文章
学习计划与进度
查看>>
angular2 step by step #2 - start to debug
查看>>
redis基础一
查看>>
查缺补漏
查看>>
git 多人协作
查看>>
Linux中profile
查看>>
php 实现下载
查看>>
好文分享之--被无现金社会抛弃的人 - 引发我的思考
查看>>
SQL Server Database 维护计划创建完整的备份策略
查看>>
ASP.NET 压缩输出的HTML字符
查看>>
启动Sql server的服务CMD命令
查看>>
Ubuntu下实现Nginx+Tomcat实现负载均衡
查看>>
HTML <img> 标签的 height 和 width 属性
查看>>
QT 用listveiw显示图片
查看>>
KVO 底层实现
查看>>
【Todo】Java的JIT机制
查看>>
使用node 创建一个新项目
查看>>
主机名/etc/hosts文件的作用
查看>>
vue 使用props 实现父组件向子组件传数据
查看>>
php课程 10-35 php实现文件上传的注意事项是什么
查看>>