Oracle Database Administration Comprehensive Practice Test
A comprehensive practice test covering Oracle database administration topics including PL/SQL, backup and recovery, SQL, networking, architecture, replication, and Oracle Forms development.
Questions
In this PL/SQL statement, which of the following lines will produce an error?
- cursor CAPITALS is
- select CITY, STATE
- into my_city, my_state
- from CITIES
- where CAPITAL = 'Y';
What is the least amount of work needed if the database should be recoverable in the future?
- Make a complete backup right after opening the database.
- Copy the data file DF1 back to the backup directory.
- Back up the data file.
- Bring tablespace TS1 online.
What is the purpose of the INCLUDING clause in the CREATE TABLE syntax for an Index Organized Table?
- It specifies at which column to break a row into two pieces when a row's length exceeds the size set aside in PCTTHRESHOLD.
- It specifies the name of the primary key column in the index organized table.
- It specifies what percentage of the entire data block to hold open in order to store the row data associated with a primary key value.
- It specifies the tablespace where the second half of the row data will be stored when the row's length exceeds the size set aside in PCTTHRESHOLD.
How many columns are presented after executing the given query?
SELECT address1||','||address2||','||address2 Adress FROM employee;
- 0
- 1
- 2
- 3
- 4
Which tool will help a newly appointed DBA to examine the performance of a database?
- Recovery Manager
- Oracle Enterprise Manager
- Oracle Universal Installer
- Oracle Database Configuration Assistant
In which situations does the Log Writer (LGWR) process write the redo entries from the redo log buffer to the current online redo log group?
- When a transaction commits
- When a rollback is executed
- When the redo log buffer is about to become completely full (90%)
- Before the DBWn writes modified blocks in the database buffer cache to the data files
MARY wants to create an image copy backup that can be used in an incremental backup set. She wants to allocate the C1 channel and create image copies of two data files. She does not want the Oracle Server session to perform logical block corruption detection. These image copies will be used in an incremental backup set. Which RUN block set of commands should she use?
- rman> RUN
2> CHECK LOGICAL
3> ALLOCATE CHANNEL c1 TYPE DISK;
4> DATAFILE 1 TO '/backup/f1.dbf',
5> DATAFILE 2 TO '/backup/f2.dbf'; - rman> RUN
2> ALLOCATE CHANNEL c1 TYPE DISK;
3> COPY LEVEL 0
4> DATAFILE 1 TO '/backup/f1.dbf',
5> DATAFILE 2 TO '/backup/f2.dbf'; - rman> RUN
2> ALLOCATE CHANNEL c1 TYPE DISK;
3> DATAFILE 1 TO '/backup/f1.dbf',
4> DATAFILE 2 TO '/backup/f2.dbf'; - rman> RUN
2> ALLOCATE CHANNEL c1 TYPE sbt_tape;
3> DATAFILE 1 TO '/backup/f1.dbf',
4> DATAFILE 2 TO '/backup/f2.dbf';
There is a requirement to invoke the Orders form from the Customers form. Which of the following suggestions names a built-in that will meet the requirements and also offers a correct reason?
- CALL_FORM because NEW_FORM is no longer valid for Web-deployed forms due to the extra network traffic that is caused.
- CALL_FORM because it can be issued in Enter-Query mode and can be constrained to be Query only.
- CALL_FORM because the second form is invoked in a modeless state and it saves on memory resources.
- NEW_FORM because the second form is invoked in a modeless state and the user can navigate freely between the two running forms.
A 10 GB index is to be created on the ITEM table. The index should be spread across many tablespaces, decreasing contention for index lookup, and increasing scalability and manageability. Which index would be best for this table?
- Bitmap
- Unique
- Partitioned
- Reverse key
- Single column
After adding a new object to a replication group, what do you need to do before it can be replicated to other master sites?
- Create a snapshot log for the object.
- Enter the object into the deferred transaction queue.
- Generate replication support for the object.
The default directory location for the sqlnet.ora file is ______.
- %ORACLE_HOME%BIN
- %ORACLE_HOME%
- %ORACLE_HOME%NETWORKADMIN
- %ORACLE_HOME%RDBMSADMIN
To produce a meaningful result set without any cartesian products, what is the minimum number of conditions that should appear in the WHERE clause of a four-table join?
- 8
- 5
- 4
- 3
- 2
Where is free space managed for a tablespace created with automatic segment-space management?
- In the extent
- In the control file
- In the data dictionary
- In the undo tablespace
Which of the following statements about the use of the LOG_ARCHIVE_DEST_n initialization parameters is true?
- When defining multiple archive destinations, at least one LOCATION parameter must be included.
- The maximum number of remote archive destinations is ten.
- Archive destinations may only be modified at the system level.
- Possible archive destinations include the local disk, any remote database, or a remote standby database.
Which of the following would stop the execution of a query if the query failed to rewrite?
- select /+ REWRITE_ON_ERROR/...
- select /+ REWRITE_OR_ERROR/...
- select /+ REWRITE_IN_ERROR/...
- select /+ REWRITE_ERROR/...
- select /+ REWRITE_If_ERROR/...
Which of the following are considered as types of segments?
- Only LOBS
- Only nested tables
- Nested tables and index-organized tables
- Nested tables, LOBS, index-organized tables, and boot straps
- All of the above
A user issued a connection request which was picked up by the listener on an Oracle Shared Server. The listener provided the user process with the address of an existing dispatcher process. What is the next step in this process?
- The user process is handed off to a dedicated server process.
- The user process connects directly to the dispatcher.
- The dispatcher process places the user request in a response queue.
- The user process connects directly to the Oracle Shared Server process.
Which of the following statements is valid regarding index clusters?
- Index clusters can only be used for tables with low cardinality columns.
- Index clusters are generally well suited for tables that have many full table scans.
- Normal B-Tree indexes do not store null key values, whereas cluster indexes store null keys.
- A cluster index always takes up much more storage space than a normal index for the same set of key values.
The local naming method is being used to connect to a remote server and the service name is being provided in the connection request. This service name is mapped to a network address contained in a _________.
- Connect Descriptor
- Connect identifier
- Connect String
- Connected Directory
A view was created containing groups of data. It does not allow DML operations, and does not contain a subquery. What type of view was created?
- Inline
- Simple
- Complex
- Explicit
As SYSDBA TOM created the PAYCLERK role and granted the role to JOHN. JOHN in turn attempts to modify the authentication method of the PAYCLERK role from SALARY to NOT IDENTIFIED, but when doing so he receives the insufficient privilege error as shown:
SQL> connect JOHN/crusader
Connected.
SQL> alter role payclerk not identified;
alter role payclerk not identified
*
ERROR at line 1:
ORA-01031: insufficient privileges
Which privilege does JOHN require to modify the authentication method of the PAYCLERK role?
- ALTER ANY ROLE
- MANAGE ANY ROLE
- UPDATE ANY ROLE
- MODIFY ANY ROLE
The user must be able to invoke a list of values for valid sales representative in the Orders form. To facilitate this, a button was created and positioned next to the Sales Rep ID field The text item has these properties set:
- Required: Yes
- List of Values: SALES_REP_LOV
- Validate from List: No
The button has these properties set:
- Keyboard Navigable: Yes
-Mouse Navigate :Yes
- Iconic :Yes
- Icon Filename :list .ico
An appropriate LOV (called SALES_REP_LOV) was created and associated with the text item. An icon file (list.gif) exists in the appropriate directory. All other properties are left at their defaults. A When-Button-Pressed trigger was written at the item level with this code:
LIST_VALUES;
To test the form, it was attempted to enter a new record. What is the run-time behavior of the form?
- The form doesn't compile and therefore cannot be tested.
- The icon is not displayed on the button. When the Sales Rep Id field is clicked and then the button is clicked, the LOV is invoked.
- The icon is displayed on the button. When the Sales Rep Id field is clicked and then the button is clicked, the LOV is not invoked and an error is reported.
- The icon is not displayed on the button. When the Sales Rep Id field is clicked and then the button is clicked, the LOV is not invoked and an error is reported.