Oracle OCP IZ0-053 710(Recyclebin&Tablespace Quato)

710. You executed the following commands in a database session:

Which statement is true about the contents of the recycle bin in this situation?
A.They remain unaffected.
B.They are moved to flashback logs.
C.They are moved to the undo tablespace.
D.They are moved to a temporary tablespace.
E.The objects in the recycle bin that are in the default tablespace for the session user are cleaned up.
Answer:E


验证:创建了一个用户,并且默认表空间之分配了1M的配额。
        可以看到,因为表空间配额不够,所以,recyclebin的内容被create table命令清除了。
        尝试flashback, 提示对象已经不在回收站里
       

SQL> create tablespace ts_test datafile '/u01/app/oracle/oradata/inst1/ts_test.dbf' size 100M autoextend off;


Tablespace created.


SQL> create user mytest identified by mytest
  2    default tablespace ts_test
  3    temporary tablespace TEMP
  4    profile DEFAULT
  5    password expire;


User created.


SQL> alter user mytest quota 1m on ts_test;


User altered.


SQL> grant connect to mytest;


Grant succeeded.


SQL> grant create table to mytest;


Grant succeeded.


SQL> create table mytest.test01 tablespace ts_test as select * from dba_objects
  2  where rownum <= 1000;


Table created.


SQL> conn mytest/mytest       
ERROR:
ORA-28001: the password has expired




Changing password for mytest
New password: 
Retype new password: 
Password changed
Connected.
SQL> drop table test01;


Table dropped.


SQL> select object_name,original_name from recyclebin
  2  /


OBJECT_NAME                    ORIGINAL_NAME
------------------------------ --------------------------------
BIN$Losw5djDFabgUwEAAH+Dvw==$0 TEST01


SQL> create table mytest.test01 tablespace ts_test as select * from dba_objects;
create table mytest.test01 tablespace ts_test as select * from dba_objects
*
ERROR at line 1:
ORA-01536: space quota exceeded for tablespace 'TS_TEST'




SQL> select object_name,original_name from recyclebin;


no rows selected


SQL>  flashback table test01 to before drop;
 flashback table test01 to before drop
*
ERROR at line 1:
ORA-38305: object not in RECYCLE BIN





来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8520577/viewspace-2061144/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8520577/viewspace-2061144/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值