Vous êtes sur la page 1sur 17

PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.

com/Interview-Questions/Oracle/PL-SQL

Home
Interview Questions
Oracle
PL/SQL

PL/SQL Interview Questions

DEC SQL Optimization


kunalpurbey PL/SQL Interview Questions
31 How to optimize SQL Statements?
2009
Sudhir Kumar
Jan 20th, 2016
09:32 AM
Try to make use of mqts or temporary tables if possible ..try to transfer the
conditions from non key columns to key columns

4671 2 ace1234567
Views Ans Mar 4th, 2015

update the statistics of all the tables used in the query. Check the explain
plan. Check whether query is using the existing indexes. If required
add/modify new indexes. Check for the sequence of cond...

Select Best Answer Answer Question

OCT What is pragma autonomous transaction? Plz can u let me


know it in a simple understandable way.Thanks in
17 advance.Byee
2006 raj PL/SQL Interview Questions

1 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

03:30 AM sujata
Jan 19th, 2016

Pragma AUTONOMOUS_TRANSACTION instructs the compiler to treat the


PL/SQL block following the pragma as autonomous (independent) from the
29635 10
Views Ans
calling transaction. Pragma can be applied on:- 1) Anonymous PL...

kitti
Dec 19th, 2015

An autonomous transaction is an independent transaction initiated by other


transaction -When an autonomous transaction is called the parent
transaction is currently suspended. -We can commit or rollba...

Select Best Answer Answer Question

JAN Dual Table


RAJAT RAHUL PL/SQL Interview Questions
15 Is Dual Table updatable? If we update, will it impact the health of the database?
2016
sujata
Jan 19th, 2016
07:09 AM
No we cannot update dual table. It is in-built table with one row and one
column.

400 2 ratnesh
Views Ans Jan 18th, 2016

NO

Select Best Answer Answer Question

FEB What is the difference between stand alone procedures


and stored procedures?
09 madhuk17 PL/SQL Interview Questions
2007

08:23 PM

7098 4
Views Ans

2 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Praveen kumar
Jan 8th, 2016

Both are same

Naresh Bandla
Dec 1st, 2015

Stand Alone Procedure: A procedure which is not enclosed in a package is


called Stand Alone Procedure.

Stored Procedure: A Procedure which is defined in Package is called Stored


Procedure and if we want to call that procedure out of package is to use .

Select Best Answer Answer Question

DEC What is materialized view?


Mrigen PL/SQL Interview Questions
20
sachin rasal
2006
Dec 11th, 2015

Materialised view - A table on a disk that contains the result set of a query
06:13 AM
Non-materiased view - A query that pulls data from the underlying table

12401 9 Sathish
Views Ans Jun 12th, 2012

Materialized views are objects that are used in base table that can be
Summarized Group, and aggregated with the base table.This materialized
views are used in data-ware housing and decision support system.

Select Best Answer Answer Question

SEP What is difference between a PROCEDURE & FUNCTION ?


PL/SQL Interview Questions
02 A FUNCTION is always returns a value using the return statement. A PROCEDURE
2005 may return one or more values through parameters or may not return at all.

06:41 AM

189238 41
Views Ans

3 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Read Best Answer

Editorial / Best Answer


krishnaindia2007
Member Since Sep-2007 | May 3rd, 2008

1. Function is mainly used in the case where it must return a value. Where
as a procedure may or may not return a value or may return more than one
value using the OUT parameter.
Â
2. Function can be called from SQL statements where as procedure can not
be called from the sql statements

3. Functions are normally used for computations where as procedures are


normally used for executing business logic.

4. You can have DML (insert,update, delete) statements in a function. But,


you cannot call such a function in a SQL query.

5. Function returns 1 value only. Procedure can return multiple values (max
1024).

6.Stored Procedure: supports deferred name resolution. Example while


writing a stored procedure that uses table named tabl1 and tabl2 etc..but
actually not exists in database is allowed only in during creation but runtime
throws error Function wont support deferred name resolution.

7.Stored procedure returns always integer value by default zero. where as


function return type could be scalar or table or table values

8. Stored procedure is precompiled execution plan where as functions are


not.
Â
9.A procedure may modify an object where a function can only return a
value The RETURN statement immediately completes the execution of a
subprogram and returns control to the caller.
Giri
Dec 2nd, 2015

DML statement can be used in function also.

Shalini
Jul 23rd, 2014

function can be called from trigger. 1.CREATE OR REPLACE TRIGGER emp_trig


2. before INSERT ON emp 3. FOR each row 4.--referencing old as old and new
as new 5.declare 6. i pls_integer; 7.begi...

Improve Answer

4 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

13 Load excel data into oracle database


Mayur PL/SQL Interview Questions
2015
1. How to load excel data into oracle database by using sql loader?
2. What are the ways to load data from excel file in oracle database ?
03:27 AM
Naresh Bandla
Dec 1st, 2015

6062 6
You can upload the Excel file into tables by many approaches, I will explain
Views Ans
here in two methods. 1. Loading data using Loader programs: Convert your
excel file into CSV file and create control as pe...

ashay
Nov 13th, 2015

Best and most easy way is to use an external table. Keep the file in designated
location and file will automatically loaded into table every time you put a new
file or update the file. Create trigger on the given table to load the data into
respective tables.

Select Best Answer Answer Question

AUG Drop Vs Truncate


kalabaggam PL/SQL Interview Questions
19 Which is faster, Drop or Truncate? Explain
2010
anjaneulu
Nov 26th, 2015
11:36 AM
TRUNCATE means it deletes the table data but the table structure remains as
it is. Whereas in DROP command it deletes the table data as well as its
structure also.
10035 11
Views Ans subbarao
Nov 6th, 2015

I have one doubt which is one is faster some people said comp with drop
truncate very faster but some one drop very faster comp with truncate.

Select Best Answer Answer Question

DEC What is mutating trigger? How do you resolve it?If a


trigger body is trying to update dependent tables, will it
01 get a mutating error?
2006 be17be PL/SQL Interview Questions

5 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

02:31 AM Lokesh
Nov 18th, 2015

A mutating table is a table that is being modified by an UPDATE, DELETE, or


36140 13 INSERT statement. The session that issued the triggering statement cannot
Views Ans query or modify a mutating table. If you must up...

maxin john
Jun 8th, 2015

Soo...... how you are going to use that lelel trigger :O

Select Best Answer Answer Question

OCT Bulk binding


sidd_130 PL/SQL Interview Questions
06 What are the advantages of bulk binding in PL/SQL?
2012
sachin rasal
Nov 12th, 2015
12:56 PM
A new feature called "bulk binds" was added to PL/SQL back in Oracle 8i. Bulk
binds enable a PL/SQL program to fetch many rows from a cursor in one call
instead of fetching one row at a time. Bulk bin...
6554 3
Views Ans amala
Jun 24th, 2015

It retreives multiple rows with a single fetch...It increases the performance by


reducing no.of context switches

Select Best Answer Answer Question

FEB What is cursor? Explain the types of cursor and write one
implicit cursor program to check how many records
07 deleted from table?
2006 indranil PL/SQL Interview Questions

06:21 AM

46864 12
Views Ans

6 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

gagan
Nov 9th, 2015

Oracle uses the work area for its internal processing in order to execute a
SQL statement is known as a cursor.

shivigupta
Oct 4th, 2012

Set serveroutput on;


begin
delete from employ where empid = 1;
commit;
dbms_output.put_line(NO of records deleted||sql%rowcount);
end;

Select Best Answer Answer Question

MAR How do you change oracle default system date like


mon-dd-yyyy
07 Nagendar PL/SQL Interview Questions
2015
Ram Devineni
Nov 3rd, 2015
03:58 AM
Alter session set nls_date_format=mon-dd-yyyy hh:mi:ss
/

5040 4
Purvesh Khanna
Views Ans
May 5th, 2015

If you are using sql developer then go to Tools ->> Preference ->> Database
->> NLS -->> Date Format.
Send the format as you want.

Select Best Answer Answer Question

MAR How many number of triggers can be created on a table?


vivek PL/SQL Interview Questions
08
2006

05:09 AM

7 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Ram
9914 15 Oct 29th, 2015

Views Ans You can create n number of triggers on a table but maximum types of triggers
you can create are 12.

Ratnesh gupta
Apr 2nd, 2015

There is no technical limit on the number of triggers you define (or, at least,
not one that any rational person has ever hit). It generally wouldnt make
sense to have more than one trigger of a given...

Select Best Answer Answer Question

NOV What is meant by DBMS_OUTPUT.PUT_LINE


maheshwari PL/SQL Interview Questions
07
hardeep singh
2005
Oct 16th, 2015

The (dbms_output) is library and the (put_line) is the function declared inside
02:01 AM
library

aravinthancse
8358 13 Dec 27th, 2011
Views Ans
DBMS_OUTPUT - is a Oracle supplied package. put_line() is a DBMS_OUTPUT
packages inbuilt procedure. put_line() is a combination of two inbuilt
procedures such as put() and new_line(). procedure put()...

Select Best Answer Answer Question

NOV What is difference in defining constraints at table level


and column level What is main purpose of making
05 constraints at table level....pls ans me
2006 basukolur014 PL/SQL Interview Questions

01:11 AM

7398 11
Views Ans

8 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Saurabh Singh
Oct 12th, 2015

Table level constraints are defined for compound constraints like primary key
involving more than one col and have the flexibility to provide user defined
names to these which is not possible in case of col level constraints. Only
NOTNULL constraints cant be defined as table level.

krishna mistry
Oct 10th, 2015

No difference in column level and table level constraints.

Select Best Answer Answer Question

SEP Load Tab Delimited Data


ramesh.akula9 PL/SQL Interview Questions
05 How to load tab delimited data using SQL*Loader?
2008
bhargavi
Oct 3rd, 2015
05:46 AM
For Tab delimiter You can use 0x 09

gaurav
3977 3 Sep 26th, 2015
Views Ans
Fields Terminated by X09 use this

Select Best Answer Answer Question

DEC Trigger - insert into one table update into another table
Revathi PL/SQL Interview Questions
08 If i insert record in table A and these record should update in table B by using Trigger.How
2014 to achieve this.
Trigger - insert into one table update into another table

06:46 AM

6531 4
Views Ans

9 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Nagendra
Sep 10th, 2015

"sql CREATE TRIGGER update_trigger ON CUSTOMER_info FOR update AS


BEGIN IF UPDATE (cust_name) OR UPDATE (contact) BEGIN INSERT INTO
update_log ( cus...

Avinash
Aug 10th, 2015

We can use instead of trigger in this case

Select Best Answer Answer Question

APR Types of Triggers in Oracle


GIRISH H.R. PL/SQL Interview Questions
26
sai balaji
2006
Sep 8th, 2015

Basically we have 13 types of triggers. 1.Row level triggers (6 types)


12:38 AM
2.Statement level triggers (6 types) 3.Instead of trigger Row Level Triggers:
before insert on each row before update on each r...

22054 12 mahamadalig
Views Ans Apr 17th, 2012

Before trigger
after trigger
row level trigger
statement level trigger

Select Best Answer Answer Question

AUG PL/SQL Triggers


wajid PL/SQL Interview Questions
11 How many types of PL/SQL Triggers are there? What are they?
2015

01:28 PM

3055 1
Views Ans

10 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

sravanthi
Aug 13th, 2015

There are two different types of triggers: - Application Triggers - Database


Triggers An application trigger fires whenever an event occurs within a
particular application. A database trigger fire...

Select Best Answer Answer Question

AUG How to tune package, how can we see the output, which
logic taking more time to execute?
06 SHikha PL/SQL Interview Questions
2015
Anjani Kumar
Aug 9th, 2015
08:27 AM
We can use oracle supplied package DBMS_HPROF(New in 11g) to see which
procedure and inside that which sql is taking taking more time to
execute.DBMS_HPROF Package profiles subprogram calls also with ...
2900 1
Views Ans
Select Best Answer Answer Question

Showing Questions 1 - 20 of 511 Questions First | Prev | Next | Last Page

Sort by: Answers | Date Jump to Page: 1

HAVE INTERVIEW QUESTION?


Please select the most appropriate category and mention a brief question title along with clear question details.

Ask Question
Login to Ask Question or Register your free account

Name: Email:

Category : Sub Category :


Select Category

Question Title:

Question in Detail :

11 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Job Role (Optional) : Company (Optional) :


Select Job Role Select Company

Optional Features

Subscribe to GeekInterview Newsletter


Yes, Subscribe me to Interview & Career Tips

Send Reset

SPONSORED LINKS

SUBSCRIBE TO RSS FEED

Subscribe

RANDOM QUESTIONS
People management
How people management is achieved using
Oracle HRMS?
Asked by: vijay1136

What is metastage?
Asked by: Interview Candidate
SOCIAL NETWORKS

Explain the designing of distillation column


FANS FOLLOWERS
Asked by: narender sharma

How to reverse given string without using


built in functions?
FOLLOWERS
Asked by: Laxminarayan SUBSCRIBE
TO RSS FEED
What are skills required for business analyst?
Asked by: b_gopinath
SPONSORED LINKS

12 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

TAGS CLOUD
Company Interviews
Accenture (52) Dell (22)
Aptitude Aptitude
Interview Interview
Questions Questions
Group GE (2)
Discussions Placement
Topics Assistance
Placement HAL (1)
Assistance Placement
Adobe (7) Assistance
Placement Infosys (212)
Assistance Challenging
AMD (1) Puzzles
Placement ISRO (6)
Assistance Placement
AMDOC (2) Assistance
Placement Mphasis (1)
Assistance Placement
Axes-Technologies Assistance
(25) Oracle (206)
Computer Aptitude
Awareness Interview
Questions Questions
Aztec-Systems (15) Java Interview
Aptitude Questions
Interview SQL Interview
Questions Questions
C Interview Sonata (65)
Questions Analytical
BirlaSoft (26) Ability
Languages Interview
Interview Questions
Questions C Interview
OPEN QUESTIONS ANSWERED
Cisco (35) Questions
Micro TCS (396) How to dump rest webservice data into
Processor Aptitude
Oracle 11g
Interview Interview
Asked by: Suparna
Questions Questions
Cognizant (1) C FAQs
Placement COBOL Call fieldcontrols
Assistance Interview How can we call fieldcontrols in PL/SQL
Wipro (217) Questions programming?
Analytical Critical Asked by: jalaramaiah_k
Ability Reasoning
Interview Questions
Questions Quantitative
Languages Aptitude
Interview Questions
Questions
Verbal Ability

13 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Questions Call soap web service from PL/SQL


How a SOAP web service can be called
from PL/SQL block?How can we handle the
INTERVIEW QUESTIONS PDF FILES result set returned by the SOAP service?
Asked by: psingla

Better tunning PL/SQL blocks


What steps should a programmer should
follow for better tunning of the PL/SQL
blocks?
Asked by: jkverma29

Set time for job


How to set time in pl/sql(Toad) JOB
Asked by: prashantjadhav5000

Nested tables
How do you create nested tables?
Asked by: jannaat

PL/SQL coding help


User Interface accepts the Employee
information and this data needs to be
compared with the existing data and the
differences needs to be populated
through...
Asked by: kshasikumar

For each hour, list the number of called,


total transactions' values, and total
duration.
For each hour, list the number of called,
total transactions' values, and total
duration?if you have these tables:1-
'calls'columns: called_number,
Customer_ID,...
Asked by: mnmlove

How can I use the bind variable in a


report to create an output file. For
example I give the starting date and end
date. I would like to get the report...
Asked by: sk

How to export SQL XML using SQL or


PL/SQL or dynamic SQL for Oracle data
from Oracle database.

14 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

For example: I have 100's of tables and I


need to take the data from database and
export as a xml file.
Asked by: jakilati

Display the rank in asending &


descending order for salary column
Can anybody solve this interview question
in DataStage? My input is: EMPNO,
DEPTNO, SALARY 1 A 100 2 A 4000 3...
Asked by: sai3689

40 ibm Oracle DBA interview questions


1) How to install patches? And what are
pre-requsites? 2) How to upgrade 10.2.0.1
to 10.2.0.4 AND 11.2.0.1 to 11.2.0.3 and
10.2.0.4 to 11.2.0.1? 3) How...
Asked by: lingaiah

Executed all test cases and no bugs


found ?
You Executed all test cases and no bugs
found who you measure that you have
done good quality of testing. This question
ask during interview. Is this means...
Asked by: Usha

Pressure purging
Hi please i need some help here i want to
ask a few questions about pressure purge
method used for inert a vessel: 1-Does The
Material/ Gas inside the...
Asked by: Mbahaa

Can someone help me with these


following interview questions with real
time work experiences??
1)Could you tell me two things you did in
your previous assignment (QA/Testing
related hopefully) that you are proud of? 2)
What problems did you face...
Asked by: nishi Khan

15 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Post interview assignment


Hi Guys, Hope you guys are well. I have just
finished my Bachelor Degree in IT last year.
I went to a job interview this afternoon and
I would like to...
Asked by: subtle

Differences between a windows


application and a web based
application?
I was asked in an interview a simple
question which I actually failed to answer.
The question is "What are 5 differences
between web based application...
Asked by: vishal21283

How many bytes occupied following


comp example?
Dear Friends, This is regarding COBOL
comp. PIC X(3) occupy the 3 bytes... but PIC
9(3)V9(7) COMP occupied how much bytes?
I said in interview that...
Asked by: Josephvincent2014

Ensuring quality of a product


I have recently been to an interview where
the interviewer asked me this As a test
lead, how will you ensure that your team
has tested whole application...
Asked by: vishal21283

Positive and negative test cases


I was asked this question in a interview.
Write all positive and negative test cases
for user_name field in login form. the user
name can accept only alphanumeric...
Asked by: pritam_parashar

INTERVIEW & CAREER TIPS

Get invaluable Interview and Career Tips delivered


directly to your inbox. Get your news alert set up today,
Once you confirm your Email subscription, you will be
able to download Job Inteview Questions Ebook . Please
contact me if you there is any issue with the download.

Subscribe

16 of 17 2/1/2016 7:20 PM
PL/SQL Interview Questions | GeekInterview.com http://www.geekinterview.com/Interview-Questions/Oracle/PL-SQL

Follow @geekinterview

TAGS RANDOM QUESTION


○ Accenture ○ Wipro ○ AMD ○ AMDOC
⋆ Once there came many birds to a pond
○ Axes-Technologies ○ Aztec-Systems ○ BirlaSoft ⋆ What is the way to add the total number
of records that have been read from SRC
○ Cisco ○ Cognizant ○ Dell ○ GE ○ HAL
in the TGT file as last line?
○ Infosys ○ ISRO ○ TCS ○ Sonata ○ Adobe ⋆ Bulk binding
○ Oracle ○ Mphasis ⋆
⋆ What is the difference between testing
and debugging?

QUESTION OF THE DAY CONTACT US


Geekinterview.com
248 Millington Road
Cortlandt Manor
New York 10567

About US Privacy Policy Terms & Conditions © Copyright 2014 GeekInterview.com | All Rights Reserved
DMCA Contact Us
?>

17 of 17 2/1/2016 7:20 PM

Vous aimerez peut-être aussi