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: Insert Rate/Second

RE: Insert Rate/Second

From: Bruce McCartney <bruce.mccartney_at_dbinfosystems.com>
Date: Tue, 23 Aug 2005 19:28:49 -0600
Message-ID: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAkEdZ3vpKf0Cnkb171va42cKAAAAQAAAACzvKL+aF9kWC3qfjMosOCAEAAAAA@dbinfosystems.com>


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';

sqlplus /nolog <<EOF >${owner}monon.out 2>&1 connect system/$DBAPASS
set timing on echo on feedback off
set serveroutput on size 1000000 format wrapped exec dbms_lock.sleep(30)
@doit.sql
/

exit
EOF rm doit.sql

Bruce McCartney  

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Aug 23 2005 - 20:30:59 CDT

Original text of this message

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