DBAM - Database Administration & Management, Past Papers

DBAM Past Paper 2025 BSCS UOS

Database Administration & Management Past Paper 2025 BSCS UOS

DBAM – Database Administration & Management Past Paper 2025 – BSCS 7th Semester University of Sargodha

Are you a BSCS 7th Semester student at the University of Sargodha preparing for your Database Administration & Management (CSEC-409) exam? This post brings you the official past paper from the 2025 examination, offering valuable insights into the types of questions asked and the format of the paper.

Exam Details:

  • Subject: Computer Science
  • Course: Database Administration & Management (CSEC-409)
  • Semester: BS 7th Semester Examination 2025
  • Time Allowed: 02:30 Hours
  • Maximum Marks: 60

Note: Objective part is compulsory. Attempt any three questions from subjective part.

Objective Part (Compulsory) – (2*12 = 24 Marks)

  1. Write short answers of the following in 2-3 lines each on your answer sheet:
    1. What is the purpose of control files in Oracle?
    2. How are redo log files managed in Oracle databases?
    3. Define a tablespace in Oracle.
    4. What are the main operations you can perform on tablespaces?
    5. Explain the role of data files in Oracle.
    6. What are Undo Data Statistics in Oracle?
    7. What is the purpose of Indexes in Oracle?
    8. How do you maintain data integrity using constraints in Oracle?
    9. Difference between Oracle Net Manager and Oracle Enterprise Manager.
    10. Explain Oracle Memory Structures.
    11. Describe the host naming and local naming methods in Oracle Net.
    12. What is the purpose of Oracle Net Assistant?

Subjective Part (3*12 = 36 Marks)

  1. Explain the startup and shutdown sequence of an Oracle database. What are the different stages, and how does the alert log file assist a DBA during this process?
  2. Describe the architectural components of an Oracle server. What are the major responsibilities of the Oracle Instance in this architecture?
  3. Differentiate between system privileges and object privileges with example of each.
  4. Compare and contrast the roles of user processes, server processes, and background processes in Oracle architecture.
  5. Discuss backup and recovery strategies in Oracle, including instance and media recovery and configuration of archive log mode.

This past paper is an excellent resource for students to understand the exam pattern, important topics, and the level of detail required in answers. Good luck with your preparations!

Short questions solved (DBAM 2025)

  1. Control files: small binary files that record the database name, the locations of data files and redo logs, and checkpoint/SCN data. Oracle needs them to mount and recover the database, so they are usually multiplexed.
  2. Redo log management: redo is written by LGWR into groups of online redo log files used in a circular way. At a log switch the next group is used; in ARCHIVELOG mode ARCn copies filled groups to archived logs. Groups can be multiplexed with members on different disks.
  3. Tablespace: a logical storage unit that groups related segments (tables, indexes); it is stored in one or more data files (e.g. SYSTEM, SYSAUX, USERS, UNDO, TEMP).
  4. Tablespace operations: create, drop, add/resize data files, make read-only or read-write, take offline/online, rename, and enable autoextend.
  5. Data files: physical OS files that store the data of a tablespace’s segments; DBWn writes changed blocks to them.
  6. Undo data statistics: the V$UNDOSTAT view records undo usage in 10-minute intervals (undo blocks used, transactions, longest query, “snapshot too old” errors) to help size the undo tablespace and UNDO_RETENTION.
  7. Indexes: structures (usually B-tree) that speed up row retrieval and help enforce uniqueness, at the cost of extra storage and slower DML.
  8. Integrity with constraints: NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY and CHECK constraints stop invalid data from being stored, e.g. ALTER TABLE emp ADD CONSTRAINT fk_dept FOREIGN KEY (dept_id) REFERENCES dept(id);
  9. Net Manager vs Enterprise Manager: Oracle Net Manager configures network files (listener.ora, tnsnames.ora, sqlnet.ora); Oracle Enterprise Manager is a web-based console for monitoring and administering whole databases.
  10. Memory structures: the SGA (shared pool, database buffer cache, redo log buffer, large/Java/streams pools) is shared by all processes; the PGA is private memory for each server process.
  11. Host naming vs local naming: host naming connects using the server’s host name resolved through DNS or the hosts file (no tnsnames.ora); local naming resolves a net service name through the client’s tnsnames.ora file.
  12. Oracle Net Configuration Assistant (NetCA): a wizard for creating listeners, choosing naming methods and adding net service names without editing files by hand.

Subjective questions – answer guide (DBAM 2025)

Q.2 Startup and shutdown sequence; role of the alert log

Startup: SHUTDOWN → NOMOUNT (reads SPFILE/PFILE, allocates the SGA, starts background processes) → MOUNT (opens the control files and learns the locations of data files and redo logs) → OPEN (opens data files and redo logs; SMON performs instance recovery if needed).

Shutdown modes: NORMAL (waits for users to disconnect), TRANSACTIONAL (waits for transactions to finish), IMMEDIATE (rolls back active transactions) and ABORT (no checkpoint; instance recovery needed next start). The stages run in reverse: close → dismount → instance shut down.

The alert log records each startup/shutdown stage, non-default parameters, ORA- errors, log switches and recovery messages, so the DBA checks it to confirm success or diagnose failures.

Q.3 Architectural components of the Oracle server; role of the instance

An Oracle server = instance (SGA + background processes such as DBWn, LGWR, CKPT, SMON, PMON, ARCn) + database (data files, control files, online redo logs) + supporting files (parameter, password, archived logs). The instance manages memory, caches data blocks, writes changes and redo to disk, performs checkpoints and crash recovery, cleans up failed sessions and serves user connections.

Q.4 System privileges vs object privileges

System privileges allow a type of action anywhere in the database (e.g. GRANT CREATE SESSION, CREATE TABLE TO ali;, passed on WITH ADMIN OPTION). Object privileges allow actions on one specific object (e.g. GRANT SELECT, UPDATE ON hr.employees TO ali;, passed on WITH GRANT OPTION).

Q.5 User, server and background processes

  • User process – the client application (e.g. SQL*Plus) that sends requests.
  • Server process – works on behalf of a user: parses and runs SQL, reads blocks into the buffer cache, returns results; uses its own PGA (dedicated or shared server).
  • Background processes – shared housekeeping: DBWn writes dirty buffers, LGWR writes redo, CKPT signals checkpoints, SMON does instance recovery, PMON cleans up failed processes, ARCn archives logs.

Q.6 Backup and recovery strategies; archive log mode

  • Backups: physical (RMAN full/incremental, or user-managed hot/cold copies) and logical (Data Pump expdp/impdp).
  • Instance recovery: automatic after a crash (roll forward with redo, roll back with undo).
  • Media recovery: after losing files – restore them from backup, then apply archived and online redo (RESTORE/RECOVER in RMAN).
  • Enable ARCHIVELOG mode: SHUTDOWN IMMEDIATE; → STARTUP MOUNT; → ALTER DATABASE ARCHIVELOG; → ALTER DATABASE OPEN; → verify with ARCHIVE LOG LIST; (set the destination with LOG_ARCHIVE_DEST_1).

Answers prepared by Shining Study for revision. Check them against your class notes and teacher’s guidance.

About Saif R

An educator and technology enthusiast passionate about empowering students through quality education and digital learning. Dedicated to making academic resources and opportunities accessible to everyone.