![]() |
ManualiOracle.it |
![]() |
| |||||||||||||||||||||||||||||||||||||||
|
February - Moving Segments
Level (*) : 3 Topic (*) : DBA/Progr
You want to move all segments contained in the tablespace TBS_SOURCE to the tablespaces TBS_TARGET_IDX and TBS_TARGET_DT. You don't want to use exp/imp, expdp/impdp or online table Redefinition. In TBS_SOURCE there are these objects types: - INDEX --> you want them to TBS_TARGET_IDX - LOBINDEX --> you want them to TBS_TARGET_DT - LOBSEGMENT --> you want them to TBS_TARGET_DT - TABLE --> you want them to TBS_TARGET_DT You have to find a query (from dictionary) that create the correct DDL to move those objects. For example, when you launch it, you have to see a result like this: SEGMENT_TYPE DDL -------------- ------------------------------------------------------------------------- INDEX alter index LA.SYS_C0015774 rebuild tablespace TBS_TARGET_IDX; INDEX alter index LA.IDX_LOG_ID_FOUR rebuild tablespace TBS_TARGET_IDX; LOBINDEX LOBINDEX LOBSEGMENT alter table CT.LOG_B move lob (XML) store as (tablespace TBS_TARGET_DT); LOBSEGMENT alter table LA.LOG_M move lob (XML) store as (tablespace TBS_TARGET_DT); TABLE alter table LA.LOG_EVENTS_BK move tablespace TBS_TARGET_DT; TABLE alter table LA.LOG_POLICY move tablespace TBS_TARGET_DTAnd you have to explain why you don't need a DDL to move the LOBINDEXes? January - resource busy error
Level (*) : 2 Topic (*) : DBA
You are in Oracle 10g and you launch this command:
alter table EMP initrans 5; ERROR at line 1: ORA-00054: resource busy and acquire with NOWAIT specified ORA-06512: at line 3You have to write an anonymous block that tries to do this operation 10 times. For example, you launch it and, at the third attempt, the command was successful, so on the screen you see: Success: No Success: No Success: YESOtherwise, which Oracle feature can you use if you are in Oracle 11g? (*) Level: 1: easy solution 2: medium solution 3: hard (or long) solution Topic: DBA: quiz usually suitable for DBAs Progr: quiz usually suitable for PL/SQL or SQL Programmers DBA/Progr: quiz suitable for DBAs and for Programmers
| ||||||||||||||||||||||||||||||||||||||