数据仓库服务 GAUSSDB(DWS)-ALTER USER:示例

时间:2024-11-28 17:38:56

示例

修改用户jim的登录密码:

1
ALTER USER jim IDENTIFIED BY '{password}' REPLACE '{old_password}';

为用户jim追加CREATEROLE权限:

1
ALTER USER jim CREATEROLE;

将与用户jim关联的会话参数enable_seqscan的值设置为on, 设置成功后,在下一会话中生效:

1
ALTER USER jim SET enable_seqscan TO on;

重置jim的enable_seqscan参数:

1
ALTER USER jim RESET enable_seqscan;

锁定jim账户:

1
ALTER USER jim ACCOUNT LOCK;
support.huaweicloud.com/sqlreference-830-dws/dws_06_0149.html