[8i] Can someone help me on using explain plan, tkprof, etc.?

I am trying to follow the instructions at When your query takes too long ...
I am trying to figure out why a simple query takes so long.
The query is:
SELECT COUNT(*) AS tot_rows FROM my_table;It takes a good 5 minutes or so to run (best case), and the result is around 22 million (total rows).
My generic username does not (evidently) allow access to PLAN_TABLE, so I had to log on as SYSTEM to run explain plan. In SQL*Plus, I typed in:
explain plan for (SELECT COUNT(*) AS tot_rows FROM my_table);and the response was "Explained."
Isn't this supposed to give me some sort of output, or am I missing something?
Then, the next step in the post I linked is to use tkprof. I see that it says it will output a file to a path specified in a parameter. The only problem is, I don't have access to the db's server. I am working remotely, and do not have any way to remotely (or directly) access the db server. Is there any way to have the file output to my local machine, or am I just S.O.L.?

SomeoneElse used "create table as" (CTAS), wich automatically gathers the stats. You can see the differende before and after stats clearly in this example.
This is the script:
drop table ttemp;
create table ttemp (object_id number not null, owner varchar2(30), object_name varchar2(200));
alter table ttemp add constraint ttemp_pk primary key (object_id);
insert into ttemp
select object_id, owner, object_name
from dba_objects
where object_id is not null;
set autotrace on
select count(*) from ttemp;
exec dbms_stats.gather_table_stats('PROD','TTEMP');
select count(*) from ttemp;And the result:
Table dropped.
Table created.
Table altered.
46888 rows created.
  COUNT(*)
     46888
1 row selected.
Execution Plan
           SELECT STATEMENT Optimizer Mode=CHOOSE
   1         SORT AGGREGATE
   2    1      TABLE ACCESS FULL PROD.TTEMP
Statistics
          1  recursive calls
          1  db block gets
        252  consistent gets
          0  physical reads
        120  redo size
          0  PX remote messages sent
          0  PX remote messages recv'd
          0  buffer is pinned count
          0  workarea memory allocated
          4  workarea executions - optimal
          1  rows processed
PL/SQL procedure successfully completed.
  COUNT(*)
     46888
1 row selected.
Execution Plan
           SELECT STATEMENT Optimizer Mode=CHOOSE (Cost=4 Card=1)
   1         SORT AGGREGATE (Card=1)
   2    1      INDEX FAST FULL SCAN PROD.TTEMP_PK (Cost=4 Card=46 K)
Statistics
          1  recursive calls
          2  db block gets
        328  consistent gets
          0  physical reads
       8856  redo size
          0  PX remote messages sent
          0  PX remote messages recv'd
          0  buffer is pinned count
          0  workarea memory allocated
          4  workarea executions - optimal
          1  rows processed

Similar Messages

  • I was syncing my ipod (1st gen) while downloading an update to Itunes and now i get the sad ipod icon...can someone help me out or explain how to get it fixed? cause the Apple STore is acting weird and I don't know what to do

    basically the title says it all...I've been using this for the longest time and now after i was syncing the ipod while downloading an update for Itunes the sad face ipod icon shows up and everything i try won't fix it. I'm wondering if anyone knows how they can help me fix it...please!

    The Sad face icon is usually a very good indication of a hardware malfunction or failure usually with the iPod's Hard Drive, which would also explain the loud clicking noise you are hearing.
    I assume you have seen this article yet?
    iPod display's a sad iPod icon
    If you are up for the challenge, you can also try all of the troubleshooting mentioned described by another forum member Mitch 751.
    https://discussions.apple.com/thread/1193481?start=0&tstart=0
    B-rock

  • Can someone help with Transfering Vinyl albums to mp3 etc.

    I don't know how to interface the amplifier and turntable up to the computer.
    How easy is it? What do I do?
    What software is best to use?
    Advice or links to threads would help alot.

    http://www.bulletsandbones.com/GB/Tutorials.html#allabouttransferringrecords

  • I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !

    Thanks !
    Kudos always welcome for helpful posts

    Re: I have a VI A. I want A to call another VI B and execute. After B executes, I want it to close automatically and go back to A. Is this possible ? I tried using open reference and those methods, but I am not able to do it. Can someone help me ? Thanks !Hi Stephan ! Thanks ! I guess I explained my question not so right. I've created a customized menu and at the instance of me selecting a menu, a VI should load itself dynamically. I am using call by reference. Sometimes it works and sometimes it won't. In short, what I want to achieve is load VIs dynamically and close them dynamically once they finish executing. Thanks !
    Kudos always welcome for helpful posts

  • Please can someone help, I have a question in my coursework that I don't know the answer to! Explain how PostScript fits into the design process?

    Please can someone help, I have a question in my coursework that I don't know the answer to! Explain how PostScript fits into the design process?

    The simple answer is that today PostScript really doesn't fit at all into the Graphic Design process, at least in terms of what the graphic designer needs to know.
    Historically, though, the PostScript imaging model, first introduced circa 1984 provided the basis for the initial publishing software including PageMaker, Illustrator, QuarkXPress, and even Ventura Publisher. This imaging model included support for continuously scalable text, vector, and raster imagery as well as the concepts of a current transformation matrix that allowed arbitrary scaling, rotation, etc. and multiple color spaces (grayscale, RGB, CMYK, spot, device independent, and color-managed).
    The PostScript imaging model was effectively replaced by the PDF imaging model, a significant superset of the PostScript imaging model, by the time Illustrator 9 and InDesign 2 were released in terms of support of ICC color management, transparency, etc.
    The fact is that a good graphic designed doesn't need to know anything about PostScript or PDF per sé, but rather about the basics of color (such as issues associated with color gamut and what how that affects display and printing), use of text versus vector versus raster images and why one should keep content at the highest level of abstraction all the way to the rendering (or screen) or RIP process for printing. Some knowledge of typography also helps.
              - Dov

  • I can not send email from my iPhone 3g using me dot com. Can someone help?

    I have had my iPhone 3g for 2 weeks now I believe and in this time have received tons of e mails but when I try to reply or send a new e mail I get the message "The connection to the outgoing server "smtp.mac.com" failed."
    I don't see why since my wifi is connected and does everything else, like surf the web, download updates to apps and receive e mail.
    Can someone help me figure this out? I also just purchased an iPod touch which will be using wifi only so I'm scared that it too will have the same problem

    I have a 1st gen iPhone that I just updated the software to 2.0.2
    Now whenever I press the mail icon it goes to the mail app for about 4 seconds, does nothing, no loading of folders, old messages, nothing.
    Then it reverts back to the home screen. Tried restarting, haven't tried restoring, thought I'd look here first.
    Anyone???

  • I cant install or uninstall my itunes. I get this error 'the feature you are trying to use is on a network resource that is unavilable' Now ive seen the solutions on here but im using windows 8.1. Ive tried all options so please can someone help?

    I cant install or uninstall my itunes. I get this error 'the feature you are trying to use is on a network resource that is unavilable' Now ive seen the solutions on here but im using windows 8.1 and none of them work for me. Ive tried all options so please can someone help?

    That doesnt work for me. I removed itunes through the windows cleaner method as shown in other posts and re-installed itunes. Now im getting this error
    iTunes was not installed correctly. Please reinstall iTunes
    Error 7 (Windows error 126)
    Also my Microsoft office has stopped working after i deleted Itunes which is really strange.
    Can somebody provide me a solution please....

  • Everytime I start up my Mac mini I'll be able to use it only for a little while then the beach ball appears and it won't let me do anything I have to keep forcing it to turn off by holding the power button can someone help me?

    I have no external devices connected to my Mac mini but still everytime I use it after about half hour to an hour in whatever I'm using wether it's the Internet or iPhoto or iTunes the beach ball appears and I cannot get it to stop I always have to press and hold the power button and force it to switch off I then do a safe reboot and it starts up again fine but same thing again after a certain amount of time it will freeze. I have also had on some occasions a bright white screen with a folder and a flashing question mark appear but it's not because of any external devices as they have all been removed please can someone help me as I have no idea why this keeps happening to my computer and I'm worried that there's something seriously wrong it's only about 6 months old and I have no experience in dealing with computers ??

    EtreCheck version: 2.1.8 (121)
    Report generated 13 February 2015 15:33:46 GMT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        Mac mini (Late 2012) (Technical Specifications)
        Mac mini - model: Macmini6,1
        1 2.5 GHz Intel Core i5 CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        Intel HD Graphics 4000
            LG TV spdisplays_1080p
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 0:11:35
    Disk Information: ℹ️
        APPLE HDD ST500LM012 disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 499.25 GB (398.54 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
        /etc/sysctl.conf - Exists
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/AVG AntiVirus.app
        [loaded]    com.avg.Antivirus.OnAccess.kext (2015.0 - SDK 10.8) [Click for support]
    Launch Agents: ℹ️
        [running]    com.avg.Antivirus.gui.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [running]    com.avg.Antivirus.infosd.plist [Click for support]
        [running]    com.avg.Antivirus.services.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Default Browser: Version: 600 - SDK 10.10
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
             5%    WindowServer
             1%    AVG
             0%    AppleSpell
             0%    fontd
             0%    cloudpaird
    Top Processes by Memory: ℹ️
        215 MB    com.apple.WebKit.WebContent
        125 MB    avgd
        107 MB    Safari
        90 MB    Messages
        69 MB    WindowServer
    Virtual Memory Information: ℹ️
        171 MB    Free RAM
        1.68 GB    Active RAM
        1.53 GB    Inactive RAM
        637 MB    Wired RAM
        1.34 GB    Page-ins
        2 MB    Page-outs
    Diagnostics Information: ℹ️
        Feb 13, 2015, 03:20:28 PM    Self test - passed
        Feb 6, 2015, 08:08:07 PM    /Library/Logs/DiagnosticReports/Kernel_2015-02-06-200807_[redacted].panic [Click for details]

  • HT4356 I'm using my iPod and an Epson XP-810 printer to print pages from websites and emails and etc.  How do I print just 1 page out of 14 pages .  I don't see any settings on my iPod and can't find settings on the printer .   Can someone help with this

    I'm using my iPod and an Epson XP-810 printer to print pages from websites and emails and etc. 
    How do I print just 1 page out of 14 pages . 
    I don't see any settings on my iPod and can't find settings on the printer .  
    Can someone help with this problem

    Google show that you have to cut what you want to print and then paste it into a new app and print from that app.
    http://www.ipadforums.net/new-member-introductions-site-assistance/63145-printin g-one-page-ipad-2-a.html

  • My Songs in my Ipod Touch 4 is not appearing when I tried to Play it but when i insert to my PC and use Itunes, songs,playlist appears in I tunes.What do I need to do?Can someone help me?Many thanks

    My Songs in my Ipod Touch 4 is not appearing when I tried to Play it but when i insert to my PC and use Itunes, songs,playlist appears in I tunes.What do I need to do?Can someone help me?Many thanks

    Try:
    - Another cable
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Hi...i'm still using the old iphone 3G...my phone is no longer charging...when i tried to charge it, what i see on the screen is the usb cord with the arrow pointing the itunes logo...can someone help me?

    hi...i'm still using the old iphone 3G...my phone is no longer charging...when i tried to charge it, what i see on the screen is the usb cord with the arrow pointing the itunes logo...can someone help me?

    It sounds like your phone is in recovery mode, which means it needs to be restored through iTunes on your computer in order to get out of it.

  • I'm using iphone 4S, and I can not open PDF file only from my husband email that using Mic outlook. It was very weird because I can received other email with pdf file from other people. can someone help.

    I'm using iphone 4S and ipad mini, and I can not open PDF file only from my husband email that using Mic outlook. It was very weird because I can received other email with pdf file from other people. Can someone help...
    Thanks in advance

    Hi Eidda,
    This may because the attachment is a winmail.dat file. I would recommend taking a look at the article below for more information. Note: the article is written for OS X mail, but does also apply to this situation.
    Mac OS X Mail: What is a winmail.dat attachment?
    http://support.apple.com/kb/HT2614
    -Griff W.

  • Can someone help me i have an ipod 4g and i have $30 dollars on my account and can use because it says i havent used any money in a year how do i fix this

    can someone help me i have an ipod 4g and i have $30 dollars on my account and can use because it says i havent used any money in a year how do i fix this

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... (But can take Longer..)
    Release the Buttons..
    If necessary... Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    While using my Iphone 5, all of a sudden  black and white stripes where on the screen. I have tryed to turn the phone off and on again, but there are only the stripes. I can't use it, and nothing happens when I push the buttons. Can someone help me?

    Try resetting your phone, hold the home and sleep/wake button down until the apple symbol comes up, then release. If that doesnt work, you may have damaged your phone and need to take it to an apple genius bar.

Maybe you are looking for

  • Can I move music from one computer to another using iTunes?

    I have two computers, one I want to retire.  Both computers are running iTunes.  I want to move my music from the old PC to the new one.  I turned on Sharing.  I can play music from the old PC on the new one.  Can I move the music files within iTunes

  • Drag and drop photos not working

    With Aperture 3.5 you can no longer Drag a photo to another app, such as iMessage and drop the photo into that app. The target Apps do not see the Drag operation and therefore ignore it (don't show the + when ready to accept the dropped photo). Drage

  • Oracle 10g Home wont start.

    Hi Everyone, I am not able to start Oracle 10g home on windows...recently i installed oracle 6i forms. so when i try to set ORACLE_SID=nwc and then sqlplus sys/dba@nwc as sysdba,nothing happens...it takes me back to command prompt. C:\Documents and S

  • Help mine macbook wont turn on

    can some one help me because every time i touch the button to turn it on. the light just blink it wont turn on its just stay off

  • Java Bean Importer

    Hi I am trying to import a Java bean into webdynpro component. I have exposed the Java bean class as public part and I am using this as a used DC in webdynpro. I am trying to create a model from Java bean importer and i select the Jar of the java bea