select table_name,tablespace_name from user_tables where tablespace_name='SYSTEM'
alter table table_name move tablespace tablespace_name
alter index index_name rebuild tablespace space_name
commit
select table_name,tablespace_name from user_tables where tablespace_name='SYSTEM'
alter table table_name move tablespace tablespace_name
alter index index_name rebuild tablespace space_name
commit