RACcheck (RAC Configuration Audit Tool)使用介绍

RACcheck (RAC Configuration Audit Tool)使用介绍
RACcheck (RAC Configuration Audit Tool)使用介绍 这个工具不但方便dba对rac环境进行日常检查,而且也便于一线dba在rac出现问题时,将整个rac情况提交给oracle的sr快速处理问题。该工具只要将压缩包上传并解压即可运行,开始收集OS,CRS/GI,ASM,RDBMS等数据信息,完了再进行分析得出一个汇总文件,便于dba对问题的以及当前rac的状态做出评估。但是,该工具在我的实测中发现以下问题:第一,执行时间很长...

scripts:查看rman备份恢复进度

scripts:查看rman备份恢复进度
查看rman备份恢复进度 set line 200 col sid for 9999 col opname for a35 select inst_id, sid, serial#, opname, COMPLETE, trunc(((to_char(last_update_time, 'dd') - to_char(start_time, 'dd')) * 60 * 24 + (to_char(last_update_time, 'hh24') - to_char(start_time, 'hh24')) * 60 + (to_char(last_update_time, 'mi...

scripts:查看指定对象的历史增长情况

scripts:查看指定对象的历史增长情况
查看指定对象的历史增长情况 set linesize 150 column owner format a16 column object_name format a30 column start_day format a11 column block_increase format 9999999999 PROMPT specify owner name as parameter owner_name: DEFINE ownername = &owner_name select obj.owner, obj.object_name, to_char(sn.BEGIN_INTERVAL_TIME, 'YYYY-MM-DD') start_day, sum(a.space_use...

scripts:查看数据库日志切换频率

scripts:查看数据库日志切换频率
查看数据库日志切换频率 SET LINESIZE 145 SET PAGESIZE 9999 SET VERIFY off COLUMN H00 FORMAT 999 HEADING '00' COLUMN H01 FORMAT 999 HEADING '01' COLUMN H02 FORMAT 999 HEADING '02' COLUMN H03 FORMAT 999 HEADING '03' COLUMN H04 FORMAT 999 HEADING '04' COLUMN H05 FORMAT 999 HEADING '05' COLUMN H06 FORMAT 999 HEADING '06' COLUMN H07 F...

scripts:查看数据库版本及补丁情况

scripts:查看数据库版本及补丁情况
查看数据库版本及补丁情况 --数据库10.2以后可用 SET lines 100 numwidth 12 pages 100 COL action_time FOR a30 COL action FOR a12 COL version LIKE action COL comments FOR a30 SELECT action_time, action, version, id, comments FROM dba_registry_history ORDER BY action_time; --数据库通用 SET lines 100 numwidth 12 pages 100 COL action_time FOR a30 COL action FOR a12 COL version LIK...

scripts:查看数据库历史增长情况

scripts:查看数据库历史增长情况
查看数据库历史增长情况 此处是通过计算数据库所有表空间的历史增长情况来计算数据库历史情况。 --不含undo和temp with tmp as (select rtime, sum(tablespace_usedsize_kb) tablespace_usedsize_kb, sum(tablespace_size_kb) tablespace_size_kb from (select rtime, e.tablespace_id, ...

scripts:查看指定表空间增长情况

scripts:查看指定表空间增长情况
查看指定表空间增长情况 set linesize 160 set pagesize 200 BREAK ON name SKIP 1 select b.name, a.rtime, (a.tablespace_usedsize)*(c.block_size)/1024 tablespace_usedsize_kb, (a.tablespace_size)*(c.block_size)/1024 tablespace_size_kb, (TABLESPACE_USEDSIZE - LAG(TABLESPACE_USEDSIZE, 1, NULL) OVER(partition by name ORDER BY substr(a.rtime, 1, 10)))*(c.block_size)/1024 AS ...

scripts:查看enqueue和查看锁阻塞者和等待者

scripts:查看enqueue和查看锁阻塞者和等待者
查看enqueue select b.sid,b.serial#,b.username,b.machine,a.event,a.wait_time, chr(bitand(a.p1,-16777216)/16777215)||chr(bitand(a.p1, 16711680)/65535) "Enqueue Type" from v$session_wait a,v$session b where a.event not like 'SQL*N%' and a.event not like 'rdbms%' and a.sid=b.sid and b.sid>8 and a.event='enqueue' order by b.username; 查看锁阻塞者和等待者 SELECT DECODE(request,...

scripts:查看数据库表空间剩余量

scripts:查看数据库表空间剩余量
查看数据库表空间剩余量 set linesize 1000 set pagesize 100 select t.* from (SELECT D.TABLESPACE_NAME, SPACE "SUM_SPACE(M)", BLOCKS SUM_BLOCKS, SPACE - NVL(FREE_SPACE, 0) "USED_SPACE(M)", ROUND((1 - NVL(FREE_SPACE, 0) / SPACE) * 100, 2) "USED_RATE(%)", FREE_SPACE "FREE_SPACE(M)" FROM (SELEC...
Copyright © YallonKing 保留所有权利.   Theme  Ality

用户登录

分享到: