You are on page 1of 7

1. Which of these languages can run within the database?

(Choose all correct ans


wers.) B,C,D
A. C
B. Java
C. PL/SQL
D. SQL
E. Any other language, if it is linked with the OCI libraries
2.
A.
B.
C.
D.
E.

Which of these is not a SQL command? (Choose the best answer.)


MERGE
UPSERT
COMMENT
SAVEPOINT
All the above are SQL commands

3. With regard to ensuring that data will not be lost and that security will not
be compromised, what would not normally be part of the DBA s duties? (Choose the be
st answers.)
B
A. Designing backup routines
B. Setting up disk mirroring
C. Creating and dropping database objects
D. Testing restore and recovery strategies
4. Which SGA structures are required, and which are optional?
The database buffer cache
log buffer
shared pool
large pool
Java pool
Streams pool
5.
?
A.
B.
C.
C.

If a session terminates abnormally, what will happen to an active transaction


It
It
It
It

will
will
will
will

be
be
be
be

rolled back, by the PMON background process.


roll forward, by the SMON background process.
rolled back, by the SMON background process.
lost and not be able to recover.

6. What will cause DBWR to write?


(i). No free buffers
(ii). Too many dirty buffers
(iii). A three-second timeout
(iv). A checkpoint.
A.
B.
C.
D.

(i) and (ii)


(ii) and (iii)
(ii), (iii) and (iv)
(i),(ii),(iii),(iv)

7.
A.
B.
C.
D.

What does DBWn do when a transaction is committed?


It does absolutely nothing.
It will write to log writer
It will write to data file
It will write in redo log.

8.
A.
B.
C.
D.

Which view will show you ALL the tables in the database?
DBA_TABLES
ALL_TABLES
LIST TABLES
DESC TABLES

9. What statements regarding instance memory and session memory are correct? (Ch
oose all correct
answers.)
A. SGA memory is private memory segments; PGA memory is shared memory segments.
B. Sessions can write to the PGA, not the SGA.
C. The SGA is written to by all sessions; a PGA is written by one session.
D. The PGA is allocated at instance startup.
E. The SGA is allocated at instance startup.
10. How do sessions communicate with the database? (Choose the best answer.)
A. Server processes use Oracle Net to connect to the instance.
B. Background processes use Oracle Net to connect to the database.
C. User processes read from the database and write to the instance.
D. Server processes execute SQL received from user processes.
11. What memory structures are a required part of the SGA? (Choose all correct a
nswers.)
A. The database buffer cache
B. The Java pool
C. The large pool
D. The log buffer
E. The program global area
F. The shared pool
G. The Streams pool
12. Which SGA memory structure(s) cannot be resized dynamically after instance s
tartup? (Choose all correct answers.)
A. The database buffer cache
B. The Java pool
C. The large pool
D. The log buffer
E. The shared pool
F. The Streams pool
G. All SGA structures can be resized dynamically after instance startup
13. Which SGA memory structure(s) cannot be resized automatically after instance
startup?
(Choose all correct answers.)
A. The database buffer cache
B. The Java pool
C. The large pool
D. The log buffer
E. The shared pool
F. The Streams pool
G. All SGA structures can be resized automatically after instance startup
14. When a session changes data, where does the change get written? (Choose the
best answer.)
A. To the data block in the cache, and the redo log buffer
B. To the data block on disk, and the current online redo log file
C. The session writes to the database buffer cache, and the log writer writes to
the current online redo log file
D. Nothing is written until the change is committed
15. Which of
A. ARCn, the
B. CKPT, the
C. DBWn, the
D. LGWR, the

these background processes is optional? (Choose the best answer.)


archive process
checkpoint process
database writer
log writer

E. MMON, the manageability monitor


16. What happens when a user issues a COMMIT? (Choose the best answer.)
A. The CKPT process signals a checkpoint.
B. The DBWn process writes the transaction s changed buffers to the datafiles.
C. The LGWR flushes the log buffer to the online redo log.
D. The ARCn process writes the change vectors to the archive redo log.
17. An Oracle instance can have only one of some processes, but several of other
s. Which of these processes can occur several times? (Choose all correct answers
.)
A. The archive process
B. The checkpoint process
C. The database writer process
D. The log writer process
E. The session server process
18. One segment can be spread across many datafiles. How? (Choose the best answe
r.)
A. By allocating extents with blocks in multiple datafiles
B. By spreading the segment across multiple tablespaces
C. By assigning multiple datafiles to a tablespace
D. By using an Oracle block size that is larger then the operating system block
size
19. Which statement
nswer.)
A. There must be at
B. There must be at
C. There must be at
D. There must be at

is correct regarding the online redo log? (Choose the best a


least
least
least
least

one
one
two
two

log
log
log
log

file
file
file
file

group, with at least one member.


group, with at least two members.
groups, with at least one member each.
groups, with at least two members each.

20. Where is the current redo byte address, also known as the incremental checkp
oint position, recorded? (Choose the best answer.)
A. In the controlfile
B. In the current online log file group
C. In the header of each datafile
D. In the system global area
21. Which tools can be used to create a database? (Choose all correct answers.)
A. Database Configuration Assistant
B. Database Upgrade Assistant
C. SQL*Plus
D. Oracle Universal Installer
E. Oracle Enterprise Manager Database Control
22. What statement best describes the relationship between the Oracle Base and t
he Oracle Home? (Choose the best answer.)
A. The Oracle Base exists inside the Oracle Home.
B. The Oracle Base can contain Oracle Homes for different products.
C. One Oracle Base is required for each product, but versions of the product can
exist in their own Oracle Homes within their Oracle Base.
D. The Oracle Base is created when you run the orainstRoot.sh script, and contai
ns a pointer to the Oracle Home.
23. What environment variable must be set on Linux before running the Oracle Uni
versal Installer? (Choose the best answer.)
A. ORACLE_HOME
B. ORACLE_BASE
C. ORACLE_SID

D. DISPLAY
24. To create a database, in what mode must the instance be? (Choose the best an
swer.)
A. Not started
B. Started in NOMOUNT mode
C. Started in MOUNT mode
D. Started in OPEN mode
25. The SYSAUX tablespace is mandatory. What will happen if you attempt to issue
a CREATE DATABASE command that does not specify a datafile for the SYSAUX table
space? (Choose the best answer.)
A. The command will fail.
B. The command will succeed, but the database will be inoperable until the SYSAU
X
tablespace is created.
C. A default SYSAUX tablespace and datafile will be created.
D. The SYSAUX objects will be created in the SYSTEM tablespace.
26. Is it necessary to have a database listener created before creating a databa
se? (Choose the best answer.)
A. No.
B. Yes.
C. It depends on whether the database is created with the DBCA or SQL*Plus.
D. It depends on whether the Database Control option is selected in the DBCA.
27. Several actions are necessary to create a database. Place these in the corre
ct order:
1. Create the data dictionary views.
2. Create the parameter file.
3. Create the password file.
4. Issue the CREATE DATABASE command.
5. Issue the STARTUP command.
(Choose the best answer.)
A. 2, 3, 5, 4, 1
B. 3, 5, 2, 4, 1
C. 5, 3, 4, 2, 1
D. 2, 3, 1, 5, 4
28. What instance parameter cannot be changed after database creation? (Choose t
he best answer.)
A. All instance parameters can be changed after database creation.
B. All instance parameters can be changed after database creation, if it is done
while the instance is in MOUNT mode.
C. CONTROL_FILES.
D. DB_BLOCK_SIZE.
29. What files are created by the CREATE DATABASE command? (Choose all correct a
nswers.)
A. The controlfile
B. The dynamic parameter file
C. The online redo log files
D. The password file
E. The static parameter file
F. The SYSAUX tablespace datafile
G. The SYSTEM tablespace datafile
30. What will happen if you do not run the CATALOG.SQL and CATPROC.SQL scripts a
fter creating a database? (Choose the best answer.)
A. It will not be possible to open the database.

B.
C.
D.
E.

It
It
It
It

will
will
will
will

not
not
not
not

be
be
be
be

possible
possible
possible
possible

to
to
to
to

create any user tables.


use PL/SQL.
query the data dictionary views.
connect as any users other than SYS and SYSTEM.

31. What tools can be used to manage templates? (Choose all correct answers.)
A. The Database Configuration Assistant
B. The Database Upgrade Assistant
C. SQL*Plus
D. Database Control
E. The Oracle Universal Installer
32. At what point can you choose or change the database character set? (Choose a
ll correct answers.)
A. At database creation time, if you are not using any template
B. At database creation time, if you are using a template that does not include
datafiles
C. At database creation time, whether or not you are using a template
D. After database creation, with the DBCA
E. After database creation, with SQL*Plus
33. If there are several databases created off the same Oracle Home, how will Da
tabase Control be configured? (Choose the best answer.)
A. Database Control will give access to all the databases created from the one O
racle Home through one URL.
B. Database Control will give access to each database through different ports.
C. Database Control need only be configured in one database and can then be used
to connect to all of them.
D. Database Control can only manage one database per Oracle Home.
34. You issue the URL https://127.0.0.1:5500/em and receive an error. What could
be the problem?(Choose all correct answers.)
A. You have not started the database listener.
B. You have not started the dbconsole.
C. The dbconsole is running on a different port.
D. You are not logged on to the database server node.
E. You have not started the Grid Control agent.
F. You have not started the database.
35. Which files must be synchronized for a database to open? (Choose the best an
swer.)
A. Datafiles, online redo log files, and controlfile
B. Parameter file and password file
C. All the multiplexed controlfile copies
D. None SMON will synchronize all files by instance recovery after opening the datab
ase
36. During the transition from NOMOUNT to MOUNT mode, which files are required?
(Choose the best answer.)
A. Parameter file
B. Controlfiles
C. Online redologs
D. Datafiles
E. All of the above
37. You shut down your instance with SHUTDOWN IMMEDIATE. What will happen on the
next startup? (Choose the best answer.)
A. SMON will perform automatic instance recovery.
B. You must perform manual instance recovery.
C. PMON will roll back uncommitted transactions.

D. The database will open without recovery.


38. You have created two databases on your computer and want to use Database Con
trol to manage them. Which if the following statements are correct? (Choose all
correct answers.)
A. You cannot use Database Control, because it can only manage one database per
computer.
B. You must use Grid Control, as you have multiple databases on the computer.
C. You can use Database Control, if you contact it on different ports for each d
atabase.
D. You must set the ORACLE_SID variable appropriately before starting each Datab
ase Control console.
39. You issue the command SHUTDOWN; and it seems to hang. What could be the reas
on? (Choose the best answer.)
A. You are not connected as SYSDBA or SYSOPER.
B. There are other sessions logged on.
C. You have not connected with operating system or password file authentication.
D. There are active transactions in the database; when they complete, the SHUTDO
WN will proceed.
40. What action should you take after terminating the instance with SHUTDOWN ABO
RT? (Choose the best answer.)
A. Back up the database immediately.
B. Open the database, and perform database recovery.
C. Open the database, and perform instance recovery.
D. None, but some transactions may be lost.
E. None recovery will be automatic.
41. What will be the setting of the OPTIMIZER_MODE parameter for your session af
ter the next startup if you issue these commands:
alter system set optimizer_mode=all_rows scope=spfile;
alter system set optimizer_mode=rule;
alter session set optimizer_mode=first_rows;
(Choose the best answer.)
A. all_rows
B. rule
C. first_rows
42. The LOG_BUFFER parameter is a static parameter. How can you change it? (Choo
se the best answer.)
A. You cannot change it, because it is static.
B. You can change it only for individual sessions; it will return to the previou
s value for all subsequent sessions.
C. You can change it within the instance, but it will return to the static value
at the next startup.
D. You can change it in the parameter file, but the new value will only come int
o effect at the next startup.
43. Which of these actions will not be recorded in the alert log? (Choose all co
rrect answers.)
A. ALTER DATABASE commands
B. ALTER SESSION commands
C. ALTER SYSTEM commands
D. Archiving an online redo log file
E. Creating a tablespace
F. Creating a user
44. Which parameter controls the location of background process trace files? (Ch
oose the best answer.)

A.
B.
C.
D.

BACKGROUND_DUMP_DEST
BACKGROUND_TRACE_DEST
DB_CREATE_FILE_DEST
No parameter the location is platform specific and cannot be changed

45. Which of these views can be queried successfully in nomount mode? (Choose al
l correct answers.)
A. DBA_DATA_FILES
B. DBA_TABLESPACES
C. V$DATABASE
D. V$DATAFILE
E. V$INSTANCE
F. V$SESSION
46. Which view will list all tables in the database? (Choose the best answer.)
A. ALL_TABLES
B. DBA_TABLES
C. USER_TABLES, when connected as SYS
D. V$FIXED_TABLE

You might also like