DBA BSIT
DBA BSIT
Lahore
MID-TERM EXAMINATION (FALL 2024)
BS PROGRAMS [UNIVERSITY OF EDUCATION]
Course Name (with Code): Database Administration
Course Instructor: Muhammad Nadeem Program & Term: BSIT 22
Time Allowed: 15 Min Maximum Marks: 12
TO BE FILLED IN BY THE STUDENT
Registration No:
Student Name:
University Roll No.: bsf
(OBJECTIVE)
Attempt all questions. (12×1=12)
Page 1 of 3
Punjab Colleges,
Lahore
MID-TERM
EXAMINATION (FALL 2024)
BS PROGRAMS [UNIVERSITY OF EDUCATION]
Course Name (with Code): Database Administration
Course Instructor: Muhammad Nadeem Program & Term: BSIT 22
Time Allowed: 75 Min Maximum Marks: 38
TO BE FILLED IN BY THE STUDENT
Registration No:
Student Name:
University Roll No.: bsf
(SUBJECTIVE)
SHORT QUESTIONS
Q.1. Attempt all questions. (5×3=15)
1. Describe the function of redo log files and archive log files. Why are they crucial for
database recovery?
2. What is a tablespace? Explain the difference between data files and tablespaces
3. Describe the steps involved in creating a new user in Oracle, including granting basic
privileges
4. Explain the importance of regular backups in database administration. Briefly describe
different backup strategies.
5. Explain the difference between authentication and authorization in the context of database
security.
LONG QUESTIONS
Q.2. Attempt all questions. (8×2 = 16 & 7×1 =7)
(a) Explain the process of user management in Oracle, from creating a user to granting and
revoking privileges. Include examples of SQL commands and discuss best practices for user
security.
(b) You are the lead DBA for a critical production Oracle database. You need to perform
planned maintenance on the server, which requires a database shutdown and restart. Explain
potential issues that might arise during startup and shutdown operations, such as:
a. Incomplete transactions during an IMMEDIATE shutdown.
b. Instance recovery requirements after an ABORT shutdown.
c. Problems with control files or data files during startup.
d. Long shutdown times due to long-running transactions.
Page 2 of 3
(c) You are a DBA. A new application requires a user, app_user, to have the following
privileges: CONNECT, CREATE TABLE, CREATE VIEW, SELECT on all tables in the
products schema, and INSERT, UPDATE, and DELETE on the orders table. Write the SQL
statements to create the user and grant the necessary privileges. Also, create a tablespace
named app_data which will be the default tablespace for app_user. (Focus: Comprehensive
scenario involving user creation, tablespaces, and various privileges)
Page 3 of 3