question related to the shared pool

Hi Experts,

Version of DB - Oracle Database 11g Enterprise Edition Release 11.2.0.1.0

OS - Windows 7

(installed on my laptop)

Just started reading concepts DBA. I had a few questions. Please explain indetail/short ;-).

(1) can we see the size of the Cache of the library and Cache data dictionary which are internal units of the Shared pool.
(2) one of the advantages of the package is - when we invoke a single method, oracle loads the whole package into the buffer and for subsequent calls, it will not go to the db files. Here the buffer means library Cache. My understanding is correct.
(3) I am able to see the two parameters shared_pool_size(value =0), shared_pool_reserved_size (value 15099494) to parameter v$. What is the difference between these two parameters.


Thank you very much in advance for your help.

See you soon,.
Suri ;-)

Your questions:

1 Yes, v$ sgastat

2 Yes, if your terminology is a little loose.

3. the parameters described here, content

Tags: Database

Similar Questions

  • Why my static PL/SQL within SQL local variable is not transformed in space in the shared pool?

    Hello everyone,

    Oracle version: 12.1.0.1.0 - 64 bit

    OS: Linux Fedora Core 17 X86_64

    Description of the problem:

    I'm reading an interesting book of online oracle named: SQL in PL/SQL

    On page 11, it reads the following:

    In the absence of a compilation error, the PL/SQL compiler generates an equivalent statement of SQL regular text and stores this with the generated machine code. This instruction uses placeholders where the embedded SQL statement uses identifiers that have been resolved in the PL/SQL unit.

    What I understand of this (please, correct me if I'm wrong) is that whenever I write some static/embedded statement SQL within a PL/SQL block in which there are a few local variables in PL/SQL, and then final generated SQL statement (after resolution of identifier) will include placeholders (bind variables) instead of these identifiers the PL/SQL.

    I just wanted to see this in practice, so I made the following test:

    Test case:

    SQL> connect / as sysdba
    SQL> alter system flush shared_pool
    
    system altered
    

    So, normally, after execution of the foregoing the shared_pool on my development environment is now empty.

    And then I run the following PL/SQL block

    <<b>>
    declare
        depid hr.employees.department_id%type := 100;
        cnt   pls_integer := 0;
    begin
        select
            count(*)
        into
            b.cnt
        from
            hr.employees t1
        where
            t1.department_id = b.depid;
    end;
    /
    --
    --
    column sql_id new_value sqlid_saved;
    --
    select
        v1.sql_id
    from
        v$sql v1
    where
        v1.sql_text like '%t1.department_id = b.depid%';
    --     
    -- 
    select
        v1.sql_text
    from
        v$sql v1
    where
        v1.sql_id = '&sqlid_saved';
    

    And the result was:

    SQL_ID
    -------------
    687dxvsmrwm9z
    g17tjb3f8t94y

    6 old: v1.sql_id = "& sqlid_saved"
    6 new: v1.sql_id = "g17tjb3f8t94y".

    SQL_TEXT
    --------------------------------------------------------------------------------
    < < b > > declare depid hr.employees.department_id%type: = 100;     CNT pls_in
    SEB: = 0; Start select count (*) in b.cnt of
    T1 hr. Employees where t1.department_id = b.depid; end;


    SQL >

    What I don't understand is the main part of the SQL_TEXT I put in red.

    Instead of

    T1.department_id = b.depid

    I expected to see something like

    T1.department_id = : B

    In other words, some bind variable, because depid is a local variable inside my PL/SQL block used in integrated/static SQL statement, so it must be converted to a reserved space in the shared pool instead of the original identifier.

    You kindly could you tell me what I misunderstood?

    Thanks in advance

    > But once again no variable binding in the stored/parsed SQL statement. That's what I don't understand.

    Submitted by PL/SQL SQL is "normalized", which includes (among other things) convert uppercase. Your query on v$ sql is looking for '% hr.employees% '.

  • hold table in the shared pool

    Hi all)

    can I use INVALIDHTOMEH packaze hold table in the shared pool?

    http://www.orafaq.com/wiki/Pin_Objects_in_the_Shared_Pool

    or how keep in the table of a very intensive use of memory?

    Hello

    If you want a chart updated in cache, you just (re) set with the keyword CACHE. INVALIDHTOMEH package is to pin (unpinning) code, not data.

    Best regards
    Nikolai

  • Purpose of the Shared Pool

    Hello

    The library cache stores the info on them recently use SQL & PL/SQL statements.

    The data dictionary cache stores data in database files, tables, etc.

    Is there any specific use other than being the container to these 2 Cache the shared pool?

    user12022313 wrote:
    Hello

    The library cache stores the information on the SQL & PL/SQL used statements recently.

    The data dictionary cache stores data in database files, tables, etc.

    Is there any specific use other than being the container to these 2 Cache the shared pool?

    The answer is "it depends." The above are only 2 structures of many other many other structures available in the shared pool. Starting from 10 g, even the undo and redo are kept within the shared pool itself. But most of the structures in the town of pool other than Library Cache and data dictionary Cache requires no intervention on our part is why they are more often discussed in almost every document/place.

    HTH
    Aman...

  • How to increase the size of the shared pool?

    Hello

    How can we increase the size of the shared pool?

    can I update "shared_pool_size" parameter in the init.ora file?

    Or any other way to change?


    Concerning
    Rajesh

    no need to modify the pfile file, if you use 9i or above versions.

    If your database uses pfile then issue
    SQL > alter system set shared_pool_size = scope = mΘmoire;

    If your database uses spfile then issue
    SQL > alter system set shared_pool_size = scope = both; (to reflect changes made to the next start-up also. otherwise scope = memory will be enough)

    If your 10g database, you can have SGA_TARGET enabled (by default) in this case it is not necessary to change anything.

    If you modify the init.ora file, which will result in the next startup of the database. (means shutdown is required). This isn't average recommeded.

  • How to query the current free memory in the shared pool

    Hello

    Someone please tell me how to check the current uses of shared pool.

    Any query/Tip/document would be appreciated?

    If you have found errors ORA-04030 then it is more likely at the PGA instead of the SGA. If you had problems with the shared pool you would probably see shared pool latch wait events and others.

    For the ORA-04030 errors, depending on your operating system, can be solved by adding more memory to the operating system or to reduce the amount of work that is performed.

    HTH!

  • kept in the shared pool.

    How I see the objects kept in the shared pool.

    by query v$ dbobject_cache; _

    OWNER VARCHAR2 (64)
    NAME VARCHAR2 (1000)
    DB_LINK VARCHAR2 (64)
    NAMESPACE VARCHAR2 (28)
    TYPE VARCHAR2 (28)
    NUMBER OF SHARABLE_MEM
    NUMBER OF LOADS
    NUMBER OF EXECUTIONS
    NUMBER OF LOCKS
    NUMBER OF PINS
    KEPT VARCHAR2 (3)
    NUMBER OF CHILD_LATCH
    NUMBER OF RADIATION

  • narrowing of the shared pool

    Hi friends, when you browse the documentation I read that "internal adjustment algorithm isn't shrink shared pool when you use EAMA. I want to know if that's all the time or for specific cases. If for all the time, then it can lead to performance and more problem sql, pl/sql etc info will reside.

    Please explain to me. Thanks in advance

    Hello
    Yes in the case of the distributed databases, using pfile we can statup dbs with client side pfile as well. See here,
    The location of the file in distributed environments initialization parameter
    The client that allows you to access the database must be able to read the settings of the base initialization file to start instance database. Therefore, always store a file parameter on the computer running the client.

    In undistributed treatment facilities, the computer is running Oracle and the customer. This computer already has the settings file stored on one of its hard drives. In distributed processing facilities, however, local client workstations may administer a database stored on a remote computer. In this configuration, the local client computers must each store a copy of the settings for the corresponding databases file.
    http://download-West.Oracle.com/docs/CD/A87860_01/doc/server.817/a76956/start.htm#6439
    HTH
    Aman...

  • Advice on the size of the shared pool

    Dear all DBA
    I use oracle 10g 10.1.0 on windows 2003 with 2 GB of Ram.

    I'm getting ORA-04031 unable to allocate the memory error, and this error disappears automatically after a few seconds. Please advice me what I should change as the sizes of pool shared etc.

    When I'm looking for init.ora I have only one file in my server with the name of init.ora.7192009121911 instead c:\oracle\product\10.1.0\admin\dborcl\pfile
    with the information below

    ###########################################
    # Pools
    ###########################################
    JAVA_POOL_SIZE = 50331648
    LARGE_POOL_SIZE = 8388608
    shared_pool_size = 83886080


    Now the advice me what should I do because I'm not at all a DBA.

    If you use spfile...

    ALTER SYSTEM set SGA_MAX_SIZE = 1000M scope = both;

    ALTER system set SHARED_POOL_SIZE is 150000000 scope = both;.

    Try the operation again.

  • Question related to the entrance with pci 6221 and SCC 68 analog

    I use 6221 PCI and SCC 68 analog read of voltage between the terminals of the drain and the source of a transistor. The drain is at 0 Volt and source is connected to 5 volts via a 100 k resistor. The transistor is used as a follower of the source, and therefore the output is measured at the source of the Terminal. When I measure the voltage by using oscilloscope, I see clearly the change of output as a result of change of voltage of the door. But, when I try to acquire the same by using labview, I see nothing. I tried to change the signal to the CSR, NRSE, but nothing works. Seems to be that something related to differences in impedance. Can you please advice me on this issue? Thanks in advance

    Hi rsd111,

    I understand that you measure a circuit similar to this ( http://en.wikipedia.org/wiki/Common_drain)

    I also get that you use an external power supply with GND connected to the Drain and - 5V connected to the Source with a 100 k resistor.

    You should be able to measure the tension between D and S setup a differential measurement and connection Ai0 + D and Ai0 - s, in fact you can youse Ain you prefer.

    You should be able to do the same measure also at configuration NRSE linking Ai0 AiSense at the Source and drain.

    The Board's input impedance is greater than 10GOhm, it must behave as the oscilloscope in pairing mode high-impedance DC.

    6221 specifications: http://digital.ni.com/manuals.nsf/websearch/8117DF4C5A29C95C862573020061023B

    Nice day.

  • Question related to the Xbox; Impossible to get Xbox live or to connect to the internet

    I've had my Xbox 360 for 4 years now and have recently decided to use it. I put in place when I was first, and for some reason any, I put the setting of family on it, I asked my parents if they did but they said no, so I thought I could have done myself but I don't remember the password or my security question and now I can not their and I can't get Xbox live or connect to the internet. I looked on the internet means that I could reset the Xbox or the parameters of the family, but they include all something on your hard drive but I don't have a hard drive, I also saw that if you put your age as 18 years as the family settings are enabled and you can find your access code in the settings , but I don't know where to find it. I would be grateful to anyone who helps to solve this problem.

    Try Xbox support:
    http://support.Xbox.com/en-us/

  • Question related to the spam/hoax calls

    I frequently receive phone calls from an Asian voice claiming to be Microsoft support widows. He claims to have detected the virus and all kinds of horrible things on my computer. It will ask then as I turn my computer on and wait until the home screen is visible. It then asks me to press some buttons, which, out of suspicion, I refuse to do. I'm wrong. And if so, what might happen.

    Thank you in anticipation

    Bill

    Original title: am I paranoid

    Wednesday, January 21, 2015 16:17:35 + 0000, WilliamHolland1947 wrote:

    I frequently receive phone calls from an Asian voice claiming to be Microsoft support widows. He claims to have detected the virus and all kinds of horrible things on my computer. It will ask then as I turn my computer on and wait until the home screen is visible. It then asks me to press some buttons, which, out of suspicion, I refuse to do. I'm wrong. And if so, what might happen.

    Yes, you are right.

    It was a scam and with all the names and phone numbers, one who has
    become very frequent lately. See
    http://www.troyhunt.com/2012/08/virus-scams-social-engineering-victims.html
    and
    http://www.howtogeek.com/176605/tell-your-relatives-no-Microsoft-wont-call-you-about-your-computer/
    and
    http://www.howtogeek.com/180514/the-%E2%80%9ctech-support%E2%80%9D-scammers-called-Htg-so-we-had-fun-with-them/

    In addition to their money get on your part to do anything of any value,
    If you leave them in your computer, who knows what they were doing or where
    What confidential information they stole.

    So if you have done so, I highly recommend that you do both of the following
    immediately:

    1 do a clean reinstall of Windows.

    2. after reinstallation of Windows, change all your passwords.
    especially the banks or other
    financial sites.

  • Question related to the internet connection

    Hello

    MY NAME IS SANDY I'M SORRY THE BIG LETTERS I CAN SEE THEM BETTER. I HAVE A PROBLEM THAT NOTICING IN THE BAR DOWNSTAIRS, THE PIC OF MY INTERNET CONNECTION HAS AN X, BUT I'M ACTUALLY OK AND ABLE TO CONNECT TO THE NET. MY CONCERN IS THAT IT DOES NOT CONNECT TO MY NETWORK BUT HAS NEIGHBORS. HELP I'M WORRIED THAT MY PERSONAL INFORMATION MAY BE COMPROMISED. CAN SOMEONE HELP ME THROUGH AN EMAIL WITH HOW TO CONNECT TO MY OWN NETWORK. I THINK THAT I ASK THIS CORRECTLLY. IM HAS NO KNOWLEDGE OF REAL PUTER PERSON LIMITED BUT EAGER TO LEARN. I APPRECIATE NAY HELP AND THANK YOU IN ADVANCE.

    HANDYSANDY

    Sorry, what you ask is not possible via a forum because the person who assists you must have detailed information about your system that would be very difficult for a novice. Here are a few options for you to consider:

    -Ask a computer-savvy friend to help you.

    -Ask your service provider to help you. There will probably be a load.

    -Give a defendant remote access to your PC.

    The third option requires a difficult decision: How can you trust this meeting? Unfortunately I can't answer this question for you.

  • Two questions relating to the signature using restricted code API: s

    First question

    I have a library that contains classes that requires the signature in order to use API:s. limited one of the functions in the library uses "persistent storage". My application accesses the library import library module, then instanciates and calls the function that I need.

    Is it enough to have signed library or don't call asking the library must sign too?

    Second question

    Is it possible to configure the simulator so it actually tests that the modules using API: s limits are signed correctly?

    Check the Simulator definition "activate the safety of the device. When this setting is enabled, the Simulator checks would be signatures almost like a true pocket computer. For your application, which should be pretty good. If your module is missing a required signature, the simulated Pocket will complain even as would a normal hand.

  • Memory problems and questions related to the process

    Does this look just for you, because the modified memory does little until after I had computer problems and had to do a factory reset

    The operating system is Windows 7 64-bit edition SP1

    I disabled SuperFetch is told by the way, if this help anyone on this issue.

    Resource monitor

    Windows process

    Services

    Performance

    Hello

    When your computer doesn't have enough memory for all the actions it is trying to perform, Windows and your programs can stop working. To help prevent information loss, Windows will inform you when your computer is low on memory. You can also learn to recognize the signs of low memory and take measures to prevent the problem. Insufficient memory problems occur when your computer is running out of RAM and becomes virtual memory. This can happen when you run more programs that the RAM memory installed on the computer is designed to support. Low-memory problems can also occur when a program free up memory that it needs more. This problem is called memory overuse or a memory leak.

    You can consult the following Microsoft articles and check if it helps.

    Diagnosing memory problems on your computer

    http://Windows.Microsoft.com/en-AU/Windows7/diagnosing-memory-problems-on-your-computer

    Prevention of problems of memory

    http://Windows.Microsoft.com/en-AU/Windows/preventing-low-memory-problems#1TC=Windows-7

    You may receive an "Out of Memory" error message because of the limitation of in Windows Vista or Windows 7 desktop heap

    http://support.Microsoft.com/kb/947246

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://windows.microsoft.com/en-US/windows7/Back-up-the-registry

    I hope this helps.

    Please post back with the State of the question and we will be happy to help you further.

Maybe you are looking for