OCP-1Z0-053-V13.02-687题

687. Users are connected to a database instance that is using Automatic Storage Management (ASM).

The DBA executes the command as follows to shut down the ASM instance:

SQL> SHUTDOWN IMMEDIATE;


What happens to the database instance?

A.It shuts down long with the ASM instance.

B.It is aborted and the ASM instance shuts down normally.

C.It stays open and SHUTDOWN command for the ASM instance fails.  

D.It shuts down only after all pending transactions are completed and the ASM instance waits for this

before shutting down.

Answer: D 

答案解析:

参考:http://docs.oracle.com/cd/E11882_01/server.112/e18951/asminst.htm#OSTMG13640


IMMEDIATE or TRANSACTIONAL Clause

Oracle ASM waits for any in-progress SQL to complete before performing an orderly dismount of all of the disk groups and shutting down the Oracle ASM instance. Oracle ASM does not wait for users currently connected to the instance to disconnect. If any database instances are connected to the Oracle ASM instance, then the SHUTDOWN command returns an error and leaves the Oracle ASM instance running. Because the Oracle ASM instance does not contain any transactions, the TRANSACTIONAL mode behaves the same as IMMEDIATE mode.

个人觉得这道应该选C?


[grid@rtest ~]$ export ORACLE_SID=+ASM

[grid@rtest ~]$ sqlplus / as sysasm


SQL*Plus: Release 11.2.0.3.0 Production on Tue Nov 5 20:57:54 2013


Copyright (c) 1982, 2011, Oracle.  All rights reserved.



Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Automatic Storage Management option


SQL> shutdown immediate

ORA-15097: cannot SHUTDOWN ASM instance with connected client (process 4733)

[grid@rtest ~]$ oerr ora 15097

15097, 00000, "cannot SHUTDOWN ASM instance with connected client (process %s)"

// *Cause:  A SHUTDOWN command was issued to an ASM instance that had one or 

//          more connected clients.

// *Action: Stop all clients that are using this ASM instance and retry the 

//          SHUTDOWN command.  Alternatively, use the SHUTDOWN ABORT command.  

//          Note that issuing the SHUTDOWN ABORT command to an ASM instance 

//          results in abormal termination of all RDBMS instances connected 

//          to that ASM instance. One of the active clients has been listed

//          in the error message. Query the V$ASM_CLIENT fixed view in an 

//          ASM instance or use ASMCMD LSOF to list all active clients.

//

SQL> select * from V$ASM_CLIENT;


GROUP_NUMBER INSTANCE_NAME        DB_NAME  STATUS       SOFTWARE_VERSION     COMPATIBLE_VERSION

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

           1 rcat1028             rcat1028 CONNECTED    11.2.0.3.0           11.2.0.0.0

           2 rcat1028             rcat1028 CONNECTED    11.2.0.3.0           11.2.0.0.0


 

原文地址:https://www.cnblogs.com/hzcya1995/p/13316435.html