Example: Removing a User Override Option - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Example: Creating a User with Default Storage creates the user user1 with default storage TD_OFSSTORAGE and an override option.

The following statement removes the override option:

MODIFY USER user1 AS
  DEFAULT STORAGE TD_OFSSTORAGE OVERRIDE NOT ON ERROR;

Without the override option, the following statements are no longer equivalent. The first statement creates the table user1.tb1 as an Object File System table by default, but the second statement fails because an Object File System table cannot have a primary index.

CREATE TABLE user1.tb1 (a INT, b INT) NO PRIMARY INDEX;
CREATE TABLE user1.tb1 (a INT, b INT) PRIMARY INDEX (a);