You are on page 1of 7

Exam Answers for Exam 2 Complete

1. C
2. D
3. E
4. E
5. A
6. C
7. B
8. D
9. C
10. B
11. B
12. C
13. C
14. A, C
15. D
16. D
17. C
18. D
19. D
20. D
21. C
22. A
23. B
24. A
25. A
26. B
27. D

28. C
29. B
30. A
31. D
32. B
33. D
34. A, B, C
35. B
36. C
37. D
38. D
39. D
40. A
41. A
42. A
43. A
44. A, C
45. A, D, E
46. A
47. B
48. D
49. C
50. A
51. B
52. C
53. D, E
54. C
55. A

56. A
57. A
58. C
59. A
60. A
A1:
Answer C is correct; the only one of the provided places that will not give you information on your
control file locations and names is V$CONTROLFILE_RECORD_SECTION. Views V$CONTROLFILE and
V$PARAMETER will both provide the needed information, as will the initialization parameter files.
A2:
Answer D is correct; the user will no longer be able to insert records into the table from which he
had his insert privileges revoked. Answer A is incorrect; revoking privileges will have no effect on
records already inserted into the database. Answer B is incorrect; revoking privileges will not
remove the user from the database. Answer C is incorrect; the user will still be able to create tables
in his own schema if he was able to do that before.
A3:
Answer E is correct; none of these answers alone will provide the information required. Answer C is
incorrect; you can find information on all the indexes in the database in the DBA_INDEXES view but
not all the information required. Answer A is incorrect; USER_INDEXES provides only information on
the indexes owned by the logged-in user. Answer B is incorrect; USER_SEGMENTS will similarly
provide only information pertinent to the logged-in user.
A4:
Answer E is correct; each of the other selections can be rolled up into composite_limit. This
question needs to be read very carefully, and a basic understanding of what each of the
parameters does is needed.
A5:
Answer A is correct; all the options are correct, except DEFAULT ROLE NONE EXCEPT <rolename>.
EXCEPT is only acceptable with the ALL keyword, not the NONE keyword.
A6:
Answer C is correct; you may find that you have conflicts on disk resources if LGWR and ARCH both
try to access the same disk resources at the same time. This can occur when one log is being
archived at the same time as LGWR. Answer A is incorrect; first because SMON and PMON won't
conflict, and second because they have nothing to do with the question. Answer B is incorrect
because you can't infer that the data files will also be on the same physical disk. Answer D is
incorrect because PMON won't conflict with LGWR.
A7:
Answer B is correct; the data dictionary is in the system tablespace. Answer A is incorrect; there is
no SYS tablespace when you create the database. SYSTEM tablespace is the first to be created.
Answer C is incorrect; again there is no dictionary tablespace created in a database by default.
Answer D is incorrect; undo information is stored in the undo tablespace not data dictionary
information.
A8:
Answer D is correct; you need to have been granted RESTRICTED SESSION to connect to the
database under the given circumstances. Answers A, B, and C are all incorrect for the same
reasons. They will only allow you to connect when the database is open normally.
A9:
Answer C is correct. To alter the initial extent of a table, you have to drop and re-create the table.
Answer A is incorrect; you can alter the next extent but not the initial extent. Answer B is incorrect;
you cannot resize the initial extent of a table. Answer D is incorrect; you coalesce free space, but
that does not alter extents in any way.
A10:
Answer B is correct; the primary key declaration should not have an underscore between primary
and key. Answer A is incorrect; there can be 1,000 columns in an Oracle 9i table. Answer C is
incorrect; LOCALLY MANAGED is declared in this fashion. Answer D is incorrect; the index for this
constraint will go into the user's default tablespace, even if that is still SYSTEM.

A11:
Answer B is correct; OPTIMAL is a setting for undo in manual undo management, not for indexes.
The others are all applicable storage settings.
A12:
Answer C is correct; the parse information is stored in the library cache. This area is also often
referred to as the shared SQL area for this reason. Answer A is incorrect; retrieved row information
is stored in the row cache. Answer B is incorrect; it is where blocks are stored for quicker retrieval.
Answer D is incorrect; it is where data dictionary information is stored for quick retrieval.
A13:
Answer C is the only correct answer. The only one of the given situations that will not result in data
from the buffer cache being written to disk is when you flush the shared pool.
A14:
Answers A and C are correct; you need to run catalog.sql and catproc.sql to build these structures.
Answer B is incorrect; utlrp.sql recompiles invalid objects. Answer D is incorrect; utlpwdgm.sql
provides password management facilities.
A15:
Answer D is correct; you need to grant the CONNECT role to the user. Answer A is incorrect, CREATE
TABLE will not help them to connect. Answers B and C are incorrect; the error does not suggest that
either of these is needed.
A16:
Answer D is correct; unsuccessful deletes and updates will be recorded. The statement says
updates and deletes, so answers A and B are incorrect. Answer C is incorrect because you are
auditing unsuccessful inserts instead of successful inserts.
A17:
Answer C is correct; the users to whom this profile was granted will now have as their profile the
DEFAULT profile. Answer A is incorrect; dropping a profile will not affect their ability to log on.
Answer B is incorrect; every user has a profile. Unless one is explicitly given, it is the DEFAULT
profile. Answer D is incorrect; you can drop a profile any time.
A18:
Answer D is correct; you probably issued the SHUTDOWN NORMAL command, which means that the
database will shut down when all user processes have been disconnected. Answer A is incorrect;
SHUTDOWN IMMEDIATE will log off the users and shut down elegantly. Answer B is incorrect;
SHUTDOWN ABORT will shut down immediately. Answer C is incorrect; SHUTDOWN TRANSACTIONAL
will allow the users to finish the current transactions and will then log them off and shut down.
A19:
Answer D is correct; the only choice that will not allow you to determine initialization parameters is
selecting from DBA_PARAMETERS, which is not a valid data dictionary view.
A20:
Answer D is correct; value-based auditing will meet these requirements. Answer A is incorrect;
statement auditing wouldn't provide you the desired results. Answer B is incorrect; object auditing
would not provide the desired results. Answer C is incorrect; access auditing wouldn't give you the
granularity required.
A21:
Answer C is correct; cached data will not necessarily be written immediately out to disk. The other
answers will all occur.
A22:
Answer A is correct; the only nonvalid segment type is sequence segment.
A23:
Answer B is correct; you can best find out the available free space by querying DBA_FEE_SPACE.
Answer A is incorrect; it will provide you with allocated information but not free space information.
Answer C is incorrect; V$FREE_SPACE is not a valid view. Answer D is incorrect, V$TABLESPACE will
tell you only what the tablespace name and number are.
A24:
Answer A is correct; the listener will spawn a new user process. Answer B is incorrect because you
are running in dedicated server mode. Answers C and D are incorrect because the listener does not
interact directly with either LGWR or DBWn.
A25:
Answer A is correct; the only time that the init.ora file is read is when the instance is started.
A26:
Answer B is correct; Oracle will place the data file in the location assigned to the
DB_CREATE_FILE_DEST parameter. Answer A is incorrect; DB_FILE_DEST is not a valid parameter.

Answer C is incorrect; DB_CREATE_ONLINE_LOG_n is where Oracle will place the redo log files and
control files in OMF. Answer D is incorrect; the location is controlled by Oracle not the operating
system.
A27:
Answer D is correct; if you are willing to allow Oracle to perform instance recovery when the
database is reopened, you should use the SHUTDOWN ABORT command. Answer A is incorrect;
SHUTDOWN IMMEDIATE is the quickest of the remaining alternatives, but will still not shut it down
necessarily quickly. Answer B is incorrect; SHUTDOWN TRANSACTIONAL will allow currently running
transactions to complete. Answer C is incorrect; SHUTDOWN NORMAL will politely wait for all users
to log off and can take an extremely long time to complete.
A28:
Answer C is correct. By default, Oracle will try to multiplex redo log files and will need two locations
specified to manage the logs.
A29:
Answer B is correct; you need to change the name, minimally, of the control files so that you don't
overwrite existing files with ones for the new database. Answers A, C, and D are all incorrect
because all these parameters can be the same in all databases on your system.
A30:
Answer A is correct; you base future decisions, often, on templates. Answer B is incorrect; a clone is
a duplicate of an existing database. Answers C and D are incorrect; they are operating system
commands used to make copies of existing files.
A31:
Answer D is correct; LOGICAL_WRITES_PER_SESSION does not exist. LOGICAL_READS_PER_SESSION,
however, does exist.
A32:
Answer B is correct; the only alterable characteristic listed that the user can alter herself is her
password via the IDENTIFIED BY keyword.
A33:
Answer D is correct; you grant a role to a user. Answer A is incorrect; you don't need to alter the
user to attach a new role to a user. Answer B is incorrect; ALTER SYSTEM will do nothing for an
individual user. Answer C is incorrect; ALTER ROLE will change the role's characteristics but not to
whom it is attached.
A34:
Answers A, B, and C are all correct; answers, inserts, updates, and deletes all require undo
segments.
A35:
Answer B is correct; to switch log files, you have to use the ALTER SYSTEM command. Answer A is
incorrect; you don't use ALTER DATABASE to switch log files. Answer C is incorrect; log files are not
controlled at the session level. Answer D is incorrect because Answer B is correct.
A36:
Answer C is correct; the default role parameter is available in the ALTER USER statement but not in
the CREATE USER statement. Answer A is incorrect; to create a user, you have to provide an
authentication mechanism. Answer B is incorrect; you can give a user a temporary tablespace at
creation or alteration time. Answer D is incorrect; PROFILE is available at either juncture.
A37:
Answer D is correct; setting NLS_SORT in your session will allow you to override the sort order and
specify a language other than the national language set specified for the database. Answer A is
incorrect; NLS_DATE_FORMAT identifies a date format, not any character characteristics. Answer B
is incorrect; NLS_SORT_ORDER isn't a valid parameter. Answer C is incorrect; NLS_TERRITORY helps
to identify peculiarities of the geographical locations where the database may be running.
A38:
Answer D is correct; V$NLS_PARAMETER will tell you the information you need. Answers A and B are
not valid database views. Answer C is an initialization parameter, not a view.
A39:
Answer D is correct; you would set the column unused so that it disappears from the table, but
none of the data has actually been removed. You can reclaim the space later if necessary. Answer A
is incorrect; if you drop the column, it won't necessarily be quick. Answer B is incorrect; modifying it
won't get rid of it. Answer C is incorrect; renaming it won't get rid of it.
A40:
Answer A is correct, locally managed tablespaces are managed in the space header segment of the

tablespace. Answers B and D are incorrect and should be discarded immediately because of the
data dictionary references. Answer C is incorrect; Oracle does not store this information in flat file
format.
A41:
Answer A is correct. Because they are 4K blocks and each extent is 50K, each bit will represent 50/4
or 12.5 or, rounded, 13.
A42:
Answer A is correct. When you use STARTUP NOMOUNT, the instance is started; the database is not
mounted. Answer B is incorrect because nomount means that the database has not been mounted.
Answer C is incorrect because the database is neither mounted nor opened. Answer D is incorrect
because the instance is started, and the database is not mounted.
A43:
Answer A is correct. STARTUP NOMOUNT will allow you to create a new control file without worrying
about it attempting to access or open data files. Answer B is incorrect because the data files and
control files have to be accessible and open for the queries in a read-only database to be
processed. Answer C is incorrect because the control file has to be available to open the database.
Answer D is simply a restatement of answer C and is therefore incorrect for the same reasons.
A44:
Answers A and C are correct; you can start up or shut down an instance either using SQL*Plus or
through the Enterprise Manager interface. Answer B is incorrect; Server Manager is a desupported
tool that used to be used for this purpose, but is no longer available as of Oracle 9i. Answer D is
incorrect; the PL/SQL procedural language will not start up or shut down the database.
A45:
Answers A, D, and E are correct. Recall that for every DBA_ view, there is a corresponding ALL_ view
and a USER_ view to provide different views on the same information depending on the information
needed and the privileges granted. Answer B would provide information about tablespaces but not
tables. Answer C, V$TABLE, might be inferred to be a dynamic performance view; however, it isn't a
view in the database, and it would not provide information about tables but about their
performance.
A46:
Answer A is correct. V$SESSION, and all the V$ views, are dynamic performance views. Answer B,
DBA_PERFORMANCE, is not a table nor a view in the data dictionary. Answer C, DBA_DATA_FILES,
provides information on data files in the database but is not dynamic. Answer D, DBA_EXTENTS,
provides some information from which you can infer performance information, maybe, but is also
not a dynamic view.
A47:
Answer B is correct. SYS owns the data dictionary. Answer A is incorrect because Oracle is not a
privileged user of the database, only the server system that runs the instance. Answer C is
incorrect because, although the DBA manages the database and the instance, and by extension the
data dictionary, he or she does not own the data dictionary. Answer D is incorrect because the data
dictionary is housed within the SYSTEM tablespace but is not owned by the user SYSTEM.
A48:
Answer D is the only correct answer. Checkpoint doesn't actually write anything out to files; it
causes the DBWn process to write the data from the database buffer cache out to the database
files. Answer A is incorrect because LOG_CHECKPOINT_INTERVAL tells CKPT how often in terms of
volume to cause a checkpoint, but it does not ever write anything. Answer B is incorrect because
LOG_CHECKPOINT_TIMEOUT tells CKPT how often in terms of periods of time in seconds to cause a
checkpoint, but it does not ever write anything. Answer C is incorrect because a log switch causes
CKPT to occur, but it does not ever write anything.
A49:
Answer C is correct; the table exists and can be selected from, but no inserts can occur because
the quota is 0. Answer A is incorrect; the quota was reduced to 0; therefore, the insert failed.
Answer B is incorrect; the ALTER USER statement will not move a table. Answer D is incorrect; the
ALTER USER statement will not delete a table.
A50:
Answer A is correct. Each table, index, or other database object has its own segment. Answer B is
incorrect because a segment is made up of multiple extents. Answer C is incorrect because index
segments are created for indexes, and table segments are created for tables. Answer D is incorrect
because the only time a segment is deleted is when the object that the segment is created on is
dropped or truncated with either the REUSE STORAGE or DROP STORAGE parameters included.
A51:
Answer B is correct. The SGA, as part of the memory structure, is created when the instance is

started and remains allocated until the instance is shut down. Answer A is incorrect because the
SGA isn't part of the database. Answer C is incorrect because user processes have to interact with
an open instance, and the SGA, as a memory structure, opens when the instance opens. Answer D
is incorrect because, as a memory structure, the SGA has to be available before any server
processes can start.
A52:
Answer C is correct; you can drop the index right after month-end processing is complete so that
the inserts and updates won't have to update the indexes when they aren't being used and then
rebuild the index right before the period when the index is heavily used. Answer A is incorrect; the
index is heavily used for that one week of the month, and the index, at that point, is very
advantageous. Answer B is incorrect; moving the index won't have any effect on the use of the
index. Answer D is incorrect; rebuilding the index won't cause it to be used more or less, only to use
space more efficiently.
A53:
Answers D and E are correct. Columns in a where clause are good candidates for indexes because
they are limiting factors in queries, and there is a hard limit in Oracle that an index can only have
32 participating columns. Answer A is incorrect; indexes don't help insert, update, and delete
performance. Answer B is incorrect; any column can participate in a query but not every column
should have an index. Answer C is incorrect; there is no limit on the number of indexes on a table.
A54:
Answer C is correct; you will need to run the ALTER INDEX COALESCE command to avoid impacting
users who are running queries that will need to access the index while the reorganization is in
process. Answer A is incorrect; dropping the index and re-creating it would have detrimental effects
on the users on the system. Answer B is incorrect; ALTER INDEX REBUILD would eliminate the gaps
in the leaf blocks, but Oracle locks the base table whose index is about to be rebuilt, and no
changes to the data in the base table can occur. Answer D is incorrect; it would have a detrimental
effect on users and would not eliminate the holes in the leaf blocks.
A55:
Answer A is correct; DBA_ROLES is used for determining the available roles in the database, and
the DBA_SYS_PRIVS view is used to determine which of them have system privileges. Answer B is
incorrect; DBA_SYSTEM_PRIVS is not a view in the database. Answer C is incorrect; SESSION_ROLES
tells you only the roles assigned to the currently logged-in user. Answer D is incorrect;
DBA_TAB_PRIVS tells you the object privileges assigned to roles, not system privileges.
A56:
Answer A is correct; DBA is the role that gives a DBA all the privileges needed to maintain the
database. Answer B is incorrect; SYSTEM is a username to which DBA has been granted. Answer C
is incorrect; SYSOPER does not have all the needed privileges to maintain the database. Answer D
is incorrect; RESOURCE has many privileges but not enough to maintain the database.
A57:
Answer A is correct; because the role was granted to Lynn before she logged in, as soon as she logs
in she will be able to access those privileges. Answer B is incorrect; there is no need to log out for
her to use the role's privilegesit was enabled when she logged in. Answer C is incorrect; unless
otherwise specified, all roles are hers by default. Answer D is incorrect; the point of roles is so that
you don't have to directly grant privileges to every user.
A58:
Answer C is correct; REFERENCES is the privilege that allows you to create foreign keys on another
user's tables. Answer A is incorrect. There is no CREATE INDEX privilege; it is inferred by the
CREATE TABLE privilege but only in the owned schema. Answer B is incorrect; CREATE ANY INDEX
won't allow a user to create a foreign key relationship. Answer D is incorrect; there is no CREATE
ANY KEY privilege.
A59:
Answer A is correct; AUDIT_TRAIL=DB or AUDIT_TRAIL=OS allows auditing to be enabled in the
database. Answer B is incorrect; BEGIN_AUDIT is not a valid initialization parameter. Answer C is
incorrect; AUDIT_TRAIL=NONE turns off auditing in your database. Answer D is incorrect; AUDITING
is not an initialization parameter.
A60:
Answer A is correct; PASSWORD_LIFE_TIME allows you to set the maximum number of days that can
pass before the password is reused. Answer B is incorrect; it is not a valid parameter for password
maintenance. Answer C is incorrect; PASSWORD_REUSE_TIME sets the amount of days that must
pass before a password can be reused again. Answer D is incorrect; PASSWORD_GRACE_TIME is the
period in which you have to change your password after it has expired.

You might also like