What is the difference between the ref cursor and the sys_refcursor.

create or replace procedure GetEmployeesInDept (c sys_refcursor)

Hello


I have a query related to the above stored procedures.
When you set the cursor, we mentioned as sys_refcursor and in some US sites I saw him as a REF CURSOR as shown

create or replace procedure GetEmployeesInDept (Ref Cursor c)


Please tell me what is the difference between the ref cursor and the sys_refcursor.

http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/tuning.htm#sthref2376

Concerning

Etbin

Tags: Database

Similar Questions

  • Need the difference between strong Ref Cursor and weak Ref Cursor examples

    Oracle 9.2

    It would be great if someone can help understand the differences between
    1 Strong Ref Cursors(return type)
    and
    2. weak Ref Cursor (no return type)

    What I read is weak ref Cursor as sys_refcursor is better to use the ref Cursor, because in the case of slider strong Ref object type that will be returned must be declared in advance. It dosent make sense to me?

    I start with the examples would be appreciate for advice

    Strong Ref Cursor

    create the package str_pack
    is
    type sref_type is ref cursor return emp % rowtype;
    SVAR sref_type;
    end str_pack;

    Create procedure st_proc (eid in number, c1 on str_pack.sref_type)
    is
    Start
    Open c1 to select empno, ename, sal from emp where empno = eid;
    end;

    declare
    str_pack.sref_type C1;
    type rec is RECORD (eid, ename varchar2 number (20), number of sal);
    SheikYerbouti rec;
    Start
    st_proc(10,C1);
    loop
    When exit c1% notfound;
    Fetch c1 into SheikYerbouti.
    end loop;
    Close c1;
    end;


    There could be errors in the above example but its basically to get a better understanding.

    For weak Ref Cursor

    procedure of the child

    Create procedure child_proc (in number, c1 on sys_refcursor eid)
    is
    Start
    Open c1 to select empno, ename, sal from emp where empno = eid;
    end;

    parent process

    Create procedure parent_proc (recnum varchar2)
    is
    p_retcur sys_refcursor;
    emp_row emp % rowtype;
    Start
    child_proc (eid, p_retcur);
    loop
    extract the p_retcur in emp_row;
    dbms_output.put_line(emp_row.empno ||) e '|| emp_row. Ename | "wins". emp_row. SAL);
    end loop;
    end parent_proc;

    Concerning
    @

    Hello

    the fundamental difference is to do with the compiling and linking of runtime type that occurs.

    The he should explain a lot more detail than I could ever!
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1640161160708

    P;

  • What is the difference between Ubuntu desktop edition and server edition?

    What is the difference between ubuntu desktop edition and server edition?

    Desktop Gets the window manager and terminal server :)

  • What is the most important difference between 3D Picture control and controlling the display of Simulator

    I want to create a simulation of 3D on the front panel, and I see that we can use a 3D image control or a display of Simulator control. It seems that each of them can be used at the same position. What is the most important difference between 3D Picture control and display of Simulator?

    Hi sfh1,

    You are right, I found examples of Robotics that use 3D photo control and display Simulator control to display a scene 3D on the front panel. After further research, it seems that control the display of Simulator adds additional features compared to the 3D picture control. The control displays Simulator allows the user to right-click control during execution and change the background color, draw fashion, draw contact, view the ID of robot, display sensor data, suspension of service Simulator and reset service Simulator.

    More in depth on these options and the display of control Simulator can be found here:

    http://zone.NI.com/reference/en-XX/help/372983D-01/lvrobogsm/robo_controls_concepts/

    If you would like more information on the picture here 3D control is another resource:

    http://www.NI.com/white-paper/3170/en/#toc2

    Kind regards

  • What is the difference between HP Photo Creations and Snapfish

    I've been curious.

    What is the difference between HP Photo Creations and Snapfish?

    Hi Jeff17866. The difference between these two services are the location, accessibility and share-ability of the recorded images. Snapfish is a photo on the web edition and sharing and belonged to printing HP service. You upload your images on the Snapfish site and share with other sites (Facebook, Flickr, etc) by selecting the appropriate options. The images are then stored on the cloud, and you will be able to access it from any device with Internet access. So, if you want to easily share your photos with your friends and family around the country, Snapfish is a great tool to do. HP Photo Creations is a photo editing software that you download to your desktop. You can edit your photos and order prints just as with Snapfish, but all pictures remain on your hard drive. They can be shared by downloading files on the sites you want the images appear, but you are not able to access it on other devices. -Chauntain

  • HOW smart card smart card slots look like? What are the differences between smart card slots and cards express?

    HOW smart card smart card slots look like? What are the differences between smart card slots and cards express?

    Hi Smitty,

    Yes, so ExpressCard is an interface that has a USB port to this topic where I can plug in external devices to be attached to my computer right? I did a search on google but could not find photo Card Slot smart. I need a picture to get an idea of how look like a smart card Slot.

    Next time try BING...

    http://tinyurl.com/95rgwxw
    http://tinyurl.com/9plc7zt

    http://tinyurl.com/8h96qsr

    Scroll to the left view (image 5)

    http://support.Dell.com/support/eDOCS/systems/latd610/en/ug_en/about.htm

  • What is the difference between Windows XP Mode and Windows XP Mode "N".

    It's confusing. Why are there two downloads of Windows XP Mode? And what is the difference between XP normal Mode and XP Mode "N"?

    Thank you for your response.

    The "n" of Windows versions contain no Windows Media Player. It is the result of an agreement with the European Commission to settle the dispute of the competition.

  • What is the difference between manual (startup type) and started (status)

    What is the difference between manual (startup type) and started (status)

    If I set the automatic startup type and the State stopped, what will happen?

    It starts automatically at startup, but will not start?

    Hi zkteh,

    Please see article with some information:

    http://Windows.Microsoft.com/en-us/Windows-Vista/manage-services-in-Windows-Vista-from-Windows-Vista-inside-out

    I hope this helps!

  • What is the difference between Adobe Reader XI and Adobe Fine Reader?

    What is the difference between Adobe Reader XI and Adobe Reader.Do Fine they do the same work or accomplish different tasks?

    Hiddon icons simply shows a software that has been installed on your PC and is set to auto run at startup

    I've included this info I thought you were trying to asertain what programs may have been installed on your PC and were running in the background.

  • What is the difference between full Windows 7 and Windows 7 license generator system?

    The Windows 7 System Builder license cost about $100.00 and the full Windows 7 on $190.00.

    I am upgrading to Windows Vista 64 for Windows 7 64. It is true that I will lose everything on my drive hard because I'll need to do a clean install?

    See this thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/whats-the-difference-between-Windows-7-OEM-and/f36a2a1b-8576-E011-8dfc-68b599b31bf5

  • What is the difference between Windows 7 OEM and the retail version of Windows 7?

    Can someone tell me, what is the difference between windows 7 OEM and sales vs retail?

    On Thu, 20 Sep 2012 19:56:47 + 0000, STEVE-5 says:

    Can someone tell me, what is the difference between windows 7 OEM and sales vs retail?

    There is no difference in the product itself.

    Although if you get a generic OEM full version, it contains the
    even software, it has the following disadvantages compared to the
    commercial version:

    1. the biggest drawback of an OEM version (at least in the USA) is
    that its license it permanently binds to the first computer, it is
    installed on. He can never legally be moved to another computer, sold,
    or given (except with the original computer). If the computer
    dies or is stolen, your license dies with him.

    2. he can't do a clean install, not an upgrade.

    3 Microsoft offers no support for OEM versions. You cannot call their
    with a problem, but rather to secure the necessary support of your
    OEM; who take in charge may go anywhere between property and non-existent. Or
    You can get support elsewhere, like in these forums.
    Ken Blake, Microsoft MVP

  • Is someone can you please tell me what the "ESD" means to Acrobat Pro Win ESD XI? What is the difference between 'Acrobat Pro XI' and "Acrobat XI Pro Win ESD"?

    Is someone can you please tell me what the "ESD" means to Acrobat Pro Win ESD XI? What is the difference between 'Acrobat Pro XI' and "Acrobat XI Pro Win ESD"?

    Hi pattiparrish,

    ESD stands for electronic Software Distribution. Acrobat XI provided compact disc of thought which included installation CD, on the other hand it was also provided by ESD, which included the direct download for Acrobat link XI products download Adobe Acrobat | Standard, Pro | DC, XI, X.

    There is no difference in the application, the difference, it's just that how it is provided to the customer.

    Kind regards
    Nicos

  • What is the difference between a mixture, Fix and Express?

    I use regular PS on my computer but wanted to use a similar app on my ipad.  Then I saw that there was a choice (ahhh!)   What is the difference between a mixture, Fix and Express?

    Hi Steve!

    Thanks for reaching out.


    Difficulty: Adobe free new Photoshop Fix, capture CC apps enhance your photographs and capture assets | PCWorld

    Fixed introduced options that allow you to 'fix' and enhance your images in photo editing.

    Mix: photo and image editor app | Download Adobe Photoshop Mix

    Mix presents the composition options. This means that you can combine several images, cut out backgrounds and active layer.


    Express: Photoshop Express is like a version blocked Photoshop with an interface that looks like the desktop application.

    Thus, with respect to the app you choose, it really depends on what you would use it for. Do one of these hopeful sounds?

    Let me know!

    -Kathleen

  • What is the difference between 6.5.1 and 6.5?

    Hello

    Does anyone know what is the difference between 6.5.1 and 6.5 and the difference between 6.5 and 6.4? Thank you.

    Find out what new sections of:

    VMware vCenter Server Heartbeat 6.5 Update 1 Release Notes

    VMware vCenter Server Heartbeat 6.5 Release Notes

  • What is the difference between Adobe Photoshop Elements and Adobe first?

    What is the difference between Adobe Photoshop Elements and Adobe first and is beneficial for the program from the combination of the two?

    The first is a photo editor, and the latter is a video editor. If you like the mix of stills and video sequences or to make slideshows and DVD burning the PSE/PRE combo represents good value.

Maybe you are looking for

  • 9.3.1 battery drain

    I did the upgrade to 9.3.1 on my 5 c and can not believe that the bad battery life I get.  Never had this problem before. I even put the phone on the Mode of low when battery 100% charged and the morning with no apps open, he has already fallen to 75

  • Someone is using my Apple ID for purchased an ITunes song? What can I do?

    someone is using my apple id and bought a song on iTunes. What can I do?

  • Satellite A300 - issue Downgrade from Vista to XP

    Hi all...IM intending to get rid of my windows Vista SP2 (32 bit) and XP SP3 (32 bit). My laptop is: [Satellite A300 - 1 G 5 | http://eu.computers.toshiba-europe.com/innovation/jsp/SUPPORTSECTION/discontinuedProductPage.do?service=EU&com.broadvis ion

  • Difficulty in getting set up Hotmail on my Ipad

    My username & password work fine me into my Hotmail, but when you try to add the account to my Ipad, I get her "cannot be verified" with the same user name and password.   Can not get directly to customer service @ Windows Live or Hotmail, so don't k

  • How to backup my schedule of tasks?

    There are several tasks at the request and would like to know any approach to back it up. Is there any file, record scheduled tasks? If I can make a copy of this file as backup. It seems to me the record to schedule tasks to keep under my C: drive of