ITPUB??ì3
新一届的微软MVP评选已经开始,欢迎各位推荐!
ITPUB论坛 » Oracle数据库管理 » ora2html在RAC环境中的使用

标题: [原创] ora2html在RAC环境中的使用
离线 fable_cao
高级会员


精华贴数 1
个人空间 0
技术积分 2747 (561)
社区积分 5 (14948)
注册日期 2001-11-30
论坛徽章:2
ITPUB元老会员2006贡献徽章    
      

发表于 2008-1-10 16:31 
ora2html在RAC环境中的使用

近日因工作需要收集oracle数据库的相关信息,想偷懒,于是找到了ora2html工具,在
http://ora2html.sourceforge.net/
上有下载,最新版本是v1-47。

先在我的linux平台上的单机oracle10g上运行成功,得到的信息报表内容很丰富,格式也不错。
后在HP-UX平台上的oracle9iRAC上运行,结果运行到一半说是实例没有运行,结过后面的数据库部分都cancel了。
仔细检查ora2html脚本,发现最后面有如下shell:

if [ "$DBINFO_CHECKSIDS" = "" ] ; then
  export DBINFO_ORACLE_SIDS=$(grep -v -E "^$|^#|^\*" $DBINFO_ORATAB | cut -d":" -f1)
else
  export DBINFO_ORACLE_SIDS="$DBINFO_CHECKSIDS"
fi
if [ "$DBINFO_NOSID" = "YES" ] ; then
  AddText std "\nNot checking any databases due to -nosid option"
  DBINFO_ORACLE_SIDS=""
fi
for ORACLE_SID in $DBINFO_ORACLE_SIDS ; do
  let DBINFO_COUNTER+=1
  GetSidEnvironment $ORACLE_SID
  CheckDbStatus

晕倒,原来该脚本是从/etc/oratab中获得ORACLE_SID的,而RAC上的oratab中的实例名都是不带后缀的。
于是,手工编辑/etc/oratab,加上实例后缀1或2,重新执行ora2html,大功告成
当然,事后要改回来。
后来我在linux平台上的oracle10g RAC上也运行成功。


__________________
白天睁着眼睛灌水,晚上闭着眼睛灌水。
只看该作者    顶部
在线/呼叫 wgz7747
版主


精华贴数 0
个人空间 0
技术积分 2514 (624)
社区积分 10 (10591)
注册日期 2003-1-3
论坛徽章:7
现任管理团队成员ITPUB元老会员2007贡献徽章授权会员2008北京奥运纪念徽章:排球生肖徽章2007版:鼠
生肖徽章2007版:鸡     

发表于 2008-1-11 09:54 
都能收集些什么信息?


__________________
概念上清楚 理论上了解 操作上熟练
只看该作者    顶部
离线 yudingchu
儿童心理学=未来


来自 庐山
精华贴数 0
个人空间 46
技术积分 2470 (632)
社区积分 4315 (326)
注册日期 2007-11-1
论坛徽章:9
奥运纪念徽章NBA2008季后赛纪念徽章授权会员生肖徽章2007版:狗2008北京奥运纪念徽章:举重2008北京奥运纪念徽章:自行车
2008北京奥运纪念徽章:花样游泳2008北京奥运纪念徽章:摔跤2008北京奥运纪念徽章:排球   

发表于 2008-1-11 10:23 



只看该作者    顶部
离线 fable_cao
高级会员


精华贴数 1
个人空间 0
技术积分 2747 (561)
社区积分 5 (14948)
注册日期 2001-11-30
论坛徽章:2
ITPUB元老会员2006贡献徽章    
      

发表于 2008-1-11 16:36 


QUOTE:
原帖由 wgz7747 于 2008-1-11 09:54 发表
都能收集些什么信息?

用过就知道了,下面是html的目录:

Contents
Report Summary

1 - Basic system / platform information

1.1 - Server OS
1.2 - Server platform
1.3 - Server memory configuration
1.4 - Server kernel IPC-parameters
1.5 - Server filesystem layout and status

2 - OS user configuration and environment

2.1 - OS-users with admin rights on databases
2.2 - User oracle basic information
2.3 - User oracle environment
2.4 - User oracle crontab
2.5 - User oracle OS-processes

3 - Oracle software and components

3.1 - System oraInst.loc
3.2 - System srvConfig.loc
3.3 - System oratab
3.4 - Detected installations
3.5 - Common SQL*Net settings

3.5.1 - Shared listener configuration
3.5.2 - Shared listener security
3.5.3 - Shared SQL*Net configuraion
3.5.4 - Shared Tnsnames configiration

3.6 - Components and config for ORACLE_HOME=/oracle/product/10.2.0/db_1

3.6.1 - /oracle/product/10.2.0/db_1 : Installed products
3.6.2 - /oracle/product/10.2.0/db_1 : Installed adapters
3.6.3 - /oracle/product/10.2.0/db_1 : SQL*Net settings
3.6.3.1 - /oracle/product/10.2.0/db_1 : Listener configuration
3.6.3.2 - /oracle/product/10.2.0/db_1 : Listener security information
3.6.3.3 - /oracle/product/10.2.0/db_1 : SQL*Net configuration
3.6.3.4 - /oracle/product/10.2.0/db_1 : Tnsnames

4 - Database headdb (/oracle/product/10.2.0/db_1)

4.1 - headdb : Database configuration and logfile

4.1.1 - headdb : System parameter file (spfile)
4.1.2 - headdb : Parameter file (pfile)
4.1.3 - headdb : Config file (ifile)

4.2 - headdb : Internal database setup and configuration

4.2.1 - headdb : Basic instance information
4.2.2 - headdb : License information
4.2.3 - headdb : Available database products and options
4.2.4 - headdb : NLS Parameters
4.2.5 - headdb : System Global Area - SGA

4.2.5.1 - headdb : SGA - Shared Pool
4.2.5.2 - headdb : SGA - Buffer Cache
4.2.5.3 - headdb : SGA - Misc information

4.2.6 - headdb : Program Global Area - PGA
4.2.7 - headdb : Non-default database parameters
4.2.8 - headdb : Runtime modified database parameters

4.3 - headdb : Datafiles and storage setup

4.3.1 - headdb : Archive information
4.3.2 - headdb : Database controlfiles
4.3.3 - headdb : Database redolog files
4.3.4 - headdb : Rollback segments
4.3.5 - headdb : Undo segments
4.3.6 - headdb : Tablespaces

4.3.6.1 - headdb : Tablespace summary
4.3.6.2 - headdb : Tablespace increases
4.3.6.3 - headdb : Tablespaces not listed as online
4.3.6.4 - headdb : Temporary tablespaces
4.3.6.5 - headdb : Locally managed tablespaces
4.3.6.6 - headdb : Transportable tablespaces
4.3.6.7 - headdb : Bigfile tablespaces
4.3.6.8 - headdb : Tablespace fragmentation

4.3.7 - headdb : Datafiles

4.3.7.1 - headdb : Datafile summary
4.3.7.2 - headdb : Datafiles with autoextend enabled
4.3.7.3 - headdb : Datafiles not listed as online
4.3.7.4 - headdb : Datafile IO information
4.3.7.5 - headdb : Datafile Corruption

4.4 - headdb : Users and Roles

4.4.1 - headdb : Users
4.4.2 - headdb : Roles
4.4.3 - headdb : DB Jobs

4.5 - headdb : Database objects

4.5.1 - headdb : Summary of objects by user
4.5.2 - headdb : Invalid objects
4.5.3 - headdb : Directories
4.5.4 - headdb : External tables
4.5.5 - headdb : Snapshots / Materialized views
4.5.6 - headdb : Large segments

4.5.6.1 - headdb : Largest unpartitoned tables
4.5.6.2 - headdb : Largest unpartitoned indexes

4.5.7 - headdb : Partitioned segments

4.5.7.1 - headdb : Partitoned tables
4.5.7.2 - headdb : Partitoned indexes

4.5.8 - headdb : Interesting segments

4.5.8.1 - headdb : Segments that should be relocated
4.5.8.2 - headdb : Segments reaching max extents
4.5.8.3 - headdb : Segments with high # extents
4.5.8.4 - headdb : Segments unable to allocate next extent
4.5.8.5 - headdb : Chaining and migration
4.5.8.6 - headdb : Sysaux objects

4.6 - headdb : Database sessions

4.6.1 - headdb : Current sessions
4.6.2 - headdb : Top CPU users
4.6.3 - headdb : Resumable sessions

4.7 - headdb : Security overview

4.7.1 - headdb : Oracle security parameters
4.7.2 - headdb : Profile security information
4.7.3 - headdb : Database password file users
4.7.4 - headdb : Users authenticated externally
4.7.5 - headdb : Users/roles with worrying roles granted
4.7.6 - headdb : Users/roles with worrying privs granted
4.7.7 - headdb : Default and easy logins
4.7.8 - headdb : Lazy logins

4.8 - headdb : Recovery Manager (RMAN)

4.8.1 - headdb : RMAN Configuration


__________________
白天睁着眼睛灌水,晚上闭着眼睛灌水。
只看该作者    顶部
离线 yang_s_h_u_o
中级会员



精华贴数 0
个人空间 0
技术积分 820 (2304)
社区积分 7 (13359)
注册日期 2007-3-1
论坛徽章:0
      
      

发表于 2008-7-2 14:22 
能发个ora2html给我嘛
谢了

msn:yang_shuo2003@126.com


只看该作者    顶部
离线 yang_s_h_u_o
中级会员



精华贴数 0
个人空间 0
技术积分 820 (2304)
社区积分 7 (13359)
注册日期 2007-3-1
论坛徽章:0
      
      

发表于 2008-7-2 14:23 
从这个http://ora2html.sourceforge.net/网站下不下来


只看该作者    顶部
离线 mustapha
高级会员


来自 没的看了
精华贴数 1
个人空间 0
技术积分 5115 (262)
社区积分 81 (3842)
注册日期 2006-5-18
论坛徽章:13
会员2007贡献徽章授权会员2008北京奥运纪念徽章:沙滩排球生肖徽章2007版:猴生肖徽章2007版:鸡生肖徽章2007版:鼠
ITPUB新首页上线纪念徽章生肖徽章:虎数据库板块每日发贴之星生肖徽章:龙生肖徽章:马生肖徽章:羊

发表于 2008-7-2 14:24 
good!


__________________
没事就运动运动~~~~~~~~~~~~~
只看该作者    顶部
离线 Kamus
版主


精华贴数 51
个人空间 400
技术积分 46512 (13)
社区积分 3558 (379)
注册日期 2002-5-26
论坛徽章:28
现任管理团队成员2007年度ITPUB最佳技术原创精华ITPUB元老ITPUB北京九华山庄2008年会纪念徽章管理团队2007贡献徽章参与2007年甲骨文全球大会(中国上海)纪念
ITPUB北京香山2007年会纪念徽章管理团队2006纪念徽章会员2007贡献徽章会员2006贡献徽章授权会员生肖徽章2007版:虎

发表于 2008-7-2 23:28 
类似与oracle自己的RDA - Oracle Remote Diagnostic Agent 这个东西?


__________________
有事情请发Gmail邮箱,站内IM可能不能及时回复。    

***Chanel [K]***

从明天起, 做一个幸福的人  
喂马, 劈柴, 周游世界  
从明天起, 关心粮食和蔬菜  
我有一所房子 面朝大海, 春暖花开
只看该作者    顶部
离线 yayagirl
坚持学习!



精华贴数 0
个人空间 0
技术积分 597 (3195)
社区积分 117 (3152)
注册日期 2005-6-21
论坛徽章:6
生肖徽章2007版:鼠生肖徽章2007版:猴生肖徽章2007版:牛生肖徽章2007版:鸡生肖徽章2007版:虎生肖徽章2007版:兔
      

发表于 2008-7-3 00:28 
看起来和RDA很像呀.


只看该作者    顶部
离线 cc59
Love oracle



精华贴数 0
个人空间 326
技术积分 10885 (108)
社区积分 13746 (106)
注册日期 2004-8-13
论坛徽章:68
现任管理团队成员奥运纪念徽章2008北京奥运纪念徽章:帆船2008北京奥运纪念徽章:游泳  
      

发表于 2008-7-3 00:33 
嗯,楼主还不如用RDA了. 


__________________
My blog: tuning rac and using parallel


msn:liuyi8903@hotmail.com
只看该作者    顶部
相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问