Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> how to create dbms_stast.gather_table_stats script

how to create dbms_stast.gather_table_stats script

From: M.a.x G.e.decke <spam_at_gedecke.de>
Date: Fri, 23 Aug 2002 09:12:01 +0200
Message-ID: <ak4nbk$r7a$1@redenix.uni-muenster.de>


hey ng,

i want to create a script which creates a script with all tables. thats the way it looks at the moment:

spool dbmsstats_all.sql

SELECT 'EXECUTE DBMS_STATS.GATHER_TABLE_STATS(ownname=>upper(''AZUBI''),' || table_name || ');' FROM user_tables;

spool off

@dbmsstats_all.sql

but it isn't working. thats the error message:

ORA-06550: Zeile 1, Spalte 61:
PLS-00357: Table-, View- oder Sequence-Referenz 'SV_BEZEICHNUNG' in diesem Kontext nicht g³ltig
ORA-06550: Zeile 1, Spalte 7:
PL/SQL: Statement ignored

thanks for your help

max Received on Fri Aug 23 2002 - 02:12:01 CDT

Original text of this message

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