Basic Oracle Concepts and Programming Question:

Download Job Interview Questions and Answers PDF

How To Bring a Tablespace Online?

Oracle Database Interview Question
Oracle Database Interview Question

Answer:

If you have brought a tablespace offline, now you want to make it available to users again, you can use the ALTER TABLESPACE ... ONLINE statement as shown in the following script:

SQL> connect HR/globalguideline

SQL> CREATE TABLESPACE my_space
2 DATAFILE '/temp/my_space.dbf' SIZE 10M;
Tablespace created.

SQL> ALTER TABLESPACE my_space OFFLINE NORMAL;
Tablespace altered.

...

SQL> ALTER TABLESPACE my_space ONLINE;
Tablespace altered.


Download Oracle Database Interview Questions And Answers PDF

Previous QuestionNext Question
How To Bring a Tablespace Offline?How To Add Another Datafile to a Tablespace?