GeekInterview.com
Series: Subject: Topic:

PL/SQL Interview Questions

Showing Questions 261 - 279 of 279 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

What are the restrictions on cursor variables?Thanks ramki, hyd, tcs

Asked By: RamaKrishna.Yerra,TCS,Hyd,9989018508 | Asked On: Aug 17th, 2006

Answered by: Ashwini on: Dec 23rd, 2006

Cursor Variable RestrictionsCursor variables are subject to the following restrictions; Oracle may remove some of these in future releases. Cursor variables cannot be declared in a package since they ...

Answered by: rashid on: Sep 20th, 2006

hi friend

cursor variable can't use with dynamic sql.

cursor variable can't use with in package because it is not having persistent state.

nulls can't assinged to cursor variable.

remote procedure can't accept cursor variable

How can I create a new table by using other two table's values.

Asked By: Anish | Asked On: Sep 28th, 2006

Answered by: rampratap409 on: Dec 9th, 2006

create table new_employees

as (select e.employee_id, e.first_name, e.last_name, d.department_name, d.department_id,
c.location_id, c.city from employees e, departments d, locations c
where e.department_id = d.department_id
and d.location_id = c.location_id
);

Answered by: Shree on: Oct 11th, 2006

create table table_name as( select tab1.column1,tab1.column2,tab2.column3 from table_name tab1,table_name2 tab2 where tab1.colum1=tab2.column4);

How to disable multiple triggers of a table at at a time?

Asked By: shavali | Asked On: Aug 11th, 2006

Answered by: Raghavendra on: Nov 19th, 2006

Alter table

disable all trigger;

Answered by: Brijesh Mishra on: Oct 9th, 2006

SQL> Spool c:tempdisable_all_trigger

SQL> Select 'ALTER TRIGGER '|| trigger_name ||' disable;' from user_triggers;

SQL> spool off

after that open file disable_all_trigger.lst and remove header part and save file.

SQL>@c:tempdisable_all_trigger.lst

Can I change the elements of listitems at runtimes?

Asked By: jagannath kar | Asked On: Oct 17th, 2006

Answered by: youranjani on: Oct 26th, 2006

Hi.. We can change the elements of listitems at runtime with the help of Record Group

Give the structure of the function ?

Asked By: Interview Candidate | Asked On: Sep 9th, 2004

       function name (argument list .....) return datatype is     local variable declarations     begin          executable statements     exception         ...

Answered by: bavani on: Oct 23rd, 2006

create or replace function function_name(formal parameters list with only IN mode)

return datatype

is

local variable declarations

begin

 executable statments;

 return value;

end function_name;

What is the difference between a reference cursor and normal cursor ?

Asked By: Shweta_faqs | Asked On: Feb 9th, 2006

Answered by: syed_ansar on: Oct 18th, 2006

we can use Ref cursor as an IN OUT parameter .

Answered by: Nantha on: Apr 18th, 2006

Normal cursor is used to process more than one record in plsql.

Refcusor is a type which is going to hold set of records which can be sent out through the procedure or function out variables.

How to view the contents of tables created by the following procedure after the loop?Create or replace procedure a0_bulk_collect_test is type employee_mrno is table of a_registration_header.Arh_mr_num%type;...

Asked By: kameshakundy | Asked On: Jun 27th, 2006

Answered by: kamala kanta Parhi on: Oct 14th, 2006

select text from user_source

where name='procedure_name';

Answered by: D. Madhu on: Jun 29th, 2006

select * from user_objects where type='procedure' and name='function or procedure name'

What is datatype of x when we say define x in Oracle

Asked By: akash638 | Asked On: Sep 2nd, 2006

Answered by: rashid on: Sep 20th, 2006

define is use for predefine variable

its depends on user. You can use char or number

Answered by: Sachin on: Sep 5th, 2006

CHAR

How we can create a table in PL/SQL block. Insert records into it??? Is it possible by some procedure or function?? Please give example...

Asked By: Dinesh | Asked On: Aug 8th, 2006

Answered by: dineshchaini on: Sep 9th, 2006

Dear Maria...

   I traied with the DBA previlage but... again the same prob.. proc created but table is not thea... ok I tried u r proc and mail back to you...

Answered by: tdas2004 on: Sep 7th, 2006

You are right Maria Antony, but the question is, why is it not possible to create the table thru the procedure while you can create the sametable using create table SQL command.The answer is, to creat...

How to display the contents of a current record fetched in a ref cursor

Asked By: jay | Asked On: Jul 17th, 2006

Answered by: gouthami kodangal on: Aug 13th, 2006

by making use of sql%rowfound.

 

Answered by: Shiv Mangal Rahi on: Jul 25th, 2006

Hi,You could do the same as given under below for emp table.....CREATE OR REPLACE procedure procasbegindeclarev_empno emp.empno%type;v_ename emp.ename%type;cursor c_emp isselect empno,ename from emp;b...

How to handle exception in bulk collector?

Asked By: Samuel | Asked On: Jun 30th, 2006

Answered by: mariashylaja on: Aug 12th, 2006

During bulk collect you can save the exception and then you can process the exception.Look at the below given example:DECLARE TYPE NumList IS TABLE OF NUMBER; num_tab NumList := NumList(10,0,11,1...

Answered by: mariashylaja on: Aug 12th, 2006

DECLARE TYPE NumList IS TABLE OF NUMBER; num_tab NumList := NumList(10,0,11,12,30,0,20,199,2,0,9,1); errors NUMBER;BEGIN FORALL i IN num_tab.FIRST..num_tab.LAST SAVE EXCEPTIONS DELETE *...

What is the datatype of primary key?Is it binary integer..I'm not sure..1.Varchar22.Char3.Binary integer4.Number

Asked By: Nitina | Asked On: Apr 24th, 2006

Answered by: Rama Krishna on: Aug 11th, 2006

Its Binary Integer

Ramki,TCS,HYD

9989018508

Answered by: parleg on: Jul 16th, 2006

is it number or binary integer?

In a distributed database system can we execute two queries simultaneously ? Justify ?

Asked By: sushanta K. Mishra | Asked On: Jul 29th, 2006

Answered by: D. Madhusudhana Rao ( 9885626575) on: Aug 1st, 2006

Its depend upon the query. If the two queries are firing on the table it is not possible. If the queries are firing on different different tables then it is possible.

Thanks & Regards

Madhu D.

Answered by: Manoj Kumar Verma on: Aug 1st, 2006

As Distributed database system based on 2 phase commit,one query is independent of 2 nd query so of course we can run.

manoj

#1 what are the advantages and disadvantages of using PL/SQL or Java as the primary programming tool for database automation.#2 will Java replace PL/SQL?

Asked By: ana thomas | Asked On: Jul 7th, 2006

Answered by: Lingaraj RH on: Jul 12th, 2006

Internally the Oracle database supports two procedural languages, namely PL/SQL and Java. This leads to questions like "Which of the two is the best?" and "Will Oracle ever desupport PL/SQL in favour ...

What is PL/SQL tables?Is cursor variable store in PL/SQL table?

Asked By: Dolly | Asked On: Apr 19th, 2006

Answered by: sbagai2001 on: May 30th, 2006

DECLARE   TYPE EmpCurTyp IS REF CURSOR;   // Reference Cursor - weak    TYPE NumList IS TABLE OF NUMBER;  // Table of Number   TYPE NameList IS TABLE OF VA...

Answered by: manu on: May 17th, 2006

Pl/Sql Table  is  like C Array .

Cursor variable doesn't store with pl/sql Table .

IT is a pointer to cursor & it is not item, It is dynamic.

What is data concarency and consistency?

Asked By: Interview Candidate | Asked On: Sep 5th, 2005

Data concarency => means that many users can access data at the same time.Data consistency => means that each user sees a consistent view of the data, including visible changes made by the user's own transactions and transactions of other users.

Answered by: arvind kumar on: Apr 12th, 2006

types of triggers

Answered by: tm1966_muthu on: Feb 17th, 2006

Concurrency

How well can multiple sessions access the same data simultaneously

Consistency

How consistent is the view of the data between and within multiple sessions, transactions or statements

What is crosstab

Asked By: sashikanth | Asked On: Mar 2nd, 2006

Answered by: Sourabh on: Mar 4th, 2006

create table src_table(col1 varchar2(10),col2 varchar2(10),col3 varchar2(10),col4 varchar2(10),col5 varchar2(10));insert into src_table values ('A', 'B', 'C', null, null);insert into src_table values ...

Answered by: KS on: Mar 3rd, 2006

to create a result set where the rows need to be columns, or vice versa. You need to "pivot" rows into columns, or vice versa. this is where you need to look at a pivot (or crosstab) query.

Describe in brief some of the featurs of Oracle9i.What is logminer?

Asked By: Soma Bose | Asked On: Feb 9th, 2006

Answered by: tm1966_muthu on: Feb 17th, 2006

LogMiner is a powerful audit tool for Oracle databases, allowing administrators to easily locate changes in the database, enabling sophisticated data analyses, and providing undo capabilities to rollback logical data corruptions or user errors.

What happens when a package is initialized ?

Asked By: Shweta_faqs | Asked On: Jan 31st, 2006

Answered by: SANCHITA SARKAR on: Feb 2nd, 2006

when a package is initialised that is called for the first time the entire package is loaded into SGA and any variable declared in the package is initialises.

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

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.