Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: dba script
Use the following in a text file and execute in each user schema.
SET HEADING OFF
SET PAGESIZE 0
SET TERMOUT OFF
SET FEEDBACK OFF
SET TRIMSPOOL ON
SPOOL batch_sql.sql
SELECT 'SELECT ''' || RPAD(TNAME,30) || ''' , COUNT(*) FROM ' || tname
|| ';' from tab;
SPOOL OFF
SET TERMOUT ON
SET HEADING ON
@@batch_sql.sql
regards,
M. Armaghan Saqib
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Dec 16 1999 - 06:41:09 CST
![]() |
![]() |