Oracle 9i Administration MCQs

Oracle 9i Administration MCQs

The following Oracle 9i Administration MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of Oracle 9i Administration. We encourage you to answer these 50 multiple-choice questions to assess your proficiency.
Please continue by scrolling down.

1: Extents are logical collection of contiguous _________________.



A.   Segments

B.   Database blocks

C.   Table spaces

D.   operating system blocks

2: You check the alert log for your database and discover that there are many lines that say "Checkpoint Not Complete." Which of the following options help solve this problem?


A.   Delete archived log files

B.   Add more online redo log groups

C.   Increase the size of archived log files

D.   increase the size of online redo log files<br>

3: With the help of the Database Configuration Assistant, you can create a template using an existing database structure. Which of the following will be included in this template?


A.   Data files

B.   Tablespaces

C.   User defined schemas

D.   User defined schema data

E.   Initialization parameters<br>

4: Which of the following methods enforce resource limits?


A.   ALTER SYSTEM SET RESOURCE_LIMIT= TRUE

B.   Set the RESOURCE_LIMIT parameter to TRUE

C.   CREATE PROFILE sessions LIMIT<br>   SESSIONS_PER_USER 2<br>   CPU_PER_SESSION 10000<br>   IDLE_TIME 60<br>   CONNECT_TIME 480;

D.   ALTER PROFILE sessions LIMIT<br>  SESSIONS_PER_USER 2<br>  CPU_PER_SESSION 10000<br>  IDLE_TIME 60<br>  CONNECT_TIME 480

5: Which of the following helps a DBA examine the performance of the database?


A.   Recovery Manager

B.   Oracle Enterprise Manager

C.   Oracle Universal Installer

D.   Oracle Database Configuration Assistant

6: You issue the following command:

STARTUP MOUNT

Which of the following events occur when the instance is started and database is mounted?


A.   The SGA is allocated

B.   The background process is started

C.   The existence of the datafile is verified

D.   The existence of the online redo log file is verified

7: Examine the following TRUNCATE TABLE command:

TRUNCATE TABLE departments;    

Which of the following statements are correct with regard to this command?


A.   All extents are released

B.   All rows of the table are deleted

C.   Any associated indexes are truncated

D.   No undo data is generated for the table's rows

8: Which of the following memory areas is not part of SGA?


A.   Database Buffer Cache

B.   Redo log Buffer

C.   PGA

D.   Shared Pool

9: Which of the following becomes available when an Oracle instance is started?


A.   User Process

B.   Server Process

C.   Datafile

D.   Background Processes 

10: You have two undo tablespaces defined for your database. The instance is currently using the undo tablespace named UNDO_TBS1. You issue the following command to switch to UNDO_TBS2, while there are still transactions using UNDO_TBS1:

ALTER SYSTEM SET UNDO_TABLESPACE = undo_tbs2

What will be the result?


A.   New transactions are assigned to UNDO_TBS2

B.   Current transactions are switched to the UNDO_TBS2 tablespace

C.   The switch to UNDO_TBS2 fails, and an error message is returned

D.   The UNDO_TBS1 undo tablespace enters into a PENDING OFFLINE mode (status)

11: Which of the following types of files is a part of the Oracle database?


A.   Control file

B.   Password file

C.   Parameter files

D.   Archived log files

12: You need to create an index on the ITEM table, which is 10 GB in size. You want your index to be spread across many tablespaces, decrease contention for index lookup, and increase scalability and manageability. Which of the following types of indexes would be the best for this table?


A.   Bitmap

B.   Unique

C.   Partitioned

D.   Reverse key

E.   Single column

13: Which of the following tables help build scalable applications and also proves to be useful for large tables that can be queried or manipulated using several processes concurrently?


A.   Regular table

B.   Clustered table

C.   Partitioned table

D.   Index-organized table

14: Examine the following SQL statement:

CREATE TABLESPACE user_data
DATAFILE '/u01/oradata/userdata_0l.dbf' SIZE 100M
LOCALLY MANAGED UNIFORM SIZE 1M
AUTOMATIC SEGMENT SPACE MANAGEMENT;

Which part of the tablespace will have a uniform size of 1 MB?


A.   Extent

B.   Segment

C.   Oracle block

D.   Operating system block

15: Which of the following helps determine the initial size of a Tablespace?


A.   The INITIAL clause of the CREATE TABLESPACE statement

B.   The MINEXTENTS clause of the CREATE TABLESPACE statement

C.   The MINIMUM EXTENT clause of the CREATE TABLESPACE statement

D.   The sum of the sizes of all data files specified in the CREATE TABLESPACE statement

16: When is SGA created in an Oracle database environment?


A.   When the database is created

B.   When the instance is started

C.   When the database is mounted

D.   When a user process is started<br>

17: Your database is in ARCHIVELOG mode. Which of the following must be true before the Log Writer (LGWR) can reuse a filled online redo log file?


A.   The redo log file must be archived

B.   All the data files must be backed up

C.   All transactions with entries in the redo log file must complete

D.   The changes recorded in the redo log file must be written to the data files

18: Examine the following syntax:

CREATE INDEX emp_last_name_idx ON emp(last_name) PCTFREE 30
STORAGE(INITIAL 200K NEXT 200K
PCTINCREASE 0 MAXEXTENTS 50) TABLESPACE indx;
What type of Index does this syntax create?


A.   Bitmap

B.   B-Tree

C.   Partitioned

D.   Reverse key

19: Which of the following constitute the logical components of the Oracle database?


A.   Tablespaces, segments, extents, and data files

B.   Tablespaces, segments, extents, and Oracle blocks

C.   Tablespaces, database, segments, extents, and data files

D.   Tablespaces, database, segments, extents, and Oracle blocks

20: While preparing to create a database, you must ensure that there is sufficient disk space for the database files. When you calculate the space requirements, you may need to multiplex some of the files. Which of the following types of files would you plan to multiplex?


A.   Data files

B.   Control file

C.   Password file

D.   Online redo log files

21: Which of the following storage structures provides a way to manually store the rows (from more than one table) in the same data block?


A.   Cluster table

B.   Partitioned table

C.   Index-organized table

D.   None of the above<br>

22: Which of the following constraint states prevents new data (that violates the constraint) from entering into the table, but allows invalid data to exist in the table?


A.   ENABLE VALIDATE

B.   DISABLE VALIDATE

C.   ENABLE NOVALIDATE

D.   DISABLE NOVALIDATE

23: The current password file allows five entries. New DBAs have been hired and five more entries need to be added to the file. How can you increase the allowed number of entries in the password file?


A.   Manually edit the password file and add the new entries

B.   Add the new entries; the password file will automatically grow

C.   Drop the current password file, recreate it with the appropriate number of entries, and add everyone again

D.   All of the above

24: Which of the following constitute the advantages that the server parameter file (SPFILE) provides while managing initialization parameters?


A.   The Oracle server maintains the server parameter file

B.   The server parameter file is created automatically when the instance is started

C.   Changes can be made in memory and/or in the SPFILE with the ALTER SYSTEM command

D.   The use of SPFILE provides the ability to make changes persistent across shut down and start up

E.   The Oracle server keeps the server parameter file and the text initialization parameter file synchronized

25: Where is free space managed for a tablespace created with automatic segment-space management?


A.   In the extent

B.   In the control file

C.   In the data dictionary

D.   In the undo tablespace

26: Which of the following memory areas is used to cache the Data Dictionary Information?


A.   Database Buffer Cache

B.   PGA

C.   Redo Log Buffer

D.   Shared Pool

27: A DBA has issued the following SQL statement:

SELECT max_blocks
FROM dba_ts_quotas
WHERE tablespace_name='USER_TBS'
AND username='MARRY';

User Marry has unlimited quota on the USER_TBS tablespace. Which of the following values will the query return?


A.   0

B.   1

C.   -1

D.   NULL<br>

28: You need to drop two columns from a table. Which of the following sequence of SQL statements is used to drop the columns and limit the number of times the rows are updated?


A.   ALTER TABLE emp DROP COLUMN comments DROP COLUMN email;

B.   ALTER TABLE emp DROP COLUMN comments; <br>ALTER TABLE emp DROP COLUMN email;

C.   ALTER TABLE emp SET UNUSED COLUMN comments; <br>ALTER TABLE emp DROP UNUSED COLUMNS;<br>ALTER TABLE emp SET UNUSED COLUMN email; <br>ALTER TABLE emp DROP UNUSED COLUMNS;

D.   ALTER TABLE emp SET UNUSED COLUMN comments; <br>ALTER TABLE emp SET UNUSED COLUMN email;<br>ALTER TABLE emp DROP UNUSED COLUMNS;<br>

29: Which of the following methods is correct for starting an instance to create a database?


A.   STARTUP

B.   STARTUP OPEN

C.   STARTUP MOUNT

D.   STARTUP NOMOUNT

30: The information for a dynamic performance view is gathered from the control file.  


A.   True

B.   False 

31:

You have a database with DB_NAME set to STUD and ORACLE_SID set to STUD.

These files are in default location for the initialization files:

-init.ora

-initSTUD.ora

-spfile.ora

-spfileSTUD.ora

The database is started with the command:

SQL> startup

Which of the following options contain the correct names and sequence of the initialization files that Oracle Server attempts to read?

A.   Init.ora, initSTUD.ora, spfileSTUD.ora

B.   Spfile.ora, spfileSTUD.ora, initSTUD.ora

C.   SpfileSTUD.ora, spfile.ora, initSTUD.ora

D.   InitSTUD.ora, spfileSTUD.ora, spfile.ora

32:

When is SGA created in an Oracle database environment?

A.   When the database is created

B.   When the instance is started

C.   When the database is mounted

D.   When a user process is started

33:

A Company shifts all its branches to one office building, so the very large EMPLOYEES table no longer requires the BUILDING_LOCATION column. The DBA decides to drop that column using the syntax given below:

ALTER TABLE hr.employees

DROP COLUMN building_location

CASCADE CONSTRAINTS;

Dropping this column has turned out to be time consuming and at the same time it requires a large amount of undo space.

What should a DBA do to minimize the problem regarding time and undo space consumption?

A.   Mark the column as UNUSED. Remove the column at a later stage when less activity is on the system

B.   Drop all indexes and constraints associated with the column prior to dropping the column

C.   Mark the column INVALID prior to beginning the drop to bypass undo. Remove the column using DROP UNUSED COLUMNS command

D.   Add a checkpoint to the DROP UNUSED COLUMNS command to minimize undo space.

34:

The constraints for which Indexes are created by default are:

A.   Check

B.   Unique

C.   Not null

D.   Primary key

35:

You started your database with the following command:

STARTUP PFILE=initSAMPLE.ora

One of the values in the initSAMPLE.ora parameter file is:

LOG_ARCHIVE_START=false

While your database is open, you issue the following command to start the Archiver process:

ALTER SYSTEM ARCHIVE LOG START;

You shut down your database to take the back up and restart it, using the initSAMPLE.ora parameter file again. On checking the status of the Archiver, you find that it is disabled.

Why is the Archiver disabled?

A.   When you take a backup the Archiver process is disabled

B.   The Archiver can only be started by issuing the ALTER DATABASE ARCHIVELOG command

C.   LOG_ARCHIVE_START is still set to FALSE because the PFILE is not updated when you issue the ALTER SYSTEM command

D.   The Archiver can only be started by issuing the ALTER SYSTEM ARCHIVE LOG START command each time you open the database

36:

Miller is an Administrator who has FULL DBA privileges. When he attempts to drop the DEFAULT profile (as illustrated below), he receives an error message (shown below):

SQL> drop profile SYS.DEFAULT;

drop profile SYS.DEFAULT

*

ERROR at line 1:

ORA-00950: invalid DROP option

Which of the following options best explains this error?

A.   The DEFAULT profile cannot be dropped

B.   MILLER requires the DROP PROFILE privilege

C.   Profiles created by SYS cannot be dropped

D.   None of the above

37:

You are creating a new database. You do NOT want users to use the SYSTEM tablespace for sorting operations.

 

What should you do while issuing the CREATE DATABASE statement?

A.   Create an undo tablespace

B.   Create a default temporary tablespace

C.   Create a tablespace with UNDO as a keyword

D.   None of the above

38:

You just issued the STARTUP command. Which of the following files is checked to determine the state of the database?

A.   The control file

B.   The first member of redo log file group 1

C.   The data file belonging to the SYSTEM tablespace

D.   The most recently created archived redo log file

39:

What provides for recovery of data that has not been written to the data files prior to a failure?

A.   Redo log

B.   Undo segment

C.   Rollback segment

D.   System tablespace

40:

When does the Log Writer (LGWR) process write the redo entries from the redo log buffer to the current online redo log group?

A.   When a transaction commits

B.   When a rollback is executed

C.   When the redo log buffer is about to be completely full (90%)

D.   Before the DBWn writes modified blocks in the database buffer cache

41:

Which of the following statements should you use to obtain information about the names, status of the control files?

A.   SELECT name, status FROM v$parameter;

B.   SELECT name, status FROM v$controlfile;

C.   SELECT name, status FROM v$control_files;

D.   SELECT name, status FROM v$parameter WHERE parameter=control_files;

42:

Which of the following statements is correct with regard to an Oracle instance?

A.   The redo log buffer is NOT a part of the shared memory area of an Oracle instance

B.   Multiple instances can execute on the same computer, each accessing its own physical database

C.   An Oracle instance is a combination of memory structures, background processes, and user processes

D.   In a shared server environment, the memory structure component of an instance consists of a single SGA and a single PGA

43:

Which of the following options enables you to increase the size of online redo log groups?

A.   Use the ALTER DATABASE RESIZE LOGFILE GROUP command for each group to be resized

B.   Use the ALTER DATABASE RESIZE LOGFILE MEMBER command for each member within the group being resized

C.   Add new redo log groups using the ALTER DATABASE ADD LOGFILE GROUP command with the new size. Drop the old redo log files using the ALTER DATABASE DROP LOGFILE GROUP command

D.   Use the ALTER DATBASE RESIZE LOGFILE GROUP command for each group to be resized. Use the ALTER DATABASE RESIZE LOGFILE MEMBER command for each member within the group

44:

Consider the under mentioned syntax, which creates a DEPARTMENT table:

CREATE TABLE department

(DeptnoNUMBER(4),

DnameVARCNAR2(30),

mgr NUMBER(6),

LocNUMBER(4))

STORAGE(INITIAL 200K NEXT 200K

PCTINCREASE 50 MINEXTENTS 1 MAXEXTENTS 5)

TABLESPACE userdata;

What is the size defined for the fifth extent?

A.   200 K

B.   300 K

C.   450 K

D.   675 K

45:

Which of the following background processes performs a checkpoint in the database by writing modified blocks from the database buffer cache in SGA to the data files?

A.   LGWR

B.   SMON

C.   DBWN

D.   CKPT

E.   PMON

46:

A new user, Smith, has just joined the organization. You need to create a User Account for him in the database. The points given below are to be kept in mind:

1. Create a user who is authenticated externally.

2. Make sure that the user has CONNECT and RESOURCE privileges.

3. Make sure the user does NOT have DROP TABLE and CREATE USER privileges.

4. Set a quota of 100 MB on the default tablespace and 500 K on the temporary tablespace.

5. Assign the user to the DATA_TS default tablespace

Which of the following statements would you use to create the User Account for Smith?

A.   CREATE USER smith IDENTIFIED EXTERNALLY DEFAULT TABLESPACE data_ts QUOTA 100M ON data_ts QUOTA 500K ON temp_ts TEMPORARY TABLESPACE temp_ts; REVOKE DROP_TABLE, CREATE_USER from smith;

B.   CREATE USER smith IDENTIFIED EXTERNALLY DEFAULT TABLESPACE data_ts QUOTA 500K ON temp_ts QUOTA 100M ON data_ts TEMPORARY TABLESPACE temp_ts; GRANT connect, resource TO smith

C.   CREATE USER smith IDENTIFIED EXTERNALLY DEFAULT TABLESPACE data_ts QUOTA 100M ON data_ts QUOTA 500K ON temp_ts TEMPORARY TABLESPACE temp_ts; GRANT connect TO smith

D.   CREATE USER smith INDENTIFIED GLOBALLY AS '' DEFAULT TABLESPACE data_ts QUOTA 500K ON temp_ts QUOTA 100M ON data_ts TEMPORARY TABLESPACE temp_ts; GRANT connect, resource TO smith; REVOKE DROP_TABLE, CREATE_USER from smith;

47:

The database needs to be shut down for hardware maintenance. All the user sessions except one have either voluntarily logged off or have been forcibly killed. The remaining one user session is running a business critical Data Manipulation Language (DML) statement, and it must complete prior to shutting down the database.

Which of the following shutdown statements prevents the new user connections, logs off the remaining user, and shuts down the database after the DML statement completes?

A.   SHUTDOWN

B.   SHUTDOWN ABORT

C.   SHUTDOWN NORMAL

D.   SHUTDOWN IMMEDIATE

E.   SHUTDOWN TRANSACTIONAL

48:

Examine the following statements:

1)MOUNT mounts the database for certain DBA activities, but does not provide user access to the database.

2)The NOMOUNT command creates only the Data Buffer, but does not provide access to the database.

3)The OPEN command enables users to access the database.

4)The STARTUP command starts an instance.

Which of these statements are correct?

A.   2 and 3

B.   1 and 3

C.   Only 4

D.   None of the above

49:

 You issue the following SQL statement to re-create your database and reuse all the existing database files:

CREATE DATABASE Sales

DATAFILE

'/u01/oradata/Sales/system0l.dbf'

SIZE 100M REUSE

LOGFILE

GROUP 1 ('/u01/oradata/Sales/logla.rdo',

'/u02/oradata/Sales/loglb.rdo')

SIZE 50K REUSE,

GROUP 2 ('/u01/oradata/Sales/log2a.rdo',

'/u02/oradata/Sales/log2b.rdo')

SIZE 50K REUSE

MAXLOGFILES 5

MAXLOGHISTORY 100

MAXDATAFILES 10;

The CREATE DATABASE statement fails. Why?

A.   You have set MAXLOGFILES too low

B.   You omitted the CONTROLFILE REUSE clause

C.   You cannot reuse the online redo log files

D.   You cannot reuse the data file belonging to the SYSTEM tablespace

50:

Your company hires a DBA named Allen. He will be starting the database remotely, as he is going to work from home. You created a password file for your database and set REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE in the parameter file.

Which of the following commands will help you add Allen to the password file to allow him to have remote DBA access?

A.   GRANT DBA TO ALLEN;

B.   GRANT SYSDBA TO ALLEN;

C.   GRANT RESOURCE TO ALLEN;

D.   orapwd file=orapwdSTUD user=ALLEN password=DBA