Refcursor takes a long time to print the results

Hi gurus,

I have a table with name kemp with columns


kemp_ID NOT NULL NUMBER (10)
ACRONYM CLOB
TERM CLOB
DEFINITION of CLOB
when I do a query on the table
Select * Kemp; results will soon appear less than * 1.5 seconds *
But when I write a procedure to return the results using refcursor

Create procedure pr_retall (cv_1 in the sys_refcursor)
as
Start
Open SELECT cv_1 * Kemp;
end;
set serveroutput size unlimited;
var x 1 refcursor;
exec pr_retall(:x1);
print x 1;
It takes around * seconds * 7 to appears.

Please tell me know ways to tune. I want to reduce the time that it is to consume.

Thank you and best regards,
Vikas Krishna

Vikas Krishna wrote:

Please find the schedule.

Using elapsed time (like you) to measure and benchmark performance is not going.

Why? Because the test2 is given rarely, if ever how these tests are usually done, executed with the help of the same conditions that test1 was executed in.

Conditions are different between the tests, the elapsed time is different. As conditions differ, you cannot compare test1 with test2. I gave an example of what a mistake it is thread {message identifier: = 4333700}-where physical i/o slows test1 and test2accelerates the logic I/O. And how this can be used to support the conclusion that the CBO does not exist hint warp_drive increased performance of test2.

If you want to compare test1 against test2, you must know exactly in detail how each test works technically... you want to know how to ensure that the common point between two tests remain constant for all tests and how to measure only the elements that differ between tests.

And no, the comparative analysis is not that complex. In fact, it is even more complex than that. It is best left to those who know how to compare... on behalf of those who can find significance in the result of this benchmark.

For the majority of us work and development in the real world, comparative analysis makes a useless answer to a question meaningless for an absurd question. Totally useless...

Tags: Database

Similar Questions

  • APEX_UTIL & APEX_INSTANCE_ADMIN take a long time to display the results in the browser

    Hi gurus of the APEX.
    When I create a new workspace with and add a new user with the API
    It takes a long time until I can see the results in the admin interface apex I NTHE browser.
    Why is this?
    Someone can explain or do you have a work around to make it faster?


    Here is the code I use:

    BEGIN
    APEX_INSTANCE_ADMIN. ADD_WORKSPACE(1196509005817318,'WORKSHOP','HR',)
    wwv_flow_api.set_security_group_id('1196509005817318');
    APEX_UTIL. CREATE_USER)
    p_user_name = > 'MY_ADMIN ',.
    p_first_name = > "FRANK."
    p_last_name = > 'SMITH ',.
    p_description = > "Description...". »,
    p_email_address = > '[email protected] ',.
    p_web_password = > 'oracle ',.
    p_developer_privs = > ' ADMIN: CREATE: DATA_LOADER:EDIT:HELP:MONITOR:SQL',.
    p_default_schema = > 'HR ',.
    p_allow_access_to_schemas = > 'OEHR. "
    p_change_password_on_first_use = > 'n',.
    p_attribute_01 = > ' 123 456 7890');
    END;
    /


    Thanks in advance.
    BR,
    Lutz

    Hi Lutz,

    I'm going to ask the obvious question, please do not be offended ;)

    You remember to "commit" the end of it if you run via SQLPlus etc.?

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • Starting the server takes a long time due to the storage of JMS persistence files

    Hello

    We use WebLogic 9.2 on a windows machine.
    Recently, we have improved our request to work with JMS.
    We are on 2 different servers in a cluster using 2 JMS servers and works with distributed destinations.
    We use file storage as our persistence store.

    Recently, we found boot server takes a long time because of the actions that are performed on the storage of files.
    Analysis of this problem, we have seen that the size of the file is of ~ 2 GB.
    We understand that the file size does not fear (unless it is compacted manually), and its size matches the largest number ever of pending messages in the queues (as a mark of high tide).
    We shot also store debugging, using weblogic. Debug.DebugStoreIOPhysical and we saw a lot of recovery after newspapers file storage is open.
    We have checked and checked our JMS transactions are completed successfully. We also checked that the current messages and number of courses is 0.
    We stopped the server gracefully, check that there are no messages pending.
    However, several times takes start server ~ 30 minutes due to heavy work on the persistence store.
    Compaction or remove storage of files eliminates the delay.
    However, we want to avoid the manual operations whenever we want to start the server.

    Please share your ideas.

    Thank you
    Itsik

    The only suggestions I have off the top of my head are:

    * Ensure (1) the host system has at least 2 GB (the store file size) memory physics in addition to the memory used by the current process, and (2) the host system is not rebooted between each restart WebLogic. If you ensure that both of these, then the operating system puts implicitly cached content of the file of the store in memory even between boots - when WebLogic starts subsequently storing files, the o/s should be the content of the file much more quickly.

    * You can move to a JDBC store. Runtime JDBC store performance are lower, but since you have generally has only a small amount of records to retrieve, startup performance should be higher in this case.

    * Not that it helps your case, but it happens that we have significant performance improvements of starting process for a future version (if all goes well a near future release).

    Tom

  • Windows 7 takes a long time to load the desktop after login

    Hello

    I am using windows 7 on my HP 530 laptop. My friend who installed and activated, but I think that it has installed the cracked version. After installation, it was really perfect. but after a while when I connected to the internet, some updates have been installed, and then when I logged in the windows, he invites me that you are using a pirated version or something like that (I don't know more actually). then I restored to my previous state and then everything was fine. After that I stopped the automatic updates, but these days my startup window is having a few problems. After entering the password, its taking a long time to load the office and its keep on the list "loading, please wait...". »

    I'm so sick of that, also, I have to restart my laptop by pressing the power button, and after the reboot, it works fine. But I need someone to answerwhy its taking a long time to load the desktop...?

    Also, please give me some advice to solve this problem, keep this idea in mind that my computer is virus free and got a good processor and RAM. I installed my windows in the C drive, and in my C drive only almost 2 GB of space is left (or almost). and there is no program running auto in msconfig, other than gtalk, Skype, etc.

    I'll be really grateful if someone please give me the solution.

    HP would have provided your preinstalled laptop with win, they would also have provided a way to recover your laptop to the specifications of the factory, either through discs of recovery or a hidden restore partition that you need to access in order to make recovery disks. How do you access a recovery partition is an option of HP, is not dealing with a MS - visit the HP website, specific to your model for more details on how.

    If an illegal win7 version has been installed, or you have to buy version of win7 you need, or you need to recover your laptop provided that the factory provided, by doing so, you lose everything on the phone, if you have lost or that you can not do the restore cd and then telephone HP support they would usually provide records for a small fee.

  • It takes a long time to send the request to print a PDF file

    Whenever I send a request for a PDF to print to a printer, it takes time for the system to respond. It takes even longer for printer receive my print request. Why?

    Read some messages in this forum, but nothing works. Adobe needs to take a look at this issue, it affects a large number of users. For this reason, Adobe Reader sucks.

    Hi mikel007,

    Open Acrobat Reader DC, go to the Help menu and repair the installation.

    Also check the updates under the Help menu. If any please install.

    If the problem persists, try the solutions listed in this KB doc.   Acrobat and Reader help / troubleshooting PDF printing | Adobe Acrobat, Adobe Reader

    Kind regards

    Nicos

  • My DLNA compatible TV takes a long time to detect the DLNA server on Windows 7 computer laptop via wifi

    I have a Panasonic plasma tv and a laptop running Windows 7 x 64.  I had no problem with the TV detect my laptop and watch movies via the DLNA server in wifi, aside from the videos stopping frequently, loss of the connection and reconnect.  Thinking it was a problem with my router, I contacted the manufacturer of the router and received a replacement of the same router.

    Apart from switching on the router, nothing has changed.  However, when I try to go to the DLNA function on the TV, it will appear the message "DLNA server is not found. Finally, anywhere from 2 to 10 minutes later, my computer appears on its own in the list and I can continue to watch the videos as usual.  The connection seems to be more stable than before because he rarely abandons the connection after the replacement of the router, but waiting for my computer appears mystified me.
    Y at - it is a particular setting in my notebook or the router that should be adjusted to solve this problem? As I said before, I reflected quite well the former router settings so I'm really helpless why it takes so long.
    Oh, and I use Windows Media Player stream 12.0.7601.17514 (as I was before).
    Thanks for any insight of this!
    Tara
    It is a problem of network discovery/master browser, and if you book DHCP
    addresses, as I suggested, you may be able to solve the problem. You could
    you want to ask their tech support for help if not clear from the user manual.
     
    | Finally, anywhere from 2 to 10 minutes later, my computer will appear on his
    own in the list and I can continue to watch the videos as usual.
     
     
    Barb
     
    MVP - Windows/entertainment and connected home
     
     
    Please mark as answer if that answers your question
     
     
     
     
  • Select the query takes a long time to run the second time

    Hi all

    I have Oracle 11 GR 1 material in windows server 2008 R2.
    I have a few tables with 10 million documents. When I run the select query to the tables of first time, it gives me a result in 15 seconds, but if I run the script even twice in the same session, I get the result in 15 minutes to complete...

    Why it's happening? What can be the solution for this?

    Thank you and best regards,
    Vikash jain (DBA Junior)

    What I know is that this feedback from cardinality generates more problems than improving the performance is, in fact, its main objective. But first look at which is was written in the link I posted above

    "Return of cardinality was introduced in the Oracle 11 g database 2. The purpose of this function is to automatically improve plans for queries that are executed repeatedly, _For that the optimizer does not estimate the cardinalities in the properly_ plan"

    If the cardinality feedback kiks in your case it is certainly because you do not have an exact statistics. Get the command the explain plans that I have shown you with the E-lines and A-lines (lines estimates and actual lines) and see where things are poorly estimated.

    If you want to disable the cardinality feedback then add the indicator according to your request

    /*+ opt_param('_optimizer_use_feedback','false') */
    

    Best regards

    Mohamed Houri
    www.hourim.WordPress.com

    Published by: Mohamed Houri on November 22, 2012 02:11
    Published by: I was looking for the exact indication of how do I deactivate the cardinality feedback and I foud in an ot the Dominic post in otn :-)

    Published by: Mohamed Houri on November 22, 2012 02:15

  • After paper jam, rolls making noises and the printer takes a long time to spit the copy.

    It is an all in one Officejet Pro 8600 and is still under warranty. How can I get fixed roller?

    Wow!  I found the video on how to find a paper jam!    It was a step that was not included on the instructions of the machines, i.e. check behind the print cartridge and the whereabouts of my paper jam!   When everything has failed, read the instructions, eh?

    Thank you!  My problem is solved!

  • Firefox 7 takes a long time to load the first web page.

    After I have connected to my Windows XP SP3 laptop, it must time for Windows to finish loading and explorer.exe to become sensitive and let the start menu.

    Once the start menu works, I start Firefox, which opens, and it loads the tabs that were last open, which is correct, but it is there and turns his wheels for about 2 minutes, doing nothing except showing the hour glass icon and research as it tries to load the Web page, but no status messages appear in the status bar.

    Why does it is spinning its wheels and do nothing so long?

    I have 2 extensions and active 1 plugin:

    Extensions:
    User Agent Switcher 0.7.3
    Add to Amazon Wish List button 1.7

    Plugins:
    Shockwave Flash 10.3.183.10

    See you soon.

    Also these?

    Java Quick Starter 1.0 false [email protected]
    Microsoft .NET Framework Assistant 0.0.0 false
    
  • Portege Z830: It takes a long time to load the utility of fingerprints after fashion 'sleep'

    It takes a lot of time after sleep until a fingerprint is recognized.
    Nothing to do here?
    Change the priorities of awakening? And how?

    Since when did you notice this behavior?

    Perhaps you should tell us what model of laptop and operating system do you use?
    Is the last fingerprint utility installed?

  • It takes a long time to remove the images of the Windows Photo Gallery.

    original title: delete time on photo gallery

    It takes forever to delete photos on my photo gallery of Windows Vista.  I've never had this problem before. Any suggestions?  Jan

    Hello

    1. you receive an error message when you try to delete the photos from Windows Photo Gallery?

    2 have you made any changes to the system before the show?

    3 IS the issue limited to Windows Photo Gallery?

    4. are you able to delete photos or other files from other programs without any problem?

    Please provide more information on the issue so that we can better help you.

    Windows Photo Gallery is designed to automatically display the pictures and videos stored in the folder of images on your computer. You can change the contents of the Gallery at any time by adding and removing folders, which is convenient if store you some of your photos and videos in one location other than the folder of photos on your computer. You can also add pictures and videos to photo gallery without adding the entire folder.

    Windows Photo Gallery: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Photo-Gallery-frequently-asked-questions

    Select the pictures and videos are displayed in Windows Photo Gallery

    http://Windows.Microsoft.com/en-us/Windows-Vista/choose-which-pictures-and-videos-are-displayed-in-Windows-Photo-Gallery

  • SOUL really takes a long time to open the encoding settings

    With the release of the SOUL 2014 versions, I've known wait times very long to open the encoding of employment settings. For example, if I add a sequence of images 1920 x 1080 to the encoder, choose Quicktime as the container and one of the available codecs, by clicking on the name of the codec to open its settings causes a very long delay, maybe 3 minutes, before the dialog box opens. I use a Macbook Pro with Yosemite. Previous versions before 2014 version has never had this problem. Is this a known issue?

    THX

    It is a known problem with SOUL running on Yosemite. We are working with Apple on the issue and hope it will be fixed in a next OS update.

  • Server takes a long time to send the verification email

    I created a registration with verification e-mail systemn page but the problem is that mail takes like 30 minutes to 2 hours to deliver is one we know what we can do about it

    There are no that you can actually do by e-mail delays. PHP mail() hands function simply the message to the transport agent of messaging from the web server (MTA), usually of Sendmail or Exim. What happens after that depends on the queue in the MTA. There are also problems of latency with your ISP. Most e-mail programs allow you to check the headers of the message, which usually will tell you the time that the message was received by different MTA along the road. Looking at them, you can get an idea hence the deadlock is underway, but it is not that you can do about it apart from moving to another ISP or hosting company.

  • Microsoft keyboard takes a long time to open the Favorites

    I have a Microsoft ergonomic Natural Keyboard 4000, it works great but there is this problem that I can not get rid.

    all keys work properly, same custom and all functions, but the shortcut 5 Favorites buttons on top that I attributed to 5 different sites:

    1 http://www.google.com
    2 http://www.youtube.com
    3. http://www.facebook.com
    4 http://www.outlook.com
    5 http://www.twitter.com

    So, there is nothing strange there.

    When I press a button, I expect to open the default browser and load the Web page.

    When the computer is idle, it takes about one or two seconds to occur.
    With several programs, it takes 10 seconds to 2 minutes.
    When computer heavy load, it will do nothing.

    I thought it might be the web browser, hang up, but if I press a button, and nothing happens, I can open the browser manually and instantly appears.

    I have updated about 6 months of a Logitech Cordless Desktop comfort keyboard which has 4 keys shortcut and even at 100% cpu, these buttons work (still) not instantly as expected, if it's not my computer.

    IM using Microsoft Mouse and keyboard Center 2.0 for Windows 7, just after a clean reinstall.

    There could be a lot of causes for the behavior you describe, but start with the simpler:

    1. reaffirm Internet Explorer as the browser in the default CUSTOM (<>) Set Program Access and defaults of the computerarticle.

    2. right-click on the following link & select SAVE TARGET under... to download/save the file on your desktop: http://www.slipstick.com/problems/reg/chromehtml.reg [1]

    2. double-click the file that you saved in # 2 above & accept invites him to MERGE with the registry data.

    3. IMPORTANT - DON'T SKIP THIS STEP! Open Internet Explorer (only!) to http://support.microsoft.com/kb/923737 of => [ignore the warnings of DO NOT APPLY] & run the difficulty.

    Note: For best results, make sure the option Remove personal settings .

    4 restart once again & test those assigned buttons with Internet Explorer by default.

    Stop it!  Please do NOT affirm all other browsers by default yet!

    5. answer this post with a status report. Also tell me if IE8, IE9 or IE10 is installed.

    ==================================================
    [1] source: http://www.slipstick.com/problems/this-operation-has-been-cancelled-due-to-restrictions/

  • Get Internal Server Error - if servlet takes a long time to perform the task

    Servlet takes 20 minutes to perform the task complete, but in the front after a while (about 5 minutes), I get "Internal Server Error". What happens to my client and this is not the case for me. Is there a setting that determines the timeout of container for an answer? Is it possible that I can do my container to wait for the answer to come? Need help in this regard. We use Tomcat 6.0.

    Is there any configuration file where we can find this reading timeout setting in tomcat?

    No, because that happen to Tomcat. It happens in the client: the browser.

Maybe you are looking for

  • Tecra A7-237 - RAM upgrade question

    Hello I installed and works 2 x 2 GB Ram (4 GB) module in my Tecra A7-237. works perfectly on Windows 7 64 b My question is this: I can't install two modules x 4 GB (8 GB) in the computer?I find modules, (CT51264AC667) I just need to know if the phon

  • Flow 10 7 HP - Windows does not start, I can't get into recovery 8.1 because cannot boot from USB-HELP Please!

    Hi all, I'm new here! I am (excuse me: has) with a stream 7 A few days ago, I tried to install Windows 10 TP renovation 8.1 with Bing. After a while of waiting, he managed, but unfortunately I have forgiven to in SSD Tablet hp drivers, thinking that

  • Google search and download results (Sentiment analysis)

    I am building an analysis of the feeling (sum of the words positive vs negative) I'd be happy to share with you once made. I'm in half way through. Currently, I am able to download the RSS FLOW and analyze them. I would like to know if anyone here ha

  • How to create a system restore point

    Hello. have a new laptop, and I would like to be able to create system restore points before as I have download things, when I go to the system restore, it asks only if I want to go to one and not how to create one.  Thank you.

  • Cannot open from Big Fish games

    I was a member of Big fish for years, this is the first problem I've had.  When I try to open a game, he appears in a box and said:drmactivator application does not, or127.0.0.1 port 4664 does not apply and at the same time myWindows Defender Update