What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?

What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?

A cursor that has been declared with the clause WITH HOLD, after the word CURSOR remains open after a COMMIT or a ROLLBACK. The following example shows how to use the following clause:

     EXEC SQL          DECLARE C1 CURSOR WITH HOLD          FOR SELECT ENAME FROM EMP          WHERE EMPNO BETWEEN 7600 AND 7700      END-EXEC.

The cursor must not be declared for the UPDATE. The WITH HOLD clause is used in DB2 to override the default, which is to close all cursors on validation. Pro * COBOL provides this clause in order to facilitate the migration of applications to DB2 to Oracle. When MODE = ANSI, use Oracle DB2 default, but all host variables must be declared in a declare Section.

Reference:

Oracle documentation!
http://docs.Oracle.com/CD/B10501_01/AppDev.920/a96109/pco03dbc.htm

Tags: Database

Similar Questions

  • I installed the download tool usb/dvd windows 7, but after you have selected the iso file when I insert the USB stick and refrecing, it does show that "no usb drive compatible' what is the problem with my USB

    I installed the download tool usb/dvd windows 7, but after you have selected the iso file when I insert the USB stick and refrecing, it does show that "no usb drive compatible' what is the problem with my USB

    I have sandisk cruzer blade USB key

    Hi Rohit,

    Thanks for posting your query in Microsoft Community Forum. I understand that your USB drive is having problems of compatibility with your computer, but I would like to learn more about the issue in order to provide you with better assistance.

    1. You did it any significant hardware or change software on the computer before this problem?
    2. When do you get exactly the error message?
    3. Have you tried to connect to any other computer on this flash drives?
    4. Your USB key works on other computers or have you tried to connect to different USB ports on this computer?
    5. Is the pen drive getting detected in the case or you are able to access the drive folder in the window of the computer ?

    The question may arise if the currently loaded USB driver has become unstable or damaged, or if your PC requires an update for problems that could conflict with a device USB and Windows. This can also occur if your USB controllers may have become unstable or corrupt. So, I would suggest trying the following steps and check if the problem persists.

    Method 1:

    Please try the fixit (s) provided below which will help you solve common problems associated with devices and USB ports.

    If method 1 does not work, try Method 2.

    Method 2:

    Remove and reinstall all USB controllers.

    1. Open Manager devices by clicking the Start button, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the list of the categories of equipment, locate and expand Bus USB controllers.
    3. Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
    4. Restart the computer and let the USB controllers get reinstalled.

    Plug in the removable USB device and test to make sure that the problem is solved.

    If the problem persists, go to method 3.

    Method 3:

    This method will install the latest drivers from device to your USB device.

    1. Click the Start button, type Windows Update in the search box, and then click Windows Update in the results pane.
    2. Click find updates. When the scan finished, click optional review updates.
    3. Click the check box next to the update, and then click install updates.
    4. If you are prompted, read the license agreement, then click I agree.
    5. Follow the instructions on the screen to download and install updates.
    6. If you are prompted, restart your computer.

    More information: Update a hardware driver that is not working properly

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • What is the problem with this pl/sql code?

    What is the problem with this statement of the cursor? I am getting PLS-00341 error for her:
    CURSOR cur_rsource(p_sql_stmt IN VARCHAR2) IS
            SELECT plan_table_output FROM v$sql s, table(dbms_xplan.display_CURSOR(s.sql_id, s.child_number)) t WHERE sql_text LIKE '''%'||p_sql_stmt||'%''';
    How to solve this problem?

    Thank you

    Published by: PhoenixBai on December 14, 2009 14:05

    I don't have time right now to study exhaustively, but for me his vomit ORA-00942 table or view does not exist on this line:

        SELECT sql_id, child_number into tmp_sql_id, tmp_child_number
             from v$sql where sql_text like sql_statement||'%' and sql_text not like '%v$sql%';
    

    I am able to select from v$ sql in normal SQL as user I am compiling as, so don't know why it's complaing.

    Anyone know if there are certain restrictions on access to the views v$ through PL/SQL?

    EDIT: http://www.dbasupport.com/forums/showthread.php?t=22299

    Access to the views of $ v seems to be through a role - try giving explicit access to it.

    As SYS, you must grant select permissions on V_$ SQL (V$ SQL is synonymous with V_$ SQL) to your owner of the procedure. Just tested on my system and it allows him to compile.

    Published by: Cyn on December 14, 2009 10:30

  • What is the problem with my iMac mid-2011

    Hello

    Need help find out what is the problem with my iMac to mid-2011.

    Yesterday during a reboot it just never came to life.

    On turning the power on, I get the RINGTONE to start and that's it. The screen is totally black. Nothing behind tried with a torch.

    VRAM rearmament so far I tried repeatedly, unplug and plug, all kinds of combinations of keys in the carillon and nothing.

    Connected to an external monitor and shows nothing of too - no signal.

    Any way that I can know what is wrong with it before sending it to the service tech? I suspect bad graphics card but how do you ensure?

    From what you describe, it looks like a hardware issue that Apple will only be able to resolve, but not to despair immediately.

    Read it please get help with graphics issues on external displays connected to your Mac - Apple Support.

    I know that the title and subject are not suitable to your concern, but buried in this document is the following passage that contains three links describing the steps to follow.

    If you can not change the resolution of your screen because you see no image, restart your Mac in safe mode to reset the default display resolution.

    If booting safe mode doesn't resolve the problem, reset your Mac NVRAM and SMC to reset the video ports on your Mac to their default values.

    That first, then write again for additional suggestions if you are still having problems.

  • What is the lock with the circle around it?

    What is the lock with the circle around him at the top of the screen?

    It indicates that the phone is locked in portrait mode. Swipe to the bottom of the screen to call the control center. Tap the corresponding icon there to allow rotation in fashion landscape.

  • Qosmio X 70-A-13th-what is the problem with cooling fan?

    System: Toshiba x 70-13th with Evo 850 256 GB Samsung SSd
    Windows 8.1
    Intel Extremutilitiy - Voltage of the CPU Dynamik Offset 84,96 mV
    3D Mark 06 Score: 24096

    Thermal paste CPU/GPU: GCelid Solution GC Extreme
    temperature: MAx CPU: 85 ° C low game of normal of 45-49 ° C 41-45 ° C: 75-80 ° C

    Fan Max Speed: 60 % (bad hard)

    What is the problem with the fan?

    What is the problem with the fan?

    Why do you think that there is something wrong?

    I found your other thread on the review of the thermal grease...
    https://Forum.Toshiba.EU/showthread.php?82764

    Looks like you have replaced the thermal paste... right?

  • What's the story with updates?

    Hi all

    Is could someone please tell me what is the story with theToshiba updates to the laptop? Why should we expect to receive our updates on the Toshiba site?

    The best thing to do in 2010, for someone which onws a pc is to get updates. But the history of Toshiba is different.

    We get software quite unreliable called Tempro, where people when followed his advice get their computer fried, and advice from this forum are to ignore it. When I get to the Support from Toshiba site, no new update is available for my pc in my country of choice, but when you hit all countries the list suggests 47 updates worldwide, of which 43 are installed in our PC.

    In addition, for example Nvidia has just introduced the new drivers for the GT230M since 12/01/09 and still isn't available in the Toshiba site.

    I would be grateful to anyone who helps and suggestion on this issue.

    Thank you very much in advance.

    Hello

    The Tempro tells you the new updates published on the page of the European driver Toshiba
    It is clear

    But why update anything if the laptop works properly?
    Of course there are people who want to always have the latest version of driver, new version of the tool, etc., even the laptop to run correctly.

    My advice is simple; never change a running system.
    I recommend you update the operating system if certain problems are here

    Welcome them

  • What is the problem with kernel_task?

    Hello everyone,

    What is the problem with kernel_task?

    I explan: Macbook Pro early 2011 LION OS up to date.

    I bought 8 GB on China supplier, CRUCIAL...

    Well, I got a lot of kernel Panic. Usually, he is involved material, taken on my RAM, back is the original, so still have in the kernel_task to 300% CPU monitoring followed up to 500%...

    Well, I went back to a clean install, a manufacturing one, with nothing.

    Wish I 'd' diagnosis of the equipment, never went on, test it on safe mode, disable all extensions, then nothing:

    Sometimes the kernel_task crazy sometimes not...

    Good read a lot on the internet but nothing has worked... I went to the Apple store in DIJON, they do not have diag any hardware problem, and all my App are approved Apple.

    Used to play the eve online thought, therefore, the graphic chipset pourrait was damaged, so when it's too 'hot' the mac gets crazy... but I expected crazy restarts and that sort of thing.

    I bought a manual, there is no french support to the opening of Apple, but found nothing about my question.

    So what?

    I bought something conivient on Support and friability so today he's dead?

    What should do?

    If you still get the panic of the core, thanks to post separate 2 or 3 of the most recent as answers on this.

    Reports of kernel panic: "/ Library/Logs/DiagnosticReports".

    http://support.Apple.com/kb/ht2546>

    http://support.Apple.com/en-us/HT200553>

    The panic report should have "panic" in the name of the file.

    Kernel panics tend to come from 2 sources

    • Material:
      • 3rd party RAM is the most common.  Replace or return the original is usually the solution.  Crucial and MacSales.com were 2 of the most reliable sellers for the initial quality and guest without question of replacement.
      • Broken USB cables or USB devices have turned up as the 2nd most likely material number.  Usually remove all USB devices, or replace the keyboard and USB mouse to see if it's one of those existing.
      • There are a few Macs with graphics chips that have failed.  I don't know that they exist, but do not know what model Mac had these chips.
    • Software
      • antivirus protection.  It is the number 1 most panicked related software cause.  More OS X does not need antivirus, because it has its own built-in protections http://www.thesafemac.com/mmg-builtin/>.
      • Other core 3rd party extensions are a distant 2nd.
      • NOTE: not all 3rd party kernel extensions are causing problems, but when there is a kernel panic, it's the first thing to look at.

    If run kernel_task is often caused by core 3rd party extensions.  It can be caused by an application program, but then the Applications-> Utilities-> Activity Monitor show "As" an application that consumes a lot of CPU, disk IO and network IO in collaboration with the kernel_task using lots of CPU.  If there is no application burns the CPU at the same time, so it is almost always a 3rd special part of the kernel that was originally the use excessive CPU kernel_task.

    Start in safe mode is usually a test to see if 3rd party extensions are part of the case.  But in safe mode is not how you run your system, because it also loads less advanced graphics drivers and other components.  Safe mode is very conservative, but it's a great way to see if the 3rd party software is at fault and have started when 3rd party software panic the system at boot.

    The contributors to the forum long strongly warn against getting 3rd party anti-virus, cleaners Mac and additions increasing.  This class of 3rd party additions have shown time and time again to really harm performance, remove things they shouldn't and cause a kernel panic.  Especially right after an OS X update to a new version.

  • How I download 80070103 windows update is update safe what is the problem with this update

    Just got the update installation today to download update 80070103 time ever I go to download the update fail what is the problem with this update & how do I get updated.

    Hello

    Thanks for posting in the Microsoft Community.

    If I understand correctly that you have problems with Windows Update.

    Please answer these questions:

    1. What is the update's KB number?

    2 have you made any changes to the computer before the show?

    Let us try the following methods:

     

    Method 1: Run the following fix - it:

     

    The problem with Microsoft Windows Update is not working:

    http://support.Microsoft.com/mats/windows_update/

    Method 2: See the following article:

    Windows Update 80070103 error code:

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Update-error-80070103

    Hope the helps of information. We know if you need help. We will be happy to help you.

  • Anyone of you happen to know what is the difference with a certificate in certificate authorities roots of trust?

    Hi all

    I am trying to solve the mystery of the ICP and have a question about the certificate stores, it would be very cool to have answered. Anyone of you happen to know what is the difference with a trusted certificate root, Enterprise Trust, intermediate Certification authorities CAs, publishers, to the third-party root CA, Active Directory object and so on?

    And does it matter where the physical store? Is there a difference if you use the registry, Local computer, group policy, AIA and so on?

    I noticed that you use the CA store root of trust to validate the server self-signed https, but apparently not so simple with tokens, access control with the EAP protocol network and so on.

    Best regards
    Alex

    Hi Alexander,.

    Thanks for posting your query on the Microsoft Community.

    With the description, I understand that you have a question about the certificate stores on your Windows 7 computer. I will certainly help you to the query.

    I suggest you refer to the of the items listed below and check if this is useful:

    Operating a Windows PKI: Certification Authority certificate life cycle and renewals

    https://blogs.technet.Microsoft.com/xdot509/2013/05/27/operating-a-Windows-PKI-certification-authority-certificate-lifecycle-and-renewals/

    ICP-the key usage attribute

    https://msdn.Microsoft.com/en-us/library/Windows/desktop/ms679125%28V=vs.85%29.aspx?f=255&MSPPError=-2147217396

    If the link above is not enough, then please visit the link below to post your query in the TechNet forums:

    https://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro

    Hope this information is useful. Please come back to write to us if you need more help, we will be happy to help you.

  • What is the problem with Windows 7 Live Mail?

    What is the problem with Windows 7 using Windows Live Mail?

    When I type my emails using special characters, for example "$- + = % sometimes even Live Mail change my characters to a reverse with a top character."  And it it changes between the time wherever I sends it and receives the other person, so I never really know if they receive a message scrambled or not.  I never had this problem with Outlook Express.  What can we do about it.  I use this for business and it is absolutely unacceptible.

    Hello

    This forum deals with aspects of electronic mail on your computer network.

    If the problem related to the Live mail Server, or configure the features of the software, you'll do better by logging and displaying the question on Live Mail support forum.

    My moderator tools cannot transfer messages on the forums of Windows,

    Please re - ask your question on the Forum Windows Live,

    Windows Live Mail Forum
     
    http://windowslivehelp.com/forums.aspx?ProductID=15

  • What is the problem with my Oracle reports parameter?

    Hello

    We use a PL SQL package that allows the user to select the report you want Oracle and associated parameters.   While the control is passed to Oracle 11 g reports.

    The requirement of one of the reports is to enable more detailed codes be selected by the user and then shown.  The detailed code is an alphanumeric field that can hold between 4 and 6 characters.

    If my data model looks like this

    SELECT student_id

        FROM my_view

       WHERE detail_code IN :p_detail_code;

    and the parameter that I'm passing to Oracle reports looks like this (when I view the source HTML code)

    & p_detail_code =('1001','1002')

    so no record is selected.

    However, if my data model looks like this, I get the records you want:

    SELECT student_id

      FROM my_view

    WHERE detail_code IN ('1001', '1002');

    We have Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production.

    Please tell me what is the problem with my setting.  Thanks a lot for your help.

    This isn't how you can use in. See this example on how to solve it with the digital settings. If your setting is a character, you need to change this.

    In fact, when you simply enter 1,2,3 as an input parameter, you actually create this query:

    Select *.

    from my_table

    where num_column in ("1,2,3")

    Use rather a lexical parameter:

    Select *.

    from my_table

    & p_where

    In the parameter after relaxation shape, build the lexical like this:

    :p_where := 'where num_column in ('||:p_param||')';
    
  • I agree with the CC. But I also have APS CS6. I get the message that the updates are available. But whenever I try to 'install', I get the message that it failed and the error code is U44M1P7. What is the problem with obtaining this update?

    Whenever I try to install I get message that he had failed. The error code is U44M1P7. What is the problem with this update?

    U44... Update error http://forums.adobe.com/thread/1289956 can help

    At some point in the past (I don't know the exact date) Adobe "merged" the original update manager in cloud Update Manager, which means that you no longer use your original update manager

    I read a lot of posts that the updater latetest (cloud) sometimes does not work with old programs... Try to install your updates manually

    Beginning of the updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • I noticed that everything is new in Acrobat Reader. What's the story with the folder when I scan a document?

    I noticed that everything is new in Acrobat Reader. It must have all come since a recent update, is that correct?

    I noticed that when I scan a document with my Canon printer Scanner one, click SAVE AS he recorded a RECORD and not just a file like it used to. The file scan is in the folder that is saved, but what is the story with the FOLDER? Why - what is saving a FILE? I'm missing something. On the player page, there is an option to save to the cloud. How to access the cloud from another computer? What is the web address? Where it is explained? I haven't done the tutorial, but I will.

    Thanks for your confirmation on the issue of the subfolder. It was because of the settings of the scanner utility, like Acrobat or Reader asking where to save.

    For your 2nd question, it actually is a new service to help you save your documents to cloud up to certain limits. To save documents to the cloud, just log into your Adobe account (create a free or have an existing one). Later, you can access or download this document (regardless of your machine), by logging in with your account. And compensation, no - you shall not to pay extra for it.

  • What is the situation with the mac pro users and map of cuda for ray-tracing work?

    What is the situation with the mac pro users and map of cuda for ray-tracing work? If it is not necessary or should I try to install a?

    CUDA acceleration is no longer under development, and I've only played with traced to the RADIUS on a few test projects. If I need 3D dimensions objects I used C4D Lite, which is now included in EI

Maybe you are looking for

  • I can't access the firefox options menu

    HelloAfter v42.0 update of firefox, I can't access my menu options again. When I press options firefox opens just a blank tab. Topic: solution config is no longer . So I am open to suggestions...

  • How can I get rid of the pesky "what's new in Pages '?

    How can I get rid of the pesky "what's new in Pages '?

  • No hotsync

    I still use my old Tungsten E2. I had installed version 3.1 Manager on my old machine (I still have the disc). I installed it on my new machine... does not work I downloaded 6.2 - seemed to install ok, but he doesn't have a hotsync. Deleted and insta

  • Disabled AGP on Satellite L40 - 14n

    Hi all! I have Toshiba Satellite L40 - 14n. When I try to run any game, I see the following message "the game may not be coherent agp is off." Please enable agp for consistency. Tell me please how I can do this.

  • BlackBerry smartphone browser does not open

    My internet browser does NOT open. I took out the battery, checked my internet and all settings and NOTHING will open my browser. Any ideas on what to do?