Oracle Database Administration Practice Test
Test your knowledge of Oracle database administration including storage management, indexing, security, backup and recovery, SQL tuning, and partitioning.
Questions
The USERS table has thousands of rows and is accessed very often with an index (ISERID_NDX) on a primary key (USER_ID). Where should USERS and USERID_NDX be stored?
- Different tablespace on different disks33
- Same tablespace
- SYSTEM tablespace
- Same tablespace on different disks
Extents are a logical collection of contiguous ___________.
- Segments
- Database blocks
- Table spaces
- operating system blocks
Privileges of a ROLE in oracle can be dynamically changed.
- True
- False
Which of the following options is true when a monotonically increasing sequence number is an indexed column?
- Hash-partitioned global indexes are useful.
- Hash-partitioned local indexes are better.
- Range-partitioned local indexes are better.
- Range-partitioned global indexes are better.
Which type of commands are used to copy ASM files?
- RMAN commands
- OMF commands
- Operating system commands
- Logical Volume Manager commands
Name the tool for tuning SQL statements.
- TUNEUP SYS
- EXPLAIN SYS
- DB_TUNEUP
- EXPLAIN PLAN
Which of the following options is not true about modifying table columns?
- You can drop a column at any time.
- You can add a column at any time as long as it is a NULL column.
- You can increase the number of characters in character columns or the number of digits in numeric columns.
- You cannot increase or decrease the number of decimal places.
While attempting to connect to a remote server, the following error appeared:
ORA-12533: TNS:illegal ADDRESS parameters
To attempt to resolve the error, the tnsnames.ora file was examined. What should be verified in this file?
- That the correct service name exists in the tnsnames.ora file
- That the service name of the database was entered correctly in the connect string
- That the connect descriptor's' protocol-specific parameters located in the ADDRESS section are correct
- That the service name of the database was entered correctly in the connect string
Which of the following tables is created to enable the building of scalable applications and is useful for large tables that can be queried or manipulated using several processes concurrently?
- Regular table
- Clustered table
- Partitioned table
- Index-organized table
Where is the trace file generated, when a deadlock shutdown is detected by Oracle?
- SQL_TRACE
- TRACE_DEST
- USER_DUMP_DEST
- CORE_DUMP_DEST
Consider the following command:
DROP TABLE ITEM;
An explicit COMMIT has NOT been issued. What can be done to reverse this action and restore the data in the INVENTORY table?
- Shut down the database
- Terminate your current session
- The action cannot be reversed
- Issue a ROLLBACK
A media failure occurred causing NOARCHIVELOG mode database to crash. It was discovered that two of the data files are corrupt. The last whole closed database backup was taken one week ago with a online redo log sequence number of 83. At the time the data files were corrupted, the online redo log sequence number was 85. Although there were few committed transactions after the last backup, as much data as possible has to be recovered. Which of the following recovery processes should be used?
- Shut down the instance, restore all of the Oracle files from the most recent backup, and restart the instance.
- Manually restore and recover the two corrupt data files from the most recent backup.
- Shut down the instance, restore the two corrupt data files from the most recent backup, and restart the instance.
- Shut down the instance, restore all of the Oracle files from the most recent backup, restart the instance, and open the database using the 'ALTER DATABASE OPEN RESETLOGS' statement.
The EMPLOYEES table has these columns:
LAST_NAME VARCHAR2 (35)
SALARY NUMBER (8,2)
HIRE_DATE DATEManagement wants to add a default value to the SALARY column. It was planned to alter the table by using the following SQL statement:ALTER TABLE EMPLOYEES MODIFY (SALARY DEFAULT 5000);Which of the following options is true about the ALTER statement?
- Column definitions cannot be altered to add DEFAULT values.
- A change to the DEFAULT value affects only subsequent insertions to the table.
- Column definitions cannot be altered to add DEFAULT values for columns with a NUMBER data type.
- All the rows that have a NULL value for the SALARY column will be updated with the value 5000.
Which of the following parameters should be set to limit the number of transactions that can simultaneously make changes to data in a block, and increase the frequency with which Oracle returns a block back on the free list?
- INITRANS and PCTUSED
- MAXTRANS and PCTFREE
- INITRANS and PCTFREE
- MAXTRANS and PCTUSED
What does SQL stand for?
- Strong Question Language
- Structured Question Language
- Structured Query Language
- Start up Language
The DBA has been informed that two new columns have been added to the ORDERS table. The blocks in the Order Entry form were created manually. How can he use a wizard to modify the Orders block to include items that corresponds to these columns?
- He cannot use wizards to add a new item to add data block that was created manually.
- Select the last item in the Orders block, then invoke the Layout Wizard from the menu.
- Select the Order Block in the Object Navigator, then invoke the Data Block Wizard from the menu.
- Select the Data Block node in the Object Navigator, then invoke the Data Block Wizard from the menu.
How can automatic archiving at instance startup be enabled for a ARCHIVELOG database?
- With the database open, issue the 'ARCHIVE LOG START ALL' SQL*Plus command.
- With the database shut down, set the LOG_ARCHIVE_START initialization parameter to 'TRUE'.
- With the database mounted, issue the 'ALTER DATABASE ARCHIVELOG' SQL statement.
- With the database open, issue the 'ALTER SYSTEM ARCHIVE LOG START TO <file_name>' SQL statement.
The STUDENT_GRADES table has the following columns:
STUDENT_ID NUMBER (12)
SEMESTER_END DATE
GPA NUMBER (4, 3)
Which of the following statements finds the highest Grade Point Average (GPA) per semester?
- SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL;
- SELECT (gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
- SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end;
- SELECT MAX(gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student_grades;
- SELECT MAX(gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
MILLER is an administrator who has FULL DBA privileges. When he attempts to drop the DEFAULT profile as shown below, he receives the given error message. Which of the following options best explains this error?
SQL> drop profile SYS.DEFAULT;
drop profile SYS.DEFAULT
*
ERROR at line 1:
ORA-00950: invalid DROP option
- The DEFAULT profile cannot be dropped.
- MILLER requires the DROP PROFILE privilege.
- Profiles created by SYS cannot be dropped.
- The CASCADE option was not used in the DROP PROFILE command.
The user Smith created the SALES HISTORY table. Smith wants to find out the following information about the SALES HISTORY table:
- The size of the initial extent allocated to the sales history data segment
- The total number of extents allocated to the sales history data segment
Which of the following data dictionary view(s) should Smith query for the required information?
- USER_EXTENTS
- USER_SEGMENTS
- USER_OBJECT_SIZE
- USER_OBJECT_SIZE and USER_EXTENTS