Loop won't complete process

Good Morning,
I am reading about the execute immediate cmd here at my job and learning the syntax of it. I wrote this simple query but it hangs up after looping through 15 rows (tables). There are 137 rows (tables) that it needs to read in the schema. I don't understand why it doesn't continue until the end. Would someone please point out the short coming of this script? From what I remember yesterday the error message said something to the affect the table doesn't exist but yet when I look for it in toad it is there with information in it.
DECLARE
CURSOR c1 IS
select * from dba_tables
where owner = 'AL'
order by table_name;
BEGIN
FOR r1 in c1 LOOP
EXECUTE IMMEDIATE 'select '||r1.chain_cnt||','||r1.avg_row_len||
' from '|r1.table_name;
dbms_output.put_line (r1.table_name||','||r1.chain_cnt||','||r1.avg_row_len);
END LOOP;
END;
Thanks for your help in advance.
regards,
al

you really don't need execute immediate statement.Right. Taking it further there isn't really need for the cursor, the loop or the anonymous pl/sql block, either
select table_name, chain_cnt, avg_row_len
  from dba_tables
where owner = 'AL'
order by table_name;EXECUTE IMMEDIATE wouldn't be the first thing I'd read about. It's highly overrated, and used far too much because people want things to be "dynamic" and "flexible".
When you turn to dynamic SQL, rethink what you are doing. You might not need it, and if you don't need it, you don't want it.
Dynamic SQL is hard(er) to write, difficult to maintain, refer errors to runtime which could have been known at compile time, and causes both security and performance problems when used improperly.
Stick to static SQL whenever you can. But whatever you do, remember to use bind variables!
Regards
Peter

Similar Messages

  • Warning... dumb question ahead:  Tech guy who set up my Mac didn't give me my password info. Didn't need it till I decided to finally download a Flash Player upgrade, which won't complete process without my Mac password.  Suggestions?

    Warning... dumb question ahead:  Tech guy who set up my Macbook Pro didn't give me my password info, and yes I forgot to ask for it.   Didn't need it till I decided to finally download a Flash Player upgrade, which won't complete process without my Mac (Admin?) password.  Suggestions anyone?

    Warning... dumb question ahead:  Tech guy who set up my Macbook Pro didn't give me my password info, and yes I forgot to ask for it.   Didn't need it till I decided to finally download a Flash Player upgrade, which won't complete process without my Mac (Admin?) password.  Suggestions anyone?
    Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
    Changing or resetting an account password

  • Share won't complete processing to burn sequence to DVD

    Share has gotten to 4 min. 39 sec. processing time left and just frozen three times.  It worked on the last two sequences I burned from the same project.  Is there something in the sequence that is causing it not to complete processing  and burn the DVD?

    Actually, I'm not sure it's extremely rare.  I'm pretty sure most Hollywood movies are encoded at 24p.  The issues of a sequence containing mixed frame rates are serious, but if all your material is 24p, there's no reason not to use it as far as I know.   I had always understood that when you encode 24p material properly it stays 24p and it's the player that adds the pulldown.    If I'm wrong, please clear this up. 
    Thanks,
    Michael

  • Having purchase iTunes Match, it will not finish syncing; won't complete process. SOS

    I bought iTunes Match and haven't been able to complete the syncing process over several days. It will go thru the steps 1, then 2 and stalls on 3 (uploading art work and remaining songs.) I have had several serious problems over the past couple of years, twice having lost my musical Playlists. I've had to reconfigure them & neither time are they the exact same -- this means, from my conbination of internet buys & manual downloads, there are years of different kinds of files. Any help offered will be appreciated.

    RD94 wrote:
    I'm having a similar problem - but the difference being the device isn't recognised at all!!! The latest updates for IOS and iTunes are filled with bugs, it's so annoying I can no longer sync my iPod Touch (5th gen) and the device itself isn't sending iMessages & Facetime won't work!
    This thread is about devices not syncing properly.  If your iPod Touch isn't behaving normally it's more likely that there's an issue with the device itself.
    First try resetting it:
    http://support.apple.com/kb/HT1320
    If all else fails try restoring it:
    http://support.apple.com/kb/ht1339

  • Final Cut Pro 7 won't complete processing  to burn to DVD in Share.

    I'm trying to burn four sequences to 4 separate DVDs using Share.  The first two worked fine.  The third has reached 4 min. 39 sec. of processing time remaning 3 times and just quit or locked up and won't burn to the DVD.  Is there something in the sequence I'm not aware of that is causing this? 

    Larry, this is the FCP X forum. You should post your question in the FCS forum, here ...
    https://discussions.apple.com/community/professional_applications/final_cut_stud io

  • Mobile account won't complete setup, initial sync won't complete.

    I'm trying to setup a mobile account but it won't complete the sync process on the client MacBook Pro. Both the server and the MacBook Pro are running 10.5.5.
    When I login to client it prompts me to create a Mobile account and proceeds with the sync to create the account, but when the sync is complete it just logs in with the default account setup. None of the user files or settings (desktop image, preferences, etc) appear. The sync process says "Checking..." for all the files that supposedly get copied to the client, but it looks like it doesn't complete.
    Is there a way of knowing what the problem is? Is there an issue with the user's home directory, some file that prevents the sync and mobile home creation from completing?
    Thanks.

    Forgot about getting this problem solved.
    The user account that had this trouble had a copy of his home directory from a laptop in his home directory. This backup had it's own Library folder which was confusing the Mobile account sync process.
    When I removed the backup home directory, the initial sync went fine.

  • Email password missing but won't complete?!?!'

    What do I do, my email says it has the password missing but it won't complete the process and says it has a message error domain?? Please HELP!!!

    Thanks for your help! I followed that series of instructions and still can't get it to access . It goes str8 from selecting "other" from the email groups to add a new account, and cancel takes you back to the groups. Its saying I have 50 emails but somehow has me blocked from accessing them...

  • Does not complete processing of "Home" of the Creative Cloud desktop application

    Someone know the way to fix the following issue?
    After installed some Creative Cloud Software, I had uninstalled Adobe application manager manually and installed Creative Cloud desktop application manually.  because automatic upgrade of creative cloud desktop application from adobe application manager does not work.
    The creative cloud desktop application setup had been completed successfully.  but,  seems that  it does not complete processing of displaying the history if I chose "Home".   The progress Icon will stay in continuity.  And any contents does not show on it.
    Regards,

    I'm posting this in a few threads to try to catch everyone having the problem.
    The good news is that I found a way to fix this.
    The bad news is that it involves uninstalling everything.  (Note that reinstalling over the old installs won't cover it, I'd tried that one once too. You'll have to fully uninstall each program before redownloading/reinstalling.)
    I spent many hours with tech support yesterday running through options unsuccessfully, and can very thoroughly assure you that uninstalling the desktop app, renaming any number of folders, and new user accounts all will not help you.  From doing a lot of research on various similar problems, it appears that it's possible for this to spontaneously resolve within a couple of hours.  If it doesn't, though, you're stuck with fixing it yourself.
    The best theory I found was that it's caused by updating or installing a program without doing it through CC.  If you've downloaded an installer and run that or clicked "Check for updates" in the help menu inside one of the other apps, this is you.  Other people have noted that if you know which app you did this with, you can uninstall that one to fix it.  If you have no idea, the simplest path is to just uninstall everything.  You can try doing things one at a time, but you'll need to reboot every time the uninstaller tell you to do so and then see if it's fixed.  (Personally, I got sick of that by the second time through.)  I do remember clicking "Check for updates" right around the time this started for me, but I don't know which program it was in, just that I knew it would trigger the updates I knew existed but CC wasn't acknowledging.
    I will also note that once I had everything uninstalled, I ran the Cleaner Tool and did a "Clean All". If you're going to or need to do that, make sure you've backed up all of your preferences, customizations, plugins, and so forth as needed.

  • Photoshop Elements 10 won't complete installation and won't uninstall.

    Photoshop Elements 10 won't complete the installation process and it won't uninstall using the uninstall utility (I get an error message).  So I tried deleting all files manually.  However, when I re-insert Disc #1 it only offers to uninstall Elements 10 - which it won't do (same error message).  So I can't go forward (install) or backward (uninstall).  My computer is a Dell Studio 1555 with 4 GB of RAM, 64-bit OS, running on Vista Home Premium.  I have 180 GB free of 283 GB on the C drive.

    Thanks,  Your link took me right to it. Baisley 944
    Date: Mon, 11 Jun 2012 21:17:48 -0600
    From: [email protected]
    To: [email protected]
    Subject: Photoshop Elements 10 won't complete installation and won't uninstall.
        Re: Photoshop Elements 10 won't complete installation and won't uninstall.
        created by photodrawken in Photoshop Elements - View the full discussion
    For some reason, my link to the MS FixIt Center didn't appear in my message:http://support.microsoft.com/fixit/ Ken
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4484771#4484771
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4484771#4484771. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to debug completed Process chain

    Hi Experts,
    Can you please let me know how to debug completed Process chain.
    In my Process Chain, we have one ABAP step to update Z-Table entries.
    But it was updated wrong entry into Z-Table.
    Now i want to debug ABAP step in Process chain which was completed successfully (This is Monthly load).
    I have tried to debug the back ground job but it throws an error message in middle of the debugging.
    Could you please tell me how to debug ABAP step in completed Process Chain.
    Thanks
    Shaik

    http://help.sap.com/saphelp_nw04s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0afcd90-0201-0010-b297-9184845346ca
    http://help.sap.com/saphelp_nw70/helpdata/en/21/15843b74f7be0fe10000000a114084/frameset.htm
    /people/vishvesh.bahirat/blog/2006/11/29/bw-process-chain-design
    http://help.sap.com/saphelp_nw70/helpdata/en/21/15843b74f7be0fe10000000a114084/frameset.htm
    1.Go to RSPC to view all the chains.
    2.There click on any chain which you want to run/view.
    3.Click on the log view(shift+F1) to view all the previous runs of the chain and whether they have failed or successful(here you can select 1 day,week ,month etc in the display range)
    4.If you want to modify the chain /add a process type /change the variant then click (Ctrl+F9) and do the changes.
    Even you can change the start variant in change mode for manual scheduling>right click on start process typeselect display variant--now select start Direct Scheduling/ API or Metachain
    under direct scheuling option you can trigger it by setting start immediately /Date-time/After job/event whatever you want to do
    Else you can make it part of a Metachain consisting of different such small local process chains.
    Now Click on Schedule (F8) to run this chain manually.
    5.For Monitoring use Tcodes SM37/RSPCM/SM50
    Also you can use BWCCMS.
    I usually prefer sm37 to view all the background jobs but SM50 is also useful.
    6.debug loop can be used to debug a process chain.(you have to specify here the gap between one event been triggered and the next subsequent process starting)
    to capture process in debugger go to SM37(job overview) or to SM50(process overview)
    Hope this would help you.

  • I am trying to export a pdf to word but the document keeps "loading " for a long period of time and won't complete?

    I am trying to export a pdf to word but the document keeps "loading " for a long period of time and won't complete?

    Hi Jennee,
    You're using the Save As > Microsoft Word command in Acrobat (and what version are you using)? At what point does the status bar in the lower-right corner hang up (Pre-processing, Recontructing, and so on)? What type of content is there in the PDF, and how large is it? Are you having Acrobat run OCR on the file as it converts (you can check this by clicking Settings in the Save As dialog box)? Do you have trouble saving other PDF files as Word documents?
    A lot of questions, I know. But I need to know a bit more about the document to determine why it's hanging up on export.
    Thanks
    Sara

  • Itunes won't complete installing?

    My itunes won't complete the install process? please help

    I tried turning off my anti-virus to no avail. I really have no idea what are they are talking about with "Tools-Downloads" The only place you can do anything is under Help-Check for Updates, and I assumed that was the same thing.
    I also tried to email Apple but they need the serial number of my Itunes. How do you find that? I didn't even know Itunes had a serial number.

  • OS X won't complete boot

    My Mac Mini won't complete the startup process. It gets as far as the message "starting OS X" with the blue progress bar all the way full but then stays there...it's been there for the last 3 hours. It doesn't look frozen and I suspect memory issues. As I can't get to the "About this mac" screen I can't tell you exactly what kind of mem. it has, but I believe its 512 with 2.something RAM & 30g hard drive and non-Intel...so yeah, older, slower model but has been working fine up until just a few weeks ago. Symptoms have included programs freezing, not waking or taking forever to do so. I emptied the Safari cache and later read about the activity monitor & how emptying the CPU history cache would also help...both of these things did completely resolve the issue but was back to it moving slowly within a week or two. I also did reset the PRAM as outlined in another discussion but since it went past the gray screen with the logo & spinning gear, I sensed this was probably not the issue and sure enough, there was no change. At this point I figure I need to just wait for it to eventually complete its boot then empty the caches again, but what about helping it to not do this again? Is there something else I'm missing other than uninstalling infrequently used programs, not running widgets, etc.?
    Thanks!

    Thanks for the clarification, but it still just continues to the"starting os x" message with the blue progress bar. By "old aluminum keyboard" do you mean the flat, newer ones that are out? The one I got with the mini in '05 was all white, plastic and been thrown away a long time ago when certain keys stopped working. So yes, I probably do have the kind that doesn't work with it (I actually kept my old keyboard for a couple of years "just in case" but threw it out in the last year...of course!) The mini doesn't have bluetooth or remote capability...so...do I go borrow someone's old plastic white one?
    Also, I installed Tiger when it came out. Should I be using that disk for the reinstall, or the original with Panther on it? I've been using the original.
    I was suspecting a virus mostly because I do keep the hard drive with around 10g free, so at about 30%. The only recent difference is that I tried to open PhotoShop CS4 which I installed a couple of years ago but never got around to learning. It told me it needed to be reinstalled as something was missing or corrupted so I closed it and that was the end of that. I've read that it's one of the programs out there that can really deplete memory, maybe it did something when I opened it. But if I can't log in to uninstall it, I'm stuck.
    Thank God for my MacBook!
    Thanks

  • My iPhone 5 won't complete the sync with my PC...

    my iPhone 5 won't complete the sync with my PC, says "waiting for items to copy (step 6 of 6)".  have left the PC and phone connected for up to 15 hours one time, and the status never changes.

    I figure it out. Somehow, in my Advanced settings, password was somehow "de-selected" as my Authentication setting in Incoming Selections. I re-selected it, and now everything is back to normal...

  • Delivery Status in VBUP/VBUK is showing as 'C' completely processed though

    Hi All,
    Delivery Status in VBUP/VBUK is showing as 'C' completely processed though invoice for the delivery is already cancelled, and delivery in document flow says being process. So now I cannot invoice this delivery. Is there any utility to correct the VBUP/VBUK status from 'C' completely to 'A' Not yet processed  As I belive SDVBUK00 is to update the VBUP/VBUK status from A to C only.
    Please help...

    Try using SD_ACTUAL_OPEN_DATA_RESET & SD_ORDER_SUBSEQUENT_ALLOWED FMs to change the values in VBUK table. I have not used it myself but i think this would be of some use to you.
    Regards,
    Mani

Maybe you are looking for

  • How to restore a single table from a DP Export from a different schema?

    Environment: Oracle 11.2.0.3 EE on Solaris I was looking at the documentation on DP Import trying to find the correct syntax to import a single table from a DP Export of a different schema. So, I want to load table USER1.TABLE1 into USER2.TABLE1 from

  • Website with Full Screen Background Images

    I'm trying to create a website with full screen background images (or  possibly, a video) that will crop to the browser window. It's also  important that the image be center-justified. The Die Antwoord site does  pretty much what I'm trying to accomp

  • Schedule a ABAP query from SQ01 to transfer the output to a file path

    I am trying to schedule an ABAP query to run every night and transmit the output as a .TXT file to a particular file path on a server. In the "output format" of the selection screen I selected the second last radio button "File store" and entered the

  • Signed a 1-year contract and then AT&T raised price

    I was going to cancel my service in December last year, but when I called to cancel, AT&T offered U200 for a certain rate for 12 months in exchange for me signing a contract for one-year.  So I agreed to keep AT&T U-Verse for 1 year and pay that set

  • I have a number of albums that won't sync onto my Iphone 5.

    Most of them have been there untill recently. I can see that they are greyed out in ITunes, and there is a small round symbol next to all the songs that wont sync. I have tried syncing songs individually and as a whole music library, but nothing seem