The document describes how to create and manage Oracle tablespaces. It includes commands to:
1. Create multiple tablespaces named test, test1, test2, test3, and test4 specifying different datafile locations, sizes, extent management, and storage options.
2. Alter an existing tablespace named test1 by adding a new datafile.
3. Provide steps for renaming a datafile of a tablespace by first taking the tablespace offline, using the operating system to move the file, and then executing an ALTER TABLESPACE RENAME DATAFILE command.
The document describes how to create and manage Oracle tablespaces. It includes commands to:
1. Create multiple tablespaces named test, test1, test2, test3, and test4 specifying different datafile locations, sizes, extent management, and storage options.
2. Alter an existing tablespace named test1 by adding a new datafile.
3. Provide steps for renaming a datafile of a tablespace by first taking the tablespace offline, using the operating system to move the file, and then executing an ALTER TABLESPACE RENAME DATAFILE command.
The document describes how to create and manage Oracle tablespaces. It includes commands to:
1. Create multiple tablespaces named test, test1, test2, test3, and test4 specifying different datafile locations, sizes, extent management, and storage options.
2. Alter an existing tablespace named test1 by adding a new datafile.
3. Provide steps for renaming a datafile of a tablespace by first taking the tablespace offline, using the operating system to move the file, and then executing an ALTER TABLESPACE RENAME DATAFILE command.
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';