Problems with the procedure at the level of the stcok update

Hi, I am new to Oracle and I have problems with this procedure.
I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
The tables are

create table orders
(order_no number (4) orders_nn_11 the NOT NULL constraint,)
item_no number 4 orders_nn_3 of the NOT NULL constraint,
order_qta number constraint orders_nn_4 NOT NULL,
ORDER_DATE date NOT NULL constraint orders_nn_2,
(date of receipt);
and
create the table stock
item_no (4).
Number of CQI,
constraint stock_pk foreign key (item_no) references products (item_no);

the procedure is here, but as I said I am new to this, so I really don't know.


create or replace
procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
is
quantity number;
number of quantity2;
cursor a1 is select qta in stock where item_no = aitem_no;
cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
Start
Open a1;
extract the a1 in quantity2;
Open a2;
Fetch a2 in quantity;
stock update
Define qta = quantity2 + quantity
where item_no = aitem_no;
Update orders
received game = sysdate
where order_no = aorder_no;
near a1;
Close a2;
end;
/

Thanks in advance

Hello
Perhaps because ther eis no COMMIT.
Or have I missed?

Something like that

.....

close a1;
close a2;
commit;
end;
/

Kind regards
Bobin

Tags: Database

Similar Questions

  • Print problems with the recent update to Version 10.11.5

    Print problems with the recent update to the Version of El Capitan 10.11.5.  Cannot print to my Epson and Samsung printers after update to new IOS.  Print jobs get hooked on my Mac Pro.

    Roger 510 wrote:

    Print problems with the recent update to the Version of El Capitan 10.11.5.  Cannot print to my Epson and Samsung printers after update to new IOS.  Print jobs get hooked on my Mac Pro.

    Have you checked with Epson for an updated printer driver?

  • Anyone know if there is a problem with the "Windows Update" site? Since May 11, 2010...

    Anyone know if there is a problem with the "Windows Update" site? As of May 11, 2010 I could not access it for 2 days now.  I get an error report indicating that he has a "problem with the site '... Not sure if it's my computer or the site itself. I just need to check updates and download them. I would be grateful for any feedback...  Thank you!
    ~ Jenifer

    It is without a doubt.  There were a few patches published today, and I was able to update all my machines successfully.  This looks more like a virus problem.  Have you run a virus scan recently?  Many times, if you are infected the virus will prevent you to access Windows Update.

    You can also use Microsoft Fix It to reset the Windows Update components: http://support.microsoft.com/kb/971058.  This could also be your problem.

    Let me know how it goes,

    Barbara

  • I am also having the same problem with the same updates. I have Windows XP SP3 and it's updates with the problem.

    I am also having the same problem with the same updates. I have Windows XP SP3 and it's updates with the problem.

    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2572073)
    A security update for .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x 86 (KB2518864)
    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2633880)

    They all install properly but switches back to windows update to install. It's some kind of loop.

    Hi billy73,

    In addition, if you still have questions, please take a look at the thread similar here with a solution as possible.

    I hope this helps!

  • Problems with the Eclipse Update site

    Hello

    I try to install the component pack v6.0.0. I'm just following the instructions here

    http://NA.BlackBerry.com/eng/developers/javaappdev/javaupdate.jsp

    and installation just hangs (or I get the Exception of transfer). I found many messages of forum on the problems with the update site but no solutions. Is this one? Or y at - it another way to install the component pack in eclipse?

    Thank you

    Sarah

    Hi Mark,

    Apologies that I was on vacation and never had to deal with that. I just tried to update the software development kits using the same procedure. It must have been a problem with the update site before that it worked well this time.

    Thank you

    Sarah

  • Problem with the new update

    Any browser looks graphically unstable and content is empty with the new update, is it just me or is just the update which is unstable?

    Hello

    Try disabling graphics hardware acceleration. You will have to perhaps restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Then perform the following steps:

    1. Click the menu button

      then select Options Preferences on Mac or Linux, or Windows.

    2. In the window of Firefox Options (or preferences), click on the Advanced tab, and then select general.
    3. You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.
    4. Now restart Firefox and see if the problems persist.

    In addition, please check the updates for your graphics driver by following the steps in the following knowledge base articles:

    This solve your problems? Please report to us!

    Thank you.

  • Problem with the WIndows Update page

    I am running Windows XP with Service pack 3. Microsoft Security essentials is the security system. When trying to run Windows Update using Internet Explorer 8, at the point of the page is to check that if my system is the correct update software, the page fails, finally displaying the message "Internet Explorer has stopped to try to restore this Web site. It seems that the Web site continues to be a problem. "This is repeated each time I have repeat the initial attempt, or click 'Back to the microsoft.com site' on the error page. Is the problem with the Microsoft web page (the address is www.update.microsoft.com/microsoftupdate/v6/default.aspx ) or on my computer?

    When I try to run Windows Update... to the point that the page is to check If my system is correct, update software the page can't...  Is the problem with the web page of Microsoft ( www.update.microsoft.com/microsoftupdate/v6/default.aspx ) or on my computer?

    You are correct George: whenever you access the site Windows or Microsoft Update, Windows Update will take care of updating itself. that is, it looks for updates available from the Windows Update Agent or the customer allows you to update your system.

    Since June 21, 2012 a WUA new version 7. 6. 7600. 256 aired by WU to automatically update itself its version now aged 7. 4. 7600. 226 .

    The problem you see may occur when there is a version mismatch of the file with the Windows Update Agent files, which is a mixture of old files with the new files. This is due to an installation "or damaged."

    You can take a look at your windowsupdate.log file located in your WINDOWS directory, to check the error codes - missing files or failling updated files (especially c:\windows\system32\wuapi.dll, wups2.dll, c:\windows\system32\wups.dll or wuweb.dll).

    You must re-register or re - install files WU in order to obtain the Service Windows Update works again. Try here:

    http://support.Microsoft.com/kb/958053

    And

    http://support.Microsoft.com/kb/949104

    Trust that this assistance.

  • I have problems with the Windows Update feature!

    I have problems with the function of update windows for KB2596598, KB2596744, KB2687310, KB2596786 with an error code of 80070641.  They keep for lack of update!  My current windows is Vista Home Premium! Do you have a solution for this?

    If System Mechanic is or has been installed, it is your troublemaker & you have lots of company!

    See my colleague Maurice RESPONSE message in this thread: http://answers.microsoft.com/thread/d6fedf33-dc1b-451f-9aab-97429f916180

    If still no joy, contact System Mechanic (iolo.com) supported for assistance-, they are well aware of the problem application has caused!

    TIP: If you think that more never your registry database needs to be cleaned, repaired, boosted, to the point, healed, twisted, fixed, magnified, "swept" or optimized (and even more to convince that it is not), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions. See also http://blogs.technet.com/markrussinovich/archive/2005/10/02/registry-junk-a-windows-fact-of-life.aspx

  • I have a problem with the background update

    I pushed on Adobe Acrobat Reader DC via MSI for all my workstations that are Windows 7 machines.  The installation went without any problems, but I didn't know that the program updates automatically and it is in the diary of the events of these errors.  Product: Adobe Acrobat Reader DC - update '{AC76BA86-7AD7-0000-2550-AC0F084E7200}' could not be installed. Error code 1625. Windows Installer can create logs to help solve the problems with the installation of software packages.  Is there a way I can either A) disable these automatic updates or B) force these updates to cross even without administrator privileges?

    Hi orangejake1990,

    Disable you updates in Acrobat Reader ms, please refer to this link Windows updates.

    Otherwise, you can manually download the updates Adobe - Adobe Reader: for Windows & push.

    Kind regards

    Nicos

  • I have a problem with the CS5 updates

    Hello

    I have problems with the update of my CS5. I get an error message "there was an error downloading this update. Quit and try again later.

    Can you please help?

    Thank you

    Eli B

    See if doing manually works

    All the early 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/

  • Problem with the plugin Update Manager

    I'm having a problem with the update on my VC Server Manager (2.5 build 104215).  Update Manager is not downloaded updates.  In VC when I go to Plugins it shows that Updae Manager is installed and enabled.  If I remove the check mark for Enabled & then turn it back on, I get a message - "the server could not interpret the customer's request" - but the checkbox reappears.  I also have this message when I run VC on the server, but not from my PC.

    If I right click on the download VMware Update Manager update scheduled task and select Properties, I get a message - "the plugin for this task has not been saved.   All VMware services are started.  The Update Manager

    Update Manager is built 1.0.0.63972 and the VI client on the server is 104215

    Thanks for any help.

    He is now in place and running as planned?

  • Problems with the last update of Windows - XP

    My office has recently installed a few days ago most recent Windows automatic updates. I have never had any problem with them until once they have been installed. Now, I am constantly the dreaded BSoD, and my computer not acting is not right. My tv tuner gel to my computer disconnected from the internet after a while to even my mouse not acting pointer is not right (he is not above windows, sometimes only behind them). The Blue Screen of Death appears for a split second, so I have absolutely no time to see what he says.

    The error report contains the following:
    C:\DOCUME~1\LPLINK~1\Locals~1\temp\WER6c8a.dir00\Mini112609-01.dmp
    C:\DOCUME~1\LPLINK~1\Locals~1\temp\WER6c8a.dir00\sysdata. XML

    The error signature:
    BCCode: 1000008e BCP1: C0000005 BCP2: 004D004E BCP3: 9EBD4B70
    BCP4: 00000000 OSVer: 5_1_2600 SP: 3_0 product: 256_1

    When I look into the details, he said something about a device driver. But that doesn't help really since everything he ever said whenever I get a "serious mistake." I've done many analyses of virus/malware/spyware (even with the different products as well) and they all find nothing. Which brings me to the conclusion that the most recent updated Windows (23 or 24 November) is what caused my office these problems.

    If someone could help please shed some light on this problem it would be greatly appreciated.

    Edit: I also noticed that when my computer disconnects from the internet, I have to restart in order to regain access to the network. But when I try to restart, it refused to stop and freezes just my background image. I also have a laptop with XP Professional SP3 on it and I have absolutely no problem with him. It is only limited to my office.

    Legrand, I had the same problem and it was driving me crazy too. I tried everything and finally understood the November 25 or 26 update messed up my AVG anti-virus. I deleted via the control panel and did not have a freeze since! I hope you are using AVG, cause if you are, it's probably your answer too. I'll check back here soon to see if this helped you.

  • problem with the window update

    After putting to date of windows 8 to 8.1, my pc window has been activated to turn on.

    I own a laptop of pavilion g6 C5T69EA #BH5, when this was the case a message appeared on my screen saying that my pc has a problem. Then my previous window has been installed, after my pc a switch on.

    My question is what is the problem, how do to solve the problem and if I can install windows 8.1.

    My device is compatible with this window 8.1, I have already tested with the help of microsoft upgrade

    Hello @rebeccamamedy ,

    Welcome to the HP Forums!

    This is a wonderful place to find answers and information!

    You have the best experience in the HP forum, I would like to draw your attention to the Guide of the HP Forums Learn how Post and more

    I understand that you were unable to complete the upgrade to Windows 8.1. but it is consistent that you have performed the update checking tool.  I regret having this difficulty.

    Have you had a running anit-virus that might have prevented it?

    Alternatively, you can try to install the update in safe mode with network.  Computers HP - Safe Mode of Windows 8

    Did you run HP Support Assistant to ensure you have the latest HP updates before you tried this?

    Here is a link to update from Windows 8 to 8.1 to help you.

    If you are still unable to update to Windows 8.1 I do a Refresh Your PC to solve problems (Windows 8) and then retry the update.

    The last option is to do a cover of the factory and in case of failure to allow the upgrade I suggest to contact HP support for further assistance.

    HP computers - performing a recovery of HP (Windows 8) system

    During recovery, you will have an option to backup your personal files to avoid data loss. If you did not recently, I suggest you only do one now.

    HP computers - restore files that have been supported to the top using HP Recovery Manager (Windows 8)

    Please contact our technical support at 800-474-6836. If you do not live in the United States / Canada region, please click on the link below to get a number of assistance for your region.

    World wide phone holder

    Good luck!

  • Is there a problem with the latest update of Windows for Vista (January 13, 2016).

    After installation of 10 updates by restarting, through phase II and restart again my display driver stopped working so there is nothing on the screen. The disc did something for about 20 minutes, but there is no signal on the screen (yellow light instead of green).

    I had to do a restore, but Windows guard eager to make the same update, leaving me in the same position with no display.

    What should I do?

    Hello

    Microsoft gives sometimes you updates for the 3rd party hardware: graphics, network cards, etc.

    You should only get the latest drivers for them to real hardware manufacturer's website, as Microsoft normally does nor those have the most recent drivers available as Microsoft relies of the 3rd party hardware Manufactuer to provide.

    But unfortunately, the only way to know which is the update of the problem is to install them one by one, until you find the 'wrong' for your installation.

    You can do a system restore to get back until it has been installed (which is NOT the best way to remove an update) or follow this method:

    'Remove an update'

    http://Windows.Microsoft.com/en-us/Windows-Vista/remove-an-update

    When you have found the issue of update of the list of updates which is presented > then right click on the update problem > select Hide update > and it will not be available to you once again

    "How to hide or show an update of Windows Vista"

    http://www.Vistax64.com/tutorials/72491-Windows-Update.html

    _____________________________________________

    Here's how to change the update settings, if you think it is necessary to:

    "Understanding Windows Update and Extras in Windows Vista and Windows 7.

    http://www.bleepingcomputer.com/tutorials/Windows-Vista-updates-and-extras/

    Or the other of these two update settings will give you the chance to see what you want to install through Windows updates;

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

    But remember you normally only have problems with hardware 3rd party drivers. Other updates are to improve the Performance and security of your system

    See you soon.

  • I have a problem with the Windows updates do not install it.

    Windows updates do not install.

    You receive errors related to updates?

    1. Open Windows Update by clicking the Start button, all programs and then click Windows Update.
    2. In the left pane, click view update history. http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed
    3. Find an update for Windows that has failed to install, and then double-click the update to view more information. Updates that have failed to install will display failed under status, next to the name of update.
    4. In the Windows Update dialog box, next to the details of the error, review the error code for the update has failed.
    5. Follow the links in the Windows Update dialog box under more information or help and Support to resolve the problem, then try to reinstall updates by using Windows Update in Control Panel or by mail with the error code and maybe someone may be able to help others.

    Windows update General troubleshooting

    Suggestions-

    How to reset the Windows Update settings?

    http://support.Microsoft.com/kb/971058

    Diagnose and fix common problems with Windows Update http://support.microsoft.com/mats/windows_update/ automatically

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2 http://support.microsoft.com/kb/2509997

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update http://support.microsoft.com/kb/910339/

    Clean boot and run Windows Update: http://support.microsoft.com/kb/929135

  • Windows vista and the problem with the window updates more computer or mouse freezes

    I have window vista system.

    Impossible to update versions of window

    mouse/computer frequent freezing problem

    have installed McAfee total protection

    Hi DilipAssar,

    ·         What happens when you try to run windows update?

    ·         You receive an error message/code?

    ·         Did you the latest changes on the computer?

    ·         How long have you been experiencing this problem?

    ·         What exactly is the computer or the mouse gel?

    Search for the error message for the updates that have failed to be updated.

    To check the update fails, follow the steps:

    Click Start > all programs > windows update > view update history

    I suggest you try the methods mentioned below and check if it helps.

    Method 1: Put the computer in a clean boot State before proceeding with the installation of windows update.

    Note: After installing windows update, follow step 7 in the link provided to return the computer to a Normal startupmode.

    Method 2: Temporarily disable the security software.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 3: Reset the Windows Update components.

    http://support.Microsoft.com/kb/971058

    You can also manually install the update (numbers KB) by downloading from the Microsoft Download Center.

    http://www.Microsoft.com/downloads/en/default.aspx

    Reference: http://windows.microsoft.com/en-US/windows-vista/Ways-to-improve-your-computers-performance

    http://www.Microsoft.com/athome/Setup/optimize.aspx

Maybe you are looking for

  • How long can I use my faily phone for?

    I'm very curious, since I paid my contract, I'm over 21. My niece who is 23 years younger than me (about 10) uses a 4S and want to update, and I say no, I don't know how long she can keep as his phone every day before I update. I'm his guardian, sinc

  • Drivers for Envy 15 t-j000 on windows 7

    I installed windows 7 on my hp envy 15 t-j000 and am a hard time finding all the drivers. Here are some of the specs on mine, any help would be appreciated. • 4th generation Intel Core i7-4700MQ CPU• NVIDIA GeForce GT M 740 graphics with 2048 MB of v

  • printer Officejet 6600 failure

    I get the same error and cannot find a way to solve the problem.  Unplug/turn off does not help.  I have recently replaced my ink cartridges, or empty ink cartridge slots in the printer, so I do not know is not the problem.

  • Call the base-dos .exe file, but how the input parameters and get the text on the screen of the BACK?

    Yes, I tried the similar topic before posting about this. I understand that we can use standard input of entrance of parameters of the System exec.vi, but still can not find an answer on "how to get the text on the screen of the BACK. 1 seal of sw500

  • Sound Volume settings do not go below 20% or greater than 70% HELP!

    After restoring my computer using Norton Ghost because of this problem, it happened again after several days and I have no idea why, or how to solve this problem. The green light on volume will be not less than 20% and not more than 70% using differe