-
When use Before and After Trigger?
When use Before and After Trigger? Please any help for this one
-
-
Recursive function
What is recursive function, explain with example?
-
Moving data from 1 table to Another
How can you move the entire data from one table to another? If in same instance and in different instances, both cases?
-
How do you optimise your pl/sql code?
How to optimise your pl/sql code? Not using explain plan which is for tuning the quey
-
Triggering events in oracle
A table has both before insert and after insert trigger. Also we have declared both the trigger as pragma autonomous transaction for saving the error record alone in the error table if any exception occurs. Now if we have a error in the trigger will the before insert trigger will get executed and the error data will be stored in the error table?. what is the exact use of before and after insert trigger...
-
Define a RETURN statement
Is it possible to define a RETURN statement in the exception part of a function?
Explain it with example. -
Table Name and Trigger Name
Can we keep trigger name same as table name? Explain
-
Check Query Performance
How will you check performance of the query, if the query was running earlier but today its taking time to run?
-
Nested Procedures
Can we use nested procedures? What is the limit?
-
Oracle PL/SQL Private Procedure
What is Private Procedure in Oracle PL/SQL?
-
Hidden Package
How can we hide a package from other users?
-
Find the Impact for Procedure Change
How do you find the impact for the change and how to find the tables which are connected to this procedure or package?
-
Performance Issue: Gathering Statistics- dbms_stats
What are the advantages of Gathering Statistics?
-
Procedure Vs Function
Explain when do we use a Procedure and when do we prefer using functions.
-
What are the datatypes a available in PL/SQL ?
Some scalar data types such as NUMBER, VARCHAR2, DATE, CHAR, LONG, BOOLEAN.Some composite data types such as RECORD & TABLE.
-
-
Write the order of precedence for validation of a column in a table ?
I. done using Database triggers. ii. done using Integarity Constraints. I & ii. Exception :
-
What are the return values of functions SQLCODE and SQLERRM ?
SQLCODE returns the latest code of the error that has occurred.SQLERRM returns the relevant error message of the SQLCODE.
-
Explain how procedures and functions are called in a PL/SQL block ?
Function is called as part of an expression. sal := calculate_sal ('a822'); procedure is called as a PL/SQL statement calculate_bonus ('A822');
PL/SQL Interview Questions
Ans