Oracle Database Administration & SQL Fundamentals

Comprehensive practice test covering Oracle database architecture, SQL queries, memory management, backup/recovery, and Oracle Forms development.

22 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following packages should be used to grant resource groups to users?

  1. DBMS_REPCAT_AUTH
  2. DBMS_REPCAT_ADMIN
  3. DBMS_RESOURCE_MANAGER
  4. DBMS_RESOURCE_MANAGER_PRIVS
Question 2 Multiple Choice (Single Answer)

Which of the following actions cause a log switch?

  1. A transaction completes.
  2. The instance is started.
  3. The current online redo log group is filled.
  4. The ALTER SYSTEM SWITCH LOGFILE command is issued.
Question 3 Multiple Choice (Single Answer)

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?

  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 or close to zero.
Question 4 Multiple Choice (Single Answer)

Which of the following memory structures contains the information used by the server process to validate the user privileges?

  1. Buffer cache
  2. Library cache
  3. Data dictionary cache
  4. Redo log buffer cache
Question 5 Multiple Choice (Single Answer)

SQL*Plus will finish the statement and execute it when the user types _______.

  1. a left slash ( ) followed by [Enter]
  2. a colon ( : ) followed by [Enter]
  3. a semicolon ( ; ) followed by [Enter]
  4. a period ( . ) followed by [Enter]
Question 6 Multiple Choice (Single Answer)

Is global temporary table session specific?

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

What will happen if the given emp table is queried?

select enpno,DISTINCT ename,Salary from emp;

  1. EMPNO ,unique value of ENAME and then SALARY are displayed.
  2. EMPNO ,unique value of the two columns, ENAME and salary are displayed.
  3. DISTINCT is not a valid keyword in SQL.
  4. No values will be displayed because the statement will return an error.
Question 8 Multiple Choice (Single Answer)

A cluster is a schema object that contains data from _____________ , all of which have one or more columns in common.

  1. one table
  2. one or more tables
  3. two or more tables
  4. atleast two tables
Question 9 Multiple Choice (Single Answer)

Which of the following components of an instance holds session variables and arrays when you are NOT running in MTS mode?

  1. SGA
  2. SQL Area
  3. Library Cache
  4. PGA
  5. Shared Pool
Question 10 Multiple Choice (Single Answer)

The cost-based optimizer can choose between a nested loops join and a sort merge join operation. All tables are analyzed and the OPTIMIZER_MODE is set to FIRST_ROWS. Which of the following execution plans will be the result?

  1. The sort-merge join
  2. The nested loops join
  3. This depends on some sort parameter values
  4. This depends on the number of rows in each table
Question 11 Multiple Choice (Single Answer)

Order entry clerks use the Orders form to enter the shipping date of an order. Once the shipping date has been entered into the database, the clerks are not allowed to modify it. What property can be set in the Property Palette for the Shipping_Date item to ensure that this data entry restriction is enforced?

  1. Enabled
  2. Database Item
  3. Update Allowed
  4. Update Only If NULL
Question 12 Multiple Choice (Single Answer)

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?

  1. SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL;
  2. SELECT (gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
  3. SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end;
  4. SELECT MAX(gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student_grades;
  5. SELECT MAX(gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
Question 13 Multiple Choice (Single Answer)

Which of the following memory areas is used to cache the data dictionary information?

  1. Database Buffer Cache
  2. PGA
  3. Redo Log Buffer
  4. Shared Pool
Question 14 Multiple Choice (Single Answer)

Which of the following options is not contained in the Program Global Area (PGA)?

  1. Sort Area
  2. System Change Number (SCN)
  3. Session Information
  4. Cursor state
Question 15 Multiple Choice (Single Answer)

Which of the following SQL statements defines a FOREIGN KEY constraint on the DEPT NO column of the EMP table?

  1. CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);
  2. CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
  3. CRETE TABLE EM (empno NUMBER(4), ename VARCHAR2(35) deptno NUMBER (7,2) NOT NULL, CONSTRAINT em_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));
  4. CREATE TABLE EMP (empno NUMBER (4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));
Question 16 Multiple Choice (Single Answer)

Which of the following statements is true concerning a new user that has only been granted the CREATE SESSION privilege?

  1. The user can alter their password.
  2. The user can select from tables they have created.
  3. The user can create a table.
  4. The user can grant privileges on objects that they own.
Question 17 Multiple Choice (Single Answer)

Tom is developing a form for customers to order tickets to events. There is an Event_Date item in the Ticket block of the form, and he wants users to enter dates only for existing events.
He used the LOV wizard to create an LOV based on a record group with the following query:

SELECT event_name, event_date FROM events ORDER BY event_nameOn the Column Properties page of the LOV (as shown in the exhibit), he clicked Look up return item and select the Tickets. Event_Date item from the items list. He runs the form to test it. However, when he invoked the LOV and chose an event, he received the error FRM-40212:

Invalid value for field EVENT_DATE.'

What should he do to correct this problem?

  1. Change the Validate from List property for the Event_Date item to No
  2. Create another item in the form to which the event name can be returned
  3. Modify the Record Group Query property for the record group to sort the list by event date
  4. Modify the Column Mapping property of the LOV so that the Event Date, rather than the Event Name is returned
  5. Modify the Record Group Query property for the record group so that the event date is the first column selected
Question 18 Multiple Choice (Single Answer)

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?

  1. Shut down the instance, restore all of the Oracle files from the most recent backup, and restart the instance
  2. Manually restore and recover the two corrupt data files from the most recent backup
  3. Shut down the instance, restore the two corrupt data files from the most recent backup, and restart the instance
  4. 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
Question 19 Multiple Choice (Single Answer)

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?

  1. Increase the number of archiver (ARCn) processes
  2. Increasing the number of members for all log groups
  3. Increasing the number of log writer (LGWR) processes
  4. Increasing the number of database writer (DBWn) processes
Question 20 Multiple Choice (Single Answer)

What should be done to import data and to avoid migration?

  1. Use the CASCADE option during import
  2. Use the COMPRESS option during export
  3. Use the RECORDLENGTH option during export
  4. Coalesce free space
Question 21 Multiple Choice (Single Answer)

In the Human Resources form , the prompt, heights, and widths of the Department Id, Manager Id, and Location Id fields in the Department data block have to be modified. What must be selected prior to invoking the Layout Wizard in Re-Entrant mode to modify these item properties?

  1. Frame consisting of the Employee_id, Employee_Name ,Employee_Address Items.
  2. Canvas
  3. Frame consisting of the DEPARTMENT_ID, MANAGER_ID, and LOCATION_ID items.
  4. The Departments block. The DEPARTMENT_ID, MANAGER_ID, and LOCATION_ID items
    All of the above