Oracle by Example brandingAdminister Database User Accounts and Security

section 0Before You Begin

This 10-minute tutorial shows you how to use Enterprise Manager Express to administer database user accounts and security.

Select the Oracle Database release:

Background

When you create a user account, you must assign a user name, a password, and default tablespaces for the account. You must also grant the appropriate system privileges, object privileges, and roles to the user account. If the user will create database objects, assign a space usage quota for each affected tablespace.

What Do You Need?

  • Oracle Database 18c19c

section 1View User Accounts

  1. Enter the URL for the Enterprise Manager Database Express for PDB in your browser and log in as the SYSTEM user.
    login page
    Description of the illustration a1
  2. Select Users in the Security menu.
    Users selected in the Security menu
    Description of the illustration a2
    Note: If you log in as the Enterprise Manager Database Express for CDB, you will not see Profiles in the Security menu.
  3. The Users page is displayed.
    Users page
    Description of the illustration a3
  4. To view additional information about the user, select the user. Expand the Actions menu and select View Details. In this example, the HR user is selected.
    View Details selected
    Description of the illustration a4
  5. Privileges and roles granted to the user are displayed.
    privileges and roles displayed
    Description of the illustration a5
  6. Click ORCL / ORCLPDB to return to the Database Home page.

section 2Create a User Account

  1. Select Users in the Security menu.
    users is selected
    Description of the illustration b1
  2. Click Create User on the Users page.
    Create User
    Description of the illustration b2
  3. Enter a user name such as appuser in the Name field. Enter a password in the Password field and in the Confirm Password field. Accept the Profile default value of DEFAULT. Click the right arrow. 
    Create User page
    Description of the illustration b3
  4. Select the APPTS tablespace or another tablespace of your choice. Accept the default TEMP temporary tablespace. Click the right arrow.
    create user page
    Description of the illustration b4
  5. Select the APPDEV role and select With Admin. Click OK.
    Create user page
    Description of the illustration b5
  6. Click OK on the Confirmation page. The new APPUSER user is listed on the Users page.

    users page
    Description of the illustration b6
  7. Click ORCL / ORCLPDB to return to the Database Home page.

section 3 Unlock a User Account

  1. Select Users in the Security menu.
    Users is selected
    Description of the illustration c1
  2. Select the HR user. Select Alter Account in the Actions menu.
    alter account
    Description of the illustration c2
  3. Deselect Account Locked. Click OK.
    hr user page
    Description of the illustration c3
  4. Click OK on the Confirmation page. The Account Status for the HR user indicates the user is unlocked.
    Users page
    Description of the illustration c4
  5. Click ORCL / ORCLPDB to return to the Database Home page.