0% found this document useful (0 votes)
46 views

Oracle Architectural Components

The document discusses various Oracle architectural components and database administration concepts. It provides multiple choice questions about topics such as the database buffer cache, background processes, redo log files, control files, initialization parameters, instance startup modes, data dictionary views, tablespaces, datafiles, rollback segments and more. The questions test knowledge of how Oracle databases work at a fundamental level and how they are managed and maintained through various commands and tools.

Uploaded by

Bodea Florin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Oracle Architectural Components

The document discusses various Oracle architectural components and database administration concepts. It provides multiple choice questions about topics such as the database buffer cache, background processes, redo log files, control files, initialization parameters, instance startup modes, data dictionary views, tablespaces, datafiles, rollback segments and more. The questions test knowledge of how Oracle databases work at a fundamental level and how they are managed and maintained through various commands and tools.

Uploaded by

Bodea Florin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 23

Oracle Architectural Components

1) Which buffers are on the dirty list in the database buffer cache?
a) empty buffers
b) available for use
c) currently being accessed
d) waiting to be written to disk
2) If a user abnormally terminates a database connection, which background process will release the
locks held by the user?
a) SMON
b) PMON
c) DBWR
d) LGWR
e) CKPT
3) When a COMMIT is issued, which step occurs last?
a) LGWR writes the redo log buffer to disk.
b) The user is informed that the COMMIT is complete.
c) The server process places a commit record in the redo log buffer.T
d) The server process records that the resource locks on the data can be released.
4) What will happen if an Oracle Server process attempts to move a buffer to the dirty list and it is full?
a) An error occurs.
b) It creates a new dirty list.
c) It signals DBWR to write to disk.
d) It signals LGWR to remove the contents of the dirty list.
5) Which file(s) stores all changes made to the database for recovery purposes?
a) Datafiles
b) control file
c) redo log files
6) parameter file
Using Administration Tools
7) Which two Server Manager line mode commands could you use to display the current size of the
redo log buffer? (Choose two.)
a) SET
b) REMARK
c) SHOW SGA
d) DESCRIBE
e) ARCHIVE LOG
f) SHOW PARAMETER
8) You created a SQL script that retrieves data from the STUDENT table. Which Server Manager line
mode command would you use to create the output text file for the SQL script?
a) SET
b) SHOW
c) SPOOL
d) EXECUTE
e) DESCRIBE
9) Which Server Manager line mode command does not require a database connection?
a) EXIT
b) DESCRIBE
c) ARCHIVE LOG
d) SHOW PARAMETER
Managing an Oracle Instance
10) What happens when you kill a user's session?
a) The user receives a message.
b) The user's resources remain locked.
c) The user must disconnect from their current session.
d) The user is able to issue database calls for their current session.
11) Why would you set the REMOTE_LOGIN_PASSWORDFILE initialization parameter to NONE?
a) to use operating system authentication
b) to use a password file for remote login
c) to enforce the Oracle Server to verify a user's object privileges
d) to enforce the Oracle Server to verify a user's system privileges
12) You start an instance in NOMOUNT state. Which three dynamic performance views can you query?
(Choose three.)
a) V$SESSION
b) V$LOGFILE
c) V$DATABASE
d) V$DATAFILE
e) V$INSTANCE
f) V$PARAMETER
13) Which user is automatically granted the DBA role AND owns the data dictionary base tables and
view
a) SYS
b) SYSTEM
c) SYSDBA
d) SYSOPER
14) Which SHUTDOWN mode will cause all uncommitted transactions to be rolled back before the
database is closed?
a) ABORT
b) NORMAL
c) IMMEDIATE
d) TRANSACTIONAL
Creating a Database
15) What is the minimum recommended control file configuration?
a) one control file
b) two control files placed on the same disk
c) two control files placed on separate disks
d) three control files placed on the same disk
e) three control files placed on separate disks

Evaluate this command:


CREATE DATABASE prod
CONTROLFILE REUSE
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXLOGHISTORY 100
LOGFILE
GROUP 1 '/disk3/log1a.rdo, /disk4/log1b.rdo' SIZE 10M,
GROUP 2 '/disk3/log2a.rdo, /disk4/log2b.rdo' REUSE
DATAFILE
'/disk2/system01.dbf' SIZE 50M;

16) Which requirement must be met for this command to execute?


a) The datafile must exist.
b) All the log files must exist.
c) Disk 2 must have 100M of available disk space.
d) The control files specified in the parameter file must exist.
e) User must have the SYSOPER privileges to create the log files and datafiles.
17) What would happen if the database name in the parameter file does not match the control file?
a) A. An instance would not start.
b) B. An instance would start, but the database would not be mounted.
c) C. The database would open using default initialization parameters.
18) The database that you need to start up uses a parameter file that is not stored in the Oracle Home
directory. How can you start up an instance for the database?
a) The parameter file must be moved to the Oracle Home directory.
b) An instance can be started using the PFILE clause with the STARTUP command.
c) The database will use the parameter file location specified in the control file.
d) A parameter file will be automatically created in the default directory when the STARTUP
command is issued.
Data Dictionary Views and Standard Packages
19) Which category of data dictionary views do not have an OWNER column?
a) DBA_
b) ALL_
c) USER_
20) You need to be able to perform tablespace-point-in-time recovery. Which script creates the view
used by the DBA when performing this type of recovery?
a) sql.bsq
b) catalog.sql
c) catproc.sql
d) dbmsutil.sql
21) Which table contains the names of all the data dictionary views?
a) DB_NAME
b) DBA_VIEWS
c) DICTIONARY
d) DBA_DATA_FILES
Maintaining the Control file
22) When starting an instance, during which state is the control file read?
a) NOMOUNT
b) MOUNT
c) OPEN
23) Which file(s) records checkpoint information used during database recovery?
a) datafiles
b) alert logs
c) trace files
d) control file
e) parameter file
24) Which two dynamic performance views could you query to display the names and locations of the
control files? (Choose two.)
a) V$OPTION
b) V$SESSION
c) V$INSTANCE
d) V$PARAMETER
e) V$CONTROLFILE
Maintaining Redo Log Files
25) What should you do if LGWR frequently has to wait for a redo log group because a checkpoint has
not completed?
a) Add a new redo log group.
b) Add new redo log members.
c) Reduce the number of log members.
d) Clear the current redo log group.
e) Place the database in NOARCHIVELOG mode.
26) You are using Server Manager. Which command would you use to determine if your database is
automatically archiving the redo logs?
a) ARCHIVE LOG ALL
b) ARCHIVE LOG LIST
c) ARCHIVE LOG NEXT
d) ARCHIVE LOG SHOW ALL
27) How would you drop a redo log member from an active group when archiving is enabled?
a) Issue the ALTER DATABASE DROP LOGFILE command.
b) Issue the ALTER DATABASE DROP LOGFILE MEMBER command before the next log
switch.
c) Issue the ALTER SYSTEM DROP LOGFILE MEMBER command before the group is archived.
d) lssue the ALTER SYSTEM SWITCH LOGFILE command then the ALTER DATABASE
DROP LOGFILE MEMBER command.
28) You are tuning the PROD database and need to determine the sequence number of the current redo
log group. Which view would you query to display the number of online redo log groups?
a) V$THREAD
b) V$LOGFILE
c) V$DATABASE
d) V$INSTANCE
Managing Tablespaces and Datafiles
29) When moving datafiles, when would you use the ALTER DATABASE command rather than
ALTER TABLESPACE command?
a) when the tablespace is offline
b) when the tablespace is the SYSTEM tablespace
c) when the tablespace does not contain active rollback segments
d) when the tablespace does not contain active temporary segments
30) Which two are physical structures and part of an Oracle database? (Choose two.)
a) Extent
b) Segment
c) datafile
d) O/S block
e) Tablespace
f) Oracle data block
31) Which tablespace cannot be taken offline?
a) TEMP
b) DATA
c) INDEX
d) SYSTEM
32) DB_BLOCK_SIZE for the PROD database is 2K. You created the USER_DATA01 tablespace
without specifying a value for the NEXT parameter. What will be the size of the second extent
located to the USER_DATA01 tablespace?
a) 1K
b) 2K
c) 5K10K
d) The size of the INITIAL extent.
33) Which two commands could you use to immediately allocate more space to an existing tablespace?
(Choose two.)
a) ALTER TABLESPACE ADD DATAFILE
b) ALTER DATABASE DATAFILE RESIZE
c) CREATE TABLESPACE DATAFILE SIZE
d) ALTER TABLESPACE MINIMUM EXTENT
e) ALTER TABLESPACE DEFAULT STORAGE
Storage Structure and Relationships
34) Which type of segment is used by a transaction to store the old value before a data block is changed?
a) data
b) index
c) rollback
d) temporary
35) Which parameter specifies the percentage of space in each data block reserved for updates to a table
a) PCTFREE
b) PCTUSED
c) INITRANS
d) MAXTRANS
36) The PROD database has six tablespaces. All the tablespaces are permanent. RBS contains rollback
segments. DATA contains table data. INDEX contains all the index structures. TOOLS
contains all the objects needed for development. TEMP contains temporary objects. Which two
tablespaces have the highest propensity for fragmentation? (Choose two.)
a) RBS
b) INDEX
c) SYSTEM
d) DATA
e) TEMP
f) TOOLS
37) Which type of segment is the most common segment used to store data in a database?
a) table
b) index
c) cache
d) rollback
e) temporary
38) Why are data dictionary objects less likely to cause file fragmentation?
a) Their space is released frequently.
b) These objects are often reorganized.
c) Most are rarely dropped or truncated.
d) Their extents are deallocated automatically.
Managing Rollback Segments
39) Evaluate this command:
40) ALTER ROLLBACK SEGMENT rbs01 OFFLINE;
41) What will happen if RBS01 has pending transactions when the command is issued?
a) An error is returned.
b) Pending transactions are rolled back.
c) The segment is immediately taken offline.
d) The segment is taken offline when all transactions are complete.
42) When creating a rollback segment, what is the minimum value for MINEXTENTS?
a) 0
b) 1
c) 2
d) 3
e) 4
f) 5
43) The RBS01 rollback segment cannot allocate additional extents because the MAXEXTENTS value
has been reached. What are two ways to solve this problem? (Choose two.)
a) Increase OPTIMAL for RBS01.
b) Increase MINEXTENTS for RBS01.
c) Increase MAXEXTENTS for RBS01.
d) Decrease MAXEXTENTS for RBS01.
e) Drop and recreate RBS01 with a larger extent size.
f) Decrease MAXEXTENTS for another rollback segment in the same tablespace.
44) You need to confirm that the RBS01 rollback segment is online. Which data dictionary view would
you query to determine the status of a rollback segment?
a) DBA_TABLES
b) DBA_OBJECTS
c) DBA_SEGMENTS
d) DBA_DATA_FILES
e) DBA_ROLLBACK_SEGS
Managing Temporary Segments
45) Why does the Oracle Server create temporary segments?
a) Sorting needs cannot be performed in memory.
b) A sort area was not allocated at instance start up.
c) The SORT_AREA_SIZE initialization parameter was not set.
d) A user requests additional sorting space to speed up a transaction.
46) Why would you query V$SORT_USAGE?
a) to display the active sorts
b) to determine the status of the sort extent pool
c) to determine the types of temporary segments in a TEMPORARY tablespace
d) to determine the number of extents deallocated to a TEMPORARY tablespace
47) When are the extents that are allocated to a sort segment automatically released in a TEMPORARY
tablespace?
a) when an instance is started
b) when the instance is shutdown
c) when SMON frees the unused extents
d) when the sorting operation terminates
Managing Tables
48) Row migration statistics have been generated for a table. Which data dictionary view will display
the chained count value?
a) DBA_TABLES
b) DBA_OBJECTS
c) DBA_EXTENTS
d) DBA_SEGMENTS
49) Which datatype would you use to store last name values as a fixed-length strings?
a) CHAR
b) LONG
c) TABLE
d) VARRAY
e) VARCHAR2
50) Evaluate this command:
51) ANALYZE TABLE temperature VALIDATE STRUCTURE CASCADE;
52) Which statement about the CASCADE option is true?
a) recreates any indexes with errors
b) verifies any tables referenced by REF pointers in the table
c) will only verify the existence of indexes associated to the table
d) validates the integrity of the table and the structure of indexes associated with the table
53) What is the effect on I/O performance when retrieving a chained or migrated row?
a) increased because the blocks are contiguous
b) decreased because only one block has to be scanned
c) increased because only one block has to be scanned
d) decreased because more than one block has to be scanned
e) unaffected
54) You suspect chaining in the FLIGHT table that has 8000 rows. Which option could you use with the
ANALYZE TABLE command to generate the most accurate count of chained rows?
a) VALIDATE STRUCTURE
b) COMPUTE STATISTICS
c) ESTIMATE STATISTICS
d) ESTIMATE STATISTICS SAMPLE 5000 ROWS
e) ESTIMATE STATISTICS SAMPLE 50 PERCENT
Managing Indexes
55) Which view would you query to display the name of the columns included in the EMP_IDX index?
a) DBA_TABLES
b) DBA_OBJECTS
c) DBA_INDEXES
d) DBA_SEGMENTS
e) DBA_IND_COLUMNS
56) Which data dictionary view would you query to determine if an index is VALID?
a) DBA_TABLES
b) DBA_INDEXES
c) DBA_SEGMENTS
d) DBA_IND_COLUMNS
57) How does a partitioned index differ from a nonpartitioned index?
a) Partitioned indexes are not scalable.
b) Partitioned indexes are used primarily for small tables.
c) Partitioned indexes experience increased contention during index lookup.
d) Partitioned indexes allow an index to be spread across multiple tablespaces..
e) Partitioned indexes allow an index partition to be created for only one table partition.
58) You are creating a B-tree index for a large table. Which CREATE INDEX clause will ensure that
redo generation will not affect performance when the index is created?
a) NOSORT
b) UNIQUE
c) STORAGE
d) LOGGING
e) MAXTRANS
f) NOLOGGING
Maintaining Data Integrity
59) Which method of enforcing business rules in a database is the most flexible and the most preferred?
a) application code
b) database triggers
c) integrity constraints
60) Which command would you use to drop a constraint?
a) ALTER TABLE
b) REMOVE CONSTRAINT
c) UPDATE CONSTRAINT
d) DELETE CONSTRAINT
61) Which data dictionary view would you query to display the constraint definitions on all the tables?
a) DBA_COL_PRIVS
b) DBA_CONSTRAINTS
c) DBA_IND_COLUMNS
d) USER_CONSTRAINTS
Using Clusters and Index-Organized Tables
62) Which view would you query to determine the names of the tables and the names of the columns
included in a cluster?
a) DBA_CLUSTERS
b) DBA_CLU_COLUMNS
c) DBA_TAB_COLUMNS
d) DBA_CLUSTER_HASH_EXPRESSION
Loading and Reorganizing Data
63) You have exported a file for subsequent import into another tablespace. In which sequence is the
Import file loaded?
a) table data; integrity constraints, triggers, and bitmap indexes; indexes on the table; and table
definitions
b) table definitions; table data; indexes on the table; and integrity constraints, triggers, and bitmap
Indexes
c) indexes on the table; integrity constraints, triggers, and bitmap indexes; table definitions; and
table data
d) table definitions; table data; integrity constraints, triggers, and bitmap indexes; and indexes on
the table
e) table definitions; integrity constraints, triggers, and bitmap indexes; indexes on the table; and
table Data
64) Which Export parameter ensures that when the data is imported, the initial extent will be equal to
the current size of the table?
a) FULL
b) DIRECT
c) GRANTS
d) COMPRESS
e) CONSTRAINTS
65) Which SQL*Loader parameter specifies the name of the file that stores all the rejected records?
a) LOG
b) BAD
c) LOAD
d) ERRORS
e) CONTROL
Managing Users
66) With which clause in a CREATE USER command would you allow a user to use 20M in the
USER01 tablespace?
a) QUOTA
b) PROFILE
c) DEFAULT TABLESPACE
d) TEMPORARY TABLESPACE
67) Evaluate this command:
68) CREATE USER bill IDENTIFIED BY billw
69) TEMPORARY TABLESPACE temp01
70) QUOTA 15M ON data01;
71) Which would be user BILL's default tablespace?
a) TEMP
b) USERS
c) SYSTEM
d) DATA01
72) What does the EXTERNALLY option do when creating a user with the CREATE USER command?
a) allows the user remote access
b) allow the user network access
c) allows the user database access without a password
d) specifies that the user must be authenticated by the operating system

73) Evaluate this command:


74) ALTER USER bill IDENTIFIED BY billw;
75) What is the significance of the IDENTIFIED BY clause?
a) specifies an alias for user BILL
b) specifies a new password for user BILL
c) specifies a new user name for user BILL
d) specifies the current tablespace for user BILL
76) Which user cannot be dropped?
a) a user who is connected
b) a user with no schema objects
c) a user whose tables are read-only
d) All users can be dropped at anytime.
Managing Profiles
77) Which data dictionary view would you query to display the resource limits assigned to the
DEVELOPER profile?
a) DBA_USERS
b) DBA_TABLES
c) DBA_OBJECTS
d) DBA_PROFILES
e) DBA_TABLESPACE
78) Which view would you query to display information about password expiration, locking dates, and
account status for user CHAN?
a) DBA_USERS
b) DBA_TABLES
c) DBA_OBJECTS
d) DBA_PROFILES
e) DBA_TABLESPACE
79) Which initialization parameter would you alter to disable the enforcement of resource limits?
a) PROCESSES
b) SESSION_LIMIT
c) RESOURCE_LIMIT
d) TIMED_STATISTICS
80) What happens if you do not assign a user profile?
a) The user cannot be created.
b) The user is not assigned a profile.
c) The user will not be able to connect.
d) The user is assigned the DEFAULT profile.
81) Which privilege is needed to assign a profile to an existing user?
a) ALTER USER
b) CREATE USER
c) ALTER PROFILE
d) CREATE PROFILE
Managing Privileges
82) Which privilege is required to TRUNCATE a table owned by another user?
a) DELETE
b) ALTER TABLE
c) DROP ANY TABLE
d) DELETE ANY TABLE
83) Which role is permitted CREATE DATABASE and time-based recovery?
a) A. OSOPER
b) B. SYSDBA
c) C. SYSOPER
Managing Roles
Evaluate this command:
ALTER USER jennifer
DEFAULT ROLE ALL;
84) Which task would this accomplish?
a) Assign user JENNIFER the ALL role.
b) Set all roles as default for user JENNIFER.
c) Remove all default roles from user JENNIFER.
d) No task would be accomplished because this command will not execute.
85) Which predefined role has all the system privileges?
a) DBA
b) CONNECT
c) RESOURCE
d) lMP_FULL_DATABASE
e) DELETE_CATALOG_ROLE
86) Why would you query SESSION_ROLES?
a) to display all roles in the database
b) to determine the roles granted to a user
c) to display the roles currently enabled for a user
d) to display information about system privileges granted to roles
Auditing
87) Where is information about database auditing events stored?
a) redo logs
b) audit trail
c) control file
d) archived logs
Using National Language Support
88) Which initialization parameter changes the language for date name abbreviations?
a) NLS_LANGUAGE
b) NLS_TERRITORY
c) NLS_DATE_FORMAT
d) NLS_NUMERIC_CHARACTERS

You might also like