You are on page 1of 16

UGRD-IT6203 Database Management

System 2 (Oracle 10g Admin 2)


It is part of the System Global Area (SGA) that hold copies of data Data Buffer Cache
blocks that are read from data files
It holds information about changes made to the database Redo Log Buffer
It is a type of process structure that can collect transaction, redo data Archiver Processes
and transmit that data to standby destinations. (ARCn)
It is a type of process structure that writes modified (dirty) buffers in Database Writer
the database buffer cache asynchronously while performing other Process (DBWn)
processing to advance the checkpoint
It is the key in solving the problems of information management. Database Server
It is a type of process structure that cleans up the database buffer Process Monitor
cache Process (PMON)
Which of the following are mandatory tablespaces that are created at System and Syshaux
the time of database creation
It is also known as specific connection of a user to an instance Session
through a user process
It is a type of process structure that automatically connects to other Recoverer Process
databases involved in in- doubt distributed transactions
It is a type of process structure that records checkpoint information in Checkpoint Process
Control file on each data file header (CKPT)
Which of the following is not included in the disk requirements of 3 GB for the
oracle database? preconfigured
database (required)
It is part of the System Global Area which is used to provide memory Java Pool
for Oracle Streams processes
It is a type process structure that records checkpoint information in
Control file on each data file header. Checkpoint Process
(CKPT)
Which of the following is not part or Oracle Installation System File Manager
Requirement.
It represents the state of a current user login to the database session
instance.
Also known as the application or tool that connects to the Oracle User process
Database Processes
Which of the following is the correct Disk space requirement when 3.8 GB
installing Oracle?
It is a type of privilege that is used to manipulating the content of the Object
database objects.
It is a communication pathway between a user process and an Oracle Connection
Database instance.
Holds information about changes made to the database Redo Log Buffer
It is a type a Oracle environment where Oracle Products run. ORACLE_HOME
Which of the following is the correct example revoking a priviledge to REVOKE INSERT,
INSERT, UPDATE and DELETE to USER ANNA? UPDATE, DELETE
ON EMPLOYEES
TO ANNA;
Which of the following follows the correct order of designing, Evaluating the
implementing and mainting and Oracle Database. database server
hardware
Installing the Oracle
software
Planning the
database and
security strategy
Creating, migrating,
and opening the
database
Backing up the
database
Enrolling system
users and planning
for their Oracle
Network access.
Implementing the
database design
Recovering from
database failure
Monitoring
database
performance
This is use to connect to the Oracle instance and is started when a Server process
user establishes a session
Which of the following is the correct example of changing a ALTER USER ANNA
password to user ANNA from ANNA01 to AN01? IDENTIFIED BY
AN01;
Which of the following is the correct example of granting role GRANT STUDENT
STUDENT to USER ANNA? TO ANNA;
Which of the following system privileges is not part of the task by the Managing user
database admin.? environment
Which of the following is the correct example of creating a user
ANNA with password ANN01? CREATE USER ANNA
IDENTIFIED BY
ANN01;
Which of the following is the correct example of granting SELECT and GRANT SELECT,
INSERT on table EMPLOYEES to roleSTUDENT? INSERT
ON EMPLOYEES
TO STUDENT;
It is a collection of data treated as a unit with the main purpose of Oracle Database
storing and retrieving related information in the database.
Also known as Oracle Database backup and restore operations Large Pool
Which of the following is not included in the required operating sysdba
system users and groups?
Which of the following is the correct example of creating a role CREATE ROLE
STUDENT? STUDENT;
Which of the following is not included in the optional requirement for Dba
operating system of oracle database?
Which of the following is the correct example of passing a privilege GRANT INSERT,
(INSERT and UPDATE) to user HR coming from a SYSTEM? UPDATE ON
EMPLOYEES TO HR
WITH GRANT
OPTION;
This is also known collection of objects such as tables, views, and Schema
sequences.
Which of the following System Privileges is not part of SYSTEM CREATE INDEX
privilege?
It is a type of privilege that gain access to the database System
Which of the following is the correct example of passing a privilege GRANT INSERT,
(INSERT and UPDATE) to user HR coming from a user scott? UPDATE
ON
SYSTEM.EMPLOYEE
S
TO HR;
Which of the following is the correct syntax for creating a new user? CREATE USER hr
IDENTIFIED BY hr;
It is a named group of related privileges that can be granted to the Role
user. This method makes it easier to revoke and maintain privileges.
An automatic rollback is issued by the oracle under the following  Closes the
circumstances. (Choose 2) sqlplus
normally by
closing he
isqlplus
using x
button
 The user
encounter
system
failure
A transaction ends when either of the following occurs. (Choose 5)  The user
encounter
system
failure
 CREATE
TABLE is
issued
 The user
type in
Commit
 The user
closes the
isqlplus
 The user
type in
Rollback
An automatic commit is issued by the Oracle Server under the  CREATE
following circumstances. (Choose 2) TABLE is
issued
 Closes the
sqlplus
normally by
typing exit
Which three (3) of thefollowing is the three Data Manipulation  INSERT
Langauge that is considered as part of database transaction.  DELETE
 UPDATE
Which of the following is the correct example of selecting all columns SELECT * FROM
from employees table using the user BEN? SYSTEM.STUDENT;
In planning to install Oracle which of the following is not important Any Oracle version
to consider. will do even when
multiple products
are involved
Which of the following is the correct example revoking a privilege to REVOKE INSERT,
INSERT, UPDATE and DELETE to user ANNA from user BEN UPDATE, DELETE
ON
SYSTEM.EMPLOYEE
S
TO ANNA;
It is a type of process structure that writes the redo log buffer to a Log Writer Process
redo log file on disk (LGWR)
Which of the following is the correct example of referencing the CREATE TABLE
BOOKS table to AUTHORS? BOOKS(
BOOK_ID
NUMBER
PRIMARY KEY
NOT NULL,
TITLE
VARCHAR(10),
YEAR
NUMBER(4),
CONSTRAINT
BK_ID FOREIGN
KEY(BOOK_ID)
REFERENCES
AUTHORS
(BOOK_ID));
A state of the data where a transaction must be fully compliant with Consistency
the state of the database as it was prior to the transaction.

A state where a transaction data changes must be available, even in durability


the event of database failure.
Which of the following is the correct example of dropping on delete ALTER TABLE
cascade? AUTHORS
DROP PRIMARY
KEY CASCADE;
It is the skeleton structure that represents the logical view of the Database
entire database. Schema

This is the fundamental entity which introduces abstraction in a Entity


Database Management System (DBMS). Relationship
Diagram
Which of the following is the correct representation of one-to-many
relation?
A state of the data where a transaction must be fully complete, saved Atomicity
(committed) or completely undone (rolled back).
Supposed that a user performs the query as shown below, what will The manager_id
happen to the data? that is equal to
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000 null is now
WHERE MANAGER_ID IS NULL; change to IT and
  the job_id of
SAVEPOINT UPDATE_IT; employees
  under
UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’ department_id
WHERE DEPARTMENT IN (50,90) OR SALARY > 500; 50,90 or salary
  greater that 500
SAVEPOINT UPDATE_IT; have been
  updated to
ROLLBACK TO UPDATE_IT; secretary.
It is a state of operational database with data at any given time. Database
Instance
A type of constraint uniquely identifies each record in a database Primary key
table.

A type constraint that uniquely identifies each record in a database Unique


table and can be applied on one or more column.
This gives the user more flexibility and control when changing data Transaction
and they ensure data consistency in the event of user process or
system failure.
It is used to ensures that data values inside a database follow defines Domain
rules for values, range and format Intergrity

Which of the following is the correct example of enabling constraint? ALTER TABLE
BOOKS
ENABLE
CONSTRAINT
STUD_ID;

It occurs when two or more applications wait indefinitely for a Deadlock


resources.
Which of the following is the correct example of derived attribute?

Supposed that table: Workers and Employees is consists of the This will retrieve
following values. the record of
What will be the output if the user uses this PL/SQL. Mortos and
SELECT ID, LASTNAME, DEPARTMENT Santiago
FROM WORKERS
WHERE ID > (SELECT ID FROM EMPLOYEES WHERE STATUS =
‘Probi’);
This is a join clause used when the columns in two or more tables Inner Join
have the same but of different data type.
What will be the output if the user uses this PL/SQL. All Workers
UPDATE WORKERS department will
SET DEPARTMENT = (SELECT DEPARTMENT FROM EMPLOYEES be set to NULL
WHERE DEPARTMENT =’HRD’);
What will be the output if the user uses this PL/SQL. 0 rows are
DELETE FROM WORKERS deleted in
WHERE LASTNAME = (SELECT LASTNAME FROM EMPLOYEES WHERE Workers table
LASTNAME=Cruz’)
Which of the following is the correct query that will create a report SELECT
that will display the following: FIRTSNAME, SALARY with additional FIRSTNAME,
1000 in employees salary, rename this column as BONUS, then get SALARY + 1000
the DEPARTMENT_NAME and DEPARTMENT_ID. Join the table using AS BONUS,
ON condition. DEPARTMENT_N
AME,
DEPARTMENT_I
D
FROM
EMPLOYEES E
JOIN
DEPARTMENTS
D
ON
E.DEPARTMENT_
ID =
D.DEPARTMENT
_ID;
Which of the following is the correct example of create a default CREATE TABLE
constraint. COURSE
(CODE CHAR(4)
PRIMARY KEY,
TITLE
VARCHAR(20),
CONSTRAINT
CODE_df
DEFAULT(CODE
BSIT));
If WITH CHECK OPTION is added on the view (see sample code It restricts the
below) what is/are the restriction? users to add a
CREATE OR REPLACE VIEW VIEW STUD_VIEW (USN_ID, LASTNAME, value where
FIRSTNAME, COURSE) course is equal
AS (SELECT USN_ID, LASTNAME, FIRSTNAME, COURSE to BSCS only
FROM STUDENTS
WHERE COURSE = ‘BSCS’
WITH CHECK OPTION CONSTRAINT STUD_VIEW_CK;
Based on the table EMPLOYEES, DEPARTMENTS and LOCATIONS. 2014
From the given select statement below: What is the address of JABBERWACKY
employee under the department_name IT?
SELECT STREET_ADDRESS, CITY, DEPARTMENT_NAME, LOCATION_ID
FROM DEPARTMENTS
JOIN LOCATIONS
USING (LOCATION_ID);
Which of the following is the correct example of creating a subquery INSERT INTO
that will copy all values from employees table to workers where WORKERS
job_id is equal to ST_CLERK; (SELECT * FROM
EMPLOYEES
WHERE JOB_ID
= ‘ST_CLERK’);
A type of constraint that is used to insert a default value into a Default
column.
Which of the following is the correct example of multiple row SELECT
subquery? EMPLOYEE_ID,
SALARY
FROM
EMPLOYEES
WHERE SALARY
=(SELECT
MIN(SALARY)
FROM
EMPLOYEES;
Which of the following is not part of multiple row subqueries? MAX
A type of constraint that is used to limit the value range that can be Check
placed in a column.
Which of the following is not part of single to subqueries IN
This is used to deactivate an integrity constraint. DISABLE
CONSTRAINT
Which of the following joins are mutually exclusive. Natural Join and
Using clause
SELECT EMPLOYEES.EMPLOYEE_ID, The given
EMPLOYEES.LASTNAME,EMPLOYEES.DEPARTMENT_ID,DEPARTMENTS statement is
.DEPARTMENT_ID,DEPARTMENTS.LOCATION_ID Outer Join
FROM EMPLOYEES JOIN DEPARTMENTS
USING (DEPARTMENT_ID);
What will be the output if the user uses this PL/SQL. 0 rows are
DELETE FROM WORKERS deleted in
WHERE LASTNAME = (SELECT LASTNAME FROM EMPLOYEES WHERE Workers table
LASTNAME=Cruz’)
This is used to quality ambiguous column when joining two or more Table Prefixes
tables.
SELECT EMPLOYEES.EMPLOYEE_ID, The given
EMPLOYEES.LASTNAME,EMPLOYEES.DEPARTMENT_ID,DEPARTMENTS statement is
.DEPARTMENT_ID,DEPARTMENTS.LOCATION_ID Outer Join
FROM EMPLOYEES JOIN DEPARTMENTS
ON( EMPLOYEES.DEPARTMENT_ID (+)=
DEPARTMENTS.DEPARTMENT_ID);
It is the skeleton structure that represents the logical view of the Database
entire database. Schema
A type of transaction that is ends the current transactions by making COMMIT
all pending data changes permanent.
Supposed that a user performs the query as shown below, what will Savepoints are
happen to the data? discarded.
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_SECRETARY;

ROLLBACK TO UPDATE_IT;

A process where an application waits indefinitely to obtain any Deadlock


needed locks.
If WITH CHECK OPTION is added on the view (see sample code It restricts the
below) what is/are the restriction? users to add a
CREATE OR REPLACE VIEW VIEW STUD_VIEW (USN_ID, LASTNAME, value where
FIRSTNAME, COURSE) course is equal
AS (SELECT USN_ID, LASTNAME, FIRSTNAME, COURSE to BSCS only
FROM STUDENTS
WHERE COURSE = ‘BSCS’
WITH CHECK OPTION CONSTRAINT STUD_VIEW_CK;
Refer to the table AUTHORS and COPY_AUTHORS (Note ID column is 0 rows are
with Primary Key constraint). Supposed that the user insert the added on
following values to COPY_AUTHORS view as shown below what is/are COPY_AUTHORS
the possible output on both table and view? view but 1 row is
INSERT INTO COPY_AUTHORS VALUES (6,'SUSAN added on
CARLOS','OS','2016'); AUTHORS table.
A type of constraint uniquely identifies each record in a database Unique
table.
A type of constraint that is used to insert a default value into a Default
column.
Which of the following is the correct example of modifying a view CREATE OR
where salary manager_id is null? REPLACE VIEW
WORKERS
(EMPLOYEE_ID,
SURNAME,
FIRSTNAME,
MANAGER_ID)
AS
(EMPLOYEE_ID,
LASTNAME,
FIRSTNAME,
MANAGER_ID
FROM
EMPLOYEES
WHERE
MANAGER_ID =
NULL);
This is also known as unit of work.
Which of the following is the correct example of saving changes CTRL + S
made on the table?
Refer to the table AUTHORS and COPY_AUTHORS (Note during the The record of
creation of view the condition added is YR_PUBLISHED=2010). book OS will be
Supposed that the user update the YR_PUBLISHED of book OS to removed in the
from 2010 to 2010 as shown below what is/are the possible output COPY_AUTHORS
on both table and view? view since its
UPDATE COPY_AUTHORS YR_PUBLIHED is
SET YR_PUBLISHED = 2016 updated to 2016
WHERE BOOK='OS';
Which of the following is not true about complex view when using
DELETE statement?
What will be the output if the user uses this PL/SQL. All Workers
UPDATE WORKERS department will
SET DEPARTMENT = (SELECT DEPARTMENT FROM EMPLOYEES be set to HRD
WHERE DEPARTMENT =’HRD’);
Which of the following is not true about complex view when using All of the
DELETE statement? choices
Based on the table EMPLOYEES, DEPARTMENTS and LOCATIONS. 2014
From the given select statement below: What is the address of JABBERWACKY
employee under the department_name IT?
SELECT STREET_ADDRESS, CITY, DEPARTMENT_NAME, LOCATION_ID
FROM DEPARTMENTS
JOIN LOCATIONS
USING (LOCATION_ID);
If WITH READ ONLY is added on the view (see sample code below) NO DML
what is/are the restriction? operations
CREATE OR REPLACE VIEW STUD_VIEW (USN_ID, LASTNAME, allowed on this
FIRSTNAME, COURSE) view.
AS (SELECT USN_ID, LASTNAME, FIRSTNAME, COURSE
FROM STUDENTS
WHERE COURSE = ‘BSCS’)
WITH READ ONLY;
Which of the following is the correct query that will create a report SELECT
that will display the following: STREET_ADDRESS, CITY, STREET_ADDRES
DEPARTMENT_NAME and LOATION_ID? Use using clause to get the S, CITY,
data from two tables. DEPARTMENT_N
AME,
LOCATION_ID
FROM
DEPARTMENTS
JOIN
LOCATIONS
USING
(LOCATION_ID);
A type of constraint that ensures the relationship between tables Foreign key
remain preserved as data is inserted, deleted and modified.
Which of the following is the correct example of creating a view CREATE VIEW
where LASTNAME ends with letter S rename LASTNAME to WORKERS
SURNAME? (EMPLOYEE_ID,
SURNAME,
FIRSTNAME)
AS
(EMPLOYEE_ID,
LASTNAME,
FIRSTNAME
FROM
EMPLOYEES
WHERE SALARY
LASTNAME LIKE
‘%S’);
Which of the following is not part of single to subqueries? IN
This is a kind of mechanism, which liberalizes itself from actual data Logical Data
stored on the disk. Independence
Which of the following is the correct representation of many-to-many
relation?
Which of the following is the correct example of copying data from WORKERS INSERT INTO
table to EMPLOYEES table where the status is equal to ‘Regular’? EMPLOYEES(ID,
LASTNAME,
DEPARTMENT)
SELECT ID,
LASTNAME,
DEPARTMENT
FROM WORKERS
WHERE STATUS
= ‘Regular’;
It is used to ensures that data values inside a database follow defines rules for Domain
values, range and format Intergrity
Which of the following is not true about complex view when using INSERT All of the
statement? choices
What will be the output if the user uses this PL/SQL. No rows or 0
SELECT ID, LASTNAME, DEPARTMENT rows are
FROM WORKERS Selected
WHERE ID > (SELECT ID FROM EMPLOYEES WHERE STATUS = ‘Probi’);
It is used to ensure that data values inside a database follow defines rules for Domain
values, range and format Intergrity
It occurs when two or more applications wait indefinitely for a resources. Deadlock
This is used to delete a primary key constraint in a parent table and will ON DELETE
automatically drop the foreign key constraint in the child table. CASCADE
This is a type of attribute that is atomic value, which cannot be Simple Attribute
divided further.
A type of that do not exist in the physical database, but their values Derived
are derived from other attributes present in the database. Attribute
It is an attribute or collection of attributes that uniquely identifies an Key
entity among entity set.
This is a schema that pertains to the actual storage of data and its Physical
form of storage like files, indices. Database
Schema
This is a type of schema defines all the logical constraints that need Logical Database
to be applied on the data stored. It defines tables, views, and integrity Schema
constraints.
A single row of a table, which contains a single record for that Tuple
relation.
This is the fundamental entity which introduces abstraction in a Data Model
Database Management System (DBMS).
This is a kind of mechanism, which liberalizes itself from actual data Logical Data
stored on the disk. Independence
CREATE VIEW WORKERS (EMPLOYEE_ID, SURNAME, FIRSTNAME) AS (EMPLOYEE_ID,
LASTNAME AS "SURNAME", FIRSTNAME FROM EMPLOYEES WHERE SALARY LASTNAME
LIKE '%S');

You might also like