Chapter 5. Oracle Default Roles and User Accounts
Okay, get your pencil and paper out. It’s time for a pop quiz!
Question 1. You’ve just created an Oracle database. How many user accounts exist on your system?
1
2
8
It depends on the version
Question 2. With the same database as above, how many roles exist in the database?
1
3
6
It depends on the version
If you answered number 4 — “It depends on the version” — for each of the questions, you are correct. Give yourself a gold star.
As we mentioned in Chapter 4, when you create an Oracle database, Oracle performs many tasks in conjunction with the creation. There are several scripts that are run. Some of these scripts create default roles and default users in your database.
Chapter 3, explains that using roles can help you lighten your workload by letting you assign many privileges to many users quickly by performing the following tasks:
Create a role
Grant to the new role the privileges you want the set of users to have
Grant the role to each of the users
Oracle supplies several default (“canned”) roles that you might use to quickly assign privileges to users. However, there are problems you need to be aware of when you use these Oracle-supplied default roles. In order to completely protect your database, you need to know what the default roles are and the advantages and disadvantages of using these roles.
Oracle also creates several default users within a database. Unfortunately, the usernames and passwords for these accounts are ...
Get Oracle Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.