IDENTIFIED BY clause
The password of the user. A user without a password cannot connect to the database.
policy-name
The name of the login policy to assign the user. If no login policy is specified, the DEFAULT login policy is applied.
FORCE PASSWORD CHANGE clause
Controls whether the user must specify a new password when they log in. This setting overrides the password_expiry_on_next_login
option setting in the user's policy.
You do not have to specify a password for the user. A user without a password cannot connect to the database. This is useful
if you are creating a group and do not want anyone to connect to the database using the group user ID. A user ID must be a
valid identifier.
User IDs cannot:
begin with white space, single quotes, or double quotes
end with white space
contain semicolons
Passwords are case-sensitive and they cannot:
begin with white space, single quotes, or double quotes
The following example creates a user named SQLTester with the password welcome. The SQLTester user will be required to specify
a password when they log in.
CREATE USER SQLTester IDENTIFIED BY welcome
FORCE PASSWORD CHANGE ON;