SQL procedure does not work with 'current cursor' Oracle 11 g

Hi all
I've written a procedure that should update all rows for a single column on a given table.
Here is the code:

CREATE OR REPLACE PROCEDURE "xxx". "" loop_update_autowert_x ".
(
number of startwert
column_name VARCHAR2,
table_name varchar2
)
AS

stmt varchar2 (2000);
stmt2 varchar2 (2000);
number of zaehler;
number of sum_gesamt;
TYPE obj_ref_type IS REF CURSOR;
obj_cur obj_ref_type;
Start
stmt2: = ' select rownum, rowid of | table_name | "for update";
Obj_cur OPEN FOR stmt2;
dbms_output. Enable (1000000);
dbms_output.put_line (' ist Startwert: ' | startwert);
dbms_output.put_line (' ist column name: ' | column_name);
dbms_output.put_line (' ist Table name: ' | table_name);
loop
extract the obj_cur in zaehler, my_rowid;
exit WHEN obj_cur % NOTFOUND;
sum_gesamt: = zaehler + startwert;
stmt: = "update". table_name | 'set ' | column_name | ' = ' || sum_gesamt | "WHERE the current of obj_cur";
dbms_output.put_line (stmt);
immediately execute stmt;
end loop;
close obj_cur;
end;

the error I get is:
Anmeldung bei der data base Oracle Test2.
ORA-03001: Funktion nicht solution
ORA-06512: in "xxx.loop_update_autowert_x", line 29
ORA-06512: In line 10
Startwert ist: 5
Column name ist: one
Table Name is: T
Update T set a = 6 WHERE the currents of obj_cur
Process finished.
Abmeldung von der data base Oracle Test2.

have anyone an idea what is wrong or this construction with the clause "cursor open for the statement" is not possible with the current cursor location

thx for help
Best regards
Hans-Peter

When informed of the cursor works with static cursors and static sql only.

----------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • B2B - BAM integration does not work with the Oracle XE database

    Hello

    Can someone explain the reasons in detail, 'the B2B - BAM integration does not work with the database Oracle XE'?

    Can't we use XE POC simple to demonstrate BAM?

    Published by: 975946 on December 27, 2012 04:14

    Hi Nithin,

    The main reason for this Oracle XE database can't handle such a huge process. Same Oracle XE is not supported in production.
    Note that SOA requires 300 process and BAM more than 100 processes (400 total), which is in addition to any other requirement its 500 to parameter.but process during the installation of Oracle SOA RCU, I hope you gave 300 single right.so his can't handle as much load if use B2B BAM integration.

    The ultimate goal is to have need to display active data in the right BAM reports? so, if you are using Oracle XE DB its may be not possible to show the active data.that the reason Oracle recommended use / works with Oracle 10 g Oracle 11 g versions EE and EE.

    Best regards
    Siva San.

  • lovely better does not work with windows vista home Premium what another program removes LSO and HOW to prevent the trackers?

    Question
    better privacy does not work with windows vista home Premium that another program removes LSO and HOW to prevent the trackers? Edit
    Details

    In current versions of Flash you can also do this via the control panel.

    • Control Panel > Flash Player, click on remove and erase data
  • 128 - GB MicroSD card does not work with the new Clip +.

    My old Clip + (black, 8 GB) was getting very long in the tooth, so I ordered a replacement off Amazon.  As far as I know, it is identical to the old, but a very unpleasant difference is presented - it does not work with the MicroSD card which has been a huge part of why I got a Sansa at all.  He acknowledges, but after a media updated I'm lucky if more than one album appears.  And that's what's so crazy!  You just blow through the update in a few seconds, and when I navigate on the map, there is nothing or a handful of albums random, orphaned.  That's happened?  I updated the new Clip + for the current firmware (as I had done with previous); I made sure to reproduce all the parameters that I would be put in place before--I can't imagine what could be the cause!

    Treats quick closing:

    The card is formatted in FAT32 with the same sector size in storage aboard the player (32 768 bytes).

    A 64 GB card format works even without any problem.

    I tried to update the media in MTP and MSC mode; the problem is the same in both.

    There is ample space for MTABLE. SYS - I have not yet loaded all the music on the Clip + itself.

    Rockbox plays the card without problem, but the sound quality is horrible (at least on this player; I'm sure that other versions sound best), and its interface is a headache.  No thanks.

    HM.  Looks like to run CHKDSK /F on the map the problem resolved!

  • 200 M from Toshiba does not work with 10W connected/Vista Home Basic 32-bit

    Dear Sir

    I m having a problem with my Toshiba M200 laptop, it shows no text display or clear blue/green screen or different models with the connected 10W. But it does not work with the battery. Afer complete the system startup and normal screen if I connect the power 10W then works perfctly ok. The same procedure should be followed evertime I use my laptop.

    Can someone guide me weather it is a hardware problem or software related problem?

    Dipak Chowdhury

    Hello

    Have you checked with a different AC adapter?

    This seems to be a hardware problem.  You will need to contact the manufacturer of your computer to be able to find a solution to this problem.

    http://forums.Toshiba.com/

  • I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate.

    I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate how can I solve this
    I have an acer

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Validation status: invalid license
    Validation code: 50
    Validation caching Code online: n/a, hr = 0xc004f012
    Windows product key: *-* - XY9X3 - JDXYP-6CJ97
    The Windows Product Key hash: xFQJU8srKsovk6p1Lk1yW93in4E =
    Windows product ID: 89583-OEM-7332157-00211
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.0.6002.2.00010300.2.0.003
    ID: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows Vista (TM) Home Premium
    Architecture: 0 x 00000009
    Build lab: 6002.vistasp2_gdr.110617 - 0336
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF}1.9.0027.06.0.6002.2.00010300.2.0.003x 64*-*-*-*-6CJ9789583-OEM-7332157-002112S-1-5-21-923204104-223683984-168055983Acer Extensa 5630 Phoenix Technologies LTD.V1.30 20090319000000.000000 + 00070333507018400FA04090409US Mountain Standard Time(GMT-07:00)03ACRSYSACRPRDCT109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.0.6002.18005
    Name: Windows Vista, HomePremium edition
    Description: operating system Windows - Vista, channel OEM_SLP
    Activation ID: bffdc375-bbd5-499d-8ef1-4f37b61c895f
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 89583-00146-321-500211-02-1033-6002.0000-0042012
    Installation ID: 004511331255365043724851364501374781338933223323713385
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=43473
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=43474
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=43476
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=43475
    Partial product key: 6CJ97
    License status: Notification
    Notification reason: 0xC004F063.

    Windows Activation Technologies-->
    N/A

    --> HWID data
    Current HWID of Hash: OgAAAAEAAgABAAIAAwACAAAAAwABAAEAeqjWy6pVxGJ6f0DXhgfkNoBBsJzy9ErM1F/eG4QdrFYqhQ is

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20000
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC APIC PTLTD
    FACP INTEL CRESTLNE
    HPET INTEL CRESTLNE
    START PTLTD $SBFTBL$
    MCFG INTEL CRESTLNE
    SLIC ACRSYS ACRPRDCT
    ASF!            OEMID OEMTBL
    SSDT BrtRef DD01BRT
    SSDT BrtRef DD01BRT

    Ah! -in this case, it is not necessary.

    I see from my records that a similar case has been solved by uninstalling and reinstalling the update WAT - KB971033

    Open the Windows Update - click the link view updates installed on the left of the page

    in the list, find the WAT update KB971033, and then uninstall it.

    Then restart and reinstall the update from here - http://support.microsoft.com/kb/971033

    redemarrer restart again, then try to change your product key to the one on the sticker - what is happening this time?

  • "Windows 7 Home Premium SP1 64-bit, an error message indicates" the upgrade key you have entered is for an edition of windows that does not work with Windows Anytime Upgrade.

    Tried using Windows Anytime Upgrade. Bought at Staples have product key is entered correctly. "Following instructions, accepted USA get error message says ' the upgrade key you have entered is for an edition of windows that does not work with Windows Anytime Upgrade. Enter a different upgrade key. »

    Which edition of Windows 7 is installed on the machine?

    Which edition of Windows 7 you are trying to do an Express upgrade to?

    Please note that the Express upgrade does not support OEM, MSDN-Academic, Volume (the student faculty licenses) license. If you are in possession of all these brackets, you will need to save and do a custom clean install. If you want to do it, please backup your Windows 7 Home Premium or according to edition currently installed. Some licenses for Windows distributed to tertiary level students are not perpetual, which means that you cannot continue to use the software after a course or graduating.

    ---------------------

    Windows 7 Anytime Upgrade fails:

    If your getting the following: error: Windows Anytime Upgrade failed
    This problem may occur if Windows 7 SP1 was downloaded by Windows Update, but has not yet been installed.
    See: http://support.microsoft.com/kb/2660811

    = Other reasons and possible corrections.

    Windows Anytime Upgrade fails with the error:
    "every time that the upgrade has failed. Go online to solve the problem.
    http://support.Microsoft.com/kb/2658652

    If Anytime Upgrade still does not work:

    Shut down and restart your computer.

    Make sure that the Windows updates have been installed.

    Download the hotfix that contains a tool called CheckSUR, this tool will look at the package and the maintenance of records and difficulty any data corrupted, the tool is listed under kb947821 he can be found at the following link http://support.microsoft.com/?kbid=947821

    If Anytime Upgrade still does not work, turn off the user account control:

    1. go in user accounts in Control Panel

    2 change user account control settings

    3. pull the slider to the level as low as possible

    4. restart the PC

    5. pass by the "Anytime Upgrade" as usual

    Try the following:

    1 disable any security software before attempting to upgrade

    2. make sure that your computer is updated (devices and applications)

    3. disconnect all external devices before installing.

    4. check your hard disk for errors:

    Click Start

    Type: CMD, according to the results, right-click CMD

    Click on "Run as Administrator"

    At the command prompt, type: chkdsk /f /r

    When you restart your system, your computer will be scanned for errors and will try to correct them.

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

    Also run the Windows 7 Upgrade Advisor:

    http://www.Microsoft.com/Windows/Windows-7/Upgrade-Advisor.aspx

    Who should I contact if I have problems installing and / or activation of my product key card?

    Please contact to the: www.windows7.com/getkeysupport.

    If all above fails them, install Windows 7 Service Pack 1, and then try the Express Upgrade:

    Learn how to install Windows 7 Service Pack 1 (SP1)
    http://Windows.Microsoft.com/en-us/Windows7/learn-how-to-install-Windows-7-Service-Pack-1-SP1

    If your key is not valid and you will need to change the keys, you may need to Open regedit and remove first the ProductKey value in the following registry key:
     
    HKCU\Software\Microsoft\Windows\CurrentVersion\WindowsAnytimeUpgrade

  • Why PL/SQL procedures does not allow users to enter data dynamically at run time?

    Dear all,

    I tried to do a procedure that will search for a group of approval in our database that matches.

    (1) the number of levels

    (2) the number of users by each level

    (3) the id of users by level

    entered by the user.

    I tried various methods to receive user input dynamically at run time, but in vain.

    Finally finished my procedure allowing the user to enter the parameters and then executes the procedure, to which these parameters are passed as arguments. (1 variable for the number of levels and 2 userdefinedarrays with the number of users by level and level respectively)

    Why PL/SQL procedures does not allow users to enter data dynamically at run time?

    Thanks in advance,

    Séverine Suresh

    HEY, Sebastian,

    3035408 wrote:

    Hello Sir,

    My question is that if I'm going to say, the number of levels 5, is there any way by which, at runtime, the procedure prompts me to enter at the start of the number of users per level. Now as soon as I get the number of users per level can I do the procedure ask me to enter the nicknames of the members of each level. I mean, something like a invite.

    Thank you

    Séverine Suresh

    There is no way to do it in SQL or PL/SQL, because not SQL PL/SQL is a way to get user input.  User interaction is a job for your front end, like Zlatko tool suggested in response to #5.  If your front end tool is SQL * Plus, you can use the substtitution variables, as Jarkko showed in response #6.

  • Free trial installation does not work with my windows

    Need help, late last night, I installed the new photoshop Lightroom 4.2 and didn't know that it does not work with windows XP.  Is it possible to downgrade my program installed to one that works with windows xp?

    N ° Adobe sells only current versions. And why would you want to cling to an old BONE in 10 years?

    Mylenium

  • APEX 4.0.1. does not work with IE8 or Firefox 3.6

    I've updated my brwser IE from 6 to 8: even the login page to find errors reporst APEX.
    The entire application does not work with Firefox.

    I do any customization for Firefox and IE8?

    Error messages (such as reported by IE8):



    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152 .NET CLR 3.5.30729;. InfoPath.2; .NET CLR 1.1.4322)
    Timestamp: Friday, October 22, 2010 07:49:27 UTC


    Message: Not terminated string constant
    Line: 8
    Char: 78
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/libraries/jquery/1.4.2/jquery-1.4.2.min.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_legacy_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_widget_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_dynamic_actions_4_0.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/libraries/jquery-ui/1.8/ui/minified/jquery-ui-1.8.custom.min.js


    Message: Invalid character
    Line: 1
    Char: 1
    Code: 0
    URI: file:///D:/apex4.01/apex/images/javascript/apex_builder_4_0.js


    Message: "apex" is not defined
    Online: 89
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012


    Message: Object EXPECTED
    Online: 46
    Char: 1
    Code: 0
    URI: http://127.0.0.1:8080/apex/f? p = 4550:1:2607772430187012

    Hello

    Path of the image must be
    You have wrongly last set in the installation script

    You can reset the path of the image with the reset_image_prefix.sql script.
    Run the script as SYS. When he invites new path enter

    /i/
    

    After this you may need to download images again to DB with the apxldimg.sql script

    Kind regards
    Jari

  • It does not work with macbook air 2008! What should I do?

    It does not work with the macbook air 2008 os x 10.5.8. What should I do?

    What does not work?

    More details please!

  • Why do code grayscaler site image Web does not work with Mozilla Firefox, but it does to another browser?

    I just noticed that my code (in my blog site), which is a regular code that allows the image to transform into its form in grayscale and cast its original color, does not work with the Mozilla Firefox browser. But with other browsers, it works. I hope you can help me with this little problem. Thank you!

    Should I use a CSS rule that is similar to:

    filter: grayscale(100%)
    

    This property is not yet implemented in Firefox. It is supposed to be implemented in Firefox 34, according to https://developer.mozilla.org/en-US/docs/Web/CSS/filter

  • iCloud 5.2.1.69 does not work with Outlook 2016 (16.0.6965.2053)

    I installed the new iCloud (v5.2.1.69) and found that it does not work with Outlook 2016 (16.0.6965.2053). There is no button "Options"... "to"Mail, Contacts, calendars and tasks"(see photo). In addition, the iCloud Outlook add-in does not display in Outlook. I tried to reinstall the Office 365 and iCloud, but nothing has changed.

    I have exactly the same problem with the latest version of iCloud.  I have Outlook 2016 and 10 Windows and when I try to install iCloud there saying "set up" next "Mail, Contacts, calendars and tasks.  I left it for hours and it does not go beyond this point.  Outlook displays the listed add-in but it is not doing anything.  I tried to remove all of the Apple software, and then reinstall iCloud without result. I've deleted and reinstalled MS Office and then tried to reinstall iCloud - once again no luck.

  • keyconfig does not work with FF 24.0. Is there a way?

    I just finished rebuilding my PC from a hard drive format. In doing so, I loaded the last 24.0 FF.
    Part of my essential app is a script used keyconfig causes a single copy to send the source page to the Clipboard, where the script analysis. Unfortunately, keyconfig does not work with FF 24.0.

    Writing for easy copy begins to explain how acting on a combination of keys, rather than the action of the mouse, without the use of keycopy - but then told how he has no need, because it's too much effort, and besides - keyconfig exists and does the job - which, I agree, he used, very well - but it is no more.

    What should do? If there is no other way, can I get a downgrade of FF that works with keyconfig?

    There is a new add-on, key config (note the space), but it does not what keyconfig did.

    The end of the thread main support doesn't mention a major problem in Firefox 24: keyconfig 20110522 - mozillaZine Forums.

    Did you install from source: http://mozilla.dorando.at/keyconfig.xpi

    Is the problem that Firefox won't let you activate keyconfig, but the dialog box opens, or you can activate or extension allows you to create shortcuts but they do not work?

  • Downloaded the new firefox and it told me that it does not work with my software, how do I go back to my old version

    I have a mac 10.5.8 software. I downloaded moxilla firefox 24 and has replaced the old version to download. Then I got a message that firefox 24 does not work with my software. How to bring back the old version?

    Hello patcouse, if you want to stay with you older version of the OS, then firefox 16 is the last version available that will run in this environment. for a download link, please refer to the Firefox no longer works with Mac OS X 10.5 (at the end of the article).

Maybe you are looking for

  • Be part of Mozilla

    Hello I am Ali from Turkey. I am a student at the Technical University of the Middle East which is famous among students in Turkey to the Department computers and instruction technology and I will graduate in June from 2016. I want to change to becom

  • Hi, how can I change the screen resolution?

    I keep saying to change the resolution of the screen but don't know how to proceed and would appreciate some advice before doing the wrong thing.

  • Possible solution to your WIFI problems

    OK, switch the connection to the local network to your wireless network. First: restart the computer, then turn on the Flash ("C:\Program Files\Toshiba\FlashCards\TCrdMain.exe") cards, at this point your Fn + F8 should work to check and turn on WIFI.

  • Re: I have to restart Flashcards to operate

    When I start my laptop, the maps do not work by default. I have to "restart flashcards" in Start/Toshiba utility, then they work OK. When I got the laptop, they worked properly. What happened, and how can I make them work at startup?

  • HP Deskjet 6940 printer drivers

    Is there a print driver for win8.1 for the HP Deskjet 6940?  If this isn't the case, fits in the works?