0% found this document useful (0 votes)
95 views

Oracle SQL/PLSQL Client Interview Questions

The document contains a list of questions asked during a client interview that cover various Oracle PL/SQL topics including: 1) Cursors and their attributes, updating records with cursors, and ref cursors. 2) Using default parameter values when calling procedures. 3) Exceptions like TOO_MANY_ROWS, NO_DATA_FOUND, and OTHERS. 4) Differences between anonymous and stored procedures and how to execute anonymous procedures. 5) Collections, bulk collections, and the FORALL statement. 6) Database objects like primary keys, constraints, synonyms, and default permissions. 7) Impacts of truncating primary key columns.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views

Oracle SQL/PLSQL Client Interview Questions

The document contains a list of questions asked during a client interview that cover various Oracle PL/SQL topics including: 1) Cursors and their attributes, updating records with cursors, and ref cursors. 2) Using default parameter values when calling procedures. 3) Exceptions like TOO_MANY_ROWS, NO_DATA_FOUND, and OTHERS. 4) Differences between anonymous and stored procedures and how to execute anonymous procedures. 5) Collections, bulk collections, and the FORALL statement. 6) Database objects like primary keys, constraints, synonyms, and default permissions. 7) Impacts of truncating primary key columns.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Below are the few questions which were asked during my client interview.

� Mention different types of cursor and there attributes


� What is the value of cursor attribute ROWCOUNT after updating 20 records
� What is strongly and weekly types ref cursors
� How we define ref cursors
� What is purpose of using No-Copy
� Do we need maintain series of parameter passed to procedure
� How to pass the default value for input parameters while calling from
another procedure

o Ex: Procedure p1 and Procedure p2 (Input Para1, Input Para2, Output Para3). The
default value of Para1 is 10.
Procedure p2 needs to be called from Procedure P1. The default value needs be used
for Para1.
� What is the output of below code:
o DECLARE
LC_TEST VARCHAR2(3) := �abcd�
BEGIN
EXCEPTION
END
If an exception occurs, what is the name of exception and how to
overcome this exception

� What is difference between anonymous and stored procedure. And how to


execute anonymous procedures.

� Explain Raise, Raise Application error and Pragma Exception Init. How
they work and when they are used.

� What is the output of below code:


o DECLARE
BEGIN
EXCEPTION
When Too_Many_Rows
Message1
When No_Data_found
Message2
When Too_Many_Rows
Message3
END
Whether the error is reported?
If no error is reported which message is displayed?

� What is output of below code:


o DECLARE
BEGIN
EXCEPTION
When Others
Message1
When No_Data_found
Message2
END
� What are collections and different types collections
� What are different method used with collections. How delete method will
work in each collections
� What are different types of bulk collections [bulk fetch, bulk collect
and forall]. Explain forall
� What are different types of Background process available and explain each
processes
� How to create primary key after creating the table.
� In which DB object we can check the constraints name and which table the
constraint is for
� What is private and public synonym
� What is AuthID
� What are default permissions for table and procedure

� A table with primary key of format varchar2(30) is created and huge data
is available in it. The field is truncated to format varchar2(20). What will be the
affect.

� Need to have knowledge of important DB Objects.

�Types of index
�Normalizations
�Bulk loading exceptions

You might also like