SQL storage administration: purpose of CREATE TABLESPACE In enterprise SQL systems that support tablespaces, what does CREATE TABLESPACE primarily do?

Difficulty: Easy

Correct Answer: Create a logical storage container and name the data files that comprise the tablespace

Explanation:


Introduction / Context:
Some relational databases (for example, enterprise systems) organize physical storage into tablespaces. Understanding CREATE TABLESPACE helps DBAs plan where tables, indexes, and other segments live, supporting performance, manageability, and backup strategies.


Given Data / Assumptions:

  • We refer to SQL dialects that include tablespace management.
  • CREATE TABLESPACE defines a new tablespace and associates it with data files.
  • Modifying an existing tablespace (adding/renaming files) is a different command (often ALTER TABLESPACE).


Concept / Approach:
A tablespace is a logical storage container mapping to one or more data files. CREATE TABLESPACE initializes this container and names its files and attributes. Ongoing changes—such as adding files, resizing, or renaming—are handled by corresponding ALTER statements. Trigger creation is a separate DDL feature (CREATE TRIGGER) unrelated to storage containers.


Step-by-Step Solution:

Identify the object: tablespace (logical storage grouping).Associate “CREATE” with initial definition and file association.Recognize that changes later use “ALTER TABLESPACE,” not CREATE.Select option describing the correct initial purpose.


Verification / Alternative check:
Vendor manuals show CREATE TABLESPACE statements specifying data files, sizes, autoextend properties, and logging—confirming initial creation, not modification.


Why Other Options Are Wrong:
Create a database trigger: unrelated object and DDL.


Add/rename data files: ALTER TABLESPACE task.


All/None: do not accurately reflect the distinct functions.


Common Pitfalls:
Confusing CREATE and ALTER operations; always use CREATE for initial definition and ALTER for subsequent changes.


Final Answer:
Create a logical storage container and name the data files that comprise the tablespace

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion