Assert verifies that user exists. Fail when user with a given name could not be found.

Arguments

  • v_UserName – name of the user to be found, Variable Character(255) in Oracle and Netezza, SYSNAME in SQL Server
  • v_UserMessage – message to report when assertion fails, Variable Character(255) in Oracle and Netezza, NVARCHAR(MAX) in SQL Server

Examples

SQL Server 

EXEC DBTD_ASSERT_USER_EXISTS 'superuser', 'cannot find user';

Oracle 

DBTD_ASSERT_USER_EXISTS('superuser', 'cannot find user');

Netezza

CALL DBTD_ASSERT_USER_EXISTS('superuser', 'cannot find user');

 

See Also