[Oracle]如何为数据库设置Event(eg: ORA-00235)


[Oracle]如何为数据库设置Event(eg: ORA-00235)

■ When you use SPFILE,

Setting procedure:

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. In case

■ When you use PFILE,

Setting procedure:

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,
*. Event = '902 errorstack (3) systemstate (10)'

2. Restart the database.

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值