Oracle增加表空间

 admin   2019-03-13 15:19   286 人阅读  0 条评论

select t.* from sys.dba_data_files t where t.tablespace_name ='EAS_D_YDJT_STANDARD'

select t.* from sys.ora_data_files t where t.tablespace_name ='EAS_D_YDJT_STANDARD'

alter database datafile '+DATADG/orcl/datafile/eas_d_ydjt_standard.ora' resize 4000M

查询表空间select t1.name,t2.name  from v$tablespace t1,v$datafile t2 where t1.ts# = t2.ts#;

查看表大小和使用率
select a.tablespace_name, total, free, total-free as used, substr(free/total * 100, 1, 5) as "FREE%", substr((total - free)/total * 100, 1, 5) as "USED%" from
(select tablespace_name, sum(bytes)/1024/1024 as total from dba_data_files group by tablespace_name) a,
(select tablespace_name, sum(bytes)/1024/1024 as free from dba_free_space group by tablespace_name) b
where a.tablespace_name = b.tablespace_name
order by a.tablespace_name;

select * from dba_data_files t where t.tablespace_name = 'EAS_D_YDJT_STANDARD'

alter database datafile '+DATADG/orcl/datafile/eas_d_ydjt_standard.ora' resize 10240M;

启动sqlplus  / as  sysdba

alter tablespace PACS31 add datafile '+DATADG/orcl/datafile/eas_d_ydjt_standard.ora' size 10240M;


alter tablespace EAS_D_YDJT_STANDARD add datafile '+DATADG/orcl/datafile/eas_d_ydjt_standard1.ora' size 10240M;

增加表空间代码alter tablespace EAS_D_YDJT_STANDARD add datafile '+DATADG/orcl/datafile/eas_d_ydjt_standard1.ora' size 10240M;

Linux的Oracle增加表空间相关操作.docx

本文地址:https://liuchunjie.top/?id=117
版权声明:本文为原创文章,版权归 admin 所有,欢迎分享本文,转载请保留出处!

 发表评论


表情

还没有留言,还不快点抢沙发?