DB2 and Oracle Database Systems Quiz

Quiz covering DB2 concepts (bind, packages, plans, DBRM, locking) and Oracle database administration (system views, backup modes, parameters)

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which condition in your database forces you to perform only consistent backups?

  1. The database is in mount state.
  2. One of the tablespaces is offline.
  3. One of the tablespaces is read only.
  4. The database operates in ARCHIEVELOG mode.
  5. The database operates in NOARCHIEVELOG mode.
Question 2 Multiple Choice (Single Answer)

Which statement regarding the contents of the V$PARAMETER view is true?

  1. Displays only the list of default values
  2. Displays only the list of all basic parameters
  3. Displays the currently in effect parameter values
  4. Displays only the list of all advanced parameters
  5. Displays the list of all the parameter files of a database
  6. Displays the current contents of the server parameter file.
Question 3 Multiple Choice (Single Answer)

Which type of backup would be appropriate in NOARCHIVELOG mode?

  1. Hot backup
  2. Online backup
  3. consistent backup
  4. incremental backup
  5. inconsistent backup
Question 4 Multiple Choice (Single Answer)

Which is the only sys view which can be modified ?

  1. col$
  2. aud$
  3. row$
  4. none
Question 5 Multiple Choice (Single Answer)

What is meant by an index scan

  1. When an entire index is scanned to locate rows we call it as index scan
  2. When only part of the index is scanned to locate rows we call it as index scan
  3. When all the rows are scanned we call it as index scan
  4. None of the above
Question 6 Multiple Choice (Single Answer)

What does SPUFI stands for

  1. SQL Programming Using File Input
  2. SQL Processing Using File Input
  3. SQL Processor Using File Input
  4. Sequence Processing Using File Input
Question 7 Multiple Choice (Single Answer)

A key made up of more than one column is called

  1. Complex Key
  2. Secondary Key
  3. Composite Key
  4. Foreign Key
Question 8 Multiple Choice (Single Answer)

For which database object can a lock be obtained

  1. a database directory
  2. a database tablespace
  3. a database bufferpool
  4. a database column
Question 9 Multiple Choice (Single Answer)

What is the purpose of the COLLECTION parameter of precompile/bind parameter

  1. define the name of the package
  2. provide an alias for the package
  3. define the schema of the package
  4. define the database of the package
Question 10 Multiple Choice (Single Answer)

Which type of cursor should be used so that its position will be maintained between transactions

  1. FOR HOLD
  2. FOR UPDATE
  3. FOR FETCH
  4. WITH HOLD
Question 11 Multiple Choice (Single Answer)

What is the function of DB2 pre-compiler

  1. Removes all the statements in source code
  2. Replaces all the SQL statements into corresponding host language CALL statements
  3. Replaces SQL statements into corresponding host language statements
  4. None of the above
Question 12 Multiple Choice (Single Answer)

Where is the isolation level specified

  1. BIND
  2. REBIND
  3. Both A & B
  4. None of the above
Question 13 Multiple Choice (Single Answer)

Which SQLCODE is used to check for duplicate index on a column

  1. -803
  2. -811
  3. -805
  4. -855
Question 14 Multiple Choice (Single Answer)

A Package is

  1. A single, bound DBRM
  2. A Multi bound DBRM with optimised access paths
  3. A Single bound DBRM with optimised access paths
  4. A Multi bound DBRM
Question 15 Multiple Choice (Single Answer)

What does DBRM contain

  1. Edited form of the SQL statements with some additional information
  2. Complied version of SQL statements
  3. Complied version of source code
  4. None of the above
Question 16 Multiple Choice (Single Answer)

Which is the system that DB2 uses for locking

  1. LOCK Manager
  2. Resource Manager
  3. IRLM
  4. None of the above
Question 17 Multiple Choice (Single Answer)

A Plan

  1. Is an executable module containing access path logic provided by the DB2 optimiser
  2. In an non executable module containing access path logic provide by the DB2 optimiser
  3. Is just a module containing access path to DB2 optimiser
  4. Is a module containing access path
Question 18 Multiple Choice (Single Answer)

What will the FREE command do to a plan

  1. It will drop the existing plan
  2. It will delete the existing plan
  3. Both a & b
  4. None of the above
Question 19 Multiple Choice (Single Answer)

Can a UNION and a JOIN be used in the same SELECT statement

  1. YES
  2. NO
  3. Cant say
  4. Depends on the query
Question 20 Multiple Choice (Single Answer)

Bind component Produces

  1. Only Package
  2. Only application plan
  3. Both A & B
  4. None of the above