ALTER TABLESPACE surv_data
ADD DATAFILE '/oracle/oradata/wwwp/data/surv_data_01.dbf' size 25616 K
AUTOEXTEND ON NEXT 5120 K MAXSIZE 2048016 K
MINIMUM EXTENT 160 K
OK. I added a datafile using command:
'alter tablespace /tablespace name/ add datafile /datafile name/ size 50m;
For some reason through GUI tool it says my datafile size is unlimited. ??? Is it right?
How do I look it up through sqlplus?
Also, I would like to alter it using: alter database datafile /datafile name/ autoextend off next 50m maxsize 500m and get ORA-00900: invalid SQL statement
When I set autoextend on it works fine.
What am I missing here?
<font face='courier'>
ALTER DATABASE
DATAFILE '/xxxx/yyyyy/wwww/wwww/xxxx_yyyy_01.dbf'
RESIZE 9999 M
AUTOEXTEND OFF NEXT 9999K MAXSIZE 99999K
MINIMUM EXTENT 99K
</font>
[QUOTE][i]Originally posted by mary [/i]
[B]OK. I added a datafile using command:
'alter tablespace /tablespace name/ add datafile /datafile name/ size 50m;
For some reason through GUI tool it says my datafile size is unlimited. ??? Is it right?
[/B][/QUOTE]
No, if you set it to 50M then it is 50M. It's either a bug of your GUI tool or you've overlooked something. Are you sure it is not showing unlimited for MAXSIZE, not for file size?
[QUOTE][i]Originally posted by mary [/i]
[B]
How do I look it up through sqlplus?
[/B][/QUOTE]
select bytes from dba_data_files where file_name = 'YOUR_NEW_FILE'
[QUOTE][i]Originally posted by mary [/i]
[B]Also, I would like to alter it using: alter database datafile /datafile name/ autoextend off next 50m maxsize 500m and get ORA-00900: invalid SQL statement
When I set autoextend on it works fine.
What am I missing here?
[/B][/QUOTE]
What is the point in seting the autoextent parameters (NEXT, MAXSIZE) if you switch autoextending off? Oracle obviously finds no good reason to set those two parameters if you set autoextending of at the same time.
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Bookmarks