2 refcursors within the same procedure using

Hello
Can we use 2 refcursors within the same procedure. This may seem strange. But I have a script to do so - one to dynamically check for some validations and another to return a result set.

Yes, pass by the example below.

CREATE OR REPLACE PACKAGE CURSPKG AS
TYPE T_CURSOR IS REF CURSOR;
PROCEDURE (EMPCURSOR ON T_CURSOR OPEN_TWO_CURSORS,
DEPTCURSOR ON T_CURSOR);
END CURSPKG;
/
CREATE OR REPLACE PACKAGE BODY CURSPKG AS
PROCEDURE (EMPCURSOR ON T_CURSOR OPEN_TWO_CURSORS,
DEPTCURSOR ON T_CURSOR)
IS
V_CURSOR1 T_CURSOR;
V_CURSOR2 T_CURSOR;
BEGIN
V_CURSOR1 OPEN FOR SELECT * FROM EMP;
V_CURSOR2 OPEN FOR SELECT * FROM THE DEPARTMENT;
EMPCURSOR: = V_CURSOR1;
DEPTCURSOR: = V_CURSOR2;
END OPEN_TWO_CURSORS;
END CURSPKG;
/

I hope that it would be useful.

Tags: Database

Similar Questions

  • Link chart action for refreshing a report of region within the same page

    Gurus of the APEX

    As long as we have the graph and report region region on the same page and based on the action of graph link must be able to refresh the report region within the same page

    for example: I expense spend by category such as a pie chart and on the link of the action of which I want to refresh a report region by the right of it (in the same page) to show the details contained in this category spend - also I do not have to réactualisiez around the same page, just to refresh the region related to the category Click on the graph

    Any help would be great on this - I use APEX 4.2

    Thank you

    Shas

    Thanks Tom / Scott - sound now worked

    Following my code for the javascript function in the page section,

    function clickPie (pID) {}

    $x('P4_ITEM_CATEGORY').value = pID;

    $('#CategoryDetailsDD').trigger ('apexrefresh');

    }

    And here is my URL of the link graphic action section

    JavaScript:clickPie("#label#")

  • Practically in segregation a virtual machine within the same network

    We have a VMware ESXi 5.0.0 (504890) host that has physically 4 network cards. We run 3 VMs on that host and turning a new config. However, this new virtual machine will replace our old Windows DC, DNS, server DHCP etc., and we'd like to config it before going live - will not perform us a migration of swing. We are a little worried that it can interfere with our direct network and that's why I would like to somehow almost segegrate it.

    For the moment, we have a single vSwitch0 linked to all our VMs and management card:

    vSwtich0.png

    What is the best way to do this so that our new DC (with the same domain name and within the same network) can be configured without it interfering with the current network.

    Thanks for your comments.

    Oliver

    Hello

    You can create a second vSwitch without physical network interface cards. Create a VM Portgroup on this vSwitch.

    You can configure your new virtual machine to use the Portgroup. So, he won't have any connection to your network.

    The good thing is, when you want to test things with a customer, you can create a second VM and configure it to the same VM portgroup on the second vSwitch.

    Two virtual machines on this Portgroup can communicate with them because the traffic is handled internally by the host.

    Tim

  • Replying to a virtual machine within the same site

    I try to install vSphere replication v5.1.  I do this without SRM, but just the OVF appliance (s).  We currently have 8 guests distributed between two groups.  We have a vCenter control all this, and all is listed in a Data Center.  The second group is in our DR site and has different storage mapped to it.  I try to use vSphere replication as a means to keep our important VM replicated to our centre of DR disaster.  Is it possible to do so in the only current configuration?

    I'm having a hard time comes to work.  I have deployed two replication OVF devices and I'm stuck trying to replicate a virtual machine actually.  It gives me an error that the data object is not found.  I thought that I needed to 'Connect' from the local site to the remote site, but since this is all a time installing vCenter, I get an error indicating it cannot connect to itself.

    Is what I'm trying to do possible?  If not, could you let me know what I need to change to make it work properly.  Thank you.

    Hello

    The scenario you describe is supported - you can replicate virtual machines from one host to another within the same VC.

    To do this:

    -you will need to deploy vSphere 5.1 replication for a VC and no specific host

    -VR requires VC 5.1. If you liked VC - standalone VR will not work. If you have more recent VC, for example 5.5, you need RV 5.5

    -For replication within the VC even you don't need to link to the target site.

    -Simply select the computer virtual you want to replicate, when you opened a session in vSphere Web Client connected to the VC, point to the same location - must be available in the list, and select the appropriate data store and move through the wizard.

    Kind regards

    -Martin

  • Peut funtion Vmotion and Storage Vmotion with Intel and AMD hosts within the same cluster

    Hi, I can do storage Vmotion OR Vmotion between Intel and AMD hosts within the same group?

    Thank you

    No, it is not possible to vmotion or storage vmotion between CPUs from different manufacturers - I heard rumors that two manufacturers are working on technology that will help in the future-

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Opening in the same window using CSS and Flash CS3/AS3?

    I'm working on a portfolio in Flash CS3 and AS3. I try to avoid making all in Flash, so the home page is a header CSS/HTML page that will house a piece looped flash under the heading and the portfolio of the Interior will be flash parts within the same framework of header CSS.

    I would like to know what kind of code I need to use flash portolio navigation so that the 'Home' link will open the CSS/HTML landing page in the same window, rather than launch another window. Is this something that can be done using AS3, or do I me javascrpt as well?

    Any information or suggestion for a tutorial that I can take for this would be really useful and appreciated.

    You should test online.  Local test can have varying results in the measure of targeting windows going.

  • Is all the same to use an iPhone to lock iCloud 6 s more?

    Is all the same to use my locked iPhone 6s iCloud more?

    Only if you have the credentials for the account that was used to lock.

  • How can I have 2 email accounts open at the same time using the apple mail icon?

    How to open 2 e-mail accounts at the same time?

    Hello carroll12,

    Thank you for using communities of Apple Support.

    I see that you do not want to open two e-mail accounts at the same time using the Mail application. I understand perfectly. I have multiple e-mail accounts set up in my Mail application. I'm happy to help you with this.

    You can have more than one e-mail account set up in the Mail application. The first time you open Mail, it may prompt you to add an e-mail account (if you have not already done). Select an account type, and then enter your account information. To add another account, choose Mail > add an account, select an account type, and then enter your account information. Make sure that the Mail check box is selected for the account.

    If you have already both set in place, and I just want to be able to view both on the screen at the same time, open Mail, and then click file at the top.  From there, select the option for the new window of the observer.  This will open a new window where you can see each of the individual mailboxes on the same screen.

    Have an amazing day!

  • How to load under vi in Panel at the same location using base LV 8.6

    I have several screens to display on the button clicks so I want to load the sub VI Panel in the same place using the package base of LV 8.6.I could find solutions using Insert VI, but which is available in full development Package.Is it in any other way to do it.

    Thank you it worked... but I have a question, I have attached two SCREWS get channel config is the VI I want to display in the Panel of sup, but scrollbars donot work

  • Hi whant to update the changed value to dishes of the same variable used in the entry. How to do thanks in advance

    Hi, I want to update the value out put of the same variable used in the entry. How to do thanks in advance

    ya I got it. using the property node (and if you select value) we can do. Thans for answer

  • Failed to load XP on the same computer using the product key on the case of the CPU.

    I uninstalled XP and tried to load Window 7 s. had driver problems. Let down. Now I can't reinstall XP on the same computer using the product key on the case. I get a message "invalid Key". It's a Dell PC 6 years, if that matters.

    As I said, you will need the manufacturer's recovery disk, or disk OEM System Builder.

    Do you have which drive tried to use?

    You may be able to borrow a disk OEMSB from a friend - or you may be able to order the Dell recovery disks (they are cheap).

  • How can I associate with another FrameMaker document in the same book using hypertext markers?

    I would like to make a link to a separate FM in the same book using hypertext markers file, but I do not know what as the prefix to use. If I would say normally, "gotolink x" to bind to a hypertext marker in the same document of FM, what do I need add or change if I want to put a link to a brand in a different document in the same book? I remember seeing something on the addition of the name of file the text marker a few years ago, but I can't find the discussion more. Thank you!

    Just use the construction of filename:linkname of gotolink , where the linkname is what is inserted using the marker NewsLink .

  • How to use multiple profiles within the same instance of Thunderbird

    A month ago, I got Thunderbird set up with three profiles,
    and all three could be used in a start only one of
    Thunderbird. That the PC is now gone. I've reconfigured the three
    profiles on a new PC, but can't do all three
    can be used in the same instance of Thunderbird. Can you help me?
    Both computers are / were only Windows7 64 bit.

    Thunderbird opens on the default if a profile
    or
    The Profile Manager is responsible to ask at startup it will allow you to choose which profile to open if it opens the last used profile...

    Thus, it shows a profile at a time within a single instance of Thunderbird.

    However, only one profile can have multiple e-mail accounts.
    for example: I run 4 e-mail accounts in a profile.

  • Is it possible to use vSphere replication within the same site?

    Hello

    I was wondering if I could use vSphere replication in the same data center. The idea would be to have a configuration without shared storage appropriate for HA.

    Thank you!

    elgreco81

    Yes, it's not a problem at all. You can have a single unit of replication running and replicate to another data store.

    André

  • Code reuse within the same VI (when he's not a Subvi)

    My last question here was awarded a point congratulations "to have been a big question", which is quite annoying, because my current skill level, it is hard to imagine the time when I will never be anything other than a "taker" of this forum!  So this is with a "dumb" question to try to put the right folder.

    My front panel has 17 groups of one button + three numerical indicators, it's quite a few elements of façade and 8 groups have an enum indicator as well.  All of these are also controlled by the visibility property nodes or 'off '.

    My program gathers all data for these elements in a table at the end of the main loop and functional global variables, it refreshes the properties and values of all these elements of façade.  It might sound like undisciplined, but because of the similarity between the 17 groups that refresh the elements panel above all happens within a pure FOR loop (albeit with a structure AFFAIR of 17 channels inside) if these controls are at least not sprawled all over my block diagram.

    The only problem I have is that my program takes a few seconds to initialize and get the loop running, period during which the façade shows garbage (well, maybe not garbage, data maybe related to the last time the program was executed, which may have been a context different, so much better if not visible).

    But if I also ran the same right 'before the code refresh of the Panel"after initialization (wipe) the data in my functional overall, the result would be that all of these controls would be invisible or disabled, which is a much better place to start from.

    But what I need to put a copy completely separated from the loop on my block diagram to get this effect?

    Make a sub - VI is out of the question, because it's the front of this VI that I'm working on.

    The word that describes what I want to do (for me) is "subroutine", but in LabVIEW "subroutine" seems to have a very specific meaning, a VI "stripped for speed" that affects no front panel in any case.

    Is this just a problem of my state of mind?  It is true that in my life by far most of the code I wrote has been assembler for microphones integrated 8-bit, these applications are always tied to memory.  At this stage of my career balance reverse but many high-level code I write (Yes, I am a dinosaur).  So I tend to worry about the what will be my compiled code.  Should I just put another copy of the loop (in fact, it is only the nodes of property 'visible' 76 I need) on my schematic and disturbing stop on this subject?

    A number of observations.

    (1) the title of dinosaur not is still FRO seized with many of us competing (I used as well to play the game of 'ICan write this charceter to X lines...) »)

    (2) when you do a lot with the GUI, "David FP updated (this is a property of the FP to stop updates of the screen, serach for this) may spped things upward."

    (3) I use a GUI controller very often in my applications. I posted about it here.

    (4) if Chase you my tags I have a collection of GUI performance.

    I put the code in a VI called from my GUI controller (who calls your FG for the info).

    Regarding the memory

    When we used to depend on someone with a crochete crochet and beads to make our memory, it was justified. Today, memory is cheap and using you save time is fine. When you worry about memory, it's when you find that the code does not fit into 2 G more.

    Ben

Maybe you are looking for