You are on page 1of 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

icreative
1.update all tables of column col in all table which starts from abc_ at a time
2.insert using refcursrs
3.outer join complex query
4.deprt wise sum of sal

1.if record is having the value which cant fetch will bulk collect continue their
process??

HCL
1.can we use Clob in PLSQL?
2.can we complie the proc or function in the package body without using in spec?
3.how many colums can we create in a table?
4.disadvantages of packages?
5.unique n primary key?
6.execute o/p like x,y,z?

7.(**)update a column of a table without using where clause?

oracle

1. why and what is ur project?

matrix stream

1.generate 1 to 10 without using rownum?

select level
from dual
connect by level <= 10;

2.(**)get o/p like


1/jan/2011 to 31/dec 2011
1/jan/2012 to 31/dec/2012
1/jan/2013 to 31/dec/2013

select to_date('01-01-201'||level,'dd-mm-yyyy') || ' to ' || to_date('31-12-201'||


level,'dd-mm-yyyy') as dr
from dual
connect by level <= 3;

You might also like