您的位置:首页 > 其它

ORA-25507错误  没有使资源管理器…

2017-05-02 10:44 447 查看
在执行alter system quiesce
restricted将数据库置于静默模式时,报ORA-25507错误。

SQL> alter system quiesce
restricted;

alter system quiesce restricted

*

ERROR at line 1:

ORA-25507: resource manager has not been continuously on

 

<<Database Administrator's
Guide>>上有这样一段话:
You
must have the Database Resource Manager feature activated, and it
must have been activated since instance startup (all
instances in an Oracle Real Application Clusters environment) to
successfully issue the
ALTER SYSTEM
QUIESCE RESTRICTED
statement. It is through the
facilities of the Database Resource Manager that non-DBA sessions
are prevented from becoming active. Also, while this statement is
in effect, any attempt to change the current resource plan will be
queued until after the system is unquiesced.

SQL> Select Plan From
Dba_Rsrc_Plans;

PLAN

------------------------------

SYSTEM_PLAN

INTERNAL_QUIESCE

INTERNAL_PLAN

SQL> alter system set
resource_manager_plan='SYSTEM_PLAN' scope=spfile
;


System altered.

SQL> startup force --需要重启数据库

ORACLE instance started.

Total System Global Area 122754448 bytes

Fixed Size 451984 bytes

Variable Size 88080384 bytes

Database Buffers 33554432 bytes

Redo Buffers 667648 bytes

Database mounted.

Database opened.

SQL> alter system quiesce restricted;

System altered.

SQL> select active_state from
v$instacne;

select active_state from v$instacne

*

ERROR at line 1:

ORA-00942: table or view does not exist

SQL> select active_state from
v$instance;

ACTIVE_ST

---------

QUIESCED

SQL> alter system
unquiesce;

System altered.

SQL> select active_state from
v$instance;

ACTIVE_ST

---------

NORMAL

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: