DBMS_SHARED_POOL.KEEP -- give nothing to performance ???

I want to know, how significant is DBMS_SHARED_POOL.KEEP to performance, but I haven't got better performance.
I had tested before and after pinning it into shared_pool.
State is :
CREATE TABLE scott.test(fld1 number(2),fld2 number(2));
CREATE OR REPLACE PROCEDURE scott.p_millionrows IS
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE scott.test';
FOR i IN 1..10000000 LOOP
INSERT INTO scott.test(fld1,fld2)
SELECT TRUNC(DBMS_RANDOM.VALUE(10,40)),TRUNC(DBMS_RANDOM.VALUE(10,40)) FROM DUAL;
END LOOP;
END;
My product component version :
PRODUCT_     VERSION_     STATUS_
NLSRTL      11.1.0.6.0     Production
Oracle Database 11g Enterprise Edition      11.1.0.6.0     Production
PL/SQL      11.1.0.6.0     Production
TNS for 32-bit Windows:      11.1.0.6.0     Production
BEFORE : EXEC scott.p_millionrows;
The query times is 17:07 min.
AFTER : ALTER SYSTEM FLUSH SHARED_POOL;
EXEC dbms_shared_pool.keep('SCOTT.P_MILLIONROWS','P');
SELECT NAME,KEPT FROM V$DB_OBJECT_CACHE WHERE TYPE='PROCEDURE';
EXEC scott.p_millionrows;
The query times is 17:03 min.
My Conclusion : DBMS_SHARED_POOL.KEEP = GIVING NO TO PERFORMANCE
My question :
1st. Is my query take too long ?
2nd. Do I need configure spfile.ora ?
Any Help Is Appreciated.
Regards,
Yohanes 林贤汉
Edited by: SigCle on Oct 12, 2010 5:45 PM

Your conclusion is just wrong. dbms_shared_pool.keep is geared at procedures and functions which you are calling over and over again, and which you can't afford to be reloaded often.
The only thing you avoid by pinning a procedure is the overhead of reloading.
Secondly in both cases you perform 10000000 inserts instead of 1 bulk insert and this is taking time.
What you should do is
SQL> l
1 insert into scott.test
2 select trunc(dbms_random.value(10,40)), trunc(dbms_random.value(10,40))
3 from dual
4* connect by level <= 1000000
I can insert 1 million rows in 14.51 seconds
Your method is the slowest possible.
And yes, you always should use a spfile, but this has nothing to do with the problem at hand.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • FDM keeps give me DCOM Security Error when I configure the Load Balance

    Hello, everyone.
    I installed FDM on the Windows 2008 Server.
    When I configure the Load Balance Server for FDM.
    It keeps give me error:
    Unable to create Load Balance Manager Object!
    Please verify that the user name, password, and domain name are correct.
    However, I am pretty sure the user name and password input are correct.
    I have tried the solution provides on Oracle Support. And changes the DCOM component's security settings.
    However, the issue is still existed.

    If after clearning out the security on the DCOM object and attempting to reset the Load Balance Config the same issue occurs, you will need to un-install FDM using the EPM System Un-installer and reboot. Following the reboot you will then choose to install FDM again, configure FDM using the EPM System Configuration utility, and then reset the FDM configuration items.

  • Does retina give a better performance

    So, this question maybe kind of silly, But does a retina give a better performance for movies, for example, the same movie file (say 1080 p Bluray) runs on a retina and a common, in this case, is retina really and obviously better? I'm thinking of purchasing a retina one, really appreciate your replies.

    Yes, it is strikingly noticeable. On bluray level files, avi, Mp4 etc, its extremely noticeable.
    Obviously older films that are available in bluray often dont look better for obvious reasons, they were filmed in a low quality to begin with, and not remastered.
    However all the modern 1080p and higher, the difference is striking.
    Its the why the Retina Ipad is such a hot seller, its the #1 consumption device for consuming movies etc, either thru Netflix, ....or wifi beaming from your Mac to your Ipad.
    Macs dont play Bluray disks, but there are external Drives and software for same. The question is bluray QUALITY files,  MP4
    Aurora Software’s Blu-ray Player ($30 for a one-year license or $40 for lifetime usage) and Macgo’s Mac Blu-ray Player

  • It says i have bars, but i can't call, top up or text, all it keeps saying is error performing request, unkown request. what is wrong and what do i do

    like it says in the title, I have a 3GS and i'm with O2, it is saying I have service/bars most of the time full bars, but when I go to text, call or even top up, it comes up with error performing request, unknown error. I can't receive calls or texts either, I can't use the phone side of my phone everything else like iPod, Internet etc is working fine, but nothing is working for my phone.
    I've checked my sim card, I've made sure it is in properly, I've turned it off and on. nothing is working
    what is wrong with my iPhone why is it not working, and how do I fix it.
    Please someone give me some answers.
    P.S. I have only had this phone for just over a year.

    It sounds like an O2 problem, you'd have to get in contact with them on 0800 977 7337
    Have you tried the SIM card in another phone?

  • Q35 av-650 gives nothing from power switch

    Acquired a brick from one of my family members. A q35AV-650. Nothing AT ALL from the power switch. I have tried pulling the battery and pushing the power switch to dump the electrical. I pulled the memory and thought maybe the standby switch on the screen was stuck in the wrong position. The only thing I haven't done is take the whole cover off the computer. I figure if I'm going to do that, I'll replace the motherboard. Any suggestions short of that? Something that has made this the brick that it is? I'll try anything. Any hidden BIOS or power reset? Looks like it would be a great laptop.

    There was a reason that you were given this computer, it doesn't work! If it worked perfectly, the family member would have kept it. But let's go for the obvious. Use a voltmeter on the power adaptor and make sure that you are getting the correct voltage. Both the power adaptor and the label on the bottom of the computer will show the voltages you should be seeing. No voltage or the wrong voltage and it won't work. Since the computer hasn't been working for awhile, the battery is probably totally discharged. You don't need the battery for the computer to work, so remove it. Check the contacts on the battery and in the computer. Making sure nothing is damaged or corroded. With your power adaptor that is putting out the correct voltage, reattach it to the computer. You should see one of the LEDs in the front of the computer lighting up. If it doesn't, it could indicate a bad LED or that the computer is not seeing that the power is connected. Push the power button and see if you can get anything from this computer. You should hear the hard drive spin up, the LCD screen light up and finally see some video. If none of these things are happening, you're right, you've got a brick.
    If you are not a Toshiba-trained computer tech, I don't recommend working on their computers. The replacement parts are expensive and hard to acquire. Also the number of different screws used on the computers makes working on them a real hassle. Not like a desktop that can be opened up with just 5 screws!
    I would recommend using the Locate a Repair Center icon on this website's home page and find a Toshiba certified repair center near you. Have them do a test and diagnostics on the computer. They should be able to give you a good idea of what you are looking at to get the computer working. Then you can decide whether you want to keep the 'brick' or not.

  • My mac is coming up with a white page with a picture of a file in the middle with a ? mark in and keeps flashing nothing will work ?

    Hi
    My daughter has a apple mac laptop.  It is coming up with a white page with a file picture with a ? mark in the middle of it.  It keeps flashing.  Nothing will work now and we car'nt seem to work it out.  Does anyone have any answers ?

    That folder with the question mark icon means that the MacBook can't find the boot directory. That can either mean it can't find the hard drive or the Operating System data on the hard drive is somehow corrupted.
    Put your install DVD into the optical drive and reboot. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Just press the Return key on your keyboard once. It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. When it comes up is your Hard Drive in the list on the left?
    If it is then click on the Mac OS partition of your hard drive in the left hand list. Then select the First Aid Tab and run Repair Disk. The Repair Disk button won't be available until you've clicked on the Mac OS partition on your hard drive. If that repairs any problems run it again until the green OK appears and then run Repair Permissions.
    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • Same Songs Keep Syncing, & Nothing Has Changed? ? ?

    I have about 26 songs in my iPhone that sync with iTunes every single time?
    Nothing has change, I do the sync, unplug, and plug it back in to iTunes, and those same songs sins again.

    Hi OzziesMAC
    I have a similar problem except I have about 2,200 songs and every time I sync it keeps syncing 146 of the same songs each time. In doing so it is not updating songs that have been skipped.
    I would also like to know why this happens and how to fix it.
    Anyone know?

  • Does OEM 12c keeps track of tasks performed by its users

    HI All,
    Does OEM keep track of all the tasks performed on it by user. Suppose a user say "A" has created a group or incident rule and a user "B" deleted the group or incident rule created by user "A". Now can the sysman user or "A" user would anyway know the fact that the user "B" has actually deleted them. So does OEM keeps the tasks performed by its users somewhere where it can be checked and confirmed?
    Thanks in Advance!

    Yes, EM has it's own auditing, although it is set up at a minimal level to begin with including EM login/logout.  You would want to enable additional auditing to monitor this type of activity.  See the Security Guide for more information: 
    http://docs.oracle.com/cd/E24628_01/doc.121/e36415/sec_features.htm#CJAIEIDD
    In addition, since this is a target delete scenario, there's a query you can run to see the time of deletion, but not who deleted it:
    select entity_type, entity_name, created_date, deleted_date
    from gc_manageable_entities_hist
    where entity_name = <group>;
    Perhaps between the two you can deduce who was logged in at the time of the delete.

  • I type in my email address to be sent an identity verification code but I keep getting nothing

    I bought a new laptop and in the Settings and Accounts it tells me to verify my identity on this computer. So I follow the process and it says a code will be sent to my email address. However, nothing is sent to me! I've been doing this for 3 days now
    and still nothing! I'm absolutely outraged! Somehow, I added my cellphone number in the microsoft account and I got a text message with a 4-digit code. But it is not the code that the computer wants (it asks for a 7-digit code).

    Hi,
    Based on your description, please make sure that you have input the correct email address for receiving the code. Regarding this kind of issue, in order to get better help, it's recommended that we ask suggestions in the following forum.
    Windows 8.1 General
    https://social.technet.microsoft.com/Forums/windows/en-US/home?forum=w8itprogeneral
    Best regards,
    Frank Shen

  • Oracle gives NOTHING but DISAPPOINTMENT

    I have UNFORTUNATELY subscribed for tech-tracks a few months ago.
    First I received my CDs with a long delay.
    Now for atleast last 50 days I am not able to access my knowledge base account.
    In the start I recevied ACCESS DENIED message, but now there is no link available at OTN home page.
    I have emailed at the address given at otn but received no reply.
    Then I posted a thread on this forum
    Login TechTracks
    I just received 'We are looking into this issue. '
    And again silence.
    I again posted a thread with a subject 'Disappointing Response From OTN '
    Disappointing Response From OTN
    Then I got some reasonable response and I was promissed to get response via email, I received the email saying to restore the service by 2nd of June.
    But untill today it has not been started.
    Is this the kind of service Oracle provides ?
    I am in serious trouble and need that knowledge base should be immediately restored. If Oracle is unable to restore it should give me some alternate and solve my problem.
    One more interesting thing you will observe on the otn page Oracle is still advertising its banner for tech tracks and says
    "You also get access to KnowledgeBase*, an online resource of technical support information updated daily by Oracle's support organization."
    But they don't write that knowledge base in un-available now and If you want you can pay for it, but will not get the service.
    I hope for a possitive response from Oracle.
    Zulqarnain R. Habib

    In that case, I suggest that you post your question in the Linux Discussion Forum:
    Generic Linux
    I suspect that you'll get a prompt answer from other members there. Good luck!

  • Preloader keeps running, nothing happens

    What am I doing wrgong when an Edge project with a preloader won´t start unless I reload the page 2-3 times? The preloader just keeps on running and the animation won´t start by itself.

    I have the same problem. I was told to try another preloader, but I don't think this is a good solution because I'm sure I'll get the same results.
    Please go to isynthesisdesign.com/_RODMELL2
    Let me know.

  • Right clicking selection gives nothing

    So to make this short, I can use the pen tool to create a shape, then by right clicking it I can decide what I want to do with it. When I click "Make selection" I've selected the shape, but when I right click it again in order to find out what I want to do with that shape, it doesn't let me do anything. Everything grayed out. Normally I'd have the option to copy to layer or copy to cut but nothing.
    Looks like this

    I can see that you have made a shape with the Pen tool.  You have right clicked and cosen Selection, but you must have specified a high Feather value because the selection only covers a small part of the shape, (the matching ants indicate 50% opacity). 
    From there, you would take other routes to achieve what you mention.  Ctrl j would copt the selection to a new layer, for instance, but that layer will have a heavily feathered outline.   You should still have some options if you right click again, but useful as right clicking can be, it doesn't cover everything.

  • Firefox keeps freezing nothing eles does only firefox. have already done the reset what eles can i do

    i have deleted history reset cleaned cache still keeps freezing up to 2 minutes for each thing i click on what eles can i do i've done the troubleshooting as well

    When you say you've tried the troubleshooting, you mean you've tried Firefox's Safe Mode: [[Troubleshoot Firefox issues using Safe Mode]]?
    Does it make any difference whether you navigate using a bookmark, a link, search results, etc.?
    Are there any sites that load quickly (or should I say, normally)?
    Did this start after an update to anything, whether Firefox, add-ons, Windows, device, drivers, etc.?

  • G4 17-inch gives nothing but blue folder with ? mark

    I was using a third party game that was installed on the hard drive. Twice in the last
    several years the app has frozen on start up. The only way to get it to stop was the
    dreaded last resort of turning the computer off. This worked, until the last time that
    is! Now all I get is the blue folder with a question mark blinking at me. Any help
    would be more than appreciated.

    The blinking folder means a valid boot drive wasn't found. This could mean that something in your system folder has become corrupt, that the drive's directory or partition is damaged, or that the drive is not functioning. The first thing to do is to get your system disc and try to boot with it - put the DVD into the computer and restart it while holding the 'C' key. Once it has booted (probably to the screen where it asks for your language - so choose your language) in the menubar look for Disk Utilities and run it.
    If you don't see a hard drive listed it probably means the drive is dead. If you do see a drive, select it and click on Repair. If Disk Utility finds nothing to repair you'll have to re-install the OS. If it found something to repair, and repaired it, you can try restarting the computer but chances are you'll still have to re-install the OS. If Disk Utility can't repair the disk you can try another disk utility program (Disk Warrior is generally the most likely but there are no guarantees) or reformat the drive and re-install the OS...I hope you have a recent backup.

  • No browser option with mozillab and new tab gives nothing

    Mozilla provides only window but no browser option window inside that.
    Further if I open new tab, then it is blank page. no URL option.

    Mozilla Firefox, the browser, and your profile (contains all of the data, like bookmarks & passwords) are in 2 separate locations.
    # [http://kb.mozillazine.org/Installation_directory Program Directory]
    # Firefox [[Profiles]]
    Before running a [http://www.mozilla.com/en-US/firefox/update/ Firefox Update], which updates your Program Files Mozilla Firefox, the least that you can do is, [[Clearing private data]] << as to try and make the old profile as compatible as it can be with the new version of Firefox that you're upgrading (updating) to.
    If you haven't done this, or whatever happened, for example there are incompatible add-ons - or the whole thing went berserk, like for the OP twilightsmith, then the easiest thing that you can do is run Firefox in [[Safe Mode]].
    Check out the links and also the screenshots posted, add-ons can be permanently disabled from the Safe Mode start-up dialog - so you don't have to mess with your profile if it's something more severe than the address bar not showing up.
    Hope it helps!..:)
    ps. I keep posting the same thing everywhere, since there are no signatures possible on this forum. :( To allow installation of older, or incompatible add-ons, use https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/ and/or the Nightly Tester Tools add-on (but the linked 1 is from Mozilla).

Maybe you are looking for

  • Can scan to email but cannot scan to computer using 6830 and OS Yosemite

    I just purchased 6830  to use with my imac with Yosemite.  I am able to scan to email but I am not able to scan to computer.  I have installed the latest driver .  I followed directions to access HP utility and there was no way to get to scan prefere

  • What to look for a trainer?

      Some questions for you guys here.  I been working in IT for almost 10 years now.  The current role require me to be technically competent to handle migration projects (Windows 2008/Active Directory).    The good thing is i am encouraged to take up

  • Empty Web Galleries

    OK, this is driving me crazy and I'm not sure why it's not working like it's supposed to. I recently upgraded to iPhoto 7.0.1, and recently signed up for .mac, mainly because I wanted the Web Galleries. So ... I'm in my iPhoto library, I click on the

  • Im trying to get into my itunes and itunes app store to work

    ive been trying to get on to itunes store and itunes app store and it takes awhile to work i shut it off and then i try again i checked my settings and not even that what do i do cause its not my connection at all its perfect.

  • Problem with adobe audicion 1,5

    I have a problem for installations adobe audicion 1.5 install it and then there was error in Windows Media Format 9 Series Runtime this Windows Media technology is incompatible with this version Setup program from Windows Media format is not respondi