exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 90 discussion

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

In the SALES database, DEFERRED_SEGMENT_CREATION is TRUE.
Examine this command:
SQL> CREATE TABLE T1(c1 INT PRIMARY KEY, c2 CLOB);
Which segment or segments, if any, are created as a result of executing the command?

  • A. T1, an index segment for the primary key, a LOB segment, and a lobindex segment
  • B. no segments are created
  • C. T1 only
  • D. T1 and an index segment created for the primary key only
  • E. T1, an index segment for the primary key, and a LOB segment only
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Rivaldo11
Highly Voted 4 years ago
Answer is B.
upvoted 13 times
Ekos
3 years, 7 months ago
i agree
upvoted 1 times
...
ama
3 years, 12 months ago
I agree DEFERRED_SEGMENT_CREATION specifies the semantics of deferred segment creation. If set to true, then segments for tables and their dependent objects (LOBs, indexes) will not be created until the first row is inserted into the table. Before creating a set of tables, if it is known that a significant number of them will not be populated, then consider setting this parameter to true. This saves disk space and minimizes install time.
upvoted 1 times
...
...
Chansi
Highly Voted 3 years, 11 months ago
SQL> alter session set deferred_segment_creation=TRUE; Session altered. SQL> CREATE TABLE T1(c1 INT PRIMARY KEY, c2 CLOB); Table created. SQL> select segment_name,segment_type,bytes from user_segments; no rows selected Answer is B
upvoted 8 times
...
kuvinod29
Most Recent 3 months, 3 weeks ago
Selected Answer: B
100% B SQL> conn c##test/test Connected. SQL> CREATE TABLE T1(c1 INT PRIMARY KEY, c2 CLOB); Table created. OBJECT_NAME OBJECT_TYPE ---------------------------------------- ----------------------- T1 TABLE SYS_C007557 INDEX SYS_IL0000073470C00002$$ INDEX SYS_LOB0000073470C00002$$ LOB SQL> select SEGMENT_NAME,SEGMENT_TYPE from user_segments; no rows selected SQL> desc T1 Name Null? Type ----------------------------------------- -------- ---------------------------- C1 NOT NULL NUMBER(38) C2 CLOB
upvoted 2 times
...
PKSOA
10 months, 1 week ago
Selected Answer: B
B is correct answer https://oracle-base.com/articles/11g/segment-creation-on-demand-11gr2
upvoted 1 times
...
Kuraudio
1 year, 7 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
[Removed]
2 years, 9 months ago
B (until rows are inserted in non- partitioned table, it doesn’t create any segments) when DEFERRED_SEGMENT_CREATION is true
upvoted 1 times
...
Viki5099
3 years, 7 months ago
ALTER SESSION SET DEFERRED_SEGMENT_CREATION=TRUE SHOW PARAMETERS DEF CREATE TABLE TEMP_DEF_SEQ_CHK (C1 INT PRIMARY KEY, LOB1 CLOB) SELECT * FROM USER_SEGMENTS; no rows selected SELECT SEGMENT_CREATED FROM USER_INDEXES; SEG --- NO NO
upvoted 1 times
...
Mandar79
3 years, 10 months ago
DEFERRED_SEGMENT_CREATION specifies the semantics of deferred segment creation. If set to true, then segments for tables and their dependent objects (LOBs, indexes) will not be created until the first row is inserted into the table. https://oracle-base.com/articles/11g/segment-creation-on-demand-11gr2
upvoted 2 times
...
khalilshahin01
3 years, 12 months ago
SQL> alter session set DEFERRED_SEGMENT_CREATION=true; SQL> CREATE TABLE T1(c1 INT PRIMARY KEY, c2 CLOB); SQL> select * from user_segments where segment_name = upper('T1'); no row selected Answer is B.
upvoted 2 times
khalilshahin01
3 years, 12 months ago
sorry Answer is A. You can also query the SEGMENT_CREATED column of the USER_TABLES, USER_INDEXES, or USER_LOBS views. For non-partitioned tables, indexes, and LOBs, this column shows YES if the segment is created.
upvoted 1 times
ama
3 years, 11 months ago
DEFERRED_SEGMENT_CREATION specifies the semantics of deferred segment creation. If set to true, then segments for tables and their dependent objects (LOBs, indexes) will not be created until the first row is inserted into the table.
upvoted 2 times
SimoneF
3 years, 6 months ago
Exactly, khalilshahin01 you got it right the first time: as you saw from the user_segments, if nothing is there then no segment has been created.
upvoted 1 times
...
...
...
...
you1234
3 years, 12 months ago
12c. SQL> show parameter def NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ deferred_segment_creation boolean TRUE SQL> CREATE TABLE T1(c1 INT PRIMARY KEY, c2 CLOB); Table created. SQL> select CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME from user_constraints where table_name='T1'; CONSTRAINT_NAME C TABLE_NAME ---------------------- - --------------------------------- SYS_C0081022 P T1 SQL> select COLUMN_NAME,SEGMENT_NAME,INDEX_NAME from user_lobs where table_name='T1'; COLUMN_NAME SEGMENT_NAME INDEX_NAME ---------------------- -------------------------------------------- --------------------------------- C2 SYS_LOB0000686210C00002$$ SYS_IL0000686210C00002$$ SQL> not done any DML operations. A is correct.
upvoted 1 times
Muhab
3 years, 12 months ago
no B is correct. SQL> select COLUMN_NAME,SEGMENT_NAME,INDEX_NAME,SEGMENT_CREATED from user_lobs where table_name='T1'; COLUMN_NAME SEGMENT_NAME INDEX_NAME SEGMENT_CREATED ---------------------- -------------------------------------------- --------------------------------- --------------------------------- C2 SYS_LOB0000686210C00002$$ SYS_IL0000686210C00002$$ NO see SEGMENT_CREATED is no that mean no segment created.
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