Must run DBMS_STATS within a program

I use Delphi 2010, Oracle 10 g under Unix. I need to run GATHER_TABLE_STATS and modify the two indexes in a program. Before the program executes a SQLLDR module supplies a table, and if the stats and the clues are not redone the program will run for 6 to 8 hours. If they are redone it will run 10 to 15 minutes. I am wanting to create a stored procedure that can be called before any other processing in the program, but am not familiar enough with the stored procs and packages to be able to properly assemble instructions. That's what my procedure looks like this now:


PROCEDURE ALTER_ACCUM_INDEX
IS
BEGIN
EXEC DBMS_STATS. GATHER_TABLE_STATS ('CCOK', 'ZTEMP_ESI_ACCUM', METHOD_OPT = > 'for all indexed columns', CASCADE = > TRUE);
ALTER INDEX CCOK. INX1_ZTEMP_ESI_ACCUMM_1 COMPUTING STATISTICS;
ALTER INDEX CCOK. INX1_ZTEMP_ESI_ACCUM_2 COMPUTING STATISTICS;
END;

You try to compile, it gives me the following errors:
Error (5151,10): PLS-00103: encountered the symbol 'DBMS_STATS' when waiting for one of the following values: =. ( @ % ; The symbol ': = ' was replaced by "DBMS_STATS" continue.
Error (5152,5): PLS-00103: encountered the symbol "ALTER" during the expected as follows: begin case declare exit end exception for goto rise back loop mod null pragma select update while < ID > < one between double quote delimited identifiers of > < a variable binding > < < current delete fetch locking insert open nearby rollback savepoint SQLExecute fusion pipe set commit forall

Obviously, I'm doing something wrong. I don't know what. Any suggestions are appreciated. If you'll just tell me how ignorant I am, go ahead and skip this part, I already know.

Thank you!

RUN IMMEDIATELY "ALTER INDEX CCOK. INX1_ZTEMP_ESI_ACCUMM_1 COMPUTING STATISTICS;
RUN IMMEDIATELY "ALTER INDEX CCOK. INX1_ZTEMP_ESI_ACCUM_2 COMPUTING STATISTICS;

Tags: Database

Similar Questions

  • The product key you entered will not work with this edition of Windows Vista. You must run the Windows Vista Setup program or enter a Windows Vista business product key

    Product key bad for the wrong version?

    Hello

    Recently the computer in business inherited from a friend, very fast and very good. Regardless of the operating system no - geniue, is with Vista Business, while the thumbnail of authentication is Vista Ultimate. I took a screenshot of what it says when I put Vista Ultimate product key: (it does not appear if you are unable to use it: P)

    http://S13.PostImage.org/57nfn5pqv/vistareg.jpg

    He said: "the product key you entered will not work with this edition of Windows Vista. You must run the Windows Vista Setup program or enter a Windows Vista Business product key."

    How would the installation of Windows Vista? My files would still be there when you need him? My drivers would still exist? No matter what to get deleted or become unusable? He would return to SP1? Any response is welcome.

    You can order form of the manufacturer's recovery media.

    The reason why the system as non-authentique shows currently is using a license in Volume KMS - these licenses must be re-activated at least every 6 months by connecting to the KMS user license activation server.

    It will require a reformat and reinstall whatever you do, unless you can connect to the KMS - Volume media server cannot be upgraded under normal conditions.

  • "The product key you entered will not work with this edition of windows vista. You must run the windows vista Setup program or enter a windows vista product key. »

    I bought a laptop HP three years ago in Dubai, now I am in India, my family problem does not activate windows vista and also use it now, I try to use but asked the system to activate product key not found the product key at the bottom of my laptop I enter the product key but the system says "the product key you entered will not work with this edition of windows vista.»  You must run the windows vista Setup program or enter a windows vista product key. "In my company sticker a HP laptop, it says" Windows Vista Home Premium, also found in computer ownership 'Windows Vista Ultimate' and as low property said: you must activate today and return their product ID: 89580-014-0000025-71152, but in my laptop near the product key, wrote a different number which is "89580-014-0000025." what is the problem and how to solve that advice me please. ""

    Hello

    You can use this Recovery Partition to reinstall Vista to his new condition with the right edition of Vista.

    This recovery partition was photographed on your hard drive by HP during the manufacturing of the factory.

    You press F11 on startup to start the process of recovering back to factory settings.

    Here is the information about HP.

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00809678&LC=en&DLC=en&cc=us&product=18703

    If the recovery partition is damaged, you can buy HP's Vista recovery discs for a small fee.

    If HP's Vista recovery disks, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon

  • Error while trying to run DBMS_STAT. GATHER_TABLE_STATS

    Hi gurus,

    I am trying to run DBMS_STAT. GATHER_TABLE_STATS a procedure of a DBA role granted to the user, I get the following error:

    ORA-20000: impossible to analyze the TABLE '< SCHEMA_NAME >. "" < table_name > ', the lack of privileges or does not exist
    ORA-06512: at "SYS." DBMS_STATS", line 13046
    ORA-06512: at "SYS." DBMS_STATS", line 13076
    ORA-06512: at line 2

    Did miss me something?

    Help, please...


    saby

    It is a quite common problem...
    Privileges through roles does not work inside stored procedures. So the DBA role it does not work inside the procedure.
    See Metalink Note 168168.1.

    If you want to run dbms_stats.gather_table_stats from inside the procedure,
    You must grant 'ANY ANALYSIS' directly to that user.

    Thank you
    Tomasz K.

  • Satellite Pro A60 crashes even, I don't run a lot of programs

    I have a laptop pro satellite A60 and I noticed that he hung up even if I'm not running a lot of programs, I often encounter this problem if I'm under ie and the only thing I have to do to turn it off by pressing the power button for a period of time.

    I just upgraded the RAM to 1 G to increase his performance, but I am facing this problem.

    need help
    Sam

    Hi Sam

    I put t knows how long do you use your OS and what is the insensitivity of the use. Many users install a lot of HS on it and later I was wondering when the operating system is not fast more.

    In this way it is not easy to say but I recommend to clean the system correctly and you will see if the situation will be better than before. Check all running processes. Maybe one of them makes demands on the CPU activity.

  • How to run older versions of programs on my desktop HP pavilion model P6516F

    I saw the button click to run older versions of the programs, but now I can not find.   How can I get my computer to run older versions of programs.  Specifically, I designed a website on my old desk and this program, Yahoo Sitebuilder will not work on my new computer, when I downloaded Sitebuilder to my new HP - or do I have to buy new software to do this job.

    Driftwood46, welcome to the forum.

    You can try the program compatibility to see if this will help with the delivery of the program.  Go to start / "search programs and files".  In the Find box type program compatibility.  This will bring up the program.

    If your problem is solved, please click "accept as a Solution.

  • Windows Update problems - you must run Microsoft Internet Explorer 5 or later

    Whenever I try to go to windows update I get this

    Thank you for your interest to get updates of our site.

    To use this site, you must run Microsoft Internet Explorer 5 or later.

    To upgrade to the latest version of the browser, go to the website downloads of Internet Explorer.

    If you prefer to use another web browser, you can get updates from the Microsoft Download Center , or you can stay up to date with the latest reviews and updates using automatic updates. To turn on automatic updates:

    1. Click Startand then click Control Panel.
    2. Depending on which control panel view you use, classic or category, do one of the following:
      • Click System, and then click the automatic updates tab.
      • Click performance and Maintenance, click System, and then click the automatic updates tab.
    3. Click the option you want. Make sure that automatic updates is not turned off.

    am under explore 8 and it is updated. Is there any help out there for this? I'll be bald if I can't solve this problem quickly.

    I will try to reinstall the Windows Update Agent Installer.  Here is a link to the Microsoft site that explains how to do this: http://support.microsoft.com/kb/949104.

    Go to the section How to get the last agent to update as it is already installed.  Scroll down to the section on the additional information tab called Windows Vista, Windows Server 2008, Windows XP, Windows Server 2003 and Windows 2000 Service Pack 4 (I checked that it also works under Windows 7).   Choose one that fits your computer (x 86, x 64, Itanium).  Run this update and follow the instructions.  Windows Update will now be reinstalled, but it's a good idea to restart at this point.

    I hope this will solve your problem.

    Barbara

  • How do you run a stand-alone program after its installation on the CD - RW disc

    How do you run a stand-alone program after its installation on the CD - RW disc

    How do you run a stand-alone program after its installation on the CD - RW disc

    Programs are not * install * to a CDRW at least that the CDRW is seen as a disc using the writing software to package such as DirectCD (Roxio) or OnCD (Nero). A disk used with writing software by packages cannot be used on any PC.

    Files are copied to a CD - RW for storage and retrieval. If the program installs, it install in general in C:\Program Files or similar and often drop files into \Windows and other places, too.

    -steve

  • Get "communication error with kernel" message when you try to run a virus scan program

    Get "communication error with kernel" message when you try to run a virus scan program

    Hello

    What antivirus do you use?

    Follow the steps in the article mentioned below and check if this solves the problem.


    The error message "error communicating with kernel":

    http://KB.eset.com/esetkb/index?page=content&ID=SOLN2280

  • Whenever I try to open Outlook Express, I get this message: Run Time Error! Program: C\Program

    original title: cannot open outlook express

    I am running windows XP Professional

    Whenever I try to open outlook express, I get this message

    Run Time Error!  Program: C\Program...

    This application has requested the execution in an unusual way.

    Please contact the support team of applications for mor information

    I can not access my emails at all.

    Search for antivirus interference.  See www.oehelp.com/OETips.aspx#3

    If you can, open OE and click file | Identities and establish a new identity.  Then see if it works.  If you can not open OE to do this, then move all the dbx files to another directory of their current location.  To reset the message store, which you should be able to open OE then.

    Steve

  • ? Error: stacks overflow running an old back program

    I'm trying to run an old DOS program in Vista and XP and get this error message:

    ? Error: stack overflow
    Error code 2000
    PC = A748: 0006; SS = 4 CA 1, FP = 0006, SP IS A734
    The program used to work fine a few months ago, but now nothing.
    I tried adding "STACKS = 64, 512' config.nt and which did not help."
    Can someone help me make it work?
    Thank you

    If the program is not compatible, then you try to install and run the program in compatibility mode.
    Use the following steps:
    (1) right click on the program
    2) click Properties
    3) click on the Compatibility tab
    (4) select run this program in compatibility mode and select Windows Vista or other operating system, the program has been run successfully.

    Check out the link here: make sure to run older programs in this version of Windows
    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, you cannot run Windows XP mode, but you can try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other 3rd party software virtualization and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    For a program of oldest back, I saw DosBox recommended by others. I think it's a free program. You may need to do some research.

    Thank you

    Marilyn

  • Run Time Error! Program: C\Program File\Intuit\QucikBooks\qbw2.exe.

    I get has: Run Time Error! Program: C\Program File\Intuit\QucikBooks\qbw2.exe. According to me, there is an error of NTVDM.exe code associated with it. Basically, Quick Books will not launch.

    Technicians of quick books it's a poblem Ms.

    Help

    Hello ggkline,

    I suggest you have a look on the underside of Quickbook Forum discussions:

    http://support.QuickBooks.Intuit.com/support/pages/KnowledgeBaseArticle/1004014

    http://support.QuickBooks.Intuit.com/support/pages/KnowledgeBaseArticle/1004014

    He suggests that you install the security update:

    http://support.QuickBooks.Intuit.com/support/qbupdate2007/default.aspx

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to run a 32-bit program written in foxpro for windows (fpw26) under a window of 64 bit 7 or 8

    Original title: compatibility issue

    How to run a 32-bit program written in foxpro for windows (fpw26) under a window of 64 bit 7 or 8

    Thanks in advance

    32-bit programs work fine on 64 bit versions of Windows.  In fact, over 95% of the software that comes with the 64-bit Windows version is 32-bit, because there is no reason for re - programming software for upper bits when it would not net any performance gain.  Even Microsoft Office is 32-bit on a 64-bit computer.

    So to use a 32-bit program, just run it normally.  If there are failures, let us know what said failure.

    PS. the program may have other failures that are unrelated to the number of bits of the processor.  Try right click on the program and choose to resolve compatibility issues to try to fix it automatically.

  • What is the throughput of each program in run mode in the program generator?

    Hello

    What is the throughput of each program in run mode in the program generator?

    Thank you

    Hello

    The flow depends on the executed program of fashion and the number of contacts in your database. As your contact base grows, your flow adjusts automatically.

    Thank you

    edynamic expert Eloqua

  • How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    dannyb76251437 wrote:

    How can I put pictures outside the window of Photoshop elements 14 work, so that I'm not obliged to work within the program window, but use my screen completely for the image?

    Note that you can work with two screens and drag and drop the image to display on the other window.

    I think you mean working temporarily with the window enlarged image without displaying all the tools and panels.

    See:

    Panels and bins in Photoshop Elements

    My advice: take the time to read the above help and especially to look at ways to maximize this window if you are on Mac or Win.

    Set your preferences in the Edit menu to "allow the floating windows in expert mode.

    Use the "tab" on the keyboard key to hide or show your panels and tools quickly.

    Find out how to hide the photo tray.

Maybe you are looking for

  • Human localization

    Hello first of all I apologise for my English (im from China) We have a small business and create us a few games for iOS, but still not released in the AppStore, because we want to translate to a language. And as such, we say human location not machi

  • Difference between Satellite L750 and Satellite L755

    Hi all What exactly is the difference L750 and L755. It is not the same thing?

  • Windows Vista update froze my phone? help please!

    Yesterday morning I disable my Acer aspire laptop and it was installing some updates from microsoft... An hour later, when I turn on my computer laptop sound on the password screen and none of the keys on the keyboard work and he does not even recogn

  • How can I find the file I downloaded images to

    Yahoo email customer service referred me to you to find a file that I uploaded a few photos to. My friend sent me these photos and I downloaded them, but I do not remember where I stored it and want to find their

  • BlueScreen Shut Down

    Blue screen comes back, my computer shuts down.  Has happened twice now.  So far, it starts up, but I fear that it may not.  Here is the error message: Signature of the problem:Problem event name: BlueScreenThe system version: 6.0.6002.2.2.0.768.3Loc