zoukankan      html  css  js  c++  java
  • Oracle

    --查看表空间大小
    select d.tablespace_name tablespace_name,total_M,total_M-free_M use_M,free_M,round((total_M-free_M)/total_M*100,2)||'%' use_per
    from
    (select tablespace_name,round(sum(bytes)/1024/1024,2) total_M from dba_data_files group by tablespace_name) d,
    (select tablespace_name,round(sum(bytes)/1024/1024,2) free_M from dba_free_space group by tablespace_name) f
    where d.tablespace_name=f.tablespace_name order by (total_M-free_M)/total_M desc;
    --查看表空间大小

    --查看表空间路径
    select file_name from dba_data_files;


    --增加表空间
    alter tablespace importal add datafile '/u01/app/oracle/oradata/orcl/importal02.dbf' size 20g autoextend on;

  • 相关阅读:
    排列 [计数dp]
    排列 [计数dp]
    函数 [计数]
    多态
    继承2
    2018年蓝桥杯b组国赛真题
    c++的继承
    运算符2
    运算符重载
    拷贝构造
  • 原文地址:https://www.cnblogs.com/yhcreak/p/6211129.html
Copyright © 2011-2022 走看看