Monitoring of use of tables ...

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
erthal
Rank: Analista Sênior
Rank: Analista Sênior
Posts: 130
Joined: Mon, 22 Nov 2004 1:45 pm
Location: Niterói - RJ

Friends,

I have a production DW, and in it some tables are not being more accessed. How do I know what these tables are?

With Index I can ask Oracle that monitors and through the View v $ object_usage see which indexes that were not used. But how to do this with tables?

Hugs,
Gustavo.
pauloaleo
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 181
Joined: Wed, 09 Feb 2005 12:30 pm
Location: SÃO BERNARDO DO CAMPO - SP

As this question is 2004, do you use Oracle? 7?
erthal
Rank: Analista Sênior
Rank: Analista Sênior
Posts: 130
Joined: Mon, 22 Nov 2004 1:45 pm
Location: Niterói - RJ
Gustavo Erthal Jr. | TRISCAL
...................................................
Rio de Janeiro | (21) 2507-2010
São Paulo | (11) 3167-0526
www.triscal.com.br

Paul,

You are mistaken, the question is from 08/11/2006.

My registration is that it was done in 2004.

Hugs,
erthal
Rank: Analista Sênior
Rank: Analista Sênior
Posts: 130
Joined: Mon, 22 Nov 2004 1:45 pm
Location: Niterói - RJ
Gustavo Erthal Jr. | TRISCAL
...................................................
Rio de Janeiro | (21) 2507-2010
São Paulo | (11) 3167-0526
www.triscal.com.br

Paulo,

Complementing, the bank is 10gr2.

Hugs,
pauloaleo
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 181
Joined: Wed, 09 Feb 2005 12:30 pm
Location: SÃO BERNARDO DO CAMPO - SP

Have you put the tables in monitoring then?
erthal
Rank: Analista Sênior
Rank: Analista Sênior
Posts: 130
Joined: Mon, 22 Nov 2004 1:45 pm
Location: Niterói - RJ
Gustavo Erthal Jr. | TRISCAL
...................................................
Rio de Janeiro | (21) 2507-2010
São Paulo | (11) 3167-0526
www.triscal.com.br

Paul,

This type of detail is only used in the collection of statistics.

What I need is a way to find out if a table is suffering charge or some kind of access by the user.

Hugs,
victorhugomuniz
Moderador
Moderador
Posts: 1396
Joined: Fri, 01 Feb 2008 2:06 pm
Location: Rio de Janeiro - RJ
Contact:
:D

Would not that help you?

Select all

 
select *  
from v$sql sql, 
     v$session se 
where sql.sql_id = se.sql_id 
If you find out what the name of your DW process can filter for it and then in sql_text know the name of the table
pauloaleo
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 181
Joined: Wed, 09 Feb 2005 12:30 pm
Location: SÃO BERNARDO DO CAMPO - SP

So why monitoring.

Indixes and monitoring tables update their use in the dictionary and can be viewed by V $ object_usage.

follows an example:



After a period, role query:

1]]

See if IF The Products_PK Index is Being Used.

Select all

select distinct PROD_ID from SH.PRODUCTS; 
 
Table..........................Index..........................Monitoring Used 
------------------------------ ------------------------------ ---------- ---- 
PRODUCTS...................... PRODUCTS_PK....................YES........YES 
.............................. PRODUCTS_PROD_CAT_IX.......... YES........NO 
.............................. PRODUCTS_PROD_STATUS_BIX...... YES........NO 
.............................. PRODUCTS_PROD_SUBCAT_IX........YES.
has a column called Used, which in case of non-use, is like no.

Hugs
erthal
Rank: Analista Sênior
Rank: Analista Sênior
Posts: 130
Joined: Mon, 22 Nov 2004 1:45 pm
Location: Niterói - RJ
Gustavo Erthal Jr. | TRISCAL
...................................................
Rio de Janeiro | (21) 2507-2010
São Paulo | (11) 3167-0526
www.triscal.com.br

My noble, and if for example a table does not have any kind of index?

This solution will not work.

In addition, the index needs to be updated so that a record "exists" in the V $ object_usage.

The problem persists.

Hugs,
pauloaleo
Rank: DBA Júnior
Rank: DBA Júnior
Posts: 181
Joined: Wed, 09 Feb 2005 12:30 pm
Location: SÃO BERNARDO DO CAMPO - SP

Updated not, used.

As for no index tables I would use the DBA_HIST_SEG_STAT view to check the physical Reads variation. Or Physical Writes. If they had variation in a period, it is because the table is used.

Hugs
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest