RelationalDBDesign 




Creating Users   «Prev  Next»
Lesson 1

Introduction to Creating Users

In this module, you will learn how to create and manage users in an Oracle database. When finished, you will be able to do the following:
  1. Create a user using SQL commands
  2. Create a user using Security Manager
  3. Modify a user
  4. Change a user's password
  5. Temporarily disable a user.
  6. Permanently delete a user
  7. Retrieve information about users in your database from the data dictionary


One of the more common tasks of the DBA is the creation of the database user. Each database user is assigned a unique username and users will log into the database using that username. After having logged in, users can issue various database SQL statements to
  1. create objects,
  2. query objects and
  3. manage the database.
In this section we will cover the creation of Oracle users using the Oracle create user command. We will then look at the alter user command to administer users and finally we will address the drop user command which allows you to drop users from the database.

Creating Oracle Users

The Oracle create user command is used to create database user accounts. When creating a user account with the Oracle create user command you can:
  1. Define the user name
  2. Define the password associated with the database user
  3. Define the default tablespace for the user
  4. Define the temporary tablespace for the user
  5. Allocate space quotas to various tablespaces to the user
  6. Assign attributes to the user account
Here is an example of the use of the create user command:
CREATE USER myuser IDENTIFIED BY password
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp
QUOTA UNLIMITED ON users
QUOTA 101M ON my_data;