Oracle Database Administration and Development Practice Test
Comprehensive practice test covering Oracle database administration, SQL, PL/SQL, Oracle Forms, performance tuning, backup and recovery, and database configuration.
Questions
An OLTP database was being operated in manual undo management mode and it was noticed that the query SELECT COUNT(*) from V$TRANSACTION is always less than or equal to 160 during peak transaction hours. How many rollback segments should be configured?
- 40
- 160
- 180
- 640
What is the purpose of a checkpoint?
- Write the current redo log to the archived redo log.
- Synchronize the modified data blocks in memory with the datafiles on disk.
- Ensure database consistency.
- Ensure that data blocks are read into memory as quickly as possible.
- Keep track of redo entries.
_____________ level of auditing audits the resources entire lifecycle.
- Process task
- Resource Form
- Resource
- Core
In which situation would it be most beneficial to use OMF?
- The database's disk subsystem utilizes raw disk devices.
- Many user trace files exist that are no longer needed.
- A read-only database is maintained and used only to look up static information.
- A test database is being created and minimum administration effort is desired for the database.
Select can be used in FROM clause of SQL select.
- True
- False
In the Online E-learning .fmb module, data block items are displayed on two content canvases. A set of icon buttons is defined that users must have access to at all times. Which canvases type is appropriate to display the buttons?
- Overlay stacked canvas
- Overlay Tab canvas that is associated with a separate window
- Content canvas that is associated with the same window as the two content canvases
- Horizontal Toolbar canvas that is associated with a separate window
- Horizontal Toolbar canvas that is associated with the same window as the two content canvases
The alert log file for a database instance indicated that the checkpoints are frequently failing to complete. Which of the following actions would be a remedy in this situation?
- Increase the number of archiver (ARCn) processes.
- Increase the number of members for all log groups.
- Increase the number of log writer (LGWR) processes.
- Increase the number of database writer (DBWn) processes.
A database is used by an OLTP application. What is the recommended Library Cache GETHITRATIO percentage that should be achieved? How can the GETHITRATIO percentage be increased in the V$LIBRARYCACHE?
- 90% - 100%; improve the efficiency of the application code.
- 80% - 85%; analyze the tables.
- 85% - 90%; improve performance by increasing the SHARED_POOL_SIZE.
- 90% - 95%; improve performance by increasing the LARGE_POOL_SIZE.
Which of the following statements creates a view and does not allow the values to be changed through the view?
- CREATE VIEW empl_vu
AS
SELECT *
FROM employee
WHERE sal > 10000
WITH READ ONLY; - CREATE VIEW empl_vu
AS
SELECT *
FROM employee
WHERE sal > 10000
WITH CHECK OPTION; - CREATE VIEW empl_vu
AS
SELECT *
FROM employee
WHERE sal > 10000
WITH CHECK CONSTRAINT; - None of the above
Which of the following helps in programmatically determining the button a user pressed to respond to an alert?
- Use the GET_ALERT_PROPERTY function.
- Use the GET_ALERT_BUTTON_PROPERTY function.
- Check the value returned by the SHOW_ALERT function to see if it is 1, 2, or 3.
- Check the value returned by the SHOW_ALERT function to see if it is ALERT_BUTTON1, ALERT_BUTTON2, or ALERT_BUTTON3.
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';
Which of the following are not legal?1) DECLARE
V_Destination_India Number;2) DECLARE
V_123, V_213, V_132 Varchar2(10);3) DECLARE
V_sys Boolean := 1;4) DECLARE
V_destination_India Number(4);5) DECLARE
V_Hiredate NOT NULL DATE := '01-JAN-00';
- 1, 3, 5
- 1, 2, 3, 4
- 2, 3, 5
- 1, 3, 4
An application that uses a database keeps cursors open. What should be confirmed before changing the CURSOR_SPACE_FOR_TIME parameter in the database initialization file to TRUE?
- The TIMED_STATISTICS parameter is set to TRUE.
- The hit percentage in the buffer cache is at least 95%.
- The OPEN_CURSOR parameter is set to at least twice the default value.
- The value in the RELOADS column of V$LIBRARYCACHE is consistently zero or close to zero.
A data block is _____.
- the place where all deleted records are persisted
- the largest logical storage unit ever available for any database block
- the smallest logical storage unit for a database object
- all of the above
What causes session waits in the log buffer?
- The rollback tablespace extends.
- Data has not been committed to the database.
- Data is written into the log buffer faster than LGWR can write it out.
- A transaction has an exclusive lock on a row.
Which connection method requires the configuration of the TNSNAMES.ORA file?
- Host naming
- Local naming
- Centralized naming
- None .
Which of the following statements regarding DML statement functionality is true?
- UPDATE can update multiple columns in one table.
- INSERT must contain a VALUES clause.
- MERGE will delete rows that do NOT exist in either table.
- UPDATE will add rows to a table if an INTO clause is specified.
A calculated item has to be created in the Control block of the Resource Management form. This item should contain the total of employee salaries for employees in a particular department. Which of the following statements is true about how to create the calculated item?
- It can be created by first creating a text item and then changing the item type.
- It can be created in the Layout Editor using a special tool that creates a calculated item.
- It can be created by first creating a display item and then setting appropriate properties in its Calculation property group.
- It can be created in the Layout Editor by selecting the Salary item of the Employees block, selecting the Control block from the block list, clicking the Text Item tool, and drawing a text item on the canvas to automatically calculate a sum of the selected Salary item.
Which of the following statements represents a default characteristic of the database if a database is created using the database creation assistant?
- To access the HR user account, the account should be unlocked first.
- All accounts created by the Database Creation Assistant are locked.
- All accounts created by the Database Creation Assistant initially have expired passwords.
- The SYS and SYSTEM accounts use the same default password as in previous Oracle versions.
A table is being imported and it must be ensured that the table is put into a single contiguous area. There is not a single contiguous area large enough for the entire space allocated to the table. What should be done to achieve this?
- Use the cascade option.
- Use the constraint option.
- Use the primary key option.
- Coalesce the tablespace the table is using.