Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1434253
  • 博文数量: 556
  • 博客积分: 12626
  • 博客等级: 上将
  • 技术积分: 5799
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-11 15:56
个人简介

从事IT基础架构多年,发现自己原来更合适去当老师……喜欢关注新鲜事物,不仅限于IT领域。

文章分类

全部博文(556)

文章存档

2019年(6)

2018年(15)

2017年(17)

2016年(11)

2015年(2)

2014年(2)

2013年(36)

2012年(54)

2011年(100)

2010年(41)

2009年(72)

2008年(14)

2007年(82)

2006年(104)

分类: Oracle

2006-06-16 11:35:18

oracle9i数据库中使用OEM会发现当出现问题的时候,问问不知道因为什么,无处可查。下面是对OEM客户端进行跟踪的方法:

Enterprise Manager Client Application Tracing

To enable tracing of the Enterprise Manager Console and its management applications, you must start the application from a command line interface after adding the following properties (as shown, parameters are case sensitive) and appropriate values to the $ORACLE_HOME/sysman/config/clientconfig.properties file:

TRACING.ENABLED = {true|false}
TRACING.LEVEL = {5 | 3 |2}
LOGGING.MAX_SIZE=
LOGGING.MAX_FILE_CNT=

 

NOTE: If the value above is in brackets { }, you will need to pick one of the supplied values. If the value is in brackets < >, you will need to specify your own value. Do not include the brackets { } or < > when you put the parameter in the $ORACLE_HOME/sysman/config/clientConfig.Properties file.

 

Description of the parameters:

TRACING.ENABLED = {true|false}
Specifies if trace information is to be generated.

TRACING.LEVEL = {5 | 3 |2}
Set value to specify the detail of trace information to collect if tracing is enabled. For the most information, set the level to 2.

LOGGING.MAX_SIZE and LOGGING.MAX_FILE_CNT control how much disk space is used for the EM Client log files. You can affect the size and disk usage of the log files with these parameters.

 

Tracing Steps:

1. Modify the $ORACLE_HOME/sysman/config/clientconfig.properties file.

2. Go to a DOS window or a Unix command prompt.

3. Set the Environment:

Microsoft Specific: SET ORACLE_OEM_CLIENTTRACE=TRUE

(NOTE: For EM 9.2, you can just launch the console with oemapp debug console)

Unix Specific : setenv ORACLE_OEM_CLIENTTRACE=TRUE

4. Start the application from the command line using the OEMAPP script and redirect the output to a file. For example:

oemapp console >emoutput

5. If you need to perform additional JAVA debugging, you can make a backup of the OEMAPP.bat script file and then modify the file.

Replace the line that reads:

SET JRE=jre -nojit %ORACLE_OEM_JAVAMX%

With:

SET JRE=jre -nojit -mx32m -ms8m -verbose -verbosegc

阅读(1122) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~