Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Insert Rate/Second
Hi Mohammed,
If you want an accurate reading by table you can use dba_tab_modifications; something like this, I used SYSTEM so had to grant access:
grant all on SYS.DBA_TAB_MODIFICATIONS to system with grant option;
#!/bin/ksh
DBAPASS=<your password>
unset SQLPATH
sqlplus -S /nolog <<EOF
connect system/$DBAPASS
set pagesize 0 echo off feedback off termout off
spool doit.sql
select 'alter table '||owner||'.'||table_name||' monitoring;' from
dba_tables
where owner not in ('SYS','SYSTEM') -- others you want to exclude too
/
-- have to make sure use have detailed nls_date_format
alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';
Bruce McCartney
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Aug 23 2005 - 20:30:59 CDT
![]() |
![]() |