enlarge tablespace

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
jlaudirt
Rank: Programador Pleno
Rank: Programador Pleno
Posts: 37
Joined: Sat, 30 Aug 2008 10:16 am
Location: vilhena - ro

Environment information:
* Oracle version: 10g
* Operating system: RedHat Enterprise


I need to know how to increase a tablespace. You are currently 900mb. The system is accusing use in 87% of Tablespace.


From now on, thank you ...
Tupi
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 57
Joined: Wed, 26 Mar 2008 12:34 pm
Location: Porto Alegre

The command is this:

Select all

ALTER DATABASE DATAFILE 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXPLO.DBF' RESIZE 23M

After the resize you boot for what size you want to increase in my case is 23 you can paste 12g by exeple.


Anything is only question.

Embrace
Tupi
Rank: Programador Sênior
Rank: Programador Sênior
Posts: 57
Joined: Wed, 26 Mar 2008 12:34 pm
Location: Porto Alegre

The best is for selfextend to not have to perceive with in the middle of the night the tablespace run out of space.
diegoleite
Rank: Analista Pleno
Rank: Analista Pleno
Posts: 115
Joined: Sat, 10 Nov 2007 2:54 pm
Location: rio de janeiro
Att,


Diego Leite
DBA ORACLE

Friend,

I recommend the local management of extent as well as Maximum Datafile 1500m size.

Oracle recommends 2000m.

Select all

CREATE  
 TABLESPACE t_data 
 LOGGING 
 DATAFILE 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\data1.dbf' SIZE 10M AUTOEXTEND ON NEXT 100M MAXSIZE 1500M 
 EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest