01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 8 USER MANAGEMENT AND DATA LOADING 165<br />

Note that other users will not be able <strong>to</strong> retrieve or modify the contents of tables<br />

owned by user unless he explicitly gives them the necessary privileges.<br />

Listing 8-9 shows some examples of granting table privileges <strong>to</strong> users—the word <br />

denotes all users of the database.<br />

Listing 8-9. Granting Table Privileges <strong>to</strong> Users<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

TABLE, SYSTEM, AND ROLE PRIVILEGES<br />

A recurring theme in this chapter’s discussion has been that <strong>Oracle</strong> gives us the ability <strong>to</strong> control tightly<br />

what users are permitted <strong>to</strong> do. Object privileges are privileges <strong>to</strong> perform operations on objects; examples<br />

include , , , and privileges on tables. System privileges are privileges<br />

that do not apply <strong>to</strong> specific objects; examples are and . Roles are collections<br />

of privileges that are created for convenience; all the privileges in a collection can be assigned<br />

<strong>to</strong> a user with a single command. For example, if you want <strong>to</strong> give a user the ability <strong>to</strong> perform database<br />

administration functions, you could give the role <strong>to</strong> him or her—it includes such privileges as<br />

and .<br />

The permissions granted <strong>to</strong> each user of the database are tracked in the , <br />

, and views; here are their definitions:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!