Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to alter table storage on all tables
DepsiBob wrote:
> Hi,
>
> I want to change some storage params for all tables in a schema,
> but how do you write a sql that does this change on all tables?
> (Want to change NEXT and PCTINCREASE on all tables).
>
> //DepsiBob
Write an anonymous block with a cursor. The cursor selects tablenames from user_tables or all_tables and then create your alter table statement as a string and execute it with native dynamic SQL. Look up "EXECUTE IMMEDIATE" and "NATIVE DYNAMIC SQL" at http://tahiti.oracle.com.
Daniel Morgan Received on Tue Sep 17 2002 - 10:31:35 CDT