ALTER TABLESPACE SET

Note: This SQL statement is valid only if you are using Oracle Sharding. For more information on Oracle Sharding, refer to Oracle Database Administrator’s Guide.

Purpose

Use the ALTER TABLESPACE SET statement to change an attribute of an existing tablespace set. The attribute change is applied to all tablespaces in the tablespace set.

See Also: CREATE TABLESPACE SET and DROP TABLESPACE SET

Prerequisites

You must be connected to a shard catalog database as an SDB user.

If you have the ALTER TABLESPACE system privilege, then you can perform any ALTER TABLESPACE SET operation. If you have the MANAGE TABLESPACE system privilege, then you can only perform the following operations:

Before you can make a tablespace set read only, the following conditions must be met:

Syntax

alter_tablespace_set::=

Description of the illustration alter_tablespace_set.gif

alter_tablespace_attrs::=

Description of the illustration alter_tablespace_attrs.gif

(See the following clauses of ALTER TABLESPACE: default_tablespace_params::=, size_clause::=, datafile_tempfile_clauses::=, tablespace_logging_clauses::=, tablespace_state_clauses::=, autoextend_clause::=, alter_tablespace_encryption::=)

Semantics

tablespace_set

Specify the name of the tablespace set to be altered.

alter_tablespace_attrs

Use this clause to change an attribute for all tablespaces in the tablespace set.

The subclauses of alter_tablespace_attrs have the same semantics here as for the ALTER TABLESPACE statement, with the following exceptions:

See Also: alter_tablespace_attrs in the documentation on ALTER TABLESPACE for the full semantics of this clause

Examples

Altering a Tablespace Set: Example

The following statement puts all tablespaces in tablespace set ts1 in force logging mode:

ALTER TABLESPACE SET ts1
  FORCE LOGGING;