![]() Previous |
![]() Next |
Returns the number of days remaining before a end user account password expires. This function may be run in a page request context by any authenticated user.
Syntax
APEX_UTIL.END_USER_ACCOUNT_DAYS_LEFT (
p_user_name IN VARCHAR2)
RETURN NUMBER;
Parameters
Table: END_USER_ACCOUNT_DAYS_LEFT Parameters describes the parameters available in the END_USER_ACCOUNT_DAYS_LEFT function.
END_USER_ACCOUNT_DAYS_LEFT Parameters
| Parameter | Description |
|---|---|
|
|
The user name of the user account |
Example
The following example shows how to use the END_USER_ACCOUNT_DAYS_LEFT function. Use this function to determine the number of days remaining before an Application Express end user account in the current workspace will expire.
DECLARE
l_days_left NUMBER;
BEGIN
FOR c1 IN (SELECT user_name from wwv_flow_users) LOOP
l_days_left := APEX_UTIL.END_USER_ACCOUNT_DAYS_LEFT(p_user_name => c1.user_name);
htp.p('End User Account:'||c1.user_name||' will expire in '||l_days_left||' days.');
END LOOP;
END;