Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: which Objects in buffer cache

Re: which Objects in buffer cache

From: <J.Velikanovs_at_alise.lv>
Date: Thu, 8 Jul 2004 10:09:20 +0300
Message-ID: <OF5DA1EA8B.81C5A52E-ONC2256ECB.00269A8F-C2256ECB.0027FF83@alise.lv>


Hi Harvinder,
How you are inserting rows (can you provide the code)? Which SQL you are using for querying V$BH?

I have created stupid testcase and able to see both table's blocks in memory (see below).

Jurijs
9268222



http://otn.oracle.com/ocm/jvelikanovs.html

SYS:jozh> @ver
BANNER



Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production PL/SQL Release 9.2.0.4.0 - Production
CORE 9.2.0.3.0 Production
TNS for 32-bit Windows: Version 9.2.0.4.0 - Production NLSRTL Version 9.2.0.4.0 - Production
SYS:jozh> create table test_source (n number) tablespace users;
SYS:jozh> create table test_destination (n number) tablespace users;
SYS:jozh> begin for f in 1..10000 loop
SYS:jozh> insert into test_source values (f);
SYS:jozh> end loop; commit; end;
SYS:jozh> /

SYS:jozh> insert into test_destination select * from test_source; 10000 rows created.
SYS:jozh> commit;
Commit complete.

SYS:jozh> select OBJD, count(*) from v$bh 
SYS:jozh> where OBJD in (
SYS:jozh>    select DATA_OBJECT_ID from dba_objects 
SYS:jozh>    where object_name in ('TEST_SOURCE','TEST_DESTINATION')
SYS:jozh>    )
SYS:jozh> group  by
SYS:jozh>     OBJD;

      OBJD   COUNT(*)

---------- ----------
9957 24 9958 24

"Harvinder Singh" <Harvinder.Singh_at_MetraTech.com> Sent by: oracle-l-bounce_at_freelists.org
07.07.2004 20:32
Please respond to oracle-l  

        To:     <oracle-l_at_freelists.org>
        cc: 
        Subject:        which Objects in buffer cache


Hi,

We are using v$bh, dba_objects and dba_segments views to see what objects are in buffer cache. We are reading from 1 table and inserting into 2nd table. I can see the 1st table but not the 2nd table in this query result.
I expect oracle to load data from disk to buffer and then write to buffers and should show the tables and indexes of 2nd table in buffer. What can be the possible reason that v$bh is not showing objects/segments of 2nd table?

Thanks
--Harvinder



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html


Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Thu Jul 08 2004 - 02:13:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US