DBAM - Database Administration & Management, Past Papers, UOS Main Campus

Database Administration Past Paper 2015 – BSIT 6th Term UOS (Solved)

ProgramBSIT
Term6th
Year2015
AnswersSolved ✓

Database Administration past paper 2015 of the University of Sargodha (BSIT 6th term) – the question paper with complete solved answers below.

Read and download Database Administration and Management BSIT 5th 2015

University of Sargodha BS IT 6th term examination 2015, Database Administration (IT-437) – solved answers for all 16 short questions and Q2–Q7 (Oracle). Answers written by Shining Study for revision (Oracle 11g terminology).

Solved answers

Q1 – Short answers (16 × 2)

i. Oracle server A database management system consisting of an Oracle instance and an Oracle database, providing open, integrated data management.

ii. Oracle instance The combination of the SGA memory structures and background processes; it accesses one database (except RAC).

iii. System Global Area (SGA) A shared memory region allocated when an Oracle instance starts; it contains the database buffer cache, shared pool (library cache + data dictionary cache), redo log buffer, large pool, Java pool and Streams pool, shared by all server processes.

iv. Background processes Processes started with the instance that do work on behalf of all users: DBWn, LGWR, CKPT, SMON, PMON, ARCn, etc.

v. Oracle database The collection of physical files – data files, control files and redo log files (plus parameter, password and archived log files) – treated as a unit.

vi. Client–application server–server Three-tier architecture: client (browser/UI) connects to an application server running business logic, which connects to the database server.

vii. Client–server Two-tier architecture: the client machine runs the application and connects over the network directly to the database server.

viii. Host-based Users connect directly on the same machine where the database runs (terminal/host connection), no network between user process and server.

ix. Sequences Schema objects that generate unique sequential numbers, e.g. CREATE SEQUENCE emp_seq START WITH 1 INCREMENT BY 1; emp_seq.NEXTVAL used for primary keys.

x. Synonyms Aliases for tables, views, sequences or other objects; private or PUBLIC, e.g. CREATE PUBLIC SYNONYM emp FOR hr.employees.

xi. PL/SQL Oracle’s procedural extension of SQL with variables, conditions, loops, exceptions and cursors, used to write procedures, functions, packages and triggers stored in the database.

xii. External file access Reading/writing operating-system files from the database via UTL_FILE (with directory objects), external tables (read flat files with SQL) and BFILEs.

xiii. Offline (cold) backups Backups of all data files, control files and redo logs taken after a clean SHUTDOWN (NORMAL/IMMEDIATE); the database is unavailable during the copy. Works in NOARCHIVELOG mode; restore gives the database as of the backup time.

xiv. Database triggers Stored PL/SQL blocks fired automatically by events: DML on a table (BEFORE/AFTER INSERT, UPDATE, DELETE), DDL, or database events (LOGON, STARTUP); used for auditing, derived values and complex constraints.

xv. Oracle Managed Files (OMF) Oracle automatically creates, names and deletes data files, redo logs and control files in locations given by DB_CREATE_FILE_DEST / DB_CREATE_ONLINE_LOG_DEST_n, so the DBA need not specify file names.

xvi. Online (hot) backups Backups taken while the database is open and in ARCHIVELOG mode (e.g. with RMAN or ALTER TABLESPACE … BEGIN BACKUP); users keep working and recovery uses archived redo logs.

Q2

Memory structures in the Oracle server

  • SGA (shared): database buffer cache (copies of data blocks), shared pool (library cache, data dictionary cache), redo log buffer, large pool, Java pool, Streams pool, fixed SGA.
  • PGA (private per server process): session information, sort/hash areas, cursor state, stack space.
  • UGA – user session data (in PGA for dedicated server, in SGA/large pool for shared server).
  • Software code areas – memory holding Oracle executable code.

Q3

Mandatory background processes

  • DBWn (Database Writer) – writes modified (dirty) buffers from the buffer cache to data files.
  • LGWR (Log Writer) – writes redo entries from the redo log buffer to online redo log files (at commit, every 3 s, when 1/3 full).
  • CKPT (Checkpoint) – signals DBWn at checkpoints and updates data file headers and control files with the checkpoint SCN.
  • SMON (System Monitor) – instance recovery at startup, cleans temporary segments, coalesces free space.
  • PMON (Process Monitor) – cleans up after failed user processes: rolls back, releases locks, registers services with the listener.
  • (Also important: ARCn archiver in ARCHIVELOG mode, MMON, RECO.)

Q4

Stages of instance startup and shutdown

Startup:

  1. NOMOUNT – reads the parameter file, allocates the SGA and starts background processes (instance started); used to create a database or control file.
  2. MOUNT – opens the control files to find data files and redo logs; used for renaming files, enabling archiving, full recovery.
  3. OPEN – opens data files and online redo logs; the database is available to users (SMON does crash recovery if needed).

Shutdown modes: NORMAL (waits for all users to disconnect), TRANSACTIONAL (waits for active transactions to finish), IMMEDIATE (rolls back active transactions and disconnects users – clean), ABORT (stops the instance at once, no checkpoint; instance recovery needed at next startup). Shutdown stages: close database → dismount → shut down instance.

Q5

Oracle Net naming methods

  • Local naming – net service names in the tnsnames.ora file on the client (most common).
  • Easy Connect naming – host:port/service_name directly in the connect string (e.g. sqlplus hr/hr@dbsrv:1521/orcl), no configuration file.
  • Directory naming – names resolved from a central LDAP directory (Oracle Internet Directory, Active Directory).
  • External naming – a third-party naming service such as NIS.
  • (Older: Oracle Names server.) The order is set by NAMES.DIRECTORY_PATH in sqlnet.ora.

Q6

Undo data vs redo data

Undo dataRedo data
Records the old (before) image of changed dataRecords the changes (after image) made to data
Used to roll back transactions, read consistency, FlashbackUsed to roll forward / recover after instance or media failure
Stored in undo segments in the UNDO tablespaceStored in the redo log buffer, then online redo log files (and archived logs)
Example: UPDATE emp SET sal=6000 WHERE id=1 (old 5000) – undo keeps 5000 so ROLLBACK or another user’s query sees 5000The same change 5000→6000 is written to redo so that after a crash the committed update is reapplied

Q7

Auditing techniques in Oracle

  • Mandatory auditing – always recorded: connections as SYSDBA/SYSOPER, startup and shutdown (written to OS audit files).
  • Standard database auditing – AUDIT_TRAIL=DB; AUDIT statements for SQL statements (AUDIT CREATE TABLE), privileges (AUDIT SELECT ANY TABLE) and objects (AUDIT SELECT ON hr.emp BY ACCESS); results in DBA_AUDIT_TRAIL.
  • Value-based auditing – triggers that record old and new values of changed rows into a custom audit table.
  • Fine-grained auditing (FGA) – DBMS_FGA policies audit only queries that meet a condition or access sensitive columns (e.g. SALARY > 10000).
  • Auditing of SYS operations – AUDIT_SYS_OPERATIONS=TRUE; and (12c) Unified Auditing combining all audit trails.
Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)
Have another year of DBAM - Database Administration & Management?

Upload a photo in 10 seconds — no form to fill. We clean it, solve it and credit you.

Missing years for this subject
20222020

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.