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
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle OCP IZ0-053 Q543Oracle
- Oracle OCP IZ0-053 Q2Oracle
- Oracle OCP IZ0-053 Q282Oracle
- Oracle OCP IZ0-053 Q705Oracle
- Oracle OCP IZ0-053 Q476Oracle
- Oracle OCP IZ0-053 Q452Oracle
- Oracle OCP IZ0-053 Q14(Hot Patch)Oracle
- Oracle OCP IZ0-053 Q682(Rman Crosscheck)OracleROS
- Oracle OCP IZ0-053 Q88(Rman Channel)Oracle
- Oracle OCP IZ0-053 Q432(Segment Shrink)Oracle
- Oracle OCP IZ0-053 Q651(Scheduler Job)Oracle
- Oracle OCP IZ0-053 Q694(Transportable Tablespace)Oracle
- Oracle OCP IZ0-053(Recovery Missing Active Redo Log)Oracle
- Oracle OCP IZ0-053 Q448(Job Coordinator)Oracle
- Oracle OCP IZ0-053 Q695(Rman catalog)Oracle
- Oracle OCP IZ0-053 Q257(workload capture)OracleAPT
- Oracle OCP IZ0-053 Q594(RMAN Image Copy)Oracle
- Oracle OCP IZ0-053 Q582(Recover Archivedlog)OracleHive
- Oracle OCP IZ0-053 Q425( transportable tablespace set)Oracle
- Oracle OCP IZ0-053 Q193(rman recover)Oracle
- Oracle OCP IZ0-053 Q157(Data Encryption)Oracle
- Oracle OCP IZ0-053 Q530(ASM Shutdown Normal)OracleASMORM
- Oracle OCP IZ0-053 Q620(Rman Catalog)Oracle
- Oracle OCP IZ0-053 Q14(? ?NLS_LENGTH_SEMANTICS)Oracle
- Oracle OCP IZ0-053 Q251(Rman Import Catalog)OracleImport
- Oracle OCP IZ0-053 Q166(Flashback Data Archive)OracleHive
- Oracle OCP IZ0-053 Q219(DB_SECUREFILE)Oracle
- Oracle OCP IZ0-053 Q692(Workload Capture and Replay)OracleAPT
- Oracle OCP IZ0-053 Q216(Job Chain Process)OracleAI
- Oracle OCP IZ0-053 Q64(Rman controlfile)Oracle
- Oracle OCP IZ0-053 Q319(Rman Retention)Oracle
- Oracle OCP IZ0-053 Q240(ASM DISK_REPAIR_TIME)OracleASMAI
- Oracle OCP IZ0-053 Q478(SQL Plan Baselines)OracleSQL
- Oracle OCP IZ0-053 Q241(RMAN Recovery Catalog Keep)Oracle
- Oracle OCP IZ0-053 Q312(RMAN Catalog)Oracle
- Oracle OCP IZ0-053 Q411(Workload Capture of RAC)OracleAPT
- Oracle OCP IZ0-053 Q365(tablespace point-in-time recovery)Oracle
- Oracle OCP IZ0-053 Q400(資料塊校驗)Oracle