W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
本章討論了Teradata中用戶管理的各種策略。
CREATE USER username AS [PERMANENT|PERM] = n BYTES PASSWORD = password TEMPORARY = n BYTES SPOOL = n BYTES;
創(chuàng)建用戶時,用戶名,永久空間和密碼的值是必需的。 其他字段是可選的。
CREATE USER TD01 AS PERMANENT = 1000000 BYTES PASSWORD = ABC$124 TEMPORARY = 1000000 BYTES SPOOL = 1000000 BYTES;
CREATE USER username PERM = n BYTES PASSWORD = password ACCOUNT = accountid
CREATE USER TD02 AS PERMANENT = 1000000 BYTES PASSWORD = abc$123 TEMPORARY = 1000000 BYTES SPOOL = 1000000 BYTES ACCOUNT = (‘IT’,’Admin’);
用戶可以在登錄Teradata系統(tǒng)或使用SET SESSION命令登錄系統(tǒng)后指定帳戶ID。
.LOGON username, passowrd,accountid OR SET SESSION ACCOUNT = accountid
GRANT privileges ON objectname TO username;
特權(quán)可以是INSERT,SELECT,UPDATE,REFERENCES。
以下是GRANT語句的示例。
GRANT SELECT,INSERT,UPDATE ON Employee TO TD01;
REVOKE [ALL|privileges] ON objectname FROM username;
以下是REVOKE命令的示例。
REVOKE INSERT,SELECT ON Employee FROM TD01;
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: