Примеры RECREATE USER
Example 1. Создание или пересоздание пользователя.
RECREATE USER john PASSWORD 'fYe_3Ksw'
FIRSTNAME 'John'
LASTNAME 'Doe'
INACTIVE;
RECREATE USER
RECREATE USER john PASSWORD 'fYe_3Ksw'
FIRSTNAME 'John'
LASTNAME 'Doe'
INACTIVE;
Для получения списка пользователей и их атрибутов вы можете воспользоваться виртуальными таблицами SEC$USERS
и SEC$USER_ATTRIBUTES
.
SELECT
CAST(U.SEC$USER_NAME AS CHAR(20)) AS LOGIN,
CAST(A.SEC$KEY AS CHAR(10)) AS TAG,
CAST(A.SEC$VALUE AS CHAR(20)) AS "VALUE",
U.SEC$PLUGIN AS "PLUGIN"
FROM SEC$USERS U
LEFT JOIN SEC$USER_ATTRIBUTES A
ON U.SEC$USER_NAME = A.SEC$USER_NAME
AND U.SEC$PLUGIN = A.SEC$PLUGIN;
LOGIN TAG VALUE PLUGIN ==================== ========== ==================== ========================== SYSDBA <null> <null> Srp ALEX B x Srp ALEX C sample Srp SYSDBA <null> <null> Legacy_UserManager