144.You execute the following command to change the status of the SALES tablespace: SQL> ALTER TABLE

144.You execute the following command to change the status of the SALES tablespace:
SQL> ALTER TABLESPACE sales OFFLINE;
Which statements describe the effect of the command? (Choose all that apply.)
A.The tablespace would require recovery to go back online.
B.A checkpoint is taken on all data files that are associated with the SALES tablespace.
C.The sessions that subsequently try to access the objects in the SALES tablespace receive an error.
D.The new status of the SALES tablespace is recorded in the control file when the database instance is closed.
答案:BC
解析:参考:http://docs.oracle.com/cd/B28359_01/server.111/b28310/tspaces005.htm#ADMIN11376
offline的时候可以有下面几种情况
NORMAL-会执行checkpoint
TEMPORARY-在数据文件损坏的情况下执行offline
IMMEDIATE-在归档下才可以offline,online的时候需要recover,不执行checkpoint
FOR RECOVER-在归档下才可以offline,主要是时间点恢复使用
A:错误
B:正确,触发checkpoint有以下几种情况
1.日志切换的时候(ALTER SYSTEM SWITCH LOGFILE)
2.发出checkpoint命令(ALTER SYSTEM checkpoint)
3.ALTER TABLESPACE/DATAFILE READ ONLY
4.SHUTDOWN
5.ALTER TABLESPACE TS_NAME BEGIN BACKUP/END BACKUP
C:正确
D:正确,执行offline的时候就记录了
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值