博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Oracle]如何在Oracle中设置Event
阅读量:5786 次
发布时间:2019-06-18

本文共 2345 字,大约阅读时间需要 7 分钟。

为了调查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 启动的。

转载地址:http://fcmyx.baihongyu.com/

你可能感兴趣的文章
第十六章:脚本化HTTP
查看>>
EXCEL表中如何让数值变成万元或亿元
查看>>
L104
查看>>
用javascript获取地址栏参数
查看>>
一起谈.NET技术,你应该知道的15个Silverlight诀窍
查看>>
商教助手!解析夏普液晶高清宽屏投影机系列
查看>>
云南去年有望实现151万贫困人口净脱贫
查看>>
Java架构师面试题系列整理(大全)
查看>>
延伸产业链 中国产粮大省向“精深”问发展
查看>>
消费贷用户70%月收入低于5000元 80、90后是主要人群
查看>>
2018年内蒙古外贸首次突破1000亿元
查看>>
CTOR有助于BCH石墨烯技术更上一层楼
查看>>
被遗忘的CSS
查看>>
Webpack中的sourcemap以及如何在生产和开发环境中合理的设置sourcemap的类型
查看>>
做完小程序项目、老板给我加了6k薪资~
查看>>
java工程师linux命令,这篇文章就够了
查看>>
关于React生命周期的学习
查看>>
webpack雪碧图生成
查看>>
搭建智能合约开发环境Remix IDE及使用
查看>>
Spring Cloud构建微服务架构—服务消费基础
查看>>