Re: do desc on tables, dump output to text file
From: gazzag <gareth_at_jamms.org>
Date: Tue, 18 Nov 2008 07:54:50 -0800 (PST)
Message-ID: <f48961d6-f51e-4231-b755-9236928c8af2@d10g2000pra.googlegroups.com>
Date: Tue, 18 Nov 2008 07:54:50 -0800 (PST)
Message-ID: <f48961d6-f51e-4231-b755-9236928c8af2@d10g2000pra.googlegroups.com>
On 18 Nov, 15:03, "Joey.Dant..._at_gmail.com" <Joey.Dant..._at_gmail.com>
wrote:
>
> There is the ever popular:
>
> set hea off
> set echo off
> spool scriptfile.sql
> select 'spool reportfile' from dual;
> select 'desc '||table_name||from dba_tables where owner='$OWNER';
> spool off
> @@scriptfile- Hide quoted text -
>
Slight typo, the last line should read:
select 'desc '||table_name||from dba_tables where owner='&OWNER';
Note: "&" instead of "$".
Or, the following line before the SPOOL and the first SELECT would also work:
SET DEFINE $ HTH -g Received on Tue Nov 18 2008 - 09:54:50 CST