exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 24 discussion

Actual exam question from Oracle's 1z0-082
Question #: 24
Topic #: 1
[All 1z0-082 Questions]

Which two statements are true about space-saving features in an Oracle Database? (Choose two.)

  • A. Private Temporary Tables (PTTS) store metadata in memory only
  • B. An index created with the UNUSABLE attribute has no segment
  • C. If they exist for a session, Private Temporary Tables (PTTs) are always dropped at the next COMMIT OR ROLLBACK statement
  • D. An index that is altered to be UNUSABLE will retain its segment
  • E. A table that is truncated will always have its segment removed
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
avanand
Highly Voted 3 years, 7 months ago
Correct should be A and B C is incorrect as on the session level setting, it preserves the definition.
upvoted 14 times
NowOrNever
3 years, 3 months ago
i agree with AB A - https://oracle-base.com/articles/18c/private-temporary-tables-18c Oracle 18c introduced the concept of a private temporary table, a memory-based temporary table that is dropped at the end of the session or transaction depending on the setup. B - https://docs.oracle.com/html/E25494_01/indexes003.htm#CIHFIGDG Beginning with Oracle Database 11g Release 2, the database does not create an index segment when creating an unusable index. C - not always, depends on the setup of the table creation
upvoted 6 times
...
...
nautil2
Most Recent 3 months, 4 weeks ago
Selected Answer: AB
A - TRUE; PTT stores metadata and data in memory B - TRUE; Release 19, SQL Reference, CREATE INDEX: When an index, or some partitions or subpartitions of an index, are created UNUSABLE, no segment is allocated for the unusable object. The unusable index or index partition consumes no space in the database. C - FALSE; Release 19, SQL Reference, CREATE TABLE: The ON COMMIT clause used with keywords PRESERVE DEFINITION creates a session-specific table whose definition is preserved when the transaction commits. D - FALSE; Release 19, SQL Reference, ALTER INDEX: The space allocated for an index or index partition or subpartition is freed immediately when the object is marked UNUSABLE. E - FALSE; elease 19, SQL Reference, TRUNCATE TABLE: Deallocates all space used by the removed rows except that specified by the MINEXTENTS storage parameter - space specified by the MINEXTENTS parameter is not removed [A]: https://gavinsoorma.com.au/knowledge-base/oracle-18c-new-feature-private-temporary-tables/
upvoted 3 times
...
piontk
8 months, 1 week ago
Selected Answer: AD
Well, D is correct. You can try: create table teste( id number, id2 number); create index idx_teste01 on teste(id); create index idx_teste02 on teste(id2) unusable; col segment_name for a15 select segment_name, segment_type, extents, blocks, bytes from dba_segments where segment_name in ('IDX_TESTE01', 'IDX_TESTE02'); You can see that the segments exist in dba_segments for the valid and the unusable index. Another example is to switch the valid index to unusable and repeat the query. Also the segments still there. alter index IDX_TESTE01 unusable; col segment_name for a15 select segment_name, segment_type, extents, blocks, bytes from dba_segments where segment_name in ('IDX_TESTE01', 'IDX_TESTE02');
upvoted 2 times
...
Franky_T
1 year, 9 months ago
Selected Answer: AB
A is correct. PTT's exist in memory only. B is correct. Indexes created this way will not have a segment. Query user_segments. C is wrong. PTT's will exist for the session if they are created with the ON COMMIT PRESERVE DEFINITION clause. D is wrong. When an existing index is made unusable then the index segment is dropped. E is wrong. Truncated tables will release the space that was used by the removed rows EXCEPT that which is specified by the MINEXTENTS storage parameter.
upvoted 4 times
...
ryuah
2 years ago
A,B is correct
upvoted 1 times
...
ioio
2 years, 9 months ago
A and B are correct. E is incorrect: TRUNCATE TABLE statement: Deallocates all space used by the removed rows except that specified by the MINEXTENTS storage parameter
upvoted 1 times
...
khalilshahin01
3 years, 4 months ago
my friend passed the exam and he Choose B&C and get wrong answer about space-saving i will go for AE if database 18c or BE if database 12c
upvoted 1 times
adoptc94
3 years, 4 months ago
I am not sure about E, the wording is important here. When truncating a table you can use the option REUSE STORAGE, f.e. TRUNCATE TABLE table1 REUSE STORAGE; REUSE STORAGE specifies that all space currently allocated for the table or cluster remains allocated to it. Which means a table that is being truncated has not always all it's segments removed! I'd go with answers: A,B
upvoted 2 times
Ekos
3 years, 1 month ago
i agree
upvoted 1 times
...
...
...
you1234
3 years, 5 months ago
ama, any suggestion on correct answer please
upvoted 1 times
ama
3 years, 5 months ago
I pick B,C
upvoted 1 times
...
...
FayK
3 years, 6 months ago
Correct B &C. Oracle 18c introduced the concept of a private temporary table, a memory-based temporary table that is dropped at the end of the session or transaction depending on the setup. Private temporary tables are dropped at the end of the session, Global temporary tables have their data definition preserved.
upvoted 1 times
NiciMilo
3 years, 5 months ago
so C is incorrect Private Temporary Tables (PTTs) are ***NOT*** always dropped at the next COMMIT OR ROLLBACK statement because you can create PTTs with ON COMMIT PRESERVE DEFINITION;
upvoted 3 times
ama
3 years, 5 months ago
what? The ON COMMIT DROP DEFINITION clause, the default, indicates the table should be dropped at the end of the transaction, or the end of the session. see here https://oracle-base.com/articles/18c/private-temporary-tables-18c
upvoted 1 times
avanand
3 years, 4 months ago
Exactly, as per that link also, you may choose "ON COMMIT PRESERVE DEFINITION" also. So You have a choice you may preserve or you may drop. So "C" is not true, as its not always dropped.
upvoted 5 times
...
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago