Examining how much resources are left in Oracle?

Hello. I'm writing some programs that interface with Oracle. I want to know if my programs are leaking any oracle resources. Is there a way to do that per connection/session? 'show sga' isn't very useful.
I'm running a bunch of sqlplus queries over 10,000 times which will eventually call some pl/sql code underneath, which in turn calls some external c++ programs. Some of these pl/sql programs dynamically create tables, views, and procs. I'm doing this 10k test on one connection.
I'm using top and I see that Oracle is slowly gaining memory, but i'm not sure what that would be that Oracle is just keeping track of items for house keeping purposes, or if my program is genuinely leaking.
Anyways, any insight/tools to use would be great.
thanks.

Do not much like the the phrasing of your questions. A lot of resources in Oracle is shared resources. The db buffer cache being 100% utilised is not an indication of resource leakage, or we-have-a-problem - it is a lot better to have data in the buffer cache than on disk when it comes to I/O. A fully utilised buffer cache is a lot more desirable than a stingy one that aggressively try not to be an "exhausted" resource at 100% utilisation.
There are also numerous ways to monitor memory usage in Oracle. Oracle consists of a number of different processes (on Unix/Linux each with its own data segment - stack & heap). Oracle uses shared memory. On the o/s side, what is reported at memory footprint of a process. The actual data segment alone? Global/shared memory used? A lot of memory reporting via top and ps are ambiguous, if you do not understand just what kernel calls are made to calculate this "memory" usage of a process.
Besides, it is very seldom an issue of "how much resources are left"? And even when one happens to be pushing resources, that is the wrong question to ask. Why? Because it is not about how much is left, but how well the resources are configured and being used.
And from the sounds of it, "Some of these pl/sql programs dynamically create tables, views, and procs." - it does not sound like it is being effectively used at all.
For PL/SQL code to be run 10's of 1000's times, and dynamically create database objects..? It's the kind of design and approach that makes me reach for my lead pipe.

Similar Messages

  • After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  WRA

    After I've heard an audiobook downloaded from the public library, how do I delete it from the Shuffle to make room for other audiobooks?  When I plug it into my computer, I get a screen showing how much space is left on the Shuffle but no list of files that I can delete.  These books, incidentally do not appear in the ITunes screen.  WRA

    Select the iPod shuffle in the iTunes sidebar (under DEVICES).  If this is a current 4th (or 3rd) gen iPod shuffle, you should be able to see the contents of the shuffle by type, intented under the shuffle's name (still in the sidebar).  Select Music or Audiobooks (not sure where those items from the library will be listed).  The items will be listed to the right, for each category.  Find the items, select, and delete.
    It's on page 20 of the manual
    http://manuals.info.apple.com/en_US/iPod_shuffle_4thgen_User_Guide.pdf
    NOTE:  If this is an 1st or 2nd gen iPod shuffle, select the iPod shuffle in the iTunes sidebar (under DEVICES).  Over to the right, go to the Contents tab, where the items are listed.  Select and delete them from this list.
    I find it more convenient to make a playlist in iTunes with things I want to put on the shuffle.  I then set up automatic syncing (or use autofill) to have iTunes load the shuffle from that playlist, automatically.

  • How to find out how much space is left

    Hi,
    I know Oracle XE has a 4GB user data limit, and a 5GB overall limit. Using APEX you can find out how much space is left via the administration section.
    I'm going to upgrade to APEX 3.0 for testing. However APEX 3.0 will not show me how much space I have left since it's not explicitly written for Oracle XE. What query can I run to find out how much space I have left?
    Thanks,
    Martin

    The following should give you the same results as XE administration => storage :
    select total, allocated, 100 - allocated / total * 100 percent_free
    from (select 5120 total, sum(bytes)/1024/1024 allocated
    from dba_data_files
    where tablespace_name != 'UNDO')

  • How much memory are actually being used? db_32k_cache_size

    Hi everyone,
    Using Oracle 10g on RHEL 5.3.
    I've been asked to check how much memory are actually being used by our db cache's. Currently we are using the parameters db_32k_cache_size (user-defined) and db_8k_cache_size (default) both allocated with 12gb. Now I want to know if there is any way to find out how much of the 12gb are actually being used by the cache.
    Is this possible?
    Thanks

    Thanks Guys,
    Okay, so it is using the whole 12gb. I guess the next question would be, is 12gb really needed? You see, we are trying to increase memory where possible as this database has performance issues. Now we are thinking of taking some of the 12gb that is allocated to the 32k cache and assign it to the sga for instance.
    Does this make any sense?
    Regards

  • HT5035 How can I see how much money is left on a gift card that I have redeemed?

    How can I find out how much money is left on my iTunes card?

    If the card has been redeemed then its remaining amount should be on your account, the card itself is now effectively zero. My account's balance shows at the top left of the store's page on my computer's iTunes, and by logging in to view my account via the Store > View Account menu option. On my devices it shows at the bottom of, for example, the Featured tab in the App Store app under my account id (or you can view your account via Settings > iTunes & App Stores and it should show on the screen that you are taken to)

  • How do i see how much money is left on my itunes gift card?

    how do i see how much money is left on my itunes gift card?

    Do you have the card?  If it has never been redeemed, the amount remaining is the full amount.
    If it has been redeemed,  there is zero value on the card.
    If it was redeemed, the full amount was credited to the account, and can be spent down from there.  To see your remaining credit balance, log into the iTunes Store and look at the upper right.
    If you are not sure whether the card has been redeemed, just go ahead and try to redeem it.  If it has already been used, iTunes will tell you.

  • My imac is on finance, how to find out how much i have left to pay off?

    My imac is on finance, how to find out how much i have left to pay?

    contact the company that you are financing the mac through and ask them.

  • How can i see how much space is left before i burn a cd

    how can i see how much space is left before i burn a cd?  My old OS showed it at the bottom of the window, but loin doesn't have it anymore.

    Open a Finder window > go to View > choose show path bar (and/or status bar, sidebar).....
    Mine are showing (hence the choice to "hide" them).

  • Can't find how much I have left in my gift card

    Just this past Saturday I used my iphone to redeem a $25 itunes gift card. Now I can't find anywhere in my itunes account how much I have left in my card. I know it used to be on the right side, by my account name, when I open itunes store. But now I just see my account name. I know for a fact that I didn't spent the whole amount. So how can I find it?

    Select iTunes Store from the source list on the left side of the iTunes window.
    From the menu bar (top of your screen) click Store > Sign In
    Look at the top right side of the iTunes window under Search Store
    Your balance should be there in the, "account area".
    Apple - Apple Gift Cards

  • Determining how much time is left for HttpSession expiration

    Hi,
    Is there any way to determine how much time is left for my session to expire ? What i want to do is, if there is no activity on some page for a long time, then according to the remaining session expiration time, i want to popup a message to the user that 'so much' time is left for his session to expire. If the user wish we can reset the session expired time to its initial value and the session continues.

    Well, see, how are you going to do this even if there was a method (which there is sorta... you need to use getMaxInactiveInterval() and getLastAccessedTime() from session to figure it out yourself). What I mean is, how are you going to tell the user. The JSP can't call the browser to tell it anything, and when the user goes to another page, the timer is reset, so it'll never be below that limit after that request.
    Actually, I can think of only one way, and that is to have a JavaScript code on the page and use setTimeout function to show an alert after the needed time expires.

  • HT1807 In a foreign country you buy a card for air time, on the iphone how do you know how much time is left.

    In a foreign country Panama, you buy air time so much at a time with a time card.  How do you tell how much time is left on the iphone?

    Depends on the carrier you are using the card with, They will have special # codes or a number to call

  • How do I show how much battery is left?

    On my iphone I can show how much (by %) is left on my battery - how do I do that for my ipod touch (4th gen)?
    Thanks

    There is no option for showing battery % on the iPod. It appear the other responders was referring to the iPad which has that option. There are free apps that show percentage but you have to open the app to see it.

  • How can i find out how much memory is left on macbook pro

    how can i find out how much memory is left on macbook pro

    From the memory tab in Activity Monitor.

  • How long does mountain lion take to download and where does it say how much it has left mine just says downloading ?

    how long does mountain lion take to download and where does it say how much it has left mine just says downloading ?

    It's totally dependent on your broadband speed.
    It took me about 45 minutes to download, but I have a reasonably fast connection.
    It will often say in the purchased pane of the Mac App Store how much longer it will take.

  • How much fast are the new iMac's?

    I've been looking at upgrading my G5 PowerMac for a while and now Apple has just updated the iMac. How much faster are the new models over the just superseded ones and my G5 (spec below).
    I mainly us it for my work with Photoshop CS2 and the G5 does a great job most of the time but is showing it's age. I was looking at the 2nd model but for not much more you can get the 27inch screen with better upgrade options.

    Hi Craig,
    even the very first 2006 released Intel iMacs were faster than the G5 iMacs including yours.
    See this Barefeats test http://www.barefeats.com/imcd3.html
    Check additional tests on Barefeats on older iMacs against newer ones http://www.barefeats.com/
    The new 2010 iMacs of any sort run circles around the 2006 iMacs, so you are in for a very pleasant surprise
    Regards
    Stefan

Maybe you are looking for

  • Microsoft SQL 2005, Terminal Services and Tiger

    We found a great application we need to use at work. Unfortunately, it runs only on Windows. We will need to run it on a Windows server, running SQL Server 2005, and Macs interacting with it using MS Terminal Server. At least that is what someone at

  • Oracle 9i - Database Configuration Assistant

    When I open the above from the Configuration and Migration Tools, it's in Chinese, unfortunately I can't read Chinse. Could someone please help? Thanking you in advance.

  • When shall we expect sim free iPhone6 from Apple?

    Right now, I am working at USA. I will go back to India on January 2015. I want to buy a unlocked iPhone 6 which should support local carriers at India. I have gone through many forums and stopped by at T-Mobile and Apple stores but didn't get correc

  • Bridge CS6 Output with PDFs

    I had a  request from a client about some items we have done in the past for their company (wearable items).  There is no easy way for me to create a list.  So... I went to my wholesaler site to pull down copies of invoices that showed the items we h

  • How to run batch files in the backround ??????

    please anyone tell me how to run the batch files in the background i dont want anyone to interfere the batch file..The batch file has to run for a long time even days so it will be safe if the batch file is running in the bachgroung somewhere .. plea