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.
A. Segments
B. Database blocks
C. Table spaces
D. operating system blocks
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>
A. Data files
B. Tablespaces
C. User defined schemas
D. User defined schema data
E. Initialization parameters<br>
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
A. Recovery Manager
B. Oracle Enterprise Manager
C. Oracle Universal Installer
D. Oracle Database Configuration Assistant
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
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
A. Database Buffer Cache
B. Redo log Buffer
C. PGA
D. Shared Pool
A. User Process
B. Server Process
C. Datafile
D. Background Processes
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)
A. Control file
B. Password file
C. Parameter files
D. Archived log files
A. Bitmap
B. Unique
C. Partitioned
D. Reverse key
E. Single column
A. Regular table
B. Clustered table
C. Partitioned table
D. Index-organized table
A. Extent
B. Segment
C. Oracle block
D. Operating system block
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
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>
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
A. Bitmap
B. B-Tree
C. Partitioned
D. Reverse key
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
A. Data files
B. Control file
C. Password file
D. Online redo log files
A. Cluster table
B. Partitioned table
C. Index-organized table
D. None of the above<br>
A. ENABLE VALIDATE
B. DISABLE VALIDATE
C. ENABLE NOVALIDATE
D. DISABLE NOVALIDATE
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
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
A. In the extent
B. In the control file
C. In the data dictionary
D. In the undo tablespace
A. Database Buffer Cache
B. PGA
C. Redo Log Buffer
D. Shared Pool
A. 0
B. 1
C. -1
D. NULL<br>
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>
A. STARTUP
B. STARTUP OPEN
C. STARTUP MOUNT
D. STARTUP NOMOUNT
A. True
B. False
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
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
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.
The constraints for which Indexes are created by default are:
A. Check
B. Unique
C. Not null
D. Primary key
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
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
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
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
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
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
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;
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
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
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
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
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;
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
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
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
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