Railways Exam  >  Railways Questions  >   In Oracle, which statement is true about seg... Start Learning for Free
In Oracle, which statement is true about segments ?
  • a)
    Each table has it own segment
  • b)
    A segment is created every item an extent is created, extended, or altered
  • c)
    An index segment is created every time a table is created
  • d)
    A segment is deleted whenever a table is truncated
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
In Oracle, which statement is true about segments ?a)Each table has i...
Segment is a database direct object that has space also allocated to it. A segment consists of one or more extents allocated within a tablespace. A segment can either be created so that it can have an unlimited or limited number of extents.
View all questions of this test
Most Upvoted Answer
In Oracle, which statement is true about segments ?a)Each table has i...
Segments in Oracle

A segment in Oracle refers to a specific area of space within a tablespace that is allocated to store data for a specific database object, such as a table or an index. Each segment corresponds to a specific object within the database and is used to manage the storage and access of the data within that object.

Explanation:

Option B: A segment is created every time an extent is created, extended, or altered.

When data is stored in Oracle, it is organized into blocks and extents. A block is the smallest unit of storage in Oracle, and an extent is a collection of contiguous blocks that are allocated to store data for a segment.

When a table or an index is created in Oracle, an initial extent is allocated to store the data for that object. This initial extent is known as the segment. As data is inserted into the table or index, additional extents may be allocated to accommodate the growing data. Each time an extent is created, extended, or altered, a new segment is created to manage the storage and access of that extent.

Other Options:

Let's also briefly discuss the other options to understand why they are not correct.

- Option A: Each table has its own segment.
This statement is not entirely accurate. Each table does have its own segment, but other database objects, such as indexes, also have their own segments. So, it is not limited to tables only.

- Option C: An index segment is created every time a table is created.
This statement is incorrect. An index segment is created when an index is created, not when a table is created. Indexes are separate database objects that are created to improve the performance of querying and accessing data in a table.

- Option D: A segment is deleted whenever a table is truncated.
This statement is incorrect. When a table is truncated, the data within the table is deleted, but the segment that represents the table remains. Truncating a table does not delete the segment itself.

In conclusion, the correct statement is Option B: A segment is created every time an extent is created, extended, or altered.
Explore Courses for Railways exam
In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer?
Question Description
In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer? for Railways 2024 is part of Railways preparation. The Question and answers have been prepared according to the Railways exam syllabus. Information about In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Railways 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer?.
Solutions for In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Railways. Download more important topics, notes, lectures and mock test series for Railways Exam by signing up for free.
Here you can find the meaning of In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice In Oracle, which statement is true about segments ?a)Each table has it own segmentb)A segment is created every item an extent is created, extended, or alteredc)An index segment is created every time a table is createdd)A segment is deleted whenever a table is truncatedCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Railways tests.
Explore Courses for Railways exam

Top Courses for Railways

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev