+ All Categories
Home > Documents > Administering User Security

Administering User Security

Date post: 19-Jan-2016
Category:
Upload: leia
View: 29 times
Download: 1 times
Share this document with a friend
Description:
Administering User Security. Objectives. After completing this lesson, you should be able to do the following: Create and manage database user accounts Authenticate users Assign default storage areas (tablespaces) Grant and revoke privileges Create and manage roles - PowerPoint PPT Presentation
26
6 Copyright © 2005, Oracle. All rights reserved. Administering User Security
Transcript
Page 1: Administering User Security

6Copyright © 2005, Oracle. All rights reserved.

Administering User Security

Page 2: Administering User Security

6-2 Copyright © 2005, Oracle. All rights reserved.

Objectives

After completing this lesson, you should be able to do the following:

• Create and manage database user accounts– Authenticate users– Assign default storage areas (tablespaces)

• Grant and revoke privileges

• Create and manage roles

• Create and manage profiles– Implement standard password security features– Control resource usage by users

Page 3: Administering User Security

6-3 Copyright © 2005, Oracle. All rights reserved.

Database User Accounts

Each database user account has:

• A unique username

• An authentication method

• A default tablespace

• A temporary tablespace

• A user profile

• A consumer group

• A lock status

> UserAuthenticationPrivilegeRoleProfilePW SecurityQuota

Page 4: Administering User Security

6-5 Copyright © 2005, Oracle. All rights reserved.

Predefined Accounts: SYS and SYSTEM

• The SYS account:– Is granted the DBA role– Has all privileges with ADMIN OPTION– Is required for startup, shutdown, and some

maintenance commands– Owns the data dictionary– Owns the Automatic Workload Repository (AWR)

• The SYSTEM account is granted the DBA role.

• These accounts are not used for routine operations.

Page 5: Administering User Security

6-6 Copyright © 2005, Oracle. All rights reserved.

Creating a User

Select Administration > Schema > Users & Privileges > Users, and then click the Create button.

Page 6: Administering User Security

6-7 Copyright © 2005, Oracle. All rights reserved.

Authenticating Users

• Password

• External

• Global

User> Authentication

PrivilegeRoleProfilePW SecurityQuota

Page 7: Administering User Security

6-9 Copyright © 2005, Oracle. All rights reserved.

Administrator Authentication

Operating System Security

• DBAs must have the OS privileges to create and delete files.

• Typical database users should not have the OS privileges to create or delete database files.

Administrator Security

• SYSBA and SYSOPER connections are authorized via password file or OS.– Password file authentication records the DBA user

by name.– OS authentication does not record the specific

user.– OS authentication takes precedence over password

file authentication for SYSDBA and SYSOPER.

Page 8: Administering User Security

6-10 Copyright © 2005, Oracle. All rights reserved.

Unlocking a User Account andResetting the Password

Select the user, and click Unlock User.

Page 9: Administering User Security

6-11 Copyright © 2005, Oracle. All rights reserved.

Privileges

There are two types of user privileges:

• System: Enables users to perform particular actions in the database

• Object: Enables users to access and manipulate a specific object

System privilege:

Create session.

HR_DBA

Object privilege:

Update employees.

UserAuthentication

> PrivilegeRoleProfilePW SecurityQuota

Page 10: Administering User Security

6-12 Copyright © 2005, Oracle. All rights reserved.

System Privileges

Page 11: Administering User Security

6-14 Copyright © 2005, Oracle. All rights reserved.

Object Privileges

To grant object privileges, perform these tasks:

1. Choose the object type.

2. Select objects.

3. Select privileges.

Page 12: Administering User Security

6-15 Copyright © 2005, Oracle. All rights reserved.

GRANT

REVOKE

Revoking System Privilegeswith ADMIN OPTION

REVOKE CREATE TABLE FROM jeff;

User

Privilege

Object

DBA Jeff Emi

Jeff EmiDBA

Page 13: Administering User Security

6-16 Copyright © 2005, Oracle. All rights reserved.

GRANT

REVOKE

Revoking Object Privilegeswith GRANT OPTION

Bob Jeff Emi

EmiJeffBob

Page 14: Administering User Security

6-17 Copyright © 2005, Oracle. All rights reserved.

Benefits of Roles

• Easier privilege management

• Dynamic privilege management

• Selective availability of privileges

UserAuthenticationPrivilege

> RoleProfilePW SecurityQuota

Page 15: Administering User Security

6-18 Copyright © 2005, Oracle. All rights reserved.

Assigning Privileges to Roles andRoles to Users

Users

Privileges

Roles HR_CLERKHR_MGR

Jenny David Rachel

Delete

employees.

Select

employees.

Update

employees.

Insert

employees.

Page 16: Administering User Security

6-19 Copyright © 2005, Oracle. All rights reserved.

Predefined Roles

CONNECT CREATE SESSION

RESOURCE CREATE CLUSTER, CREATE INDEXTYPE, CREATE OPERATOR, CREATE PROCEDURE, CREATE SEQUENCE, CREATE TABLE, CREATE TRIGGER, CREATE TYPE

SCHEDULER_ ADMIN

CREATE ANY JOB, CREATE EXTERNAL JOB, CREATE JOB, EXECUTE ANY CLASS, EXECUTE ANY PROGRAM, MANAGE SCHEDULER

DBA Most system privileges, several other roles. Do not grant to nonadministrators.

SELECT_

CATALOG_

ROLE

No system privileges, but HS_ADMIN_ROLE and over 1,700 object privileges on the data dictionary

Page 17: Administering User Security

6-20 Copyright © 2005, Oracle. All rights reserved.

Creating a Role

Select Administration > Schema > Users & Privileges > Roles.

Page 18: Administering User Security

6-21 Copyright © 2005, Oracle. All rights reserved.

CREATE ROLE secure_application_roleIDENTIFIED USING <security_procedure_name>;

Secure Roles

• Roles may also be secured programmatically.

• Roles may be nondefault.

SET ROLE vacationdba;

• Roles may be protected through authentication.

Page 19: Administering User Security

6-22 Copyright © 2005, Oracle. All rights reserved.

Assigning Roles to Users

Page 20: Administering User Security

6-23 Copyright © 2005, Oracle. All rights reserved.

Profiles and Users

Users are assigned only one profile at any given time.

Profiles:• Control

resource consumption

• Manage account status and password expiration

UserAuthenticationPrivilegeRole

> ProfilePW SecurityQuota

Page 21: Administering User Security

6-25 Copyright © 2005, Oracle. All rights reserved.

Implementing Password Security Features

Password history

Account locking

Password aging and expiration

Password complexity verification

User Setting up profiles

Note: Do not use profiles that cause the SYS, SYSMAN, and DBSNMP passwords to expire and the accounts to get locked.

UserAuthenticationPrivilegeRoleProfile

> PW SecurityQuota

Page 22: Administering User Security

6-27 Copyright © 2005, Oracle. All rights reserved.

Creating a Password Profile

Page 23: Administering User Security

6-28 Copyright © 2005, Oracle. All rights reserved.

Supplied Password Verification Function: VERIFY_FUNCTION

The supplied password verification function enforces these password restrictions:

• The minimum length is four characters.

• The password cannot be the same as the username.

• The password must have at least one alphabetic, one numeric, and one special character.

• The password must differ from the previous password by at least three letters.

Tip: Use this function as a template to createyour own customized password verification.

Page 24: Administering User Security

6-29 Copyright © 2005, Oracle. All rights reserved.

Assigning Quota to Users

Users who do not have the UNLIMITED TABLESPACE system privilege must be given a quota before they can create objects in a tablespace. Quotas can be:

• A specific value in megabytes or kilobytes

• Unlimited

UserAuthenticationPrivilegeRoleProfilePW Security

> Quota

Page 25: Administering User Security

6-31 Copyright © 2005, Oracle. All rights reserved.

Summary

In this lesson, you should have learned how to:

• Create and manage database user accounts– Authenticate users– Assign default storage areas (tablespaces)

• Grant and revoke privileges

• Create and manage roles

• Create and manage profiles– Implement standard password security features– Control resource usage by users

Page 26: Administering User Security

6-32 Copyright © 2005, Oracle. All rights reserved.

Practice Overview: Administering Users

This practice covers the following topics:

• Creating a profile to limit resource consumption

• Creating two roles:– HRCLERK– HRMANAGER

• Creating four new users: – One manager and two clerks– One schema user for the next practice session


Recommended