Questions relate to table "cache"??

We plan to "cache" some tables to SGA or DB_keep_cache_size. some questions need to clarify:
1. what different between:
alter table user.table_name cache;
alter TABLE USER.TABLE_NAME storage (buffer_pool keep);
2. if I using either way to cache table, how to check table already "cache"?
Thanks.

ef8454 wrote:
We plan to "cache" some tables to SGA or DB_keep_cache_size. some questions need to clarify:
1. what different between:
alter table user.table_name cache;
alter TABLE USER.TABLE_NAME storage (buffer_pool keep);
2. if I using either way to cache table, how to check table already "cache"?
Thanks.In Oracle, starting with I suppose Release 8, they have three types of data buffer pool, or say they have divided data buffer pool, in three part,
1) Default pool -- This is the normal data pool.
2) Keep Pool -- This is a data pool where you want your table/object to remain in memory for longer time.
3) Recycle Pool -- This is a data pool where you want your table/object to remain till the time it is needed i.e. very short duration.
So when you use second command with storage option, you are saying to keep that data in Keep Pool.
Now, in all the three pools data gets aged out based on an algorithim known as LRU (Least recently used) i.e. to keep the data in front of the queue if it is accessed.
When you say cache using your first query, you are saying oracle to keep it in the front of the queue when full table scan is done. It can be in any buffer (Default/Keep/Recycle)
Regards
Anurag

Similar Messages

  • Question Related to table or view privilages ?????

    Hi,
    I have written a stored procedure under my schema, it queries data from production table or view. when i run this Stored procedure(SP) it gives me error saying "table or view does not exist".
    But when i try to query(i,e select * from XYZ(prod.table)) from this prod table or view outside the SP it runs fine and queries the data.
    My intial question was i didnt had privilage to access the table, but when i query outside the SP it runs fine. So there is permission for my ID to access the table. But why m i getting this error, Any idea please ???
    Your help is greatly appriciated!!!! Thank you so much!!!

    Using the default "definer rights" model, the owner of the stored SQL (view, procedure, trigger, method, etc) must have the required privileges granted directly to them and not obtain them via a role.
    The reason is that a role can be disabled in one session while enabled in a different session (for the same user). The database only relies on a privs that are consistent across all sessions. Those privs granted directly WILL be consistent across all sessions.
    Using the "invoker rights" model (AUTHID CURRENT_USER), this direct grant restriction does not apply.
    So, either declare AUTHID CURRENT_USER in your stored SQL header, or grant the privs directly to the owner of the SQL.

  • Question related to table partitioning

    Dear Friends,
    I have two tables:
    Table 1.
    SQL> desc ProcessedData_Details
    Name Null? Type
    VERSIONNO NOT NULL FLOAT(126)
    VARCHAR_VALUE VARCHAR2(255)
    NUMERIC_VALUE FLOAT(126)
    DATE_VALUE DATE
    BOOLEAN_VALUE VARCHAR2(10)
    REPORTINGDATE_ID NOT NULL NUMBER
    SYSTEMDEAL_ID NUMBER
    OUTPUT_TEMPLATE_ID NUMBER
    SECTION_ID NUMBER
    DATAPOINT_ID NUMBER
    PROCESSDATA_ID NOT NULL NUMBER
    ROW_ID NUMBER
    USER_ID NUMBER
    ROLE_ID NUMBER
    IS_STORE NOT NULL NUMBER
    Table 2.
    SQL> desc Reporting_Date
    Name Null? Type
    REPORTINGDATE_ID NOT NULL NUMBER(10)
    REPORTINGDATE DATE
    CURRENTPERIOD NUMBER(38)
    Both tables are joined using 'REPORTINGDATE_ID'. Now I've to partition Table 1 based on the column 'REPORTINGDATE' of Table 2. How can it be done?
    Edited by: Santosh Kumar on Dec 12, 2008 2:35 PM

    updates to the status column is frequent, considering data inflow.
    status has dfferent values like new,active,inactive etc.
    for the entity record, workflow, has different states.
    table can be partitioned on status field,
    for a new state of a workflow record, there will be a new row and the old record is updated with a different status, hence row movement across paritions
    for eg:
    workflow_id=100 (internal id
    workflow_parent=WF_XXXX01
    status=new
    next time, if there is a status change for the workflow, WF_XXXX01
    workflow_id=101
    workflow_parent=WF_XXXX01
    status=active
    etc
    if PK to be a local index, then it will be workflow_id+status
    possible query patterns,
    select * from workflow where workflow_id=id_val and status='new'
    select * from workflow where <some_other_criteria>
    select * from workflow where status='new'
    select * from workflow where status='active'
    the only advantage i see here is to keep separate partitions for each status to group records, for eg. instead of keeping a separate entity to keep the inactive records.
    if the predicate includes the status field, it needs to touch only the corresponding partition, if local index is there, then there can be performance benefits.
    but global index will be ok, if there are limited number of partitions and query retrieves only small number of rows and response time is critical
    may be after some time, as part of puring, the inactive paritions can be dropped, if there are only local indexes, then there is no parition maintenance overhead
    but considering overall overhead, in terms of row contention related issues,
    for an OLTP, would you suggest partitioning?
    thanks,
    charles
    Edited by: user570138 on 2-nov-2010 8:10
    Edited by: user570138 on 2-nov-2010 8:18
    Edited by: user570138 on 2-nov-2010 8:18

  • Question related to tables

    hi friends...................
    Is it possible to find out changes made in "screen or in a table  or in a rept type object "  ..................
    if it is possible so plz tell me how is it possible????? ................................
    what to get changes in it ?????............................
    thanks .....

    HI ,
    Is it standard table, and standard screen, tcodes..
    check the table CDHDR and CDPOS table which captures the changes.
    search SDN for more on CDHDR and CDPOS.
    eg: change the values on the screen, table now and execute the tables CDHDR and CDPOS in se16 for todays date
    the values will be captured and you can fetch them.
    regards,
    Nazeer

  • Question related to combining rows...

    Hi,
    I have a question related to combining rows...
    From our typical tables.... Dept and Emp.
    I want a result set like....
    Dept# | Employees
    10 | <Emp1>, <Emp5>, <Emp6>
    20 | <Emp7>, <Emp2>, <Emp8>, <Emp9>
    30 | <Emp10>, <Emp11>
    40 | <Emp12>
    Plesae give me the query...
    Thanks
    Abdul.

    How about this solution looks like?
    create or replace
    function fnc_concat_data(p_query VARCHAR2,P_ID NUMBER) RETURN VARCHAR2
    AS
    type res_tab is table of varchar2(20);
    result_tab res_tab;
    v_retval varchar2(256);
    begin
    execute immediate p_query || p_id BULK COLLECT into result_tab;
    FOR i IN 1..result_tab.COUNT LOOP
    v_retval := v_retval||','||result_tab(i);
    END LOOP;
    v_retval := substr(v_retval,2);
    return (v_retval);
    exception
    when others then
    return('Error');
    end fnc_concat_data;
    sql> select deptno, fnc_concat_data('select ename from emp where deptno=', deptno) employees from emp group by deptno
    deptno employees
    30     ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
    20     SMITH,JONES,SCOTT,ADAMS,FORD
    10     CLARK,KING,MILLER

  • ST22 timeout for all LC related transactions  LIVE cache start stop working from LC10

    Hi Team
    we are a getting a  ST22 timeout for all LC related transactions  LIVE cache start stop working from LC10
    LC version 7.9
    OS AIX
    SAP SCM 7
    SDBVERIFY giving the following error
    Checking package Redist Python
    Checking package Loader
    Checking package ODBC
    Checking package Messages
    Checking package JDBC
    Checking package DB Analyzer
    ERR: Failed
    ERR: Checking installation "Legacy" failed
    ERR: Group of directory /sapdb/data/config/install changed [0 =>
    sdbregview -l is showing good.
    any idea what might went wrong.
    trying to use sdbverify -repair_permissions , but not sure about the exact syntax to use.
    and it is not related to timeout parameter, we tested with different timeout values, but still the same error.
    thanks
    Kishore Ch

    Hello Kishore,
    you could check the sizing of the liveCache data.
    * Report  /SAPAPO/TS_LCM_REORG_SNP has checks  of the SNP planning areas for superfluous objects.
    * Delete old/temporary APO data.
    * /SAPAPO/TS_LCM_REORG report checked TS superfluous objects.
    If you didn't create the planning versions, copy of planning versions & data load to liveCache, then create the SAP message to check your system on the question of the dataarea usage.
    If you have the long running APO transactions => performance of the SCM system has to be checked.
    If you have the bottleneck in liveCache & could not solve the case by yourself => create the SAP message to BC-DB-LVC and get SAP support.
    Best regards, Natalia Khlopina

  • Can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable

    can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable to go through the process. thanks.

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

  • Question related to Java Concurrent Program

    Hi Friends,
    I have a basic question related to Java Concurrent Program in the Oracle application. I would like to know the how Java concurrent program is executed in Oracle applications.Also, want to know where can I find the document for the AOL packages for Java concurrent program. Document for packages like oracle.apps.fnd.cp.request.* , oracle.apps.fnd.util.*.
    Please let me know.
    -Thanks,
    Satya

    You may also check:
    Note: 250964.1 - How to Register Sample Java Concurrent Program
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=250964.1
    Note: 186301.1 - How to register and execute Java Concurrent Program ?in Oracle Applications R11i?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=186301.1

  • Interview Questions related to Warehouse management

    Hi all
    Can u please help me regarding  Interview Questions related to Warehouse management
    Thanks and Regds
    Daniel

    Have you searched in very first thread
    [Warehouse Management?|New to Materials Management / Warehouse Management?;

  • All line items related internal table or structure in f-44 Transaction

    Hi All,
      In F-44 Transaction once i will give Vendor number then i press enter then all related documents will come. I need that related internal table before display of documents. I have to change some values in those documents. I found one internal table i.e. POSTAB. And I made changes. But is not effected and  not helpful for my requirement.Please tell me exact internal table before those values come .
    If there is any Enhancement Spot or User Exit of that related Line items Values.
    Regards
    Nageswar

    Dear Kavana,
    In almost all situations the reason to your this issue can be found in
    notes 136754 or 152813.
    Mostly, the documents are included in a payment proposal and will
    therefore not show up in F-44.
    You can check which items are blocked by payment proposal in two
    ways:
    In table REGUP (Processed items from payment program), you can check
    which items are blocked by payment proposals (display via SE16 or SE17,
    selection on vendor (LIFNR), company code (ZBUKR) and document number
    (BELNR).
    I hope this can help You.
    mauri

  • Tool for viewing the relation between tables.

    Hi,
    I imported the schema dump in Oracle 10g R2 DB, there are about 800 plus tables in that schema. I would like to know the relataion between tables.So,What tools are available for viewing the relation between tables?. I have TOAD, and Oracles SQL Developer tolls, if there are any free tools for the same, please let me know the URLs.
    Regards,
    Sabdar Syed.

    Hmmm, for free, except what gave Eric earlier, not easy...
    Here already discuss about that :
    Re: Table Dependencies
    Nicolas.

  • Displaying Relations Between Tables In Oracle 10.2.0.3

    Hi Everyone;
    I am in urgent need to display all the relations between tables of a Dbase in Oracle 10.2.0.3 version dbase. I use a server 2003 R2 machine and a developer tool TOAD for oracle v9.7 as ODT. If anyone have a clue please i need it.Sincerely
    Best Regards
    Ömer KAYA

    Hi Ömer
    You can with those tools read the configuration and get the actual ERD model from the database, so you will be able to see the relation in the tables.
    Please try that tool
    http://www.download32.com/modelright-3-for-oracle-i38008.html
    Product stands "Do you need to design, visualize or document your Oracle database?"
    In TOAD tool you are also able to do it: Reverse engineer already existing database structures and see the existing database structure in form of a diagram.
    Regards,
    Hubert
    P.S. looking forward to get your "precious" points ;-)
    Edited by: Hub on Oct 27, 2008 2:28 PM
    Edited by: Hub on Oct 27, 2008 2:35 PM
    Edited by: Hub on Oct 27, 2008 2:54 PM

  • Questions relating to Groupware Integration (Outlook)

    Hello,
    I have few questions relating to groupware integration for Outlook:
    Q1) The "Relate to CRM" option in outlook add-in for end user is available only  in client side integration? Is it not available for server sider integration (i.e. in server side, end user cannot directly assign CRM account or Transaction to object in outlook the way it is done in client side)?
    Q2) Is there any end user interface (like add-on) available in server side?
    Q3)In client side - Can the outlook add-on for SAPCRM be enhanced for different business logic or look n feel?
    Thanks,
    Vicky

    Hello Vicky,
    1) Yes the Relate to SAP CRM function is part of Client-side groupware only.
    2) The Add-in is only available with Client-side groupware.
    3) The Add-in cannot be customized. However the results can be influenced by parameters in transaction GWIPROFILE.
    The information displayed in the Business information Pane can be changed.
    Best Regards,
    Gervase Auden

  • Basic Questions related EHPs for SEM

    Hi Guys,
    I've some basic questions related to EHPs: -
    1. If we don't mean to implement any of the new functionalities does it make any sense to implement EHP? In other words do EHPs also have some general improments other than the functionalities which can be specifically activated?
    2. If we just activate a functionality and don't implement/ use it can there be any negative impact?
    3. In case of a pure technical upgrade from SEM 4.0 to SEM 6.0 which EHP would be recommended?
    4. Is there a quick way to find all relevant notes in EHPn which are related to corrections for EHPn-1?
    Thanks in advance,
    -SSC

    HI,
    If you see some of my older posts I have had many issues with certain features of the EHP2 functionality but that doesn't mean I would recommned against it.
    BCS 6 EHPs 3 & 4  (BCS 6.03 / 6.04) - enhancement packs worth implementing?
    BCS 6 EHP 2 (BCS 6.02) - activation of enhancement pack
    My recommendation is to implement the EHPs but not necesarrily activate the functions (in SFW5) unless you need them - this means that you will only have to test once after EHP implementation and will have the ability to activate the other features as and when required (although testing is required after activation of course) whereas it might be difficult to persuade your client/basis team to implement EHP4 later if you don't do it now.
    In the features of EHP2 (activate FIN_ACC_GROUP_CLOSE) it states that there is a general performance improvement - although I have yet to experience it! From OSS note 1171344 "The functionality which is available in EHP2 consists of...
    ... Performance improvements of status management, reporting and initial start-up of consolidation workbench and monitor.
    Since activating FIN_ACC_GROUP_CLOSE I have had many OSS notes requiring application but i discovered that when the technical team implemented the EHPs (before i joined this client) they somehow forgot the latest SP (support packs) and didn't upgrade to the current level - so make sure that you get the right SPs too (see the links in Greg's link above) to avoid the many OSS notes.
    As for your question - "is there a list of OSS notes to specific to EHP upgrades? - the answer is most definietly "NO" - I already asked OSS in desperation!
    however, you can see the OSS notes that i have applied listed in the above link ( BCS 6 EHP 2 (BCS 6.02) - activation of enhancement pack )

  • RELATIONAL DATABASE TABLES IN SAP BW

    hi
    friends please give me the information regarding the RELATIONAL DATABASE TABLES IN SAP BW?

    Hi,
    See the tables.
    InfoObjects Table:
    RSDIOBJ Directory of all InfoObjects
    RSDIOBJT Texts of InfoObjects
    InfoCube Tables:
    RSDCUBE Directory of InfoCubes
    RSDCUBET Texts on InfoCubes
    DSO Tables:
    RSDODSO Directory of all ODS Objects
    RSDODSOT Texts of all ODS Objects
    PSA Table:
    RSTSODS Directory of all PSA Tables
    For reports:
    RSRREPDIR
    Thanks & Regards,
    Sathish

Maybe you are looking for