Adding additional file to a tablespace [message #61568] |
Wed, 05 May 2004 12:41 |
Jeff Apple
Messages: 1 Registered: May 2004
|
Junior Member |
|
|
Hi All,
how do I add a new datafile to a partition that is nearly filled so that the tablespace can continue to grow in the new datafile. Also I want to stop the autoextend on the old tablespace. This is for Oracle 8.1.7. on Solaris 8.
Thanks
Jeff A.
|
|
|
Re: Adding additional file to a tablespace [message #61572 is a reply to message #61568] |
Wed, 05 May 2004 20:41 |
Anatol Ciolac
Messages: 113 Registered: December 2003
|
Senior Member |
|
|
Oracle itself decide where to put new dates. So if you want that old datafile remain without new dates - resize them until the minimum size possible. This step also not very effective because of pctfree/pctused options - Oracle will fill blocks, where percent of dates is smaller than percent of filling a block.
|
|
|
|
|
Re: Adding additional file to a tablespace [message #61591 is a reply to message #61578] |
Thu, 06 May 2004 20:53 |
Anatol Ciolac
Messages: 113 Registered: December 2003
|
Senior Member |
|
|
For adding a datafile to tablespace exist very simply and standart script:
ALTER TABLESPACE AUDIT_DATA ADD DATAFILE 'file_name' size 20M
See a full description of command alter in Oracle documentation. This is not a problem for putting them in forum.
|
|
|