Professional Documents
Culture Documents
Creacion y Gestion de Cuentas de Usuario PDF
Creacion y Gestion de Cuentas de Usuario PDF
The terms user account, account, user, and schema are all interchangeable and
refer to a database user account that owns schema objects.
In the following sections, you will learn how to create a new account, how to assign and
change the authentication mechanism, and how to define how this account will allocate and use
certain database resources.
Configuring Authentication
When you connect to an Oracle database instance, your user account must be authenticated.
Authentication involves validating the identity of the user and confirming that they have the
authority to use the database. Oracle offers three authentication methods for your user accounts:
password authentication (the most common), external authentication, and global authentication.
We will look at each of these authentication methods in the following sections.
Creating and Managing User Accounts 311
The keywords IDENTIFIED BY password (in this case, password is welcome) tell the data-
base that this user account is a password authenticated account.
The keywords IDENTIFIED EXTERNALLY tell the database that this user account is an exter-
nally authenticated account.
The syntax for creating a globally authenticated account depends on the service called, but
all use the keywords IDENTIFIED GLOBALLY, which tell the database to engage the advanced
security option for authentication. Here is an example:
To change the database default tablespace (the value that users inherit if no default
tablespace is provided), use the ALTER DATABASE statement, like this:
If you do not explicitly assign a temporary tablespace at user creation time, the database
assigns the database default temporary tablespace to the new user account. Use the keywords
TEMPORARY TABLESPACE tablespace_name to assign a temporary tablespace either to a new
user via the CREATE USER statement:
To change the database default temporary tablespace, use the ALTER DATABASE statement,
like this:
To avoid having to set the default and temporary tablespace for each
user account that you create, change the database defaults with the ALTER
DATABASE statement.
Dropping a user implicitly drops any object (but not role or system) privileges in which the
user was the grantor. The data dictionary records both grantee and grantor for object privileges,
but only the grantee is recorded for role and system privileges.