Oracle Practice Test - 20

Oracle Practice Test - 20

18 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following commands will cause an automatic commit to occur?

  1. CONNECT
  2. RENAME
  3. SELECT
  4. INSERT
  5. DELETE
Question 2 Multiple Choice (Single Answer)

The following INSERT statement was issued:
INSERT /* +APPEND */ INTO arch.curr_order_hist

SELECT * FROM ord.curr_order;


What type of INSERT is performed?

  1. Conventional
  2. Direct-Load
  3. Parallel Direct-Load
  4. Serial-Conventional
Question 3 Multiple Choice (Single Answer)

What must be confirmed before changing the CURSOR_SPACE_FOR_TIME parameter in the initialization file to TRUE?

  1. The TIMED_STATISTICS parameter is set to TRUE.
  2. The hit percentage in the buffer cache is at least 95%.
  3. The OPEN_CURSOR parameter is set to at least twice the default value.
  4. The value in the RELOADS column of V$LIBRARYCACHE is consistently zero.
Question 4 Multiple Choice (Single Answer)

For an unconditional approach to a particular part of a complex PL/SQL block, which of the following control structures can be used?

  1. a
  2. If-Then-Else
  3. While loop
  4. GoTo
  5. Decode
Question 5 Multiple Choice (Single Answer)

You want to view the current time. Which of the following function(s) can be used to view the current time?

  1. TO_DATE
  2. DATE
  3. SYSDATE
  4. SYSTIME
  5. Not Possible
Question 6 Multiple Choice (Single Answer)

A company hired ALLEN, a DBA who will be working from home. Allen needs to have the ability to start the database remotely.A password file was created for the database and REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE was set in the parameter file. Which of the following commands adds Allen to the password file, allowing him remote DBA access?

  1. GRANT DBA TO ALLEN;
  2. GRANT SYSDBA TO ALLEN;
  3. GRANT RESOURCE TO ALLEN;
  4. orapwd file=orapwdSTUD user=ALLEN password=DBA
Question 7 Multiple Choice (Multiple Answers)

While checking the alert log for the database many lines are discovered that say "Checkpoint Not Complete". How can the problem be solved?

  1. Delete archived log files
  2. Add more online redo log groups
  3. Increase the size of archived log files
  4. increase the size of online redo log files
Question 8 Multiple Choice (Single Answer)

Using synonyms is a good way to implement location transparency.

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

To obtain the structure of an Oracle table, the command used is _______.

  1. STRUCTURE [TableName]
  2. DESCRIBE [TableName]
  3. DESCRIBE STRUCTURE [TableName]
  4. DESC TABLE [TableName]
Question 10 Multiple Choice (Single Answer)

In which of the following sections is a user-defined exception trapped?

  1. Declaration
  2. Execution
  3. Exception
  4. Header
Question 11 Multiple Choice (Single Answer)

For referential integrity to hold, any field in a table that is declared a super key can contain only values from a parent table's primary key or a candidate key.

  1. True
  2. False
Question 12 Multiple Choice (Single Answer)

A database has several simultaneous long-running insert transactions. The following statement was issued to ensure that multiple server processes are used to roll back uncommitted transactions:

ALTER SYSTEM SET FAST_START_PARALLEL_ROLLBACK = 5;

What is the result?

  1. Up to five rollback processes may be activated simultaneously
  2. The parameter will be ignored because the maximum number of rollback processes is four
  3. The parameter will be ignored because it is set to an invalid value
  4. This parameter will be ignored unless the RECOVERY_PARALLELISM parameter is used
Question 13 Multiple Choice (Single Answer)

The current password file allows for five entries. New DBAs have been hired and five more entries need to be added to the file, for a total of ten. How can the allowed number of entries be increased in the password file?

  1. Manually edit the password file and add the new entries
  2. Alter the current password file and resize if to be larger
  3. Add the new entries; the password file will automatically grow
  4. Drop the current password file, recreate it with the appropriate number of entries and add everyone again
Question 14 Multiple Choice (Single Answer)

Which data dictionary view(s) are needed to query to find the following information about a user?
Whether the user's account has expired
The user's default tablespace name
The user's profile name

  1. DBA_USERS only
  2. DBA_USERS and DBA_PROFILES
  3. DBA_USERS and DBA_TABLESPACES
  4. DBA_USERS, DBA_TS_QUOTAS, and DBA_PROFILES
Question 15 Multiple Choice (Single Answer)

Which type of join should be written to perform an outer join of tables A and B that returns all rows from B?

  1. Any outer join
  2. A left outer join
  3. A cross join
  4. A right outer join
  5. An inner join
Question 16 Multiple Choice (Single Answer)

Which script displays '01-MAR-03' when the JOIN_DATE value is '03-MAR-03'?

  1. SELECT ROUND(join_date, 'YEAR') FROMEmp
  2. SELECT ROUND(join_date, 'DAY') FROMEmp
  3. SELECT ROUND(join_date, 'MONTH') FROMEmp
  4. SELECT ROUND(TO_CHAR(join_date, 'YYYY')) FROMEmp
Question 17 Multiple Choice (Single Answer)

Which of the following files is a part of the Oracle database?

  1. Control file
  2. Password file
  3. Parameter files
  4. Archived log files