You are on page 1of 4

ating Tablespace

1]create tablespace test d


atafile'D:\ORACLE9I\ORAD
ATA\SONU\TEST.DBF'
SIZE 200MEXTENT
MANAGEMENT
LOCALUNIFORM SIZE
128K;2] create tablespace test1
datafile'D:\ORACLE9I\ORA
DATA\SONU\TEST1.DBF'
SIZE 500MAUTOEXTEND
ON NEXT
5M;3]create tablespace tes
t2 datafile'D:\ORACLE9I\O
RADATA\SONU\TEST2.DBF
' SIZE 200MEXTENT
MANAGEMENT
LOCALSEGMENT SPACE
MANAGEMENT
AUTO;4] create tablespace test
3 datafile'D:\ORACLE9I\ORA
DATA\SONU\TEST3.DBF'
SIZE 200MEXTENT
MANAGEMENT
DICTIONARYDEFAULT
STORAGE (initial 1M next
1M);
5]
create tablespace test4
datafile'D:\ORACLE9I\ORAD
ATA\SONU\TEST2.DBF'
SIZE 200MEXTENT
MANAGEMENT
LOCALAUTOALLOCATE;
Offline Tablespace
alter tablespace test offline;
Altering Tablespace1] Adding
Datafile in Tablespace
alter tablespace test1 add
datafile'D:\ORACLE9I\ORAD
ATA\SONU\TEST_A.DBF'
SIZE 200M;
2] Renaming DatafileYou
must follow these steps when
the file is Non-System File
1] Bring the tablespace
offline.alter tablespace test
offline normal;2] Use the
operating system command to
move or copy the file3]
Execute the ALTER
TABLESPACE RENAME
DATAFILE commandalter
tablespace test rename
file'D:\oracle9i\oradata\sonu\te
st.dbf' to
'd:\oracle9i\oradata\sonu\test10
0.dbf';

You might also like