zoukankan      html  css  js  c++  java
  • Oracle扩容表空间

     

    1、程序报错,无法进行修改操作,通过日志,看到如下错误

    2、通过google查询,问题是表空间文件不够了

    SELECT a.tablespace_name "表空间名",a.bytes / 1024 / 1024 "表空间大小(M)",(a.bytes - b.bytes) / 1024 / 1024 "已使用空间(M)",b.bytes / 1024 / 1024 "空闲空间(M)",round(((a.bytes - b.bytes) / a.bytes) * 100, 2) "使用比" FROM (SELECT tablespace_name, sum(bytes) bytes FROM dba_data_files GROUP BY tablespace_name) a,(SELECT tablespace_name, sum(bytes) bytes, max(bytes) largest FROM dba_free_space GROUP BY tablespace_name) b WHERE a.tablespace_name = b.tablespace_name ORDER BY ((a.bytes - b.bytes) / a.bytes) DESC;

    3、查看表空间文件位置

    SELECT * FROM dba_data_files WHERE tablespace_name = 'LMSTEST';

    4、增加表空间文件

    alter tablespace LMSTEST add datafile '/home/oracle/data/lmstest.dbf' size 5120M;

  • 相关阅读:
    01--DNS服务器3
    01--DNS服务器2
    装配bean
    实现二级域名
    apache反向代理
    struts拓展restful
    restful是什么
    struts的声明式异常处理
    linux常用命令之压缩打包
    linux常用命令之文件系统
  • 原文地址:https://www.cnblogs.com/fansik/p/10157224.html
Copyright © 2011-2022 走看看