Oracle Database and SQL Fundamentals

A comprehensive quiz covering Oracle database architecture, SQL commands, transaction management, security auditing, and database administration concepts with some DB2 content

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A table called EMPLOYEE has the following columns: name, department, and phone_number. Which of the following can limit read access to the phone_number column?

  1. Using a view to access the table
  2. Using a referential constraint on the table
  3. Revoking access from the phone_number column
  4. Defining a table check constraint on the table
Question 2 Multiple Choice (Single Answer)

Target table T1 is getting deleted. Table T2 has the foreign key. We require that whenever a row from T1 is deleted, the corresponding row from T2 also be deleted. Which option can be used?

  1. ON DELETE RESTRICT
  2. ON DELETE CASCADE
  3. ON DELETE SET NULL
  4. ON DELETE CHILD
  5. ON DELETE MATCH
Question 3 Multiple Choice (Single Answer)

DB2 WITH HOLD option What does WITH HOLD option do ?

  1. forces cursor to close after commit
  2. Keeps cursor open after commit
  3. Does not allow cursor to close till all rows are fetched
  4. Locks the cursor
  5. None of the above
Question 4 Multiple Choice (Single Answer)

The tables can be combined together in SQL using the concept of

  1. Normalization
  2. Indexing
  3. Sequence
  4. Join
Question 5 Multiple Choice (Single Answer)

If the value is null in order to place a value in it the function used is

  1. Substitute( )
  2. Place value ( )
  3. NVL ( )
  4. Place( )
Question 6 Multiple Choice (Single Answer)

Which of the following joins is possible in SQL

  1. EQUI-JOIN
  2. NON EQUI-JOIN
  3. Both A. and B.
  4. None of the Above
Question 7 Multiple Choice (Single Answer)

Unique numbers can be assigned to columns in a database using

  1. Clusters
  2. Synonym
  3. Views
  4. Sequences
Question 8 Multiple Choice (Single Answer)

A table T1 having 100 rows is joined with a table T2 with 50 rows without specifying the joined column in the where clause then result will have

  1. 100 rows
  2. 50 rows
  3. 150 rows
  4. 5000 rows
Question 9 Multiple Choice (Single Answer)

Which of the following is FALSE about a ALTER TABLE command of SQL?

  1. ALTER TABLE command is used to create a table
  2. ALTER TABLE command is used to change the column elements in a table
  3. ALTER TABLE command is used to delete a table
  4. Both A. and C.
Question 10 Multiple Choice (Single Answer)

Which one of the following does not help to maintain referential integrity?

  1. Unique constraints
  2. Primary keys
  3. Cascading actions
  4. Foreign keys
Question 11 Multiple Choice (Single Answer)

What are the memory structures used to handle multiple row selections at a time

  1. Cursors
  2. Host Variables
  3. Indicator Variable
  4. SQLCA
Question 12 Multiple Choice (Single Answer)

A control file contain information about

  1. Control file
  2. Redo Logfile and datafile
  3. Database
  4. Current SCN Number
  5. All of the above
Question 13 Multiple Choice (Single Answer)

Log switch is

  1. It is the point at which ORACLE starts writing to one online redo log file and begins writing to another at same time
  2. It is the point at which ORACLE ends writing to one online redo log file and begins writing to another
  3. It is the point at which ORACLE starts writing to one online redo log file and ends writing to another
  4. It is the point at which ORACLE ends writing to one online redo log file and starts writing to another
Question 14 Multiple Choice (Single Answer)

Which memory area is used to cache the data dictionary information?

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

Which statement represents a default characteristic of the database if a database is created using the database creation assistant?

  1. To access the HR user account, the account should be unlocked first
  2. All accounts created by the Database Creation Assistant are locked
  3. The SYS and SYSTEM accounts use the same default password as in previous Oracle versions
  4. All accounts created by the Database Creation Assistant initially have expired passwords
Question 16 Multiple Choice (Single Answer)

What is a cluster Key

  1. The related columns of the tables are called the cluster key. The cluster key is indexed using a cluster index and its value is stored only once for multiple tables in the cluster.
  2. The related columns of the tables are called the cluster key. The cluster key is indexed using a b+ tree index and its value is stored only once for multiple tables in the cluster.
  3. The related columns of the tables are called the cluster key. The cluster key is indexed using a bitmap index and its value is stored only once for multiple tables in the cluster.
  4. The related columns of the tables are called the cluster key. The cluster key is indexed using a range index and its value is stored only once for multiple tables in the cluster.
Question 17 Multiple Choice (Single Answer)

What is Privilidge auditing

  1. It is the auditing of the use of normal system privileges with regard to specifically named objects
  2. It is the auditing of the use of powerful system privileges without regard to specifically named objects
  3. It is the auditing of the use of powerful system privileges with regard to specifically named objects
  4. None of these
Question 18 Multiple Choice (Single Answer)

What is a Two-Phase Commit

  1. Two-phase commit is mechanism that guarantees a distributed transaction that always commits on all involved nodes to maintain data consistency across the global distributed database.
  2. Two-phase commit is mechanism that guarantees a distributed transaction either commits on all involved nodes or rolls back on all involved nodes to maintain data consistency across the global distributed database. It has two phase, a Prepare Phase and a C
  3. Two-phase commit is mechanism that guarantees a distributed transaction that always rollback on all involved nodes to maintain data consistency across the global distributed database.
  4. Two-phase commit is mechanism that guarantees a distributed transaction that always commit on all involved nodes to maintain data consistency across the global heirarchical database.
Question 19 Multiple Choice (Single Answer)

When attempting to connect to an instance that is down, which Oracle Net feature or component facilitates automatic connect-time fail-over to another instance for the user?

  1. Heterogeneous Services
  2. Oracle Connection Manager
  3. Dynamic Service Registration
  4. Oracle Names Server
Question 20 Multiple Choice (Single Answer)

Which type of view is implemented as a subquery embedded in the FROM clause of a SELECT statement and is identified by an alias?

  1. Inline
  2. Simple
  3. Complex
  4. Nested