Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Counting from several tables
I have a similar need. What I've done is create a kind of "brute force"
answer to my need. But the benefit is that I can now run this against
almost ANY instance, and ANY schema. You could modify it to suit your
needs as well.
The only requirement is that the user running the script has CREATE TABLE and DROP TABLE privileges:
REM This script will create a small table and populate it with
REM row counts and table names
REM
REM It must be run as the user/schema owner being queried
undefine user passwd connect_string
connect &&user/&&passwd@&&connect_string
set linesize 128
set pagesize 9999
set trimspool on
set echo off
set heading off
set feedback off
set verify off
set termout off
drop table tabinfo
/
create table tabinfo (
rowcount number(8), tablename varchar2(30) )
> "Keith C. Jakobs, MCP" <elohir_at_hotmail.com> wrote in message > news:%kTK8.16136$153.271725735_at_newssvr14.news.prodigy.com...
>>
> records
>>
> records
>>
> perfectly
>>
>>
>>
>>
>>
![]() |
![]() |