查看INV用戶的對象的存儲情況
select * from dba_segments ds where ds.owner='INV';
--default tablespace users
創(chuàng)建表空間INV
create tablespace inv datafile '/oradata/ocm/inv01.dbf ' size 200M autoextend on next 10m maxsize 2048M extent management local segment space management auto;
設(shè)置默認表空間為INV
alter user inv default tablespace inv;
set linesize 200
set pagesize 2000
set term off verify off head off feedback off echo off
spool mtiddl.sql
select 'alter ' ||ds.segment_type || ' '|| ds.owner||'.' || ds.segment_name || ' ' ||
decode(segment_type, 'TABLE', 'MOVE', 'INDEX', 'REBUILD') ||
' tablespace INV;'
from dba_segments ds
where ds.owner = 'INV'
AND (segment_type = 'INDEX' OR segment_type = 'TABLE');
spool off
創(chuàng)新互聯(lián)主營桃江網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都App制作,桃江h(huán)5微信平臺小程序開發(fā)搭建,桃江網(wǎng)站營銷推廣歡迎桃江等地區(qū)企業(yè)咨詢