DISABLE LOGONS/ DISABLE ALL LOGONS - Analytics Database - Teradata Vantage

Database Utilities

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-05-02
dita:mapPath
ymn1628096214445.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
vkz1472241255652
lifecycle
latest
Product Category
Teradata Vantageā„¢

Prevents users from logging on to the system until the ENABLE LOGONS or ENABLE ALL LOGONS command is sent.

Syntax

DISABLE [ALL] LOGONS

Usage Notes

DISABLE LOGONS and DISABLE ALL LOGONS are synonymous.

To use this command, the current logon state must be one of the following:
  • Logons are enabled - The system is quiescent.
  • Only user DBC logons are enabled - The system is quiescent.
To see the current logon state, use one of the following commands:
  • from DBW: QUERY STATE
  • from a Teradata Command Prompt: pdestate -a

Vantage must be running for the change to be applied. A database restart is not required for the new setting to take effect.

Users logged on to the system before the DISABLE LOGONS or DISABLE ALL LOGONS command is executed remain logged on, and their jobs continue to run. All sessions are reconnected if the system is restarted.

Both commands (DISABLE LOGONS or DISABLE ALL LOGONS) update the Start With Logons value in the PDE Control GDO, which is viewable using the Control GDO Editor (ctl) utility. For more information, see Control GDO Editor (ctl).

Example: Disabling user logons to the database

The following example shows the current logon status is disabled for all new users.

disable logons

Output:

12/02/12 10:05:02 Logons disabled.