From the course: Oracle Database 12c: Security
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Deleting a database user - Oracle Database Tutorial
From the course: Oracle Database 12c: Security
Deleting a database user
- [Narrator] Every database user account you create, you can also delete. We use the drop user command to delete an existing Oracle database user. Let's see an example. We'll start by connecting to our plug able database as the sysdba user. So I'm typing SQL plus sys slash Oracle at Orcl as sysdba. And let's create two users which we will soon delete. So create user, new user one, identified by secret, and create user, new user two, identified by secret. So we have both new users created. Let's also grant some basic system privileges to these users. So I'll type grant create session, which remember allows a user to connect to the database, create table, to new user one, new user two. As you can see I can grant multiple privileges to multiple database users using a single command. How cool is that? Now let's verify that both users have been created by querying the DBA underscore users view. You can find the query included in your exercise file. So let's copy this command, and paste it…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Users, schemas, and the SYSDBA5m
-
(Locked)
Create new database users6m 34s
-
(Locked)
Grant and evoke system privileges8m 4s
-
(Locked)
Grant database-wide system privileges6m 2s
-
(Locked)
Tablespace quotas5m 37s
-
(Locked)
Object permissions7m 39s
-
(Locked)
Password management policies7m 50s
-
(Locked)
The WITH GRANT and WITH ADMIN options3m 14s
-
(Locked)
Enforce password complexity6m 13s
-
(Locked)
Viewing users, permissions, and polices7m 32s
-
(Locked)
Deleting a database user4m 48s
-
(Locked)
Local vs. common user concepts2m 49s
-
(Locked)
Creating local users6m 45s
-
(Locked)
Creating common users7m 1s
-
(Locked)
Separating object owners and access5m 34s
-
-
-
-
-