How can I use PGA?

Hi all

I'm trying to measure the use of the PGA. In other words, how packets can consume PGA in memory. That's why I wrote the following code. I wonder what happen on PGA in memory after the following code to run? I want to compare before and after.

So, what table should I interview?

Through the tag I use to code PL/SQL? {code} this does not work?

create or replace
package pga_pkg
is

function get_emp_name (emp_id employees.employee_id%type) return employees.first_name%type;

end pga_pkg;

create or replace
pga_pkg package body
is

type my_type is the employees.first_name%type table
index by pls_integer;

my_arr my_type;

function get_emp_name (emp_id employees.employee_id%type)
return employees.first_name%type
is
Start

Return my_arr (emp_id);

exception
When no_data_found then
return null;
end get_emp_name;

Start

for rec in (select employee_id, first_name from employees)
loop
my_arr (Rec.employee_id): = rec.first_name;
end loop;
dbms_output.put_line ('Constructor...');

end pga_pkg;

Thanks in advance.

Hello

Use the below query to find the values of total inuse PGA, PGA total allocated, maximum PGA allocated.

Select the name, the value from v$ pgastat;

If you want to determine the size of the PGA for current sessions, and then use V$ SESSTAT.

To know the current size of the PGA at each of the sessions, use under request

SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

WHERE s.statistic # = n.statistic #.

AND n.name = 'pga session in memory. "

The maximum size of the PGA each session has reached so far, use under request

SELECT s.sid, n.name, s.value FROM v$ sesstat s, v$ statname n

WHERE s.statistic # = n.statistic #.

AND n.name = 'pga memory max session ";


Kind regards

S27

Tags: Database

Similar Questions

  • How can I use my photo albums as screensaver with Apple TV 4th gen

    How can I use a photo album that I created as a screensaver on the generation of Apple TV 4 because it is not an option in this sense?

    What follows is the Apple TV 4 user guide...

    Screensavers

    Apple TV displays a screen saver when it remains inactive for a predefined number of minutes.

    Air screensaver shows beautiful videos of slow motion of the places of the world, upload to an online server, making the screen saver more engaging and dynamic. For the antenna, you can control how many times Apple TV check and download new videos.

    Change the frequency of aerial screensaver download. In settings, go to general > screen saver and select Download New Videos, and then select an option.

    Return by using Apple TV. When the screen saver is active, press the contact surface to get to some app have been previously using.

    Choose a different screen saver. In settings, go to general > screen saver and select the Type. Then select the screen saver you want to use.

    Select the photos to display. Many of the screen saver options display a slide show of photos - it can include photos provided by Apple, or your own collection stored in iCloud. To choose which photos are used, in the settings, go to general > screen saver and select the Type. Then choose one of the types of screensaver-photographers.

    If you choose my Photos, the Photos app opens. Follow the instructions to put photos as screensaver.

    Set the screensaver time-out. In settings, go to general > screen saver and select the setting starts after, and then specify a number of minutes. This indicates to the Apple TV to start the screen saver automatically if the unit has been idle for the specified time.

    Activate the screen saver immediately. Press the Home button to go to the home screen (if it isn't already), and then press the button twice.

  • How can I use Windows on the Mac desktop?

    How can I use Windows on MAC desktop products?  OS X El Capitan

    You can install it in BootCamp or virtual VMWare, Parallels or VirtualBox machine

  • How can I use my watch to snap the shutter on my iPhone?

    How can I use my watch to snap the shutter on my iPhone?

    Click here > https://help.apple.com/watch/

    Then click on: Remote Camera on the left.

    You'll see instructions.

  • How can I use firefox to open the public sybercafe.

    How can I use firefox in open public sybercafe.and what precautions should be taken.

    Hi, you can use the Firefox private - browsing Mode navigate the web without saving the information on the sites you visit

    The incognito on Firefox for Android

  • How can I use my instore credit for a movie

    How can I use my instore credit for a movie

    Hello R Larson,

    I see that you are wanting to use a store credit for a movie. I'll be happy for you have said in the right direction. First of all, let's see if we can find out if the credit is a credit of iTunes gift card or a credit from the Apple Store. This article will help you determine what may be:

    What kind of card do I? -Apple Support

    If credit is iTunes, you can just check your balance using the instructions found in the section below and use to either rent or buy a movie to display:

    See your credit balance - Apple Support iTunes

    If the store is an Apple Store Gift card credit, you would not be able to use iTunes to watch a movie.

    I hope this helps. See you soon!

  • How can we use this page Windows Genuine?

    How can we use this page once the developers of Firefox has removed the option "Enable Java"?

    Now, I downloaded this tool to check if the Windows Genuine or not! But kept getting the error message during the installation of the application.

    This is not sound/look like a problem of firefox at all, but could be a problem with the integrity of your windows system (perhaps related to malicious software): http://support.microsoft.com/kb/2617842/en-us

  • How can I use my PC speakers to hear my phone iphone 6s calls?

    How can I use my PC speakers to hear my phone iPhone 6s calls?

    If your 'PC' was a Mac, you can use the continuity.  But if your PC is a Windows PC, you're out of luck.

    Continuity allows you to connect your iPhone, iPad, iPod touch and Mac - Apple Support

  • I bought an iphone 4 on ebay but it's locked, icloud so I am not able to use it, and the previous owner is available to remove the device from their account: How can I use the appliance?

    I bought an iphone 4 on ebay but it's locked, icloud so I am not able to use it, and the previous owner is available to remove the device from their account: How can I use the appliance?

    You can not. Try to return the unit and get your money back. There is absolutely no way for you to unlock the device,

  • How can I use a few icons on the personal bar

    I would like to see all my favorites... so, how can I use only the icons and not the text on my bookmarks bar?

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft Web site, I clicked the options which mean that I would not need the CD (which was not provided with the laptop), but poartway through the service pack update, I get a request for the Office 2000 Professional CD.

    Any suggestions?

    Hello

    Did you mean an office or a note?
    As far as I know the a Note is part of the recovery Image and the CD is not supplied with the unit. In addition, Toshiba units are not delivered with the Office 2000 software.

    However, have you checked to aid either in Word update function?

    You will find an option called verification of updates
    http://Office.Microsoft.com/en-us/officeupdate/default.aspx

    Good bye

  • How can I use bluetooth on my Satellite C850-B906

    Please help me. How can I use bluetooth on my Satellite C850-B906. I can't find on the bottom of the search, and even in the PC device, bluetooth is not there. This laptop has bluetooth according to its specifications. (Bluetooth / WiFi (802.11B/G/N).)

    Good response will be highly appreciated.

    Thanks in advance!

    Hello

    I m not sure but I think you've got your laptop computer without an operating system preinstalled.
    The question is: which OS you have installed and that you have installed all the drivers needed, including BT (Toshiba BT stack) software?

  • What is SSD and how can I use it or not?

    Could someone tell me, what is SSD and how can I use it or not? because my friend told me that my laptop has SSD drive.

    Hi Jabbar73,

    Thanks for your post, I'm happy to help you.

    SSD stands for Solid State Drive. Here's the Wikipedia definition. SSD drive.

    Now, for what is in your system go to the Start button and click on run

    Type msinfo32 , and go to the section components storage disc.

    Lists the disks that you have in your system.

  • How can I use IrDA on Qosmio F20-155

    I have infrared cable how can I use it to share files with my smart mobile phone
    Help me please

    Hello

    Just answer. You can not use. The IrDA is not available.
    If you want to use an IrDA technology, then you need to purchase the extended example IrDA USB stick.

  • How can I use on my M40X with WinAmp media buttons?

    Hello
    Today, I received my M40X and I have a question.
    There are 5 media as left button on the keybord (CD/DVD, play/pause, Stop, <->)
    Is it possible to use them with WinAmp?
    With the help of Toshiba, I had the CD/DVD button used to start WinAmp (by allows him to launch a .exe) but the work of Play/pause...don´t. The field of media Apps the only player that I can choose is Win MP10 (I hate this piece of sh * t).
    How can I use these buttons with WinAmp?

    Hello

    As far as I know Toshiba controls have been tested and designed only for Microsoft Media Player and WinDVD. How this topic says:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=3621&MessageID=11461#11461

    I n t have any experience with WinAmp but I found useful info in this forum on this topic:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=6673&MessageID=24448#24448

    Select this check box.

    Good bye

Maybe you are looking for

  • Import bookmarks of IE10 in FF18 brought only the records but no bookmarks

    I went through the import process take IE10 FF18 bookmarked on my machine Win 8. Now, in Firefox, I have in my library, the files corresponding to the bookmark files in IE, but the folders are empty - no Favorites in them. Suggestions? Thank you. Ken

  • Mac Pro vs maxed on basic MacBook

    Let's start with the fist, do not answer on the portability! Ian is not going to base my decision on portability. I will use it for, iTunes, internet, office and a few other programs, (without video editing or whatever it is expensive). So my questio

  • HP Pavilion dv6 power supply problem

    I have a Pavilion dv6 for the past three years; It worked perfectly until recently. Two months ago he began to take more time for the prosecution, but he continued to work fine. The battery always charge at a slower pace, but now there's another more

  • How can I add a new folder to "my network places"?

    I have several folders on my local network that appear when I click on "my network places".  I need to add another folder for the documents in 2011 and don't know how to do it.

  • How to change the menu drop-down ' send to '.

    I want to send a duplicate of a photo or file to another place - I understand, you right click and open the drop down' send to ' menu that allows me a choice of destination.  How can I change the list of choices of destination in the' send to ' menu?