12.2 设置LOCAL_TEMP_TABLESPACE
SQL> select username,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE,LOCAL_TEMP_TABLESPACE from dba_users;
USERNAME DEFAULT_TABLESPACE TEMPORARY_TABLESPACE LOCAL_TEMP_TABLESPACE
------------------------- ------------------------------ ------------------------------ ------------------------------
SYS SYSTEM TBSB_NYTMP TEMP
SYSTEM SYSTEM TBSB_NYTMP TEMP
SIBP_NY SYSTEM TBSB_NYTMP TEMP
select 'alter user '||username||' LOCAL TEMPORARY TABLESPACE '||TEMPORARY_TABLESPACE||';'
from dba_users where username not in ('XS$NULL');
SQL> select username,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE,LOCAL_TEMP_TABLESPACE from dba_users;
USERNAME DEFAULT_TABLESPACE TEMPORARY_TABLESPACE LOCAL_TEMP_TABLESPACE
------------------------- ------------------------------ ------------------------------ ------------------------------
XS$NULL SYSTEM TBSB_NYTMP TEMP
SYS SYSTEM TBSB_NYTMP TBSB_NYTMP
SYSTEM SYSTEM TBSB_NYTMP TBSB_NYTMP
GSMCATUSER SYSTEM TBSB_NYTMP TBSB_NYTMP