CREATE END USER

Purpose

Use CREATE END USER to create an end user locally in the database.

Prerequisites

You must have the CREATE END USER system privilege to create end users.

You can query the DBA_END_USERS data dictionary view to see existing local end users.

Syntax

Description of the illustration create_end_user.gif

Semantics

factor: Specify the external authenticator for the end user. Valid values are duo_push and oma_push.

If TO_TIMESTAMP is used to specify a start date or end date, the database will use the session time zone as the time zone of the specified time. Then it will be shifted to UTC and stored in the Deep Sec dictionary table. To specify a start date or end date with a different time zone, TO_TIMESTAMP_TZ should be used.

If no password is specified, the authentication type of the end user is 'NONE'. PASSWORD EXPIRE cannot be specified for an end user with no authentication type.

The following SQL statement creates an end user emma, who can directly login to the database with the specified password, starting from 2025-03-01 19:30:00 UTC time.

CREATE END USER emma
  IDENTIFIED BY password
  START TIME TO_TIMESTAMP_TZ('2025-03-01 19:30:00 +00:00',
                          'YYYY-MM-DD HH24:MI:SS TZH:TZM');