What is REF Cursor?
Answers were Sorted based on User's Feedback
Answer / dyna
Ref cursor is a kind of cursor that allows dynamic data
manipulation
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / vivekananda
It is used to return a recordset from a stored procedure.
There are two types of REF-CURSORS.
One is STRONG REF-CUSROR.
Another is WEAK REF-CUURSOR.
For the STRONG REF-CUSROR, the returning columns with
datatype and length need to be known at compile time.
For the WEAK REF-CUURSOR, no need to be known at compile
time.
Eg:
type STRONG_REF_CURSOR is REF CURSOR return EMP%ROWTYPE;
type WEAK_REF_CURSOR is REF CURSOR;
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / suresh
Ref cursor is a dynamic cursor. it will open more then one active set area.we two types of ref cursors.
1.strong ref cursor-with return type.
2.weak ref cursor- with out return type.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sirisha
Reference cursors donot have a select statement when it is
declared. It is associated with the select statement at a
later stage. These are used when we want to process large
queries
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dinesh
ref is a cursor.it is used to database and data structure
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / swati
jo cursor har baar, baar baar aur lagatar use hota hai use
ref cursor kahte hai...........
so simple it is.........
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / cyril mathew
A REF CURSOR is basically a data type. A variable created
based on such a data type is generally called a cursor
variable. A cursor variable can be associated with
different queries at run-time.
type r_cursor is REF CURSOR;
c_emp r_cursor;
en emp.ename%type;
begin
open c_emp for select ename from emp;
loop
fetch c_emp into en;
exit when c_emp%notfound;
dbms_output.put_line(en);
end loop;
close c_emp;
end;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / raina
here you r with ur answer refcursor is a pointer which
points to the o/p of ur cursor the moment u close ur cursor
it becomes invalid .the diff b/w ref cursor n cursor is that
u can asssingn multiple quries to ur ref cursor but with ur
normal cursor ur query is static
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / vidyasagar
Ref Cursor is a cursor which is used to process bulk no. of
statements. And it uses the anonymous table space in the
database
| Is This Answer Correct ? | 38 Yes | 42 No |
what is mean by confine mode and flexi mode?
where do u specify in org_id?
in procedure how to return a value
what is the use of anchors?
I want to print output in portrait style?where i have to change the settings?
What are the Import Programs We need to run after creating Interface table for all modules
Difference between triggers and procedures?
in order to run utl_file package we need to give any specific path? if yes what is that?where u will run utl_package?
what is mutating table and mutating error and how to solve that?
explain registration steps of a concurrent program.
1—how we can create multi reports in xml publishers Ans: 2—how to print multi currency,multi language in xml 3—what are the validations in sql*loader 4—where u can get data file 5—where u r putting control file and where the bad file discard file generated 6—how to print external date in xmlp 7—in data file fields terminated by different sybals how you can write code in ctrl file 8—how to use date function in sql*loader 9—which path u have used in sql*loader 10—what are utl file triggers 11—where u can find errorbuf ret code 12 how we can know weather procedure is successfully executed from backend 13—data file contains how many levels 14—what kind of errors u got in discard file 15—how you can skip the records in thr middle of data file and end of data file 16—invoice created and send to the gl but we don’t know the invoice number how we can know 17—where u devlop interface program local syst or server system 18—how we can know how many receipts are created for a po 19—after completion of po interface into base table how we can see etair line header info in single table. 20—how to save a workflow in database in short cut? Can we delete workflow how 21—what are the common errors in workflow 22—strong cursor and weak cursor 23—what is external table where we will use 24—we have 50 record while printing in rdf report we have print 10 records per page how u can do 25—what is the difference between workflow and oracle alert 26—hot to implement muli org in interface approach 27—while loading records if the records no>=10 then all the records should be discarder,then error message populated how you can achieve 28—while picking the sales aorder qty is there in shipping there is no qty then what u will you will do 29—what is the next step after back order 30—if we do any modification in po_headers_v is it effects the base tables 31—what is tca architecture 32—where we can see the invoice payment 33—when selection existing customer in om what you will do 34—how to pass the values for the variables in api. 35—can we use look up values instead of profile options. 35—how to create ldt lct files? 36—how to tranfor on file from one instance to another instance?
while running a interface if we get 100 records as erors. how to debug it.