1Z0-031.3 - 5. 诊断文件(alert files, backgroud trace files, user trace files)

Diagnostic Files

Diagnostic files are a means to capture information about the database's activities.

Types:

-- alertSID.log file : Information for day-to-day operation of the database

-- Background trace files : Vital information when background processes, such as SMON, PMON, DBWn, and others fail.

-- User trace files : Vital information for fatal user errors or user forced traced files.

[@more@]

Alert Log File

The alertSID.log file records the commands and Results of major events while the database is operational. 这主要包括Oracle的内部错误、数据块损坏错误、特权用户操作(例如启动例程、关闭例程、备份和恢复等)、数据库物理结构变化等信息。其信息由服务器进程和后台进程DBWRLGWR写入。

-- Each entry has a time stamp associated with it.

-- The DBA manages the alertSID.log file.

-- Its location is defined by BACKGROUND_DUMP_DEST.

The alert log file keeps a record of the following information:

-- When the database was started or shut down

-- A list of all non-default initialization parameters

-- The startup of background processes

-- The thread being used by the instance

-- The log sequence number LGWR is writing to

-- Information regarding a log switch

-- Creation of tablespaces and undo segments

-- Alter statements that have been issued

-- Information regarding error messages such as ORA-600 and extent errors.

Background Trace Files

-- They are created when a background process encounters an errors

-- Their location is defined by BACKGROUND_DUMP_DEST

User Trace File

-- It can also be generated by a you or a server process.

-- Its location is defined by USER_DUMP_DEST.

-- Its size is defined by MAX_DUMP_FILE_SIZE and defaults to 10M.

Enabling or Disabling User Tracing

User tracing is enabled or disabled at the session or instance level by using the following commands and parameter:

- Session level using the ALTER SESSION command:

-- ALTER SESSION SET SQL_TRACE = TRUE;

- Session level by executing DBMS procedure:

-- dbms_system.SET_SQL_TRACE_IN_SESSION

- Instance level by setting the initialization parameter:

-- SQL_TRACE = TRUE

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8633028/viewspace-909972/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8633028/viewspace-909972/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值