How To Bring a Tablespace Offline?
Submitted by: AdministratorIf you want to stop users using a tablespace, you can bring it offline using the ALTER TABLESPACE ... OFFLINE statement as shown in the following script:
SQL> connect HR/globalguideline
Connected.
SQL> CREATE TABLESPACE my_space
2 DATAFILE '/temp/my_space.dbf' SIZE 10M;
Tablespace created.
SQL> ALTER TABLESPACE my_space OFFLINE NORMAL;
Tablespace altered.
After bringing a tablespace offline, you can backup or rename the data file safely.
Submitted by: Administrator
SQL> connect HR/globalguideline
Connected.
SQL> CREATE TABLESPACE my_space
2 DATAFILE '/temp/my_space.dbf' SIZE 10M;
Tablespace created.
SQL> ALTER TABLESPACE my_space OFFLINE NORMAL;
Tablespace altered.
After bringing a tablespace offline, you can backup or rename the data file safely.
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Use Values from Other Tables in UPDATE Statements using Oracle? |
☺ | How Oracle Handles Dead Locks? |
☺ | What Happens to Indexes If You Drop a Table? |
☺ | What Is the Relation of a User Account and a Schema? |
☺ | How To View the Dropped Tables in Your Recycle Bin? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |