Home » RDBMS Server » Server Administration » Trying to change tablespace and datafile properties on the fly (10g)
Trying to change tablespace and datafile properties on the fly [message #520335] Sun, 21 August 2011 23:22 Go to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
G'day,

Long time, no post.

This facility has one last 10g database and a very problematic tablespace and last datafile associated with it.

The tablespace was set up with INITIAL_EXTENT of 131,072 (128K) instead of the more 'normal' 4,194,304 (4M) and NEXT_EXTENT of 262,144 (256K) instead of 4,194,304 (4M).

More worryingly, the datafile has INCREMENT_BY set to 1 (8K) instead of 1,280 (10M) or 2,048 (16M).

Has anyone ever updated sys.ts$.dflinit and sys.ts$.dflincr to modify the INITIAL_EXTENT and NEXT_EXTENT, and sys.file$.inc to modify the INCREMENT_BY?

David
Re: Trying to change tablespace and datafile properties on the fly [message #520336 is a reply to message #520335] Sun, 21 August 2011 23:27 Go to previous messageGo to next message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Why not use the good old ALTER TABLESPACE?

Regards
Michel
Re: Trying to change tablespace and datafile properties on the fly [message #520337 is a reply to message #520336] Sun, 21 August 2011 23:54 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I don't believe that it has the option to change them, only to define them on creation.

I KNOW that there isn't an 'alter tablespace alter datafile'

David
Re: Trying to change tablespace and datafile properties on the fly [message #520339 is a reply to message #520337] Mon, 22 August 2011 00:26 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9090
Registered: November 2002
Location: California, USA
Senior Member
djmartin wrote on Sun, 21 August 2011 21:54


I KNOW that there isn't an 'alter tablespace alter datafile'


What about:

ALTER DATABASE DATAFILE datafile_name ...;

Re: Trying to change tablespace and datafile properties on the fly [message #520342 is a reply to message #520339] Mon, 22 August 2011 00:41 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Good grief,

"ALTER DATABASE DATAFILE 'c:/oraclexe/oradata/xe/users2.dbf' AUTOEXTEND on next 16m;" actually worked.

There are no examples like this in the manuals or the web that I could find.

David
Re: Trying to change tablespace and datafile properties on the fly [message #520343 is a reply to message #520337] Mon, 22 August 2011 00:52 Go to previous messageGo to next message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
ALTER TABLESPACE ... DEFAULT STORAGE (...)
ALTER DATABASE ... DATAFILE ... AUTOEXTEND ON NEXT ...

Regards
Michel


Re: Trying to change tablespace and datafile properties on the fly [message #520344 is a reply to message #520343] Mon, 22 August 2011 01:02 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9090
Registered: November 2002
Location: California, USA
Senior Member
http://www.orafaq.com/wiki/Oracle_database_FAQ#Can_one_resize_tablespaces_and_data_files.3F
Re: Trying to change tablespace and datafile properties on the fly [message #520348 is a reply to message #520344] Mon, 22 August 2011 01:15 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Thanks guys.

David
Previous Topic: XE Limitations
Next Topic: Oracle Tablespace
Goto Forum:
  


Current Time: Sat Apr 27 01:49:44 CDT 2024