Compiled slider but execution failed

Hi all

I am trying to remove the data from several tables based on the value of retention configured in different tables, I am able to compile the procedure without any error but when I run it I get ORA-06512 and ORA-01001, I googled the error it is said the slider isn't being open.

Please let me know where I am doing wrong.

CREATE OR REPLACE PROCEDURE TEST_CUR

IS

V_IA_TABLE ALL_TABLES. TABLE_NAME % TYPE;

V_STG_TABLE ALL_TABLES. TABLE_NAME % TYPE;

V_RETENTION_IA INTEGER.

V_RETENTION_STG INTEGER.

SQLSTATEMENT_IA VARCHAR2 (500);

SQLSTATEMENT_STG VARCHAR2 (500);

CURSOR TABLES_IA

IS

SELECT IA_NAME IN PERM;

CURSOR TABLES_STG

IS

SELECT STG_NAME IN THE STGLIST;

CURSOR RETENTION_IA

IS

SELECT RET_VAL IARET;

CURSOR RETENTION_STG

IS

SELECT STG_VAL IN THE STGRET;

BEGIN

RETENTION_IA OPEN;

EXTRACT THE RETENTION_IA IN V_RETENTION_IA;

CLOSE RETENTION_IA;

RETENTION_STG OPEN;

EXTRACT THE RETENTION_STG IN V_RETENTION_STG;

CLOSE RETENTION_STG;

TABLES_IA OPEN;

LOOP

EXTRACT THE TABLES_IA IN V_IA_TABLE;

WHEN THE OUTPUT TABLES_IA % NOTFOUND;

SQLSTATEMENT_IA: =.

"DELETE FROM".

|| V_IA_TABLE

|| "WHERE MONTHS_BETWEEN (SYSDATE, IA_DATE) > '."

|| V_RETENTION_IA;

IMMEDIATELY RUN SQLSTATEMENT_IA;

END LOOP;

COMMIT;

CLOSE TABLES_IA;

OPEN TABLES_STG

LOOP

EXTRACT THE TABLES_STG IN V_STG_TABLE;

WHEN THE OUTPUT TABLES_STG % NOTFOUND;

SQLSTATEMENT_STG: =.

"DELETE FROM".

|| V_STG_TABLE

|| "WHERE MONTHS_BETWEEN (SYSDATE, STG_DATE) > '."

|| V_RETENTION_STG;

IMMEDIATELY RUN SQLSTATEMENT_STG;

CLOSE TABLES_STG;

END LOOP;

COMMIT;

END TEST_CUR;

/

Kind regards

Jessica

You close the cursor inside the loop:

IMMEDIATELY RUN SQLSTATEMENT_STG;

CLOSE TABLES_STG;

END LOOP;

And you must use a connection variable:

sqlstatement_stg: = "DELETE FROM". v_stg_table | "WHERE MONTHS_BETWEEN (SYSDATE, STG_DATE) >: 1';

execute immediate sqlstatement_stg using v_retention_stg;

Tags: Database

Similar Questions

  • "Server execution failed".

    From: jl1989

    Hi, I have trouble with just "Connect to a network" & "Network & Sharing Center". The bottom screen shows Wireless ' connection status:

    "Unknown"and "Server execution failed". However, I let the internet if I use web applications.

    This isn't a problem for the networks that I've already selected connect automatically to the. But when I'm trying to connect to a new network, the screen "Connect to a network" takes a few minutes to load.

    Also, my network & Sharing Center does not load, is frozen whenever it is open and cannot be closed. It is a problem when you try to change working group information or network settings.

    Any help is appreciated. Thank you.

    De : Robert l. (MS-MVP) 

    The administrator may need to be added to the local service. These positions may help. Please post back with the result.

    Network and sharing Center freeze

    http://chicagotech.NET/NetForums/viewtopic.php?p=4547#4547

    No network - server execution failed in all cases the interface (all, not only the Explorer), would freeze for a few... able to enter the network sharing Center in any reasonable...

    www.chicagotech.net/NetForums/viewtopic.php?t=1001

    --

    Bob Lee, MS - MVP, MCSE & CNE

    Networking, Internet, routing, VPN Troubleshooting

    http://www.ChicagoTech.NET

    How to setup Windows, network, VPN & remote access on

    http://www.HowToNetworking.com


     

    Another response of the community of Windows Vista discussion groups

  • VISTA: backup application could not start due to an internal error: (0 x 80080005) Server execution failed

    The backup application could not start due to an internal error:
    Server execution failed (0 x 80080005)

    Vista Ultimate - trying to COMPLETE the backup of a computer

    Hi people,

    I had a similar problem with Vista (64-bit edition complete edition) machine. I run automatic backups for more than a year. Suddenly, backups started fail with the following error code:

    "The file or directory is corrupted and unreadable 0 x 80070570.

    I thought it would be my external drive - so I tried an another one - same error. After a search of different topics around, I tried various fixes (similar to above), but none of them worked.

    I managed to find the problem though. The issue is not with the drive being written - it's the current backup disc that is the problem. If you want to save your primary drive (C:, for example), try to perform a check of the errors on this drive (right click on your drive home, you are trying to save, choose 'Properties' then go to 'tools' - click 'Check now' under the control of errors - and check both boxes). Since this is the current drive, you must stop and restart - the system then automatically checks the system files and windows files on the next boot.

    After doing this, my problem cleared up. Apparently, the backup software was crashing trying to read a corrupted file or a sector of the hard disk, that he was backing.

  • When you start Windows Media Player I get error: "Server execution failed".

    Hello

    When I try to start Windows Media Player by double-clicking an audio or video file, I get the error "Server execution failed" for this file. Can someone tell me what this means and what I can do about it?

    Thank you

    Christi

    Hi Christi,

    You may receive this error if you try to open a file media shortly after the closing of Windows Media Player (WMP).  When you close WMP, the user interface is closed immediately, but WMP continues to be in a State of "shutting down" for a few seconds, and the process is still in activity during this period.

    To avoid this problem it should be enough to wait a few seconds before Windows Media Player opens, 2 seconds at least.

    Bobby

  • PC Backup doesn't work no-internal error: Server execution failed - error Code 0 x 80080005

    Hello

    I use Vista Business SP2.

    I'm having a problem with Windows complete PC Backup. When I click on the "create backup now" trying to create a full backup of the computer, spends about 15 seconds and then this message:

    The backup application could not start due to an internal error:
    Server execution failed (0 x 80080005)
    Please check the configuration of your system and try again.

    I click on ok, and the message appears once more.

    I'm trying to save on the same disk external I used for backups. Backup of the files on this drive works fine.

    Here are a few things that may be useful to solve this problem:

    1. I recently uninstalled and tried to reinstall Sophos Anti-virus, but I can't reinstall.
    2. My computer has been restored using the backup of the computer in the past. I have not saved since.
    3. I recently changed the permissions/owner on the external hard drive that I support up to.

    Thanks in advance.

    If you have replaced TrustedIstaller with something else, which could very well be a part of the problem.  It is a user of the system and it can be called by the name of some programs and if she isn't here so the program does not know what to do.  I don't know how to solve this problem - I don't think add that a new administrator account to the user with this name will do (because it will have a different code).  In my view, that a re - install is the only way to solve this particular problem.

    Here is an article on the fixation of 4201 event viewer error: http://www.vistax64.com/tutorials/110886-event-viewer-error-4201-a.html but I wouldn't bother with this if you have an Installation of Windows Vista genuine disc.  Come back if this disc does not (and I don't think it will be necessary).

    CONGRATULATIONS on finding a disk for Installation of Windows Vista SP2 genuine - I guess that it's 32-bit (like your system).  It is exactly what you need - a commercial version.  The OEM versions do not work because they include device drivers specific to their computers and those who will hose your system unless they have exactly the same system for (and I don't think you can do an upgrade by using the OEM versions - at least not all of them - just a clean install {although I found a HP and it has used to update my XP system crashed then) ({I was waiting the disc of real update that I bought from Dell - not exactly kosher but finally in compliance}).  Here is the procedure: http://www.vistax64.com/tutorials/88236-repair-install-vista.html.  Although this will not affect your data, settings or programs, you should always back up your data before you start just be on the safe side (by copy and paste if necessary even if you can't use the full backup feature). If other procedures do not work, it is almost certain to work.  You can have a lot of updates to re - install.  What version of Vista do you have currently?  I think that the drive will work with any version of Vista (they contain probably all versions on them and that they install is governed by the Code of the product used - but I have never actually tried using a different version of disc - I only heard this said by people who seem to know what they're talking about).  The fact that it is SP2 means that you won't have to uninstall all the Service packs that is even better.  I REALLY hope it works for you.  Make sure you use the UPGRADE option or you're going to do a clean install.  If the upgrade option is grayed out, it means that it will not work (but I don't think that this will be the case).

    If the drive works (and after installing all updates), then there should be nothing to fix on your system - it should work like new.  You should be able to do your backup with no error message.  Have no other problems.  This will fix the problem with TrustedInstaller so.  I feel confident thiis will work.

    I mentioned that Acronis because first of all, it's the best backup software and secondly because there could be a workaround, because it does seem like there was another solution because you do not want to delete this special software (but now that you have the disc - which is debatable – although it is still the best software {even though) ({, as you say, it's not free}).

    As far as Windows7 goes, I refer you to the Windows7 Forum at: http://social.answers.microsoft.com/Forums/en-US/w7install/threads where the people who specialize in installation, the upgrade, and activation Windows7 will be more than happy to help you in the process.  I have Windows7 (my computer is not compatible and it is too costly to update since it's several components that need to be changed and my other computers are even older, so he has no hope here - I just have to wait until the "I need a new computer" but strikes me to new, but that will probably not for one or two years).  To be honest, I wouldn't intentionallly update at this point even if I could because I always wait a while before installing a new OS (generally up to the publication of its SP1 and in the case of Vista its SP2) to let other people work the new bugs - and there are some despite what you see in the ads.  Spend time on Windows7 forums, if you don't believe me.  Out of the box, she seems to be better than Vista did (which was awful) but there are still issues that need to be addressed - I'll wait instead until it is more stable (and a bit of my software is not compatible and I don't want to have to go out and buy all these updates at the same time (, because it will be too expensive overall).  But if you want to upgrade, which is perfectly fine - thousands of others do (always, especially since Vista has problems after all this time) and I totally understand.  This is just my own personal bias and procedure - I don't recommend to my clients that I recognize it as being just a personal preference rather than one-piece objective advice.  Before installing Windows7, make sure that your system is ready with the Windows7 Upgrade Advisor to: http://www.microsoft.com/windows/windows-7/get/upgrade-advisor.aspx - you should perhaps update or remove some software and may not even need to upgrade certain hardware - better know before you start (especially if you go x 64 which I assume that your PC is able to treat - mine isn't).

    I hope this helps and wish you all the best in your effort to make the repair/improvement of the system.  I hope it works.  Remember that you must use your own product key to activate the software if necessary.  If it does not automatically have to activate manually, go to start, search, and type in slui 4 enter.  Enter your country and press Next.  You will be on a screen with a phone number and a bunch of codes below.  Dial the number and browse automatic guests until you get to a human being.  Have your handy product code because it will be asked.  Explain that you had a problem and you need to reinstall the OS but it's the same PC.  They should give you a code to enter on this screen to activate Vista.

    Good luck! Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Windows 7 - Media Player 12 problem - won't open - error "Server execution failed".

    Hello

    I have trouble with WMP 12 on Windows 7. Whenever I try to open the program, the window opens, but it is completely insensitive and greyed out. I can close it in "End task" in the Task Manager.
    When I try to open a file, for example a video, I get the C:\User\Public\Videos\Filename.wmv error message
    Server execution failed
    Previously, I was able to remove the library to solve the problem. Nothing I did worked this time.
    Any help or assistance would be greatly appreciated that Windows 7 was not a very good experience for me so far!

    Kind regards

    Jonesyboi

    Hi Jonesyboi,

    Welcome to Microsoft Windows 7 answers Forum!

    Lets first try these two methods of troubleshooting and check if it is resolved.

    Method 1.
    1. click on start and in the search bar type cmd.exe
    2. right click on cmd.exe and click Run as administrator
    3. in the command prompt, type the following command

    net localgroup "Administrators'"NT Authority\Local Service"/ Add

    4. press on enter and restart the computer

    Method 2.
    Uninstalling and reinstalling Windows Media Player:

    Step 1.
    Uninstalling Windows Media Player:
    1. go to start and in the search type "Turn Windows willing or not.
    2. click on "Turn Windows features on or off".
    3. search for multimedia and uncheck the brand in the face of Windows Media Player.
    4 restart the computer
     
    Step 2.
    Reinstall Windows Media Player:
    1. go to start and in the search type "Turn Windows willing or not.
    2. click on "Turn Windows features on or off".
    3. find the multimedia functions and place a check mark in front of the Windows Media Player.
    4 restart the computer.

    Try to read the file now.
     
    It will be useful.
     
    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.
     
    Visit our Microsoft answers feedback Forum.

  • In windows 7, Windows Media Player does not work and displays "Server execution failed".

    I am facing a problem when I want to open the WMP it does appear anything (do not open) and when I try to open a media file, then it displays "Server execution failed". Could any body help me solve the problem.

    Things to try:

    • Uninstall WMP then reinstall it of "features" - "turn on or off windows features" develop ' media features. and uncheck the 'Windows media player' reboot your PC and then do the same thing but check WMP to reinstall it.
    • run WMP - problem shooters in "search programs and files" enter "help" (without the quotation marks), in the results click "troubleshooting." Click on 'programs' and run the WMP troubleshooters.
    • Run the wmp FixIt - go to http://support.microsoft.com/fixit/?wa=wsignin1.0 and run the FixIt of MP.

    If it still does not work, try a SFC/scannow scan.

    If all goes well, one of the highest peuvent help.

  • "Server execution failed" in Windows Media Player

    original title: the execution of the server failed

    Often, when I play an audio file in Media Player, my computer loads for a few seconds and then gives the error "Server execution failed". I tried everything in this topic: http://answers.microsoft.com/en-us/windows/forum/windows_7-sound/windows-7-media-player-server-execution-failed/ecc08c3b-d445-48c2-b07d-9df48500434f, but it does not solve my problem. I got the errors of memory before, but I fixed those.

    The suggestion worked for you? Try 5 second delay.

    Sometimes an audio file has a period of closure in fade or even silence or a low level at the end. If you click on to read another file before the file is actually finished playing, you get a server running has no reviews.

    It would be more elegant if the application produces a message of type "has a moment, please" and then fix the new request, but...

    Tom Ferguson

  • Problem with Windows Media Player: "Server execution failed" and "files needed to display video are not installed or do not work properly.

    I have a problem with Windows Media Player on laptop Lenovo G780. My laptop is under warranty (bought a month ago), but technical support Lenovo told me that the Windows Media Player program is not covered by the warranty.

    And this is a problem:

    When I click on Windows Media Player - to about 0.1 sec I see it opens and closes the window and nothing happens.

    When I select a mp3 or wmv file and right-click with the option open with Windows Media Player - I get a message: "Server execution failed" - I checked that all services with 'Media' in the name are running.

    When I select a mp3 or wmv file and right-click with the open option with Windows Media Center - Windows Media Center opens with the message: "the files needed to display video are not installed or do not work properly.

    When I select a file mp3 or wmv and right-click with option open with Windows Movie Maker life - see the video

    I tried to turn / WMP and WMC - did not help
    Tried to run as administrator - did not help
    I don't see something suspicious under events

    What can I do else?

    Thank you

    Zarek

    I had the same problem and then by chance, I tried a video on YouTube and it worked for me. Here's how I went on this issue and solved my problem:

    1. go to the computer, then OS (C).
    2. you will need to open Program Files (x 86) and Program Files.
    3. go to Windows Media Player in Program Files (x 86) and open the folder.  Then, remove the wmplayer file.  You may need to work around the error TrustedInstaller.  I'll tell you that, in a moment.
    4. in Program Files, go to the same folder for Windows Media Player and select the same file again. Wmplayer.  Copy the file in another window open.  Copy ensures that if the question comes up again you can at least try to fix it again.
    This should be the end of your problem.  If you need to circumvent the TrustedInstaller question is how:
    1. right click on wmplayer and select Properties > Security > advanced > owner > Edit > other users and groups.
    2. Enter your username and then click on check names.  Click OK.
    3. close the dialog boxes as he has requested.
    4. open again the properties and click Security.  Select your username from the list and click on edit.  From there, select full control.
    This should give you full control over the removal of the original file for WMP and easily allow you to copy the other files (x 86) programs.
    Please let me know how it goes for your problem.
  • Server execution failed, Windows Media Player 7

    After you run Spybot S & D 2 times, my WMP will not, introduce simply, it flashes and says "Server execution failed". Windows 7 ed. home WM Center starts and runs, but when I try to manage or import music library, it locks up tight. Restore all the elements of the quarantine of Spybot, no help. Any suggestions?

    After you run Spybot S & D 2 times, my WMP will not, introduce simply, it flashes and says "Server execution failed". Windows 7 ed. home WM Center starts and runs, but when I try to manage or import music library, it locks up tight. Restore all the elements of the quarantine of Spybot, no help. Any suggestions?

    Try resetting WMP12

  • SMTP works, but POP3 fails

    I've been a Thunderbird user for about 8-10 years now, and I use it with multiple e-mail accounts. I met a configuration problem, I've never seen before, and I can't find a solution (so far).

    I changed my ISP broadband from Comcast to the border. With Frontier, of course, I get an e-mail account. I can access and use the account very well via webmail. However, when I manually configured in Thunderbird (configure automatically produces the wrong settings), password authentication will fail.

    When I try the Advanced Configuration, SMTP works, but POP3 fails.

    I contacted the support of the border to check the correct settings. They are as follows:

    POP3: pop3.frontier.com, SSL/TLS, Port 995
    SMTP: smtp.frontier.com, SSL/TLS, Port 465

    I use the full email address for the user name. He checked the password on the POP3 server, and that's okay. I also disabled my firewall, but it did not help.

    I'm puzzled as to why SMTP should work, but not of POP3.

    They don't support IMAP.

    Any ideas, anyone?

    Your idea to try the iPhone was a good. It also generated the same error, which suggests that it was not a question of Thunderbird after all.

    I ended up calling border once again, and the technology and I ran through everything once more. All the combinations that we have tried has failed.

    Then, on a whim, I suggested that we try to set a different, shorter password.

    The one I had initially set was complex with special characters and about 15-20 characters long.

    We changed it for a subject from 8 to 10 characters long, with special characters.

    It worked.

    Incredible.

    Thanks for your help with this one, Toad Hall.

  • My attempts to computer to install updates, but all fail.

    My attempts to computer to install updates, but all fail. Each of the. I get the error code is 8000ffff.

    Two possibilities: a third-party program affects the Service of WU (programs anti-spwyare, Internet/web accelerators, programs of firewall/antivirus) or the downloaded file is corrupt.

    See also:

    8000FFFF error code when you click on "Check for Updates" in the item of control panel Windows Update on a Windows Vista-based computer
    http://support.Microsoft.com/kb/946414

    TaurArian [MVP] 2005-2010 - Update Services

  • I try to install the update of security for Microsoft Office System 2007 (KB972581), but if failed and I get the error code Code 57A__

    I try to install the update of security for Microsoft Office System 2007 (KB972581), but if failed and I get the error code Code 57A

    I have install the 2007 Microsoft Office Suite Service Pack 2

    I bet that if you check the size of the file that has been downloaded it will be probably very small, indicating that it was not downloaded correctly.

    I don't think you have another computer at hand, or a friend with a USB key which may be able to download and copy it for you?  Maybe burn it to a CD or something.

    I could download it and save it to my desktop so I am confident that it is not a problem with the link itself or the file is available for download with success.

    I know this isn't a very good suggestion, but the only other option would be to challenge support and see if a technician can take control of your machine and see if they can solve the problem of internet explore.

    If you find my answer was what you're looking for, remember to click on the box "mark as answer" below!

  • Microsoft sent me an auto update KB 2656369 for my Dellxp. The automatic update has tried to load the patch about 9 times but it failed.

    Microsoft sent me an auto update KB 2656369 for my Dellxp. The automatic update has tried to load the patch about 9 times but it failed.

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

    How to get help and support for this security update

    Help to install updates: Microsoft Update Support (http://support.microsoft.com/ph/6527)

    Help protect your computer running Windows against viruses and malware: Virus Solution and Security Center (http://support.microsoft.com/contactus/cu_sc_virsec_master)

  • Service Pack 3 for Windows XP does not recognize that it is connected to the USB ports. I get a notice that something has been plugged, but Windows fails to recognize regardless of the question.

    Service Pack 3 for Windows XP does not recognize that it is connected to the USB ports. I get a notice that something has been plugged, but Windows fails to recognize regardless of the question.

    Disconnect all USB storage.

    Run this tool by do right click and choose 'run as administrator '.

    Of course, all first extract it:

    http://www.Uwe-Sieber.de/files/drivecleanup.zip

    If your XP is 32 bits, use the Win32 folder.

    Reset.

    If you still can't find the drive, assign it a drive letter in disk management.

Maybe you are looking for