Problem with the release of storage refcursor

declare
v_sql varchar2 (1000);
News sys_refcursor;
v_output varchar2 (32676);
Start
v_sql: = 'select empno, ename from emp;
Open the heart of v_sql;
loop
News of FETCH in v_output;
dbms_output.put_line (v_output);
When the output cur % notfound;
end loop;
News closr;
end;

Oracle is not able to store the output of cursor in v_output (varchar2). How to store the output of refcursor in varchar2

To start with, your code has syntax error. You did not run your oracle code and blame for not doing his job.
See below the code that gets the cursor to the variable output. I hope that's what you're looking for.

SQL> set serveroutput on
SQL> ed
Wrote file afiedt.buf

  1  declare
  2  v_sql varchar2(1000);
  3  cur sys_refcursor;
  4  v_output varchar2(32676);
  5  begin
  6  v_sql := 'select ename from emp';
  7  open cur for v_sql;
  8  loop
  9  fetch cur into v_output;
 10  dbms_output.put_line(v_output);
 11  exit when cur%notfound;
 12  end loop;
 13  close cur;
 14* end;
SQL> /
smith
smith
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
MILLER

PL/SQL procedure successfully completed.

SQL>

Tags: Database

Similar Questions

  • Problem with the integration of storage - suspicious on PALO adapters

    Hello

    I connect the UCS system storage with mds9124 between the two.

    So far, I joined 2 systems UCS, everything went smoothly.

    Now, the new system UCS arrived, it's the same as before, the only difference is that now we have PALO for the first time.

    Stanard configuration, service profiles, uplinks, etc and now I have a strange situation

    The MDS ports connected to ports of uplink CF on my 6120xp I don't see pwwn to my profile, only WWNs of ports uplink and vsan wwn connected service.

    NPIV is enabled of course, I tried to recreate the profiles to change wwpn-s pools, but no use UCS,... no configuration issues, the ports are on the rise, the associated service profiles... I'm really confused.

    I checked my setup with cisco guides ("design and deployment of a Cisco Unified Computing System SAN using MDS 9000 family switches Cisco"), but I don't see why it does not work.

    Any idea? In past configurations with MENLO adapters, everything went really good.

    Thank you

    It's the way palo works. You will see not Palo connect on the fabric until the drivers are loaded. In the case of SAN boot you need to create a specific boot strategy that assigns the logical unit number to the vhba and in this case, it is programmed and connection to the fabric for SAN boot.

    If you're just turn the blade and expecting Palo to connect on the fabric as a Menlo or Qlogic it won't do.

    Louis

  • Problem with the importation and storage of library

    I have sewing miss the logic in the import and storage of the photos in the library. This causes a situation that whenever I need a picture I need to go to C: and import it. My library is almost empty and I don't see how the images can be stored. In any case, this has created situations where I open the import window and I can see the pictures, but I can't access somehow? I get same messages telling me that there is that a dublicate somewhere, but where, remains a mystery. I am so set on logic in windows to manage and store files and which confuses me maybe? Is there a tutorial "how to import and store your images in Lightroom? Enlighten me about the logic of this.

    Thank you

    Lightroom is a database; not a file browser. A file Explorer "focuses on" your records, sees that the pictures are here and allows you to work with them. Lightroom does not. He knows only the photos that have been imported into Lightroom. Once the photo is imported into Lightroom, then Lightroom knows the location of the photo and it's metadata and you can perform tasks (such as editing on the photo). At no time does Lightroom contains your photo. At no time Lightroom stores your photo. But since it is not a file Explorer, if you move or rename or delete the photo outside of Lightroom, then Lightroom no longer knows where's the picture (it is not a file browser) and if the photo is reported as missing (it has a question mark icon) and you can no longer perform tasks on this photo.

    Therefore, once you import a photo in Lightroom, you must perform all the management of this photo of in Lightroom. This means do not move or rename or delete the photo in your operating system or another program. You will need to browse/search the photo in Lightroom, not your operating system. All the actions performed on the photo must be done in Lightroom.

    Why? A database allows you to organize in a way that is not possible (or possible but very difficult) to do in your operating system. The main tool of organization ensuring (in my opinion) by Lightroom's keywords. Keywords and other metadata (captions, titles, collections, etc.) give you the opportunity to organize in ways that folder organization cannot reach.

    In addition, Lightroom allows you to simplify your workflow (if you want). My workflow is very simple. In my workflow, there is no need to move photos from here to there, to reach the organization. A photo comes out a camera and is placed in a folder by default (by date of capture), and he never moves out of this folder again. Instead, I use the keywords and other metadata to enable me to quickly find my photos, and another advantage is that I don't no need to know the pictures are found in the folder. With 22000 photos, I just can't remember what they are stored in folders - it is a task that is impossible for me to do. However, I can find any photo quickly; for example, if the content of the photo is a skyscraper, I simply tell Lightroom to find all my photos that have the keyword "skyscraper" and Lightroom will find that almost instantly and I didn't even have to know which folder the file was in. It is difficult for me to imagine a simple workflow.

    Note: you can continue to use the files as a method of organization, you don't have to use keywords, but you must "respect the rules of Lightroom" and use Lightroom to move pictures from here to there, and you must use the methods of Lightroom to rename your photos; etc. And of course, if your organization only be made via the files and folders, you do not get profits of keywords and other metadata.

    Then, I suggest you do the following with your workflow:

    Import photos into Lightroom once and only once. After that, there are all the management of the pictures that have been imported into Lightroom. Photos should be assigned keywords as appropriate and enter captions, titles and other metadata. All the searching and browsing of photos that were imported should be made in Lightroom, preferably using keywords and other metadata.

    References:

    http://forums.Adobe.com/docs/doc-3682

    http://TV.Adobe.com/watch/getting-started-with-Adobe-Photoshop-Lightroom-5/Lightroom-5-IMP orting your images.

    http://TV.Adobe.com/watch/getting-started-with-Adobe-Photoshop-Lightroom-5/Lightroom-5-org anizing-your-pictures.

  • Problem with the release of setting in the form using get-esxcli

    Hello... I tried to format information obtained using get-esxcli.  According to me, the question is to do with the default value fit for the typpe of info I receive.  Instead of get 3 columns, with one row for each parameter name and its configured default information /, I get the following... Name                                          Default                                        Configured                                    ----                                          -------                                        ----------                                    {acpiDbgLevel, allowNonNX, auditMode, autoC... {0, FALSE, FALSE, TRUE,...}                    {0, FALSE, FALSE, TRUE,...} Is anyone able to help out how I can change the formatting to what I was... Here's the code... function get-55HOSTAdvancedSettings ($vmobj) {$55HOSTAdvancedSettingsreport = @ () ForEach ($esxhost in $vmobj) {$settings = (get-esxcli - vmhost $esxhost).system.settings.kernel.list ($false) $row = "" |}} Select-Object Name, by default, configured $row. Name = $settings. Name $row. Default = $settings. Default $row. Set $settings =. {Set $55HOSTAdvancedSettingsreport += $row} if ($OutputToCSV) {$55HOSTAdvancedSettingsreport |} {Export-Csv - NoTypeInformation - UseCulture-path $CSVOutput - Append} else {Write-output $55HOSTAdvancedSettingsreport}} thanks in advance

    With

    $esxcli.system.settings.kernel.list () | FT - AutoSize

    I get the result in three columns.

  • Problem with the release of DAQmx not adjusted

    Hello

    I'm trying to convert a recording program generally written in Labview to exit of the floating numbers of unsigned integers. I use the DAQmx read where I choose the unadjusted output (2D U16 NChan), the Board of Directors is a PCI-6023E. I have the program running, but the output is a little strange. The input range is of +/-10 V. For positive voltages I get integers from 0 to 2047. For negative voltages I get integers from 2 ^ 16-2048-2 ^ 16.  I want to have is of course 0-10 V and 4096 for 10 V. I'm looking through the different options in lu DAQmx etc. without a bit of luck. If someone has an idea that could shed some light on my problem it would be greatly appreciated.

    Best regards

    PAL Egil

    The type U16 represents numbers as unsigned quantities.  In particular, I16 (signed integer) value of-1, hexadecimal FFFF, is 65535.  If you save the values as I16 (assuming this is possible with your device) or simply convert (using the auxiliary palette of Conversion of the digital palette) I16, I think you get what you expect.

    Bob Schor

  • Problem with the release of the timeline, cropped video

    My settings:

    http://imgur.com/ON9p2.jpg

    My problem:

    http://i.imgur.com/9vSnu.jpg

    In short, I can't understand how the chronology of video output identical to the video source.  Video source is .mov, 60 fps and a few 30 fps, shot with an Aiptek HD GVS.  I'm relatively new to this so go easy on me.  Also, I apologize if this has been answered, I didn't know the terminology to use so knew exactly what to look for...  Thanks in advance for any help!  (I hope that this can be resolved without losing all the work I've done to import, naming and organizing the 16hrs of video clips)

    In CS3, it's in the settings of your project, in CS4 in your sequence settings.

  • Problems with the release of HP2600N

    Hello

    I have a HP 2600N it is several years old and has "enjoyed" only a moderate use. However, print quality has declined dramatically, the page is covered in "grey" on both sides, and the colors are washed out.

    All toners are resporting to be over 75% full. Any ideas on the problem and how to solve them would be appreciated.

    Thank you

    No problem at all! Hope you get this fixed fast.

  • I have an iMac7, 1 with Intel Core 2 Duo 2.8 GHz, 2 GB memory, 500 GB storage, iOS10.6.8 and can update in 10.11.2.  must I do cela or are there problems with the upgrade?

    I have an iMac7, 1 with Intel Core 2 Duo 2.8 GHz, 2 GB memory, 500 GB storage, iOS10.6.8 and can update in 10.11.2.  must I do cela or are there problems with the upgrade?

    I don't know about other issues. There are always 'problems' with any upgrade. You weigh against the benefits. I know that you need more RAM. At least 4 GB, maybe more if you can. Don't forget that this system is produced at a time when most of the machines have + 8 GB RAM and when Apple said 'minimum' they really mean it.  I recently inherited a MacBook that has 2 GB of RAM and the Mavericks. When I checked the memory, the use of the system was using 1.95 GB = nothing to run applications!

  • Problem with the sliders

    Hello

    I have a problem with the sliders. I use a property node to define their positions x and y. The problem is that the cursors do not go to this post, I write it. For example if I write 1480 to Cursor.PosX that it defines the position of the cursor to 1372. Even to go see my attachment. There is no other nodes property written positions than on the photo.

    ARO

    Jick

    Ability to modify in order to release the sliders, but I still wonder what may cause the behavior like this with the single cursor?

    Jick

  • Problem with the change in value of listbox event

    Hello

    I have a problem with the help of Listbox value change event. The code that I have attached is a simplified version of the largest program, but the problem is the same. One of the loops of Nonna is responsible for handlig occurring events ant the other is responsible for the execution of the program. In the project of oryginal I use a listbox control to determine which plots graphic display of a waveform is visible (first position of the listbox-> only plot first visible etc.). In the attached vi, I just show the current value of the listbox control. The problem is the event runs only once and then the program crashes. I want to be able to change the value of the listbox work both at idle and in State of a program, but when I put the structure of the event in both States, he does not. I'd be very grateful if someone smarter than me could tell me where I made my mistake. I want my program to be able to manage the keys and listbox events in States (slow down and knit) program.

    You have two structures of event in two cases different from the structure of the case, and both are tuned to listbox events has changed. Because only once can be triggered at any time, the VI crashes (lock events the front panel (default) until the event can complement).

    You must use a unique event structure managing all events.

    The overall program architecture looks like inside-out for me.

    For the buttosn, you must use action lock (switch not release!) and use the value changed events.

  • Problem with the module "Automation" in WindowsAzure

    Top: Problems with the module used "Automation" service "WindowsAzure.

    Hello!

    I really need your help to decide my problem of "Azure Automation". My boss has set a task for the 'Automation' module allows you to make a backup of Virtual Machines.

    To understand my problem, I do the next:

    1. describe the situation of all;

    2. describe the problems that appear in this situation;

    3. my conclusions.

    In addition, I am attaching the necessary information: my PS-scripts (from Windows and the automation of azure), log (with my notes) and screenshots (images with my notes) see file .rar Add_info (annex).

    1 description any situation

    For our development projects, we have several Virtual Machines on service cloud "WindowsAzure. We need to make backups of discs with Virtual Machines each week. Earlier, for this task, I used Windows PowerShell on my computer and my PS-script (see Ann 0 - VM (backup) of the WPS_snapshot). I created a new storage 'backupstor' and containing 'snaps-drive '. When I run PS-script with my computer, I have backup of disks virtual Machin in the container "snaps-disk", without problem.

    Now I have a new task "automatically make the process of creating backup of Virtual Machines (VM snapshots). I tried to use automation module (overview). Can I change my PS script for the 'Automation' module and create folders (see Ann 1 - records (make backups of virtual machines) _Azure_Automation).

    I need to make a backup of Virtual Machine 'bosard' in the cloud 'cloudnet. "Bosard" on the disc size ~ approximately 90 000 000 000 bytes (total size of the default drive size 127 GB/136 367 309 312 bytes)

    2. description of the problems that appear in this situation

    My steps:

    1. I start files to make a backup of Virtual Machine disk (see annex 1 - files (make backups of virtual machines) _Azure_Automation))

    2. it starts successfully and generate the name of backup 1 (blob) - snapshot-bosard - osdisk_07.10.2014_07h00m39s.vhd (see image 1 - start copy backup 1 and annex 2 - log file copy process)

    3. the process of backup copy 1 (blob) will...

    Problem 1:

    4. the process of backup copy 1 (see Appendix 2 - process log file copy) automatically stops and complete to copy the part 1/3 bytes copied 28311552000only. Important: The size of my virtual machine disk ~ on 90 000 000 000 bytes.  (Maximum possible) of total capacity of the disk where the Virtual Machine is used - 136 367 309 312 (127 GB). (See picture 2 - stop backup copy 1)

    5. I have Virtual size 1 backup - 28311552000bytes, when the size of my VM - 90 000 000 000 / 136 367 309 312 bytes.

    Problem 2:

    6. after the termination of the process automatically makes copy backup 1, records (see annex 1 - files (make backups of virtual machines) _Azure_Automation) automatically start (see picture 2 - stop backup copy 1) and folders automatically create new snapshot Backup 2 - name - bosard - osdisk_07.10.2014_07h31m33s.vhd (see annex 2 - process log file copy, image 3 - stop the copy backup 1 & Begin copy backup 2 and 5 - backupStore_Azure (process)of image)

    7. I pressed "stop" and stopped the process of copy and folders (picture 4 - I stopped the process of creating backup 2 & records). And how result I had size Backup 1 and 2 = 0 bytes (see image 6 - backupStore_Azure (I order records))

    Note:

    1 problem 1: the process of backup of virtual machine does not complete and stops automatically.

    2 problem 2: the process of creating new second backup starts automatically. And as a result, we do not have the backup of virtual machine, when I use the 'Automation '.

    3. my conclusions

    I think that:

    1. my PS script for Automation (files) is not correctly. Then I need your help, how to fix this.

    2 may be the module "Automation" is not working correctly. And the module 'Automation' needs repairs and settings.

    In addition, I am attaching the necessary information (see the Add_info (annex) .rar file):

    Ann WPS_snapshot 0 - VM (backup)

    Ann 1 - records (make backups of virtual machines) _Azure_Automation

    Ann 2 - log file copy process

    image 1 - start the copy backup 1

    image 2 - stop copy backup 1

    image 3 - stop copy backup 1 & Begin copy backup 2

    4. I stopped the image create backup processes 2 & records

    image 5 - backupStore_Azure (process)

    image 6 - backupStore_Azure (I order records)

    Thank you

    Kind regards

    Mikhail

    Hello

    You can get the assisted support from the following link on this point:.

    http://azure.Microsoft.com/en-us/support/options/

  • Someone had problems with the shutter speed on the Canon 70 d?

    I've used a Canon 60 d which was brilliant! My husband bought me a 70 d at Christmas as a surprise. However, I have problems with the shutter speed. In automatic mode, everything is fine but on manual, Av, Tv etc I seem to be unable to change the shutter speed of a very slow release. I want to know if the unit is defective somehow, or if there is something I should be doing that I'm not. Please can someone advise/inform me what I can do wrong or if it's something I should take with Canon?

    First of all, you need to reset your 70 d to the factory settings. Check your manual for more information on how to do it.

    You can't troubleshoot anything until you are zero squared.

  • I installed AVG 9.0 and now I get the following MSN Explorer pop up of message.__You are unable to connect to your e-mail server. There may be a problem with your Internet connection, or a problem with the mail server. Pleas try again.

    I installed AVG 9.0 and now I get the MSN Explorer pop next message.
    You can not connect to your mail server. There may be a problem with your Internet connection, or a problem with the mail server. Pleas try again.

    Sure.  Analysis of your e-mail anti-virus program:

    • Can slow to receive and send messages, or even fail.
    • Can damage files of storage for messages that you've already sent and received, making it inaccessible messages.
    • Is not necessary.  If you receive an infected attachment and try to open it, the protective device in real time of your antivirus program will block the infection.

    Here are a few web pages accurately:

    Why you don't need your anti-virus program to scan your e-mail
    The other threat email: the Corruption of files in Outlook Express
    Why some antivirus software can change the settings in e-mail programs
    Email scanning - advantages and disadvantages

  • When is windows going to solve this problem with the download of kb2538242?

    When is windows going to solve this problem with the download of kb2538242?  Whenever I turn on the computer, it downloads and installs this update.  It says it is installed but the next time I turn on the computer it downloads and installs again slow down my computer until she gets.  When I hit the kb2538242 in bing it says windows will have a fix within two weeks.  Why so long?  Isn't windows discover these things before posting updates?  I use Vista, with Intel 32-bit processor.  What can I do about this problem or I have to wait on windows.

    George,

    You must contact Microsoft, don't wait until they release the patch.

    How to get help and support for this security update

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    For enterprise customers, support for security updates is available through your usual support contacts.

    -=-

    1. click on the "Start" button, click "All programs" and click on "Windows Update".

    2. in the left panel, click "Search for update".

    3. after receiving the results of the analysis, please click on "View available updates" under the "Install updates" button

    4 Please right- click the update (KB2538242), and then click "Hide update".

    06/19 / 1109:56: 23:00

  • Problems with the Precision M4400 and the graphic card Nvidia quadro 770M

    I have a problem with my Precision M4400 and Nvidia Quadro 770 M. After I installed Windows 7 64 bit, I have problems with the graphics card. I get a blue screen or graphic errors. I tried several versions of the driver. In the Nvidia forum had this problem even more. Here, they told me that only a BIOS update for the graphics card to solve the problem. Update the BIOS, but I should refer by DELL. So my question is this problem with Dell is also known, and there is already an update of the BIOS to the Quadro 770 M?

    Hi all

    I have the solution by chance. I was looking for the latest drivers GeForce for Windows 7 x 64 and I read the accompanying note: http://fr.download.nvidia.com/Windows/337.88/337.88-win8-win7-notebook-release-notes.pdf
    On page 17, you can read the following note to fix: "[GeForce FX 770 M] [portable]: blocking of the blue screen occurs after Windows starts."

    Of course, GeForce FX 770 M does not exist (and never was), and it should be Quadro FX 770 M. I can bet that nVidia has corrected this famous BSOD problem in the wrong driver because always there is nothing about any "Quadro FX 770 M - fix" in the note accompanying the latest Quadro (340.52) driver.

    You try the GeForce driver above, but to install it, you may need to download an INF file modified with the addition of the ID of Quadro FX 770 M (= "NVIDIA_DEV.065C ="NVIDIA Quadro FX 770 M"). Try without the first modified INF file because the Quadro FX 770 M is listed as a compatible chip in the version of the driver GeForce 337.88 note...

    I'll try that, even though I am completely sastified with the latest driver for Quadro (feasible) (285.62) without disable Powermizer. I did not try the latest Quadro drivers again (to be honest).

    Late me know please.

Maybe you are looking for

  • Mac Pro 5.1 mid 2012 closing

    My 40 odd years of owning Macs, which dates back to the classic Mac with a screen 13-inch black and white, I have never seen this. All started about 2 weeks ago, when I got home from work and my Mac had stopped. I thought it could have been an electr

  • I need to help, remembering my user name designs N.L. persona. Is there a way you could help me with this?

    I tried several ideas username and none of them worked. Yesterday I made my account for personas.

  • "Skype unavailable Home"

    My office to win 8 Skype went a bit weird... Can I sign OK, but the main screen, it says "Skype unavailable Home". I'm not able to make calls to any contacts and everypne appears offline. Control of heart rate shows a good service in all areas. Trans

  • iMac continue to seek wifi addresses

    iMac late 2012 O SX 10.11.2. My iMac doesn't stop looking / searching for wifi addresses, please see photo: Once, once the search - although I'm connected to the same wifi address. Thank you.

  • HP 7310xi: error message on 7310xi color cartridge that I can't fix

    Last night (Sunday 7/5) I received an error message on my (all-in-one) printer - color Insert in stall left print cartridge I did everything, downloaded from HP, cleaned, put in new cartridge and I can get rid of the error message Is there any soluti