Oracle Database and PL/SQL Fundamentals

Test your knowledge of Oracle database concepts including SQL operations, SQL Loader data import, PL/SQL programming, and database object management

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

There are 2 schemas – S1 and S2 in a database. S1 has a table T1 in it. S2 don’t have any privileges on objects of S1. A synonym SYN_T1 is created in the schema S2 for S1.T1 and select privilege is granted to S2 on the synonym. Now, the newly created synonym is dropped. What will be the output of the following query executed from S2: Select * from S1.T1

  1. Error - Table or view does not exist
  2. Error - Synonym translation is invalid
  3. Output – all the rows of S1.T1
  4. Output – no rows retrieved
Question 2 Multiple Choice (Multiple Answers)

What are the data base objects for which you can create synonyms?

  1. Table
  2. View
  3. Procedure
  4. Package
  5. Another Synonym
  6. Sequence
Question 3 Multiple Choice (Single Answer)

Which table is used to identify the changes made to objects

  1. V$Session
  2. USER_CHANGES
  3. USER_OBJECTS
  4. USER_TRACKER
Question 4 Multiple Choice (Single Answer)

There are 2 schemas – S1 and S2 in a database. S1 has a table T1 in it. The following command is executed from the DBA user: Create public synonym S2.SYN_T1 for S1.T1 What will be the result?

  1. Public synonym will be created
  2. Only a private synonym will be created
  3. Error
  4. Public synonym will be created, but accessible only from S2
Question 5 True/False

PL/SQL and Java can be used to create Oracle stored procedures and triggers

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

How to protect PL/SQL code?

  1. Cant protect the code
  2. Third party utilities
  3. Binary wrapper utility
  4. Only DBA's are allowed to protect
Question 7 Multiple Choice (Single Answer)

Limitation for level of label Nesting in a PL/SQL program

  1. No limitations
  2. 89
  3. 76
  4. 98
Question 8 Multiple Choice (Single Answer)

Limitation for level of Subquery Nesting in a PL/SQL program

  1. No limitations
  2. 542
  3. 254
  4. 245
Question 9 Multiple Choice (Single Answer)

Limitation for level of nesting in a PL/SQL program

  1. 10
  2. 32
  3. 23
  4. No limitations
Question 10 Multiple Choice (Single Answer)

Limitation for level of blocks in a PL/SQL program

  1. 125
  2. No limitation
  3. 255
  4. 55
Question 11 True/False

Does PL/SQL supports executing operating system commands?

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

Which command is used to write information to an output buffer?

  1. SET OUTPUT ON
  2. SET BUFFEROUTPUT ON
  3. SET SERVEROUTPUT ON
  4. SET SCREEN ON
Question 13 Multiple Choice (Single Answer)

Command used to import the data from flat files?

  1. imp
  2. sqlloader
  3. sqlldr
  4. exp
Question 14 True/False

Whether SQL has unloader facility to unload the data?

  1. True
  2. False
Question 15 True/False

Can SQL loader handle EBCDIC data?

  1. True
  2. False
Question 16 True/False

SQL loader can load images, sound clips and documents

  1. True
  2. False
Question 17 Multiple Choice (Multiple Answers)

Which are the commands used to improve the performance of loader

  1. direct=true
  2. command
  3. indexes
  4. constraints
  5. running multiple load jobs
  6. fast=true
Question 18 Multiple Choice (Multiple Answers)

Which are all true in loading multi-line records?

  1. Specifying carriage return statement in control file
  2. Position based loading
  3. Sperators as comments in the source file
  4. Carriage return
Question 19 Multiple Choice (Multiple Answers)

What are the Capabilities of SELECT Statement?

  1. Selection
  2. Projection
  3. Joining
  4. None of these
Question 20 Multiple Choice (Single Answer)

To join n tables together, you need a minimum of ________ join conditions

  1. N-2
  2. N
  3. N-1
  4. None of these