Oracle Practice Test - 10

Oracle Database Administration and Development Practice Test covering SQL, PL/SQL, tablespaces, indexes, RMAN, and Oracle Forms.

23 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

In a DSS application, the sales summary report queries data from seven different tables and groups the data by region and period. Which of the following storage structures is a good design choice to improve query performance?

  1. IOT
  2. Cluster
  3. Materialized View
  4. Partion Table
Question 2 Multiple Choice (Single Answer)

Can the performance of a database be tuned by adjusting init.ora parameters?

  1. Yes
  2. No
Question 3 Multiple Choice (Single Answer)

Which of the following SELECT statements will get the result 'ELCOME' from the string 'WELCOME'?

  1. SELECT SUBSTR ('WELCOME',1) FROM dual;
  2. SELECT INITCAP(TRIM('WELCOME', 1,1) FROM dual;
  3. SELECT LOWER (SUBSTR ('WELCOME', 2,1) FROM dual;
  4. SELECT LOWER (SUBSTR('WELCOME', 2,1) FROM dual;
  5. SELECT LOWER (TRIM ('W' FROM 'WELCOME')) FROM dual;
Question 4 Multiple Choice (Single Answer)

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 be of a uniform size of 1 MB?

  1. Extent
  2. Segment
  3. Oracle block
  4. Operating system block
  5. None of the above
Question 5 Multiple Choice (Single Answer)

In this PL/SQL statement, which of the following lines will produce an error?

  1. create or replace function vat (vat_rate IN NUMBER, price IN NUMBER)
  2. declare
  3. l_vat NUMBER;
  4. begin
  5. l_vat := (vat_rate/100) * price; return l_vat;
Question 6 Multiple Choice (Single Answer)

Which SELECT statement should be used if unique combinations of the POSITION and MANAGER values from the EMP table should be displayed?

  1. SELECT DISTINCT position, manager
    FROM emp;
  2. SELECT position, DISTINCT manager
    FROM emp;
  3. SELECT position, manager
    FROM emp;
  4. SELECT position, manager DISTINCT
    FROM employee;
Question 7 Multiple Choice (Single Answer)

Identify the complete list of the logical components of an Oracle database.

  1. Tablespaces, segments, extents, and data files
  2. Tablespaces, segments, extents, and Oracle blocks
  3. Tablespaces, database, segments, extents, and data files
  4. Tablespaces, database, segments, extents, and Oracle blocks
Question 8 Multiple Choice (Single Answer)

Which of the following is not true about indexes?

  1. Indexes are created to enforce uniqueness on columns.
  2. Indexes are created to enable fast retrieval by column values.
  3. Columns that are frequently used with equal conditions in WHERE clauses are good candidates for indexes.
  4. Indexes are created with the ALTER TABLE command.
Question 9 Multiple Choice (Single Answer)

A partitioned table named ITEM is maintained. The following statement was issued:

ALTER TABLE ITEM
DROP PARTITION p1
UPDATE GLOBAL INDEXES
PARALLEL (DEGREE 3);

Which of the following statements represents the result of including the UPDATE GLOBAL INDEXES clause?

  1. After the P1 partition is dropped, all global B-tree and function-based indexes are automatically rebuilt.
  2. After the P1 partition is dropped, all global indexes that were marked UNUSABLE will be automatically rebuilt.
  3. All global indexes on the ITEM table remain intact throughout the DDL operation.
  4. Other DML statements can continue to use the any global B-tree indexes without interruption.
Question 10 Multiple Choice (Single Answer)

___________ contain the physical structure of a database.

  1. Archive log files
  2. Initialization files
  3. Control files
  4. SGA definition files
Question 11 Multiple Choice (Single Answer)

MARY used an ALTER DATABASE statement on her database to perform an online control file backup. In which mode is her database operating?

  1. FAILOVER
  2. FASTBACK
  3. ARCHIVELOG
  4. NOARCHIVELOG
Question 12 Multiple Choice (Single Answer)

What is the result if two NULL values are compared to each other?

  1. TRUE
  2. FALSE
  3. Undefined
  4. NULL
Question 13 Multiple Choice (Single Answer)

You have noticed that you are left with some old backups which are no longer required. You have been using RMAN and now you want to have a list of these files. Which Recovery Manager task will accomplish this?

  1. LIST NEED BACKUP;
  2. REPORT EXPIRED BACKUPS;
  3. REPORT OBSOLETE;
  4. LIST OBSOLETE BACKUPS;
Question 14 Multiple Choice (Single Answer)

A client-server application has become very popular and hundreds of users are accessing the Oracle Server daily. Which of the following networking solutions should be implemented to ensure that all users can access the Oracle Server?

  1. Dedicated Server
  2. Directory Naming
  3. Oracle Connection Manager
  4. Heterogeneous Services
Question 15 Multiple Choice (Single Answer)

The first step in placing a database into ARCHIVELOG mode has been performed. The second step is deciding whether the online redo log files are to be archived automatically or manually. Which action should be taken to enable archiving at instance startup?

  1. Immediately after setting the database in ARCHIVELOG mode, in SQL*Plus select automatic archiving using this syntax: ALTER DATABASE SET LOG_ARCHIVE_START=TRUE.
  2. Automatic archiving is the default when ARCHIVELOG mode is set. No further actions are required.
  3. Set the LOG_ARCHIVE_MAX_PROCESSES parameter to n (where n is the number of Archiver processes) in the initialization parameter file.
  4. Set the LOG_ARCHIVE_START parameter to TRUE in the initialization parameter file.
Question 16 Multiple Choice (Single Answer)

When creating a new database by issuing CREATE DATABASE, what should be done to prevent users from using the SYSTEM tablespace for sorting operations?

  1. Create an undo tablespace
  2. Create a default temporary tablespace
  3. Create a tablespace with the UNDO keyword
  4. Create a tablespace with the TEMPORARY keyword
Question 17 Multiple Choice (Single Answer)

What do ASM disk groups provide?

  1. Redundancy through striping
  2. Performance through mirroring
  3. Redundancy through mirroring
  4. Performance through striping
Question 18 Multiple Choice (Single Answer)

Evaluate the following SQL statement:

SELECT ROUND (TRUNC (MOD (1600, 10),-1), 2) FROM dual;

What will be displayed?

  1. 0
  2. 1
  3. 0.00
  4. An error statement
Question 19 Multiple Choice (Single Answer)

A data file was moved to another physical location because of a media failure, and the ALTER DATABASE RENAME FILE statement was issued. Which file is automatically updated to reflect this change?

  1. Control
  2. Alert
  3. Registry
  4. Parameter
Question 20 Multiple Choice (Single Answer)

An Application was created in which the various triggers were defined at the Form level, Block level, Item level. The Execution Hierarchy property of the Trigger defined at the Form level was set to Before, For the Block level trigger it was set to Before, For the Item level Trigger it was set to after. How would the various triggers fire, based on the execution Hierarchy?

  1. Firstly Block level then Form and in the last Item level trigger would fire
  2. Firstly Item level then Block level and in the last Form level
  3. Firstly Block level then Form level and in the last Item level.
  4. None of these
Question 21 Multiple Choice (Single Answer)

A number column called STATUS has been added to the ORDERS table. The SQL script was run to populate that column.
The Orders form should be updated to display the additional data. Currently, there is a non-base table display item in the Orders block called Total that is no longer desired. The Total item is located on the canvas in the position where the Status item should appear. The Property Palette for Total was opened, its name was changed to Status, and its Item Type was changed to Text Item. The form was run, but when a query was executed on the block, no data was displayed in the Status item. What should be done to correct this problem?

  1. Set the Database Item property to Yes for the Status item.
  2. Use the form to populate the Status item, since the SQL script that was run obviously did not work.
  3. Set the Name property for the Status item to STATUS, because it must be uppercase to match the column name in the database.
  4. Use the Data Block Wizard in reentrant mode to add the item, because add a base table item cannot be added by changing the item type of an existing item.
Question 22 Multiple Choice (Single Answer)

User Smith created indexes on some tables owned by user John. The following needs to be displayed:

index names
index types

Which data dictionary view(s) should be queried?

  1. DBA_INDEXES only
  2. DBA_IND_COLUMNS only
  3. DBA_INDEXES and DBA_USERS
  4. DBA_IND COLUMNS and DBA_USERS