decrease maxsize for a datafile
How do you decrease the maxsize for a datafile. If I have maxsize as 5G now, and I want to change it to 2.5G , do I do it by giving -
ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/stuff01.dbf'
RESIZE 2.5G;
or
alter database datafile '/u02/oracle/rbdb1/stuff01.dbf' autoextend on maxsize 2.5G;
Can someone please help?