COMP1638_Revision
COMP1638_Revision
100% Exam
Pass mark is 40
T.Simmonds 2
Exam Format
2 hours and 15 min
The first 15 minutes of this exam are to be used to read the exam
3 Questions - Answer only 2 questions
Answer any 2 questions out of 3.
T.Simmonds 5
2. Database Architecture
Review Questions
As a DBA you have to make sure that
the System Global Area (SGA) has the right size.
What is the SGA in an Oracle Database?
List all SGA components and describe the main
functionality of each component.
T.Simmonds 7
Starting up a database
OPEN
SQL> startup;
T.Simmonds 8
3. Managing Database Instance - Continued
Review Questions
For a DBA, starting up and shutting down
of a database is a routine and basic operation.
(i) What SQL command do you need to run to
accomplish the database shutdown?
(ii) Explain what is happening with the database and
instance during each stage of the shutdown?
(iii) What are shutdown modes and what restrictions are
applied for each mode?
T.Simmonds 9
Database shutdown
Users can no longer access the Modified data blocks cached in the SGA are written
database. to a disk. The contents of the redo log buffer are
written to a disk, and then the redo log buffer is
cleared. A checkpoint is performed. Datafiles and
CLOSED log files are closed.
SQL> shutdown;
Instance stopped
Database closed.
Database dismounted.
ORACLE instance shut down.
T.Simmonds 10
Shutdown modes
Shutdown Modes A I T N
Allows new connections No No No No
• Shutdown modes:
• A = ABORT
• I = IMMEDIATE
• T = TRANSACTIONAL
T.Simmonds
• N = NORMAL 11
4. Managing Database Storage Structures
Review Questions
What is your understanding of a tablespace?
Explain what a tablespace is in an Oracle database and its
purpose?
Critically evaluate the different tablespace types?
Which SQL command do you need to use in order to
create a tablespace? Provide an example.
An Oracle database is made up of physical and logical
structures.
Describe the Oracle database physical and logical
structures. And their purpose.
T.Simmonds 12
5. Database Security and Users Management
Review Questions
Security in an Oracle database can be managed in a number of
ways including the use of roles.
Describe the process of creating and managing roles including SQL
commands.
Critically discuss the benefits of using roles. Illustrate your answer with
suitable examples and SQL commands
T.Simmonds 14
Review Questions
T.Simmonds 15
6. Managing Schema Objects
Review Questions
Data integrity is a fundamental property of the
Relational Database Management System (RDBMS).
(i) Discuss what data integrity is and why it is important to
maintain data integrity in the RDBMS.
(ii) Critically evaluate the three primary methods to maintain
data integrity in the database. Include advantages and
disadvantages of each method. Illustrate your answer with
suitable examples.
Discuss integrity constraints and their purpose? What
are the two ways to define constraints?
What is the database data dictionary? How to view the
content of the data dictionary?
T.Simmonds 16
7. Managing Data: Transaction Processing, Undo,
Locking Mechanism
Review Questions
Transactions can be described by the ACID
principles. Discuss the meaning of the ACID
principles and give examples of how COMMIT and
ROLLBACK statements are used to enforce these
principles.
Which of these commands will terminate a transaction?
Choose all correct answers and explain why.
CREATE
GRANT
SAVEPOINT
SET AUTOCOMMIT ON
T.Simmonds 17
Review Questions
Two employees, Jane and Rajesh are making transactions
against the PROJECTS table. In order to enter new project’s
information into the company database, Jane begins a
transaction at 10:00 A.M. that consists of several SQL
statements against the PROJECTS table, which are not
supposed to end at least until 10:30 A.M.
Rajesh issues a SELECT statement against this table at 10:15
A.M. You find that none of the modifications done by Jane are
reflected to Rajesh.
(i) To which of the database properties will you attribute the
above situation?
(ii) Explain the mechanism that facilitates this property.
T.Simmonds 18
8. Flashback Technology
Review Questions
Starting from the release 10g, Oracle introduced a new
feature called Flashback Technologies.
(i) What do you understand about Flashback
Technologies?
(ii) Explain the architecture and components of each
flashback feature.
(iii) Provide examples of how you would use each
flashback feature to solve particular problems in
the database.
T.Simmonds 19
Review Questions
Working with the company database you
accidentally dropped the table CLIENTS. You have
to recover it.
(i) Discuss the best functionality to use to solve this
problem?
(ii) Write the SQL statement you will execute to recover
the table.
(iii) Discuss how this recovery functionality is
implemented.
T.Simmonds 20
9.Database Backup and Recovery
Review Questions
● A robust backup strategy includes both physical and
logical backups.
Compare and contrast the differences between these two
backup methods.
Include in your discussion the different options available for
each method, as well as examples that demonstrate the
implications and uses of both physical and logical backups.
T.Simmonds 21
Where to find more information
Books:
Oracle Database 12c DBA Handbook by B.Bryla 2015
Easy Oracle Jumpstart: Oracle Database Management
Concepts and Administration by Karam S., Freeman R., 2014
Database Systems: The Complete Book by H. Garcia-
Molina, 2008
Oracle Documentation:
http://www.oracle.com/pls/db121/homepage
T.Simmonds 22
Useful exam notes
Exam paper will have three questions, you need to
answer only TWO questions (including one compulsory question)
Each question will have several parts (a, b, c, d, etc)
T.Simmonds 24