This Oracle tutorial explains how to set default permanent and temporary tablespaces in Oracle with syntax and examples.
First, make sure that you have created a permanent tablespace.
Next you will need to change the Oracle database to use your permanent tablespace as the default permanent tablespace.
To set the default permanent tablespace in Oracle, you can run the following ALTER DATABASE statement:
This will update the default permanent tablespace to use the tbs_perm_01 tablespace.
You can run the following query to see that the default permanent tablespace has, in fact, been changed:
This will query the Oracle system tables and return the value of the default permanent tablespace.
First, make sure that you have created a temporary tablespace.
Next you will need to change the Oracle database to use your temporary tablespace as the default temporary tablespace.
To set the default temporary tablespace in Oracle, you can run the following ALTER DATABASE statement:
This will update the default temporary tablespace to use the tbs_temp_01 tablespace.
You can run the following query to see that the default temporary tablespace has, in fact, been changed:
This will query the Oracle system tables and return the value of the default temporary tablespace.