Tag: databases

Questions Related to databases

What is the default mode for arguments in stored procedure?

  1. IN

  2. OUT

  3. IN OUT

  4. OUT IN


Correct Option: A

DDL statements are allowed in the database triggers

  1. True

  2. False


Correct Option: B

An application developer has written a database package for an Order Entry application using SQL Plus editor. While compiling the package, he receives errors. What will be the next step to troubleshoot the error?

  1. Execute the command FIX ERROR

  2. Execute the command SHOW ERROR

  3. Execute the command TROUBLESHOOT ERROR

  4. Execute the command INVESTIGATE ERROR

  5. Execute the command ANALYZE ERROR


Correct Option: B

RAISE_APPLICATION_ERROR procedure can be used ONLY in database triggers to handle user defined exceptions

  1. True

  2. False


Correct Option: B

A database TRIGGER is made up of ... Choose all that apply

  1. TRIGGER SPECIFICATION

  2. TRIGGER EVENT

  3. TRIGGER TYPE

  4. TRIGGER BODY

  5. TRIGGER RESTRICTION

  6. TRIGGER ACTION


Correct Option: B,C,E,F

A database TRIGGER in DISABLED state won't execute the TRIGGER ACTION

  1. True

  2. False


Correct Option: A

An application developer has written an AFTER STATEMENT trigger for UPDATE event on the ORDERS table of ORDER ENTRY application. The trigger saves the details of the user performing the update, system date, number of records updated to the AUDIT table. User, ERIC accesses ORDER ENTRY application and submits an UPDATE on ORDERS table through a batch job. However, the update statement affects ZERO records from ORDERS table. What is true in the context of the database trigger being written?

  1. Database Trigger will NOT fire at all as number of records updated are ZERO. However, batch job will run through successfully.

  2. Database Trigger will fire only ONCE and will save details viz. "ERIC", "SYSDATE" and "0" to the AUDIT table. The batch job will run through successfully.

  3. Database Trigger will return an ERROR and abort the batch job

  4. Database Trigger will return an ERROR. However, batch job will run through successfully


Correct Option: B

Identify 3 parent partitioning schemes.

  1. RANGE

  2. INTERVAL

  3. LIST

  4. HASH

  5. VIRTUAL

  6. REFERENCE


Correct Option: A,C,D

An application architect is considering to redesign ORDERS table of an ORDER ENTRY application using partitioning. He's NOT very sure about the usage of ORDERS table from end user perspective. However, he wants to distribute the data equally across all table partitions. Which partitioning scheme is his obvious choice?

  1. RANGE

  2. HASH

  3. LIST

  4. INTERVAL


Correct Option: B