What is the problem with native dynamic sql when counting rows in all table

what is the problem with native dynamic sql when counting rows in all table?Giving an error "table or view does not exist". Thanks.
DECLARE
v_sql_string varchar2(1000);
v_no_of_rows number;
BEGIN
for i in ( select table_name from all_tables )
loop
v_sql_string := ' select count(1) from ' || i.table_name;
dbms_output.put_line( v_sql_string );
--execute immediate v_sql_string into v_no_of_rows;
end loop;
END;

Usually your problem can be described with 'Who cares'. I mean, for what reason do you do this? I doubt that there's a business need to get 100 % accurate answers for this. Normally such things are used to get a picture about the growth of data.
Personally I would prefer to have up-to-date statistics for all tables and just query the number of rows from there. Sufficient for me in < 99 % of all cases.
Just my $ .02...

Similar Messages

  • I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I would think, Twins1995, that if we are having the problem, others are as well. Hopefully, Apple will shortly issue a follow-up software release to fix the problem. Or is that just wishful thinking on my part.
    It would be helpful, if there were some kind of work-around in the interim, so we can use our devices. Pretty frustrating when you consider that all of the hardware and software is produced by Apple.

  • I have an iBook g4 14" 1.42 ghz. I recently installed a new hard drive.  I put the install CD in. Then, I pressed the power button, then the "C" key. Black screen and No chiming. Please tell me, what I can do to resolve this? What is the problem with it?

    I have an iBook g4 14" 1.42 ghz. I recently installed a new hard drive.  I put the install CD in. Then, I pressed the power button, then the "C" key. Black screen and No chiming. Please tell me, what I can do to resolve this? What is the problem with it?

    Since it will not boot then a hardware test can't be run. You could try FireWire Target Disk Mode and if it works then access from another Mac to run tests on the new drive. You could also try installing the OS X software from the host computer. If this does not work then professional help should be considered.
    http://support.apple.com/kb/ht1661
    http://osxdaily.com/2010/04/07/how-to-boot-a-mac-in-target-disk-mode/
    http://www.macobserver.com/tmo/answers/how-to-use-target-disk-mode-to-boot-from- another-macs-hard-drive

  • Why is my Apple ID working on the Apple Website on the computer but not restoring my ipad... What is the problem with it????

    Why is my Apple ID working on the Apple Website on the computer but not restoring my ipad... What is the problem with it????

    LeesaHeeley wrote:
    When I go to settings/iTunes App Store my Apple ID is not there. When I enter my ID and password it does not save or link to account.
    When fist setting up your new iphone you will be asked to log in with an apple id and password. If this did not happen you can then do as you suggested going to settings to itunes and app store and add your apple id login. This apple id login must have already been created for the iphone to accept it. If this apple id is already created but is not being accepted by your iphone you then should shut down your iphone and restart the device.
    Good luck.

  • What is the problem with Itunes 11.0.1.12 and adding music to the Library?

    What is the problem with Itunes 11.0.1.12 and adding music to the Library?  I had no problems when I updated, just had to get used to the new format and appearance.  Added a few albums here and there, and then today I can't get anything in the Library.  I've always just dragged and dropped my music with no problems.  I've had an Ipod for the last six years and never encountered any big problems with Itunes or my various Ipods.

    Why is this Itunes such a pile of junk?  If I restart my computer I can sometimes find the recently added music in my Itunes Library. 
    It would be nice to know if other people are having the same problems.

  • Please tell me what is the problem with this code

    Hai,
    Iam new to Swings. can any one tell what is the problem with this code. I cant see those controls on the frame. please give me the suggestions.
    I got the frame ,but the controls are not.
    this is the code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ex2 extends JFrame
    JButton b1;
    JLabel l1,l2;
    JPanel p1,p2;
    JTextField tf1;
    JPasswordField tf2;
    public ex2()
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setTitle("Another example");
    setSize(500,500);
    setVisible(true);
    b1=new JButton(" ok ");
    p1=new JPanel();
    p1.setLayout(new GridLayout(2,2));
    p2=new JPanel();
    p2.setLayout(new BorderLayout());
    l1=new JLabel("Name :");
    l2=new JLabel("Password:");
    tf1=new JTextField(15);
    tf2=new JPasswordField(15);
    Container con=getContentPane();
    con.add(p1);
    con.add(p2);
    public static void createAndShowGUI()
    ex2.setDefaultLookAndFeelDecorated(true);
    public static void main(String ar[])
    createAndShowGUI();
    new ex2();
    }

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ex2 extends JFrame
        JButton b1;
        JLabel l1,l2;
        JPanel p1,p2;
        JTextField tf1;
        JPasswordField tf2;
        public ex2()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setTitle("Another example");
            b1=new JButton(" ok ");
            p1=new JPanel();
            p1.add(b1);
            p2=new JPanel();
            p2.setLayout(new GridLayout(2,2));
            l1=new JLabel("Name :");
            l2=new JLabel("Password:");
            tf1=new JTextField(15);
            tf2=new JPasswordField(15);
            p2.add(l1);
            p2.add(tf1);
            p2.add(l2);
            p2.add(tf2);
            Container con=getContentPane();
            con.add(p1, BorderLayout.NORTH);
            con.add(p2, BorderLayout.CENTER);
            pack();
            setVisible(true);
        public static void createAndShowGUI()
            ex2.setDefaultLookAndFeelDecorated(true);
        public static void main(String ar[])
            createAndShowGUI();
            new ex2();
    }

  • Vector, what is the problem with this code?

    Vector, what is the problem with this code?
    63  private java.util.Vector data=new Vector();
    64  Vector aaaaa=new Vector();
    65   data.addElement(aaaaa);
    74  aaaaa.addElement(new String("Mary"));on compiling this code, the error is
    TableDemo.java:65: <identifier> expected
                    data.addElement(aaaaa);
                                   ^
    TableDemo.java:74: <identifier> expected
                    aaaaa.addElement(new String("Mary"));
                                    ^
    TableDemo.java:65: package data does not exist
                    data.addElement(aaaaa);
                        ^
    TableDemo.java:74: package aaaaa does not exist
                    aaaaa.addElement(new String("Mary"));Friends i really got fed up with this code for more than half an hour.could anybody spot the problem?

    I can see many:
    1. i assume your code snip is inside a method. a local variable can not be declare private.
    2. if you didn't import java.util.* on top then you need to prefix package on All occurance of Vector.
    3. String in java are constant and has literal syntax. "Mary" is sufficient in most of the time, unless you purposly want to call new String("Mary") on purpose. Read java.lang.String javadoc.
    Here is a sample that would compile...:
    public class QuickMain {
         public static void main(String[] args) {
              java.util.Vector data=new java.util.Vector();
              java.util.Vector aaaaa=new java.util.Vector();
              data.addElement(aaaaa);
              aaaaa.addElement(new String("Mary"));
    }

  • What's the problem with Adobe Downloader assistant? It's impossible to download a trial version of

    What's the problem with Adobe Downloader Assistant? It's making it impossible to download a trial version of PS 5 extended. I can see that I'm not the only one experiencing difficulties with this so........what's the story Adobe?!!!! If you don't want people to download trial versions of your products then just say so! Or do something about the problem and remove this faulty download.I have a brand new Mac,so it shouldn't be a problem. The Adobe Downloader has been extracting for 2 days now, and I can't shut it off. Very irritating!

    If you are having problems with extracting it is likely that you have customized the location of your download.  I would recommend downloading to your User folder or Desktop folder.  When the download and extraction process are complete you can then install to your Program Files folder.

  • What is the problem with fonts changing to myriad pro? Is this problem ever going to be resolved? Its driving me mad!

    What is the problem with fonts changing to myriad pro? Is this problem ever going to be resolved? Its driving me mad!

    Browser Dog, Amy,
    The default font remains Myriad Pro until you change it, either in the RGB/CMYK Startup files or in the preferences, options depending on versions.
    Concerning missing font names, I believe this may solve it:
    Open System Preferences and go to Accessibility. Next, select Display from the source list along the left, then check the box labelled Reduce transparency.
    It was first presented in this post #15 by TheUlser:

  • My MacBook Pro, 1.83 GHz Intel Core Duo gives me an error message during Lion install. My Intel Duo Core is not an Intel Duo Core and cannot install Lion.  I already have Snow Leopard what is the problem with Lion?

    My MacBook Pro, 1.83 GHz Intel Core Duo gives me an error message during Lion install. My Intel Duo Core is not an Intel Duo Core and cannot install Lion.  I already have Snow Leopard what is the problem with Lion?

    You need a "Core 2 Duo" for lion, and I'm guessing you only have a "Core Duo"  My wife's macbook is also a "Core Duo" and has Snow Leapord, but cannot install Lion.....

  • I have iPhone 4S. I can not recieve pictures sent to me from my wife's motorola KRZR phone.  My daughter can receive them on her iphone 4S.  What is the problem with my phone?

    My wife has a motorola KRZR K1M Cell Phone.  I have iPhone 4S. My phone (4S) receives and display text messages from my wife's phone.  However, my phone does nort receive or display pictures sent from my wife's phone.  However, my daughter has a 4S phone and she receives pictures sent from my wife's phone.  What is the problem with my phone?

    Do you have MMS enabled, both on the phone and also within your account? Remember, MMS requires a data connection.

  • HT1338 what about the problems with the trojan virus is that a problem for my mac as well?

    What about the problems with the Trojan virus will this be a problem also for me using Mac

    What Trojan?
    If you're referring to the DNS Changer Trojan, it's highly unlikely you're affected. The actual distribution of the trojan was stopped several years ago and the perpertrators jailed.
    The FBI has been maintaining the servers used by the trojan for the last 5 years in order to give affected systems time to be purged. They will finally shut them down on Monday.
    Ensure that your router and the Mac's network settings are set for the DNS addresses of your ISP, or if you're not sure what they should be, change them to Open DNS using the IP addresses;
    208.67.222.222
    208.67.220.220

  • What is the problem with my desktop imac, that ical has frequent pop ups that say I am not connected to the internet, gives me an option of going offline.

    What is the problem with my imac, that ical has frequent pop ups that indicate I am not connected to the server. Gives me an option of going offline. This seems to have started when I began using icloud with all of my devices.

    I discovered a simple work-around that is successful (at this point in time anyways) on my IMAC/Maverick when sending attachments (not inline or embedded) to PC users.
    There are several threads in here on why attachments embed in mac mail when sending to PCs, and I have had similar issues. Not sure where the fault lies, but other than purchasing an additional program to make mac mail work as other mail programs work when it comes to attachments, I found no real solution that worked for my business PC folks. I did all the right things - sent my attachments in mac mail "windows friendly,"  "plain text," and "attachments at the end" and still got complaints when sending to my pc workmates using Outlook.  I tried another suggestion I found here - zipping the files and sending the zipped file, but my workmates did not like that either and still asked why? 
    By trial and error I discovered that when I attach any pdf to the email as well as the questionable jpgs, the attachments arrive in their PC inbox as attachments that can be used as needed. I don't know why this works, but it has made sending attachments a happier task for my business group.
    I would be interested to see if this works for others.

  • What's the problem with my download pages?

    my download page:
    <cfquery name="download" datasource="#xyz#">
    </cfquery>
    <cfoutput query="download">
    <a
    href="download.cfm?DownloadFileName=#URLEncodedFormat(NoticeFileName)#"
    class="FileDown">#NoticeFileName#</a>
    </cfoutput>
    download.cfm
    <cfprocessingdirective suppresswhitespace="yes">
    <cfheader name="Content-Disposition"
    value="attachment;filename=#DownloadFileName#">
    <cfcontent type="Application/Unknown;charset=gb2312"
    file="#DownloadPath##DownloadFileName#" deletefile="no"
    reset="yes">
    </cfprocessingdirective>
    This can be download the file.but after i save the file to my
    disk,i click the menu to jump to an other page,it can not;but after
    i refresh this page and click the menu,it can be jump to the page i
    want .
    what's the problem with my code?thanks a lot.

    UP.

  • What is the problem with the code to get all  opportunities

    Hello All,
    I have wrote the java code as below to get the all opportunities.But i did not get the opportunities i.e its returns null . Any one,Please suggest me what is the problem with the below code.
    OpportunityWS_OpportunityQueryPage_Output opportunityWS_OpportunityQueryPage_Output = new OpportunityWS_OpportunityQueryPage_Output();
                   Opportunity[] opportunities=opportunityWS_OpportunityQueryPage_Output.getListOfOpportunity();
    Thanks,
    --bdr_09                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Dinesh,
    Please check out the code and give me your suggestions
    *try{*
    String address="MY URL"+getSessionId();
    Default_BindingStub dbs=new Default_BindingStub();
    dbs.setMaintainSession(true);
    OpportunityLocator loc = new OpportunityLocator();
    loc.setDefaultEndpointAddress(address);
    loc.setMaintainSession(true);
    OpportunityWS_OpportunityQueryPage_Output opportunityWS_OpportunityQueryPage_Output = new OpportunityWS_OpportunityQueryPage_Output();
                   Opportunity[] opportunities= opportunityWS_OpportunityQueryPage_Output.getListOfOpportunity();
    System.out.println("opportunities size::"+opportunities.length);
    *}catch(Exception e){*
    e.printStackTrace();
    Thanks,
    --bdr_09                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Active Directory integration problem, Bind AC and OD

    Hi. I'm trying to set an Open Directory as "connect to a Directory System" because I have a windows 2000 server with Active Directory. But i have a problem when i click on "open directory Access", Access Directory appear and I select Active Directory

  • External hard drive is reading as a CD optical drive?

    Until recently, I had been using a Clickfree C2N Home Backup Drive successfully to backup both my machines: a MacBook Pro currently running OS X 10.6.8 (my primary computer) and an Asus netbook running Windows XP. I had suspended use of the device fo

  • Resize image

    Hello again! :-) Somebody knows if I can resize an image in a alert message. Example: Alert alert = new Alert(heading, body, img, AlertType.INFO); I'm creating an new alert and in the "img" variable I've an image of 640x480 pixels. Can I resize this

  • Enlarge an image when clicked in a report

    Hi i am using Apex 4.2.2 I have a requirement where I can display images in a report. Images are stored as blob in the database. I created an interactive report and I can display the image in the report. But when I need to know when I clicked on the

  • Oracle 9iLite download setup.exe file does not work

    Like many people (I am discovering more by the minute), I am unable to install 9i Lite.5.01. When the setup.exe file is triggered, a hourglass appears for a second, then nothing... I am installing on a windows 2000 terminal server, therefore I have t