What is sql area

hi,
what is sql area in librarycache and object and body
thanks
with regards

Thats part of Database, try to post there.
Greetings :)

Similar Messages

  • What effect does "GATHER_SCHEMA_STATS" have on SQL AREA??

    Hi, all.
    The database is 2 node RAC database (10.2.0.2.0) on 32 bit windows 2003 EE SP1.
    Recently, the database has been suffering performance degrade due to
    "library cache - related wait events" such as library cache pin and library cache lock. I also could see global cache related wait events(RAC).
    I found that the default job on installation, "GATHER_STATS_JOB", is causing
    a lot of invalidations of parsed sqls. Depending on the free memory of shared pool,
    the 2 node RAC database hangs, even not allowing "log switch".
    I think GATHER_STATS_JOB is very expensive in a RAC environment
    because it gathers statistics all objects in a database.
    Therefore, I disabled "GATHER_STATS_JOB". I could see the improvement
    in terms of "sql area usage".
    As an alternative, I would like to gather only application schema statistics
    by using the following procedure.
    -->DBMS_STATS.GATHER_SCHEMA_STATS('NMSUSER',DBMS_STATS.AUTO_SAMPLE_SIZE);
    My question is the following.
    ● After gathering applicaion schema statistics, all application related SQL
    statements are invalidated and are required to be re-parsed(hard parsing)??
    The database is based on All-Rows optimizer mode (CBO).
    Thanks and Regards.

    Hi,
    After gathering applicaion schema statistics, all application related SQL statements are invalidated and are required to be re-parsed(hard parsing)??Yes and no... it depends on the call of DBMS_STATS.GATHER_SCHEMA_STATS ... you can specify not to invalidate your parsed statements...
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm#sthref8114
    Parameter:
    no_invalidate      Does not invalidate the dependent cursors if set to TRUE. The procedure invalidates the dependent cursors immediately if set to FALSE. Use DBMS_STATS.AUTO_INVALIDATE. to have Oracle decide when to invalidate dependent cursors. This is the default. The default can be changed using the SET_PARAM Procedure.Regards
    Stefan

  • SQL Area Usage, Performance Problem

    Hi,
    I'm a software engineer, not a DBA, with a lot of doubts about our production environment, but I think that I have found a problem at our production Database.
    At our development database when I execute the same SQL statement over than onces, I can see this behaviour (for example):
    * First execution 580 milisenconds.
    * Second execution 21 milisencons.
    As where I know, I understand that the compiled SQL statement is stored at the SQL Area, and by that reason the second execution is faster then the first one. Is that assumption correct?
    If it is correct, I have a problem on our production Database because it does not work as expected. I have done a lot of trials, and SQL statement executions do not reduce her time execution when I do consecutive SQL execution.
    Could you help me? I think that the parameter shared_pool_size value is too lower for our production server.
    Thanks in advance.
    Best Regards,
    Joan

    Just a comment about performance tuning and troubleshooting in general Joan.
    It is very dangerous to base your conclusions on observation only. Consider the following example:
    SQL> set timing on
    SQL> select count(*) from all_objects;
    COUNT(*)
    10296
    Elapsed: 00:00:18.38
    SQL>
    SQL> -- now using the magically warp speed hint
    SQL> select /*+ WARP_SPEED */ count(*) from all_objects;
    COUNT(*)
    10296
    Elapsed: 00:00:00.32
    SQL>
    From 18 seconds to less than half a second. It does look, based on pure observation of the results, that there is a WARP_SPEED hint in Oracle and it does increase performance dramatically. And we can also infer that this is an undocumented feature added by one of the Oracle kernel developers that is also a Star Trek fan. ;-)
    But if we turn on SQL tracing (as suggested), we will see that the first SELECT did a lot of physical I/O. The 2nd SELECT did the same work, but without having to do the very expensive physical I/O - as the data blocks it need to hit (again) was now in memory (inside Oracle's buffer cache).
    It had nothing to do with an invalid and non-existing CBO hint called WARP_SPEED.
    The critical bit is KNOWING exactly what you are measuring when using this type of approach. If you do not know that, you are in no position to determine a sound and valid conclusion.
    Side note on shared pool size - one of the worse mistakes can be to increase it. It can cause incredible damage to performance on an instance that deals with bindless/non-sharable SQL as the pool that Oracle needs to use to determine if a soft parse is possible gets to be huge.. without the benefit of being able to soft parse and forced to hard parse anyway. And that hard parse also now added to the size of the pool.

  • Function called by what PL SQL procedure

    Hello.
    I want to see all the callers of a PL SQL function. I know it is called by some PL SQL procedures in a package. How do I see who calls the function?
    Thanks.

    i think you can try this : select * from
    user_dependencies where type = 'FUNCTION' actually, that what should what things are referenced by your function
    and you'd be better off with ALL_DEPENDENCIES, since references can cross schemas.
    select name, type from all_dependencies
    where referenced_owner= 'ME'
    and referenced_name= 'MY_FUNCTION'
    and referenced_type ='FUNCTION'
    this will show what other things are using your function. if it's used by a package, it will not show the exact procedure or function within that package.

  • ODCI : oracle data catridge interface service : what shared libs are needed

    Hi,
    I am writing aggregate functions. For using ODCI along with OCI in C/C++.. what are the shared libraries which are required : i have oci.h & odci.h files but do not know what shared libraries are needed to use the ODCI interface.
    I am getting the error :
    ORA-06521: PL/SQL: Error mapping function
    ORA-06522: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/custagg.so:
    undefined symbol: ODCIAggregateInitialize
    ORA-28579: network error during callback from external procedure agent
    ./libagtsh.so: undefined reference to `homtscb_ShutdownCallback'
    I don't see any one responding to my queries.
    Can any one give me some other paid forums where I can pay some fee and get clarifications for my errors and doubts.
    I am a student trying to study the extendibility of databases with user defined aggregates without the need to change the underlying database engine. This is a part of research which i am doing.

    But some how i am having problem with ODCI : it is
    not identifying the ODCIAggregateInitialize function
    It is throwing error : ORA-06521: PL/SQL: Error
    mapping function
    ORA-06522:
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/li
    b/custagg.so:
    undefined symbol: ODCIAggregateInitializeThat's a pretty useful error message IMHO
    And generally in Unix environment we don't include
    'extern "C" ' before each member function in the C
    program but we do that in Windows environment . So
    may be I thought of just try including that in my
    program(unix environment) and it was giving me even
    a worse error :
    RA-28579: network error during callback from external
    procedure agent.So I just removed that extern "C"
    keyword.Actually, the extern "C" is required because even though you are writing C-like code, it's C++ since there are declarations in the middle of the code, which C doesn't support (maybe C99 does, I don't know). This tells me you compile using a C++ compiler, which mangles the method name (to support method overloading, which C doesn't support). Adding the extern "C" makes the C++ not mangle the method, and thus the ODCI system can find the entry point in your shared lib.
    ORA-28579 is not a worse error, it is the error you should fix. But I can't help you there, I've never done it. OTOH, if you can make this work, I'd be very interested if you could post a complete example demonstrating what you are doing. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • What does SQL write to that allow changes to be undone or rolled back in case of a system failure?

    What does SQL write to that allow changes to be undone or rolled back in case of a system failure?

    What does SQL write to that allow changes to be undone or rolled back in case of a system failure?
    Hello,
    If i read your question correctly you are asking about how uncommited transaction are rolled back.For this, concept of transaction log came into picture.where first changes were first made to transaction log and then into memory .Before any change is made
    to real data file change is made to trn log files so that if rollback comes it can see in log and rollback it.
    I would suggest you to read Famous article by log which will explain you
    http://technet.microsoft.com/en-us/magazine/2009.02.logging.aspx
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • What is SQL Query

    Dear all,
    what is meant by SQL Query?
    I have a report which is directly in production and not in development.its a user created program.
    some one said that it is SQL query.
    What is meant by it ?
    Is there any name for that SQL query?
    If yes,how can I find it?

    Hi,
      SQL Query means select statement u r getting the data from the database table.
    Standard SQL
    SQL (Structured Query Language) is a largely standardized language for accessing relational databases.  It can be divided into three areas:
    ·         Data Manipulation Language (DML)
    Statements for reading and changing data in database tables.
    ·         Data Definition Language (DDL)
    Statements for creating and administering database tables.
    ·         Data Control Language (DCL)
    Statements for authorization and consistency checks.
    Each database has a programming interface that allows you to access the database tables using SQL statements.  The SQL statements in these programming interfaces are not fully standardized. To access a specific database system, you must refer to the documentation of that system for a list of the SQL statements available and their correct syntax.
    The Database Interface
    To make the R/3 System independent of the database system with which you use it despite the differences in the SQL syntax between various databases, each work process on an application server has a database interface. The R/3 System communicates with the database by means of this interface.  The database interface converts all of the database requests from the R/3 System into the correct Standard SQL statements for the database system. To do this, it uses a database-specific component that shields the differences between database systems from the rest of the database interface.  You choose the appropriate layer when you install the R/3 System.
    There are two ways of accessing the database from a program - with Open SQL or Native SQL.
    Open SQL
    Open SQL statements are a subset of Standard SQL that is fully integrated in ABAP. They allow you to access data irrespective of the database system that the R/3 installation is using. Open SQL consists of the Data Manipulation Language (DML) part of Standard SQL; in other words, it allows you to read (SELECT) and change (INSERT, UPDATE, DELETE) data.
    Open SQL also goes beyond Standard SQL to provide statements that, in conjunction with other ABAP constructions, can simplify or speed up database access. It also allows you to buffer certain tables on the application server, saving excessive database access. In this case, the database interface is responsible for comparing the buffer with the database. Buffers are partly stored in the working memory of the current work process, and partly in the shared memory for all work processes on an application server. Where an R/3 System is distributed across more than one application server, the data in the various buffers is synchronized at set intervals by the buffer management. When buffering the database, you must remember that data in the buffer is not always up to date. For this reason, you should only use the buffer for data which does not often change. You specify whether a table can be buffered in its definition in the ABAP Dictionary. 
    Native SQL
    Native SQL is only loosely integrated into ABAP, and allows access to all of the functions contained in the programming interface of the respective database system. Unlike Open SQL statements, Native SQL statements are not checked and converted, but instead are sent directly to the database system. When you use Native SQL, the function of the database-dependent layer is minimal. Programs that use Native SQL are specific to the database system for which they were written. When writing R/3 applications, you should avoid using Native SQL wherever possible. It is used, however, in some parts of the R/3 Basis System - for example, for creating or changing table definitions in the ABAP Dictionary.
    The ABAP Dictionary
    The ABAP Dictionary, part of the ABAP Workbench, allows you to create and administer database tables.  Open SQL contains no statements from the DDL part of Standard SQL. Normal application programs should not create or change their own database tables. 
    The ABAP Dictionary uses the DDL part of Open SQL to create and change database tables. It also administers the ABAP Dictionary in the database.  The ABAP Dictionary contains metadescriptions of all database tables in the R/3 System. Only database tables that you create using the ABAP Dictionary appear in the Dictionary. Open SQL statements can only access tables that exist in the ABAP Dictionary.
    Authorization and Consistency Checks
    The DCL part of Standard SQL is not used in R/3 programs. The work processes within the R/3 System are logged onto the database system as users with full rights.  The authorizations of programs or users to read or change database tables is administered within the R/3 System using the R/3 authorization concept.  Equally, transactions must ensure their own data consistency using the R/3 locking concept.  For more information, refer to Authorization Concept and Programming Database Updates.
    Plzz reward points if it helps.
    Edited by: manjari kotta on Dec 18, 2007 7:29 AM

  • What TCP ports are used in Dataguard

    Hi Team,
    what TCP ports are used in Dataguard, Dblink or SQL statement
    Thanks
    Aj

    hello,
    i am a Jr. DBA, but from what i can think its the same port as the listner would. 1521 or it would be the same at ur entry in TNS entry in tnsnames.ora

  • What the steps are useful for us while designing the database by Performanc

    Dear Experts
    Plz tell me.
    What the steps are useful for us while designing the database by Performance point of view.
    Like Proper indexing and table assing to specific tbalespace etc

    Oracle manuals would do the best for you. There is no step by step rules for tuning the database , had this be true , then Oracle must've write a programme , application or sql script to achive it . I would advise you to go through oracle performance and tuning guide .
    Hare Krishna
    Alok

  • Why Private SQL Area in Library cahce & Private SQL Area in PGA?

    Greeting   Everyone !
    From  oracle official  documents ,
    Location of a private SQL area depends on the type of connection established for a session.
    If a session is connected through a shared server, part of the private SQL area is kept in the SGA.
    If a session is connected through a dedicated server, part of the private SQL area is kept in the PGA.
    I am getting bit confused cannot understand clearly.
    Why Private SQL Area in Library cahce & Private SQL Area in PGA?
    Anyone can explain clearly ?
    Thanks  in advance ..

    Thanks sybrand_b
    I got clear answer  for my previous question.
    Still i am NOT clear in this area.
    What  oracle docs says ,
    A private SQL area basically contains data such as bind information and runtime memory structures. 
    (both  shared server  and  dedicated server).
      I think  location  only is changing depends upon  established connection)
      then why we need shared sql  area separately ?
       Thanks in advance ..
    FYI :  As much as possible i googled , i  do NOT understand clearly. Please help me .
    ref_docs : 10g r2.

  • My rescue email is a deleted email and i have no idea what the answers are to my security questions- what do I do? How do I change the rescue email?

    My rescue email is a deleted email and i have no idea what the answers are to my security questions… what do I do? How do I change the rescue email?

    You will need to contact Apple support. You can use the link in the quote below from If you forgot the answers to your Apple ID security questions - Apple Support
    If you couldn't send a reset email, don't have a rescue email address, or can't access email at your rescue email address, contact Apple Support.

  • I am trying to sync my 5th gen. Keep getting a message about items on my iPod not in my library. How do I find out what these items are?

    I'm trying to sync my 5th gen iPod and I keep getting a message that there are items on my iPod that are not in my iTunes and they'll be deleted if I don't transfer them. How do I find out what these items are so I know if I want them or not? Also, I seem to have a fair amount of duplicates, one marked with the cloudn symbol and one not. Which one do I delete??

    Go to your "Purchased"  list. See:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    and look for items not on this computer.

  • I have very little space left on the hard drive on my macbook, on my storage report it says "other" is taking up more than two thirds of the space on the hardrive. How can I identify what these files are?

    I have very little space left on the hard drive on my macbook, on my storage report it says "other" is taking up more than two thirds of the space on the hardrive. How can I identify what these files are?

    Hello,
    There is free software you can download that gives you a graphical image of what files are used on your hard drive. http://www.derlien.com/
    This may help you clean down your hard drive for more space.
    Best of luck

  • HT5622 how can I find what the charges aree to my credit card from the apple store? I get multiple charges every month and don't know what they are for...I want to cancel whatever is being charged to me...how do I do it?

    how can I find what the charges aree to my credit card from the apple store? I get multiple charges every month and don't know what they are for...I want to cancel whatever is being charged to me...how do I do it?

    Have a look at this link
    http://support.apple.com/kb/ht2727

  • What technical components are needed for integration of SAP BI and BO?

    Hello,
    What technical components are needed for integration of SAP BI and BO?

    Hi,
    you need to setup a BOBJ server (eg. BusinessObjects Enterprise XI 3.1 or BO Edge 3.1) and then install the BusinessObjects integration Kit for SAP on the same machine your BOBJ server runs.
    In order to build reports you can either use Crystal Reports (eg Install Crystal Report Designer 2008 V1 if you have an XI 3.1 server installed), WebIntelligence (Install the Business Objects XI 3.1 Client Tools in order to be able to build universes), BusinessObjects Voyager or XCelsius. Please note that you have to always install the BOBJ integration Kit for SAP (should be the same version as your server and client installation) on your clients AFTER you installed one or more of the above client tools.
    Please take again a look at the following link for more detailed information (from Ingo) on this:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a00ee3b2-5283-2b10-f1bf-8c6413e0898f]
    Regards,
    Stratos

Maybe you are looking for

  • How to retrieve site passwords from DW v 8

    I had Dreamweaver 8 installed on an Windows XP Pro SP2 system that no longer boots. That configuration had the FTP addresses and passwords of my web sites, some of which I can no longer find or figure out (iComcast has switched to an entirely new sys

  • Talbe not displaying properly in IE7

    Here is my site; http://tfproperty.co.uk/gardens/ According to Net Render; http://ipinfo.info/netrenderer/index.php My site is not dispalying properly in IE7. Anyone know why this is? Just to preempt the invitalbe back lash, I know ive used a table f

  • How to increare roll area size programmatically? Is there any code?

    Hello everyone:           I am running a program that goes to dump with an error "roll area size too small" in ECC6.0. The same program works fine in 4.6C. We worked with BASIS to set roll area related paramteres, logged OSS notes and set parameters

  • How to activate classic scenario?

    Dear experts, What are the generic settings required to activate classic scenario?Are there other settings required other than below? 1. If extended classic scenario is not activated in global mode: a. Replicate product categories from ERP backend to

  • How can I save a PDF without specifying the directory?

    When I try to save changes I made to a PDF (highlighting and/or commenting), I'm prompted to specify which directory I'd like to save to, and I have to verify that "yes, I want to overwrite the existing file that has the same name". I just want to sa