[Oracle] Ora2html--collect your Oracle Databases infomation

作者:Fenng
日期:25-Oct-2004 
出处:http://www.dbanotes.net
版本:0.91


有的时候,作为一个DBA,可能需要收集部署好的Oracle数据库信息。硬件配置、操作系统情况、软件安装路径、数据库用户信息......一项一项做下来也够头疼的。如果有工具能够自动给我们收集就方便多了。ora2html就是这样一个方便的小工具。

ora2html简介


ora2html ( 来自 http://ora2html.sourceforge.net/ ) 是一个专门收集类Unix平台上的Oracle数据库信息并输出报告的工具。该工具主要程序是一个 shell ( korn/bash )脚本,可以用在大多数Unis和Linux平台上。使用 ora2html 需要一个可用的oracle环境。 虽然对8i以前的版本支持不好,但是还是可以用在8i上,10g也是类似的情况。在8i/9i上面运行良好。

目前完全支持的平台:
其他平台应该也是可用的,但是似乎没有人证实这一点。

ora2html的特点:


使用简介


orahtml使用起来非常简单,参考下面的操作Log:
[root@foo root]# su - oracle

[oracle@foo oracle]$wget http://optusnet.dl.sourceforge.net/\
sourceforge/ora2html/ora2html_v1-45.tar.gz

[oracle@foo oracle]$tar -zxvf ora2html_v1-45.tar.gz

[oracle@foo oracle]mv ora2html_v1-45 ora2html

[oracle@foo oracle]cd ora2html

[oracle@foo ora2html]$ ls -ltr
total 228
-rw-r--r--    1 oracle   oracle        564 Oct 21 20:24 TODO
-rw-r--r--    1 oracle   oracle       7916 Oct 21 20:24 README
-rw-r--r--    1 oracle   oracle       3630 Oct 21 20:24 password_list.sql
-rw-r--r--    1 oracle   oracle      17979 Oct 21 20:24 COPYING
-rw-r--r--    1 oracle   oracle      13352 Oct 22 17:08 CHANGELOG
-rwx------    1 oracle   oracle     154131 Oct 22 17:14 ora2html
基本用法:
./ora2html                      #默认选项,输出为HTML报告
./ora2html -text                #文本输出到屏幕上(text output to screen)
./ora2html -nohtab              #HTML文件,没有HTML格式化的表
./ora2html -sid foo             #收集指定SID的信息
./ora2html -home all -nosid     #收集所有安装软件的信息,但是不包括数据库的信息
默认的报告非常详细,整个页面( 如果选择输出HTML的话 )分四个主要部分
1 - Basic system / platform information			#基本系统/平台信息
2 - OS user configuration and environment		#操作系统用户和环境变量
3 - Oracle software and components				#Oracle软件与组件
4 - Database foo (/u01/app/oracle/product/9.2.0)	#实例信息
报告中会用红色字体显示有问题的地方,比如有“lazy”用户(密码过于简单或是使用默认密码的用户)等。

其他问题


ora2html还在继续发展过程中,有潜力成为一款很方便的数据库信息收集工具(最后一次的更新居然是Oct 22 2004,开发者 ycl 还是很勤奋的:-) )。现在存在的问题有:css 没有完全和 html 页面剥离(作者也意识到了这一点);平台支持不够广泛;没有对XML的支持等。

参考信息


ora2html - http://ora2html.sourceforge.net/



本文作者

Fenng,某美资公司DBA,业余时间混迹于各数据库相关的技术论坛且乐此不疲。 目前关注如何利用ORACLE数据库有效地构建企业应用。对Oracle tuning、troubleshooting有一点研究。
个人技术站点:http://www.dbanotes.net/ 。 可以通过电子邮件 [email protected] 联系到他。

原文出处

http://www.dbanotes.net/OpenSource/Ora2html.htm

回上页<-|->回首页

All Articles (by Fenng) are licensed under a Creative Commons License.
I would welcome any feedback. Please send questions, comments or corrections to [email protected]
Valid XHTML 4.01 / Valid CSS