not able to resize back datafile. [message #411825] |
Tue, 07 July 2009 01:10 |
IT Guru
Messages: 59 Registered: January 2007
|
Member |
|
|
Oracle 10g linux
system datafile size is 5.37gb
total segments /extents size is 0.487915039 gb
total dba_free_size for system datafile is 5gb
already tried with
ALTER TABLESPACE system COALESCE ;
but when try to resize back
Syntax:
alter database datafile 1 resize 4g;
ORA-03297: file contains used data beyond requested RESIZE value
FILE_NAME : /u01/app/oracle/oradata/qanew/system01.dbf
TABLESPACE_NAME : SYSTEM
BYTES : 5,767,168,000.00
BLOCKS : 704,000.00
STATUS : AVAILABLE
AUTOEXTENSIBLE : YES
MAXBYTES : 34,359,721,984.00
MAXBLOCKS : 4,194,302.00
USER_BYTES : 5,767,102,464.00
USER_BLOCKS : 703,992.00
ONLINE_STATUS : SYSTEM
|
|
|
|
Re: not able to resize back datafile. [message #411839 is a reply to message #411825] |
Tue, 07 July 2009 02:23 |
IT Guru
Messages: 59 Registered: January 2007
|
Member |
|
|
attachment contain 4 diffrent excel file
output of
1) dba_data_files
2) dba_segments
3) dba_extents
4) dba_free_space
I have use metalink noteid. 130866.1
Can anyone tellme how to reset highwatermark of system tablespace in oracle 10g linux.
|
|
|
|
|
|
Re: not able to resize back datafile. [message #411876 is a reply to message #411873] |
Tue, 07 July 2009 04:09 |
IT Guru
Messages: 59 Registered: January 2007
|
Member |
|
|
hi,
have already give output of dba_free_space , dba_data_files etc...so can chk
about 5 gb space is free
May be as heavy record of sys.ADU$ tables
where already truncat same..... still not able to resize.....
anyway to rest system tablespace watermark....
|
|
|
|
|
|
Re: not able to resize back datafile. [message #412758 is a reply to message #411825] |
Sat, 11 July 2009 08:30 |
sruji6
Messages: 4 Registered: July 2009
|
Junior Member |
|
|
try this command
alter database datafile '<system datafile file path>' resize 6G;
As your current SYSTEM datafile is 5.37Gb give it as 6G when resizing.
please try this on test DB and then apply it in production
|
|
|
|
|
|
|
|
Re: not able to resize back datafile. [message #412935 is a reply to message #412923] |
Mon, 13 July 2009 08:11 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
smunir362 wrote on Mon, 13 July 2009 08:28 | create a new tablespace e.g. system1 and move all the objects to the new tablespace and then resize the system tablesapce.
|
I would strongly suggest against doing this, for anything other than user created objects.
|
|
|