为了调查Oracle 的故障,可以通过设置event ,来了解详细的状况。方法如下:

■ 如果使用 SPFILE,

=============
To enable it:

1. Check the current event setting status:

SQL> show parameter event;

2. Add an event and set it up:

If there is no existing event, it is set as follows:
SQL> alter system set event = '235 errorstack (3) systemstate (10)' scope = spfile;

If there is an existing event, add it and set it as follows:
For example, if there is already an event of "902 errorstack (3) systemstate (10)" as a result of the above "1"
SQL> alter system set event = '902 errorstack (3) systemstate (10): 235 errorstack (3) systemstate (10)' scope = spfile;

3. Just to be sure, I will get a backup of SPFILE:

Example of execution:
SQL> create pfile = '/ home / oracle / pfile.ora' from spfile;

4. Restart the database.

=============
To disable it:

1. Delete event 235:

If there is no existing event, it is set as follows:
SQL> alter system set event = '' scope = spfile;

If there is an existing event, restore the original value:
For example, if there is already an event "902 errorstack (3) systemstate (10)" before this event setting,
SQL> alter system set event = '902 errorstack (3) systemstate (10)' scope = spfile;

2. Restart the database.

■ 如果使用 PFILE,

=============
To enable it:

1. Check the line related to "*. Event" with the cat command in the contents of PFILE.

2. Add and configure event 235:

If there is no existing event, please modify it as follows:
*. Event = '235 errorstack (3) systemstate (10)'

The existing event will be appended and set as follows:
For example, if the event of *. Event = '902 errorstack (3) systemstate (10)' already exists as a result of the above "1"
In some cases,
*. Event = '902 errorstack (3) systemstate (10): 235 errorstack (3) systemstate (10)'

3. Restart the database.

=============
To disable it:

1. Correct the line related to "*. Event" to the contents of PFILE.

If there is no existing event, it is set as follows:

*. Event = ''

If there is an existing event, restore the original value:
For example,
if there is already an event of *. Event = '902 errorstack (3) systemstate (10)' before this event setting,
leave it as following:

*. Event = '902 errorstack (3) systemstate (10)'

2. Restart the database.

至于数据库是使用了PFILE, 还是使用了SPFILE,可以通过查看如下的SQL文来看:

select * from v$spparameter where value is not null;

如果返回0行,则表明是使用了 spfile 启动的。

[Oracle]如何在Oracle中设置Event相关推荐

  1. 如何在MySQL中设置主从复制

    原作者:Etel Sverdlov 转载&翻译:https://www.digitalocean.com/community/tutorials/how-to-set-up-master-sl ...

  2. java如何使显示字符下标_Java如何在 Word 中设置上、下标

    上标是指比同一行中其他文字稍高的文字,而下标是指比同一行中其他文字稍低的文字.在生活中,我们常见的平方米.立方米等符号以及化学中的各种元素符号,都是利用上.下标来表示的.本文将介绍通过Free Spi ...

  3. 如何在Postfix中设置邮件转发

    如何在Postfix中设置邮件转发 2016年1月5日 Mail服务 Postfix 是广泛使用的邮件传输代理(MTA)服务器,可用于发送,接收和通过网络发送的电子邮件转发.本教程将帮助您配置Post ...

  4. 如何在 CSS 中设置组件在浏览器屏幕水平垂直居中

    如何在 CSS 中设置组件在浏览器屏幕水平垂直居中   在 CSS 中设置组件在浏览器屏幕水平垂直居中可分解为两个问题,一是设置组件在其父组件的水平垂直居中,二是让其父组件铺满整个屏幕.   对于让最 ...

  5. 计算机excel行高在哪里,如何在Excel2016中设置改行高和列宽?

    相信大家会发现excel2016默认的行号和列宽有的时候会不符合自己的要求,那如何在Excel2016中设置改行高和列宽?下面感兴趣的小伙伴就和小编一起来学习一下具体的方法吧! Excel2016设置 ...

  6. android input鼠标坐标,android - 如何在EditText中设置光标位置?

    android - 如何在EditText中设置光标位置? 有两个EditText,在加载页面时,第一个EditText中设置了一个文本,所以现在光标将在EditText的起始位置,我想在第二个Edi ...

  7. word如何设置上标形式_如何在word中设置特殊页码

    获取更多业界资讯和深度好文● 点击蓝字关注我们 ● 在日常工作中,我们编辑的word文档经常需要设置页码,但有时文档的第一页是封面,第二页才是正文,或者第二页是目录,第三页才是正文,如下图所示,而页码 ...

  8. aws中部署防火墙_如何在AWS中设置自动部署

    aws中部署防火墙 by Harry Sauers 哈里·绍尔斯(Harry Sauers) 如何在AWS中设置自动部署 (How to set up automated deployment in ...

  9. 如何在WP-Config中设置WordPress错误日志

    https://baijiahao.baidu.com/s?id=1622279671500148245&wfr=spider&for=pc 你想在wp-config文件中设置Word ...

  10. c语言sgoto 标志位,如何在Go中设置TCP数据包的“不分段”标志位?(How to set “don't fragment” flag bit for TCP packet in Go?)...

    如何在Go中设置TCP数据包的"不分段"标志位?(How to set "don't fragment" flag bit for TCP packet in ...

最新文章

  1. Codeforces 862B - Mahmoud and Ehab and the bipartiteness
  2. Android的消息机制(2)
  3. weblogic负载分发
  4. 360浏览器兼容模式下IE内核版本
  5. canvas-color的几种设置
  6. java 文件缓冲区_Java开发笔记(八十六)通过缓冲区读写文件
  7. Bootstrap学习一
  8. CentOS 7 Linux实时内核下的epoll性能分析后续 | 火焰图分析
  9. Linux网络子系统中旧的报文接收接口netif_rx
  10. java论文酒店管理系统_基于Java的酒店管理系统论文(含源文件).doc
  11. xp系统打开计算机硬盘分区,如何在xp系统对硬盘进行分区
  12. div水平垂直居中的常用方法
  13. 移动硬盘安装manjaro 20.2以及常用软件安装
  14. Linux搭建LAMP、LNMP环境;论坛的搭建;
  15. 崔希凡-javaWeb-笔记day07-day09(2016年7月26日23:17:27)
  16. md文件 linux,MD 文件扩展名: 它是什么以及如何打开它?
  17. 使用gdebi去解决安装deb包的时候软件依赖问题
  18. 十一届蓝桥模拟赛 元辅音字母 JAVA
  19. Mysql 的自增主键达到最大值,怎么办
  20. MTK软件测试简历,【转帖】MTK]平台相关资料

热门文章

  1. 1037. 在霍格沃茨找零钱(20)-PAT乙级真题
  2. 蓝桥杯 BASIC-19 基础练习 完美的代价
  3. win8 计算机配置,Win8如何进行系统配置
  4. python rabitmq_3、Python结合RabbitMQ实现消息传递
  5. 搭建DNS服务,正向解析域名
  6. 710. Random Pick with Blacklist - LeetCode
  7. 如何批量修改公式的字体
  8. 如何在原生微信小程序中实现数据双向绑定
  9. 从JDK源码看关闭钩子
  10. 如何构建自己的笔记系统?