TEC 5363 Database Security

Syllabus
Schedule
Reading
Discussion
Project
Test
Resource
Tip

Project 3 Create a User

Task:

You were just hired as a new junior Oracle database administrator (DBA) to assist a team of five senior database administrators. In your first week, you were handed the task of writing a script for creating database users. The script will perform the following tasks and conform to the following specifications:

1. Create the following two (2) users with their respective passwords. Please use the exact spelling. (15 points)

User Name Password
DBSEC Tec5363%1
VPD_CLERK1 Jessie#22

The following parameters apply to the above two (2) users.

2. The default table space is USERS. (10 points)

3. The temporary table space is TEMP. (10 points)

4. The user has to change his/her password the first time when he/she log in the database. (10 points)

5. The user account will be assigned to the DEFAULT profile. (10 points)

6. The USERS table space has a 30MB quota. (10 points)

7. At the end of the creation, list the user information that shows a successful creation of the above user account. (15 points)

Tips:

a. You need system privilege to create new user. An easy way is to log in as SYSTEM before running the script. Or, you may use "CONNECT system" or "CONNECT system/&password." Upon running your script, you will enter the password. The password is what you entered in your installation.

My grading assumption: I will log in as SCOTT/tiger, before runing your script. In other words, it is required that you have a CONNECT statement in your script.

b. I generally like to write the script in Notepad or WordPad. In order to test it again and again, it is a good idea to add one statement of dropping the user at the beginning of the script. The drop statement will be like "DROP USER dbsec CASCADE." (See page 79)

c. A database dictionary view "dba_users" can be used to find user information. There are, of course, other ways to do it, which are acceptable as well.

d. Please note that the password specification IS case sensitive even though Oracle SQL statement in general is not case sensitive. Please test it before submission.

e. Exact spelling is critical for any successful collaboration among development team members. Therefore, exact spelling conforming the specification is required for the project and all other projects this semester.

f. When grading, I will test your script first to see if it works or not. Thus, please make sure the script runs before submission. Please note that 20 points will be taken off if the script file is not executable under SQL Plus.

 

Report:

One and only one SQL script file will be required and submitted through WebCT/Blackboard. Please note that 20 points will be taken off if the script file is not executable under SQL Plus, or is not in one file. Thus, please test it so that you can perform all above tasks in one file.

Convention for File Name: Please name your file as firstname_lastname_project3.sql, where firstname and lastname are your first and last name, respectively, and "_" is underscore. Please note that five (5) points will be taken off if the file is not named according to the convention.

 
Due:

At the end of this week. Please see the course schedule for exact due date.

Unrelated Matter:
Author: Krishnamurth Ashwini (kashwini)
Date: Tuesday, September 5, 2006 3:29pm

A couple were driving to a church to get married. On the way, they got into a car accident and died. When they arrive in heaven, they see St. Peter at the gate. They ask him if he could arrange it so they could marry in heaven.

St. Peter tells them that he'll do his best to work on it for them. Three months pass by and the couple hear nothing. They bump into St. Peter and ask him about the marriage. He says, "I'm still working on it." Two years pass by and no marriage. St. Peter again assures them that he's working on it.

Finally after twenty long years, St. Peter comes running with a priest and tells the couple it's time for their wedding. The couple marry and live happily for a while. But after a few months the couple go and find St. Peter and tell him things are not working out, and that they want to get a divorce."Can you arrange it for us?" they ask.

St. Peter replies, "Are you kidding?! It took me twenty years to find a priest up here. How am I gonna find you a lawyer?"