SQL> select instance_name,status, logins from v$instance;
INSTANCE_NAME STATUS LOGINS
---------------- ------------ ----------
enmo1 OPEN ALLOWED
SQL> alter system quiesce restricted;
System altered.
SQL> select instance_name,status,logins,active_state from v$instance;
INSTANCE_NAME STATUS LOGINS ACTIVE_ST
---------------- ------------ ---------- ---------
enmo1 OPEN ALLOWED QUIESCED
[oracle@enmo1 ~]$ sqlplus hr/hr
SQL*Plus: Release 11.2.0.4.0 Production on Tue May 23 19:12:52 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
此時除了sys和system用戶外,均無法登錄,如登陸,則會出現掛起現象。當禁用了靜默限制模式後,暫停的會話將會自動登錄;
SQL> alter system unquiesce;
System altered.
只有sys用戶和system用戶不受quiesce模式限制,其他用戶(包括擁有DBA角色的用戶)均受到quiesce模式限制;
在啓用quiesce模式限制時,如果已有連接上的會話,那麼,當執行SQL時,則出現掛起現象,取消了quiesce模式,SQL將開始執行。
RAC環境下,quiesce模式限制所有實例。