Example: Modifying Default Journal Table for User - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantageā„¢

Two MODIFY requests are needed to change the default journal table if it resides in the user being modified.

For example, suppose the journal table fincopy is contained by user jones. To change the default journal table from fincopy to jrnl1, the present default journal table must be dropped and then a new journal table must be created.

The first request removes fincopy as the default and drops it from the system. If there are any existing tables that use it as their journal table, the request returns an error.

     MODIFY USER jones AS 
     DROP DEFAULT JOURNAL TABLE;

After the current journal table has been dropped, the second request creates a new default journal table.

     MODIFY USER jones AS 
     DEFAULT JOURNAL TABLE = jrnl1;