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

796 篇文章 0 订阅
38 篇文章 0 订阅

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


 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值